View Single Post
Old 01-07-2016, 02:04 PM   #908
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,004
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
Everything works fine for me. Thank you so much for looking into this and the time you have taken for helping me out!
Glad it's working for you.

I designed expecting that there would be 'more'somes, but be warned that weird things may happen if you ever run across a story that uses both / and & in the same ship entry. I've never seen one 'in the wild', but AO3 did let me enter it in a test story.

As for family name first names, you can another regexp before the 'first name only' one that instead does 'last name only' for certain family names:

Code:
## second name only for certain family-name-first names:
 ships_CHARS=>^(Uchiha|Uzumaki|Haruno|Hyuuga|Hatake|Namikaze) *([^ ]+)$=>\2
## first names only:
 ships_CHARS=>^([^ ]+).*$=>\1
Note that it won't work if there's more than two names, like "Hyuuga Hinata (Naruto)/Uzumaki Naruto (Naruto)" won't work.
JimmXinu is offline   Reply With Quote