replace_metadata feature--allow regexp replacement of story metadata from ini.

This commit is contained in:
Jim Miller committed 2012-02-11 13:40:41 -06:00
1 parent c6e06903c0
commit dac306d0ba
7 files changed
+72 -23

No files matched your search

+14
View File
@@ -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]