Quote:
Originally Posted by DavidTC
I have actually considered putting up some sort of wiki with pages saying 'Here are the config parts that should normalize all names in Fandom X'.
|
Please do. I'd be happy to put a page under
the project wiki for it. (I think anyone with a GitHub account can edit wiki pages.) I've asked before for the people who spend lots of time normalizing tags to share their work with little result.
I've posted a new
Test version (
direct link) that fixes the problem you reported as well as adding
sort_ships_splits and
ships_CHARS features.
As requested, you can use
replace_metadata on
ships_CHARS to operate on the individual parts of ships entries while they are split.
You can use
sort_ships_splits to specify more than one regular expression to use to split by and what string to use to join the char parts back together after sorting.
Here are my test settings for it:
Spoiler:
Code:
[defaults]
add_to_replace_metadata:
ships_CHARS=>Thing=>Object
characters,ships_CHARS=>Bob=>Wobert
sort_ships:true
## Each line indicates first a regex that should be used to split each
## ships entry and then, after => the string to use to merge the parts
## back together. \s == blank space.
## Each part will have replace_metadata with key ships_CHARS applied.
## By default, sort_ships_splits:/=>/
sort_ships_splits:
[ ]*/[ ]*=>\s/\s
[ ]*&[ ]*=>\s&\s
## here's my tester:
## story URL: test1.com?sid=1002
[teststory:1002]
add_to_category_list:Supernatural
#add_to_category_list:abc,bcd,cde
add_to_genre_list:Action,Romance
chaptertitles:Oneshot,Twoshot
#Prologue,Chapter 1\, Xenos on Cinnabar,Chapter 2\, Sinmay on Kintikin,3. Chapter 3,Chapter 4,Chapter 5,Chapter 6,Chapter 7,Chapter 8
add_to_ships_list:Thor/Jane,Bob,Bob/Thor,Merlin/Arthur,Thing 1/Thing 2,A/B/C,Z/Y/X/V,qewrty / adsf,Harry & Amelia,Ron&Neville&Trevor,Z/A&Y/B
add_to_characters_list:Fred Weasley,George,Bob,Harry
rating:G
Status:Completed
#title:Some Other Title
I had to shift some code around to make this work correctly, so no promises it doesn't break something else. I don't
think it does...
(And anybody who asks for sorting by last name instead of string order will be roundly ignored.)