View Single Post
Old 12-18-2016, 02:09 PM   #1644
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,002
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by firefoxxy View Post
I have my personal.ini set up to strip ship-names down to first name only.

Now when reading fics about the Potters kids I get confused when the tags say 'Lily & Severus' instead of 'Lily Luna & Severus'.

Here is an example story.
It shouldn't really come as a surprise that when you strip ship-names down to first name only, it does exactly that.

The solution that seems to me to be easiest to handle and most straightforward is to make the cases where you want to keep two word names into one word names before doing the 'first name only' line. (Assuming there aren't a huge number of such cases.) Then you can change them back to two word names afterwards--or not if you want to save some typing.

Code:
replace_metadata:
## Make these two word names one word before the 
## 'first name only' line.
 ships_CHARS=>Lily Luna=>Lily_Luna
 ships_CHARS=>Albus Severus=>Albus_Severus

## strip each ships char down to first name only
 ships_CHARS=>^([^ ]+).*$=>\1

## Change the two words names back into two words (if desired)
 ships_CHARS=>Lily_Luna=>Lily Luna
 ships_CHARS=>Albus_Severus=>Albus Severus
Alternatively, remove the space instead of using underscore: Lily Luna=>LilyLuna
JimmXinu is offline   Reply With Quote