mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-10-03 12:00:32 +08:00
replace_metadata feature--allow regexp replacement of story metadata from ini.
This commit is contained in:
1 parent
c6e06903c0
commit
dac306d0ba
7 files changed
+72
-23
No files matched your search
@@ -111,6 +111,20 @@ extratags: FanFiction
|
||||
## epub by many readers). Must be hex code, # will be added.
|
||||
background_color: ffffff
|
||||
|
||||
## Use regular expressions to find and replace (or remove) metadata.
|
||||
## For example, you could change Sci-Fi=>SF, remove *-Centered tags,
|
||||
## etc. See http://docs.python.org/library/re.html (look for re.sub)
|
||||
## for regexp details.
|
||||
## Make sure to keep at least one space at the start of each line and
|
||||
## to escape % to %%, if used.
|
||||
#replace_metadata:
|
||||
# Sci-Fi=>SF
|
||||
# Puella Magi Madoka Magica.* => Madoka
|
||||
# Comedy=>Humor
|
||||
# Crossover: (.*)=>\1
|
||||
# (.*)Great(.*)=>\1Moderate\2
|
||||
# .*-Centered=>
|
||||
|
||||
## Each output format has a section that overrides [defaults]
|
||||
[html]
|
||||
|
||||
|
||||
Reference in new issue
Block a user