View Single Post
Old 10-02-2017, 12:55 AM   #2481
kstar
Member
kstar began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2015
Device: Kobo
As suggestI tried ships_CHARS method ... it almost works BUT for a preceding slash.

input: [Iron Man/Tony S., Pepper P.]
output: /Pepper Potts/Tony Stark


Code:
#TO ACTIVATE OPTION, UNCOMMENT BY REMOVING THE # AT BEGINNING OF LINE.


#DEFAULT section applies to all formats and sites
[defaults]
titlepage_entries: seriesHTML,category,genre,language,characters,ships,status,datePublished,dateUpdated,dateCreated,rating,warnings,numChapters,numWords,site,description
is_adult:true


#SITE section overrides defaults.
[www.fanfiction.net]
extra_valid_entries:
ships_label:Pairings
[archiveofourown.org]
include_in_genre:
include_in_freefromtags:
[ficwad.com]
[www.fictionalley.org]
is_adult:true
[www.harrypotterfanfiction.com]
is_adult:true


#EPUB section overrides defaults & site section
[epub]
include_images:true
keep_summary_html:true
make_firstimage_cover:true


#SITE:EPUB section overrides defaults, site section & format section


#OVERIDES section overrides all other sections
[overrides]

#Reorder ships alphabetically
sort_ships:true

#Negate the extratag "Fanfiction" from default.ini
extratags:

#Stops epub making cover.
never_make_cover: true

#Calibre column "tags".
include_subject_tags: category,status,status

#Redirects metadata to personal calibre columns
custom_columns_settings:
 ships=>#topics,a
 dateUpdated=>#update
 numWords=>#words

#NORMALIZATION
replace_metadata:
#Removes superhero names from fanfiction.net compound characters 
 ships_CHARS,characters=>(Ant\-Man|Black Panther|Black Widow|Captain America|Falcon|Hawkeye|Hulk|Iron Man|Quicksilver|Spider\-Man|War Machine|Wasp|Winter Soldier)=>

 Bruce B\.=>Bruce Banner
 Charlie W\.=>Charlie Weasley
 Clint B\.=>Clint Barton
 Daphne G\.=>Daphne Greengrass
 Draco M\.=>Draco Malfoy
 Fleur D\.=>Fleur Delacour
 Fred W\.=>Fred Weasley
 George W\.=>George Weasley
 Ginny W\.=>Ginny Weasley
 Harry P\.=>Harry Potter&&category=>Harry Potter
 Hermione G\.=>Hermione Granger
 James R\.=>James Rhodes
 Jean G\.=>Jean Grey&&category=>X-Men
 Lucius M\.=>Lucius Malfoy
 Luna L\.=>Luna Lovegood
 Molly W\.=>Molly Weasley
 Nastasha R\.=>Nastasha Romanova
 Neville L\.=>Neville Longbottom
 Nick F\.=>Nick Fury
 Pepper P\.=>Pepper Potts
 Pietro M\.=>Pietro Maximoff
 Regulus B\.=>Regulus Black
 Remus L\.=>Remus Lupin
 Ron W\.=>Ron Weasley
 Sam W\.=>Sam Wilson&&category=>Avengers
 Severus S\.=>Severus Snape
 Sirius B\.=>Sirius Black
 Steve R\.=>Steve Rogers
 Susan B\.=>Susan Bones
 Tom R\. Jr\.=>Voldemort
 Tom Riddle Jr\.=>Voldemort
 Tom Riddle \| Voldemort=>Voldemort
 Tony S\.=>Tony Stark
 Wanda M\.=>Wanda Maximoff

#Fandom
 category=> (- All Media Types|- Ambiguous Fandom|- Fandom|\(Marvel\)|\(Movies\)|\(Marvel Movies\)|\(Movie [0-9]+\)|\(Comics\)|\(TV\))$=>
 ^Avengers=>The Avengers&&category=>Avengers
 Harry Potter \- J\. K\. Rowling=>Harry Potter
 Marvel Cinematic Universe=>Marvel Universe
 Stargate\: Atlantis=>Stargate Atlantis
 X-Men\: The Movie=>X-Men

#Friendships
exclude_metadata_pre:
 ships=~&
kstar is offline   Reply With Quote