Quote:
Originally Posted by astarinlife
I go from Naruto/Hinata to Uzumaki/Hyuuga so I know it works! Just not as I would like it to. Please help? Here's my whole code, if that helps.
|
When ever asking for help, it's best to include a few story URLs that exhibit the problem, otherwise we're guessing.
That said, my guess is you bumped into a story where the auther put the names in Japanese order: "Uzumaki Naruto/Hyuuga Hinata".
And
ships_CHARS replacements are applied before
ships replacements. So
ships_CHARS=>^([^ ]+).*$=>\1 is happening before
ships=>Uzumaki Naruto=>Naruto, thus "Uzumaki".
Changing
ships=>Uzumaki Naruto=>Naruto to
ships_CHARS=>Uzumaki Naruto=>Naruto (and other lines like it) may work.
I don't see a way around this as a general case--you want 'first name' AKA 'given name', but when 'given name' isn't always first, you're kinda stuck.
Also, I'll tell you the same thing I tell everyone trying to normalize AO3 metadata: it's going to be a lot of work and it's never going to be perfect as long as AO3 allows authors to enter whatever they want.
If AO3 had a mode that displayed the 'canonical' tags instead we could at least leverage the work already done by AO3 'tag wranglers' team. (And no, looking up each tag to find the canonical version isn't feasible; authors routinely put tens or even hundreds of tags on a story.)