Quote:
Originally Posted by ownedbycats
Regex question:
Code:
[https://archiveofourown.org/works/9652229]
strip_chapter_numbers: true
chapter_title_strip_pattern:(Ch[0-9]+:|Chapter [0-9]+, Part [0-9]+|Ch. [0-9]+|Ch[0-9]+)
The regex won't capture the , Part [0-9]+ bit in some of the chapter titles. Any ideas?
EDIT: Might be easier to just remove FFF's added numbering?
|
You patter is looking for "Chapter #, Part #", your example on regex101.com has "Ch9, Part 2".
Here's a more general regexp that matches all your examples:
Code:
Ch(apter)?[ \.]*[0-9]+(, Part [0-9]+)?
The setting to turn off FFF chapters numbers; you have them turned on somewhere--they are off by default:
Code:
## add_chapter_numbers can be true, false or toconly
## (Note number is not added when there's only one chapter.)
add_chapter_numbers:false
Quote:
Originally Posted by ownedbycats
Also, is it intended/known that copying from a browser into the config also copies the formatting? I was adding comments to know what fic each of the story sections is for.
EDIT: Also, what happens if there's more than one section for a story? I just noticed this happened but apparently it didn't get any errors (and somehow I didn't notice).
|
The Qt edit box accepts the formatting, but it is discarded on save. I think I vaguely recall that it showed up when text color coding was added and was too difficult to separate.
See
https://github.com/JimmXinu/FanFicFa...cated-sections