View Single Post
Old 02-20-2016, 01:08 PM   #1072
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Just a quick but probably dumb question I have to ask for my peace of mind:

Regarding ship2chars.

I've had in my ini for a while now lines like this:

Spoiler:
Code:
  ships=>^John Sheppard\/Rodney McKay$=>Rodney McKay/John Sheppard

or:

 ships=>^Cordelia\/Xander$=>Xander Harris/Cordelia Chase


I've preferred to use ^ and $ instead of, for example, "\b" to make sure I don't get duplications or otherwise faulty renamings. Since I never noticed any problems with that, I assumed it would be ok. Now however, I have noticed a problem. It's thanks to this link:

http://archiveofourown.org/works/86535

I've downloaded it and later realized I already had it in my library. But, in doing so I also realized that in this new downloaded version I did not have anything in my characters field. Had it not been for the previously downloaded version, I would not have noticed this lack. Because, just the day before I'd downloaded a few fics from ffnet and was disappointed to realize that if the fic doesn't already have anything in the genre/character/ships fields, replace_metadata won't be able to add anything to them. (Yes, should be obvious, true, but apparently not. )

Strangely, this here:

Spoiler:
Code:
 ships=>^(.*)\/Rodney McKay$=>Rodney McKay/\1


is actually one of those things that work half the time and the other half not. No idea why.

Similarly, just this alone won't work either:

Spoiler:
Code:
 ships=>(.*)\/^Rodney McKay$=>Rodney McKay/\1


Anyway, tl;dr:
Does using ^$ in ships make the splitting of ships2chars impossible? (Has it always been so and I've just not noticed?) Or is it just me? Just so I know if I need to go over my ini and replace those with another regex.
edeniz is offline   Reply With Quote