Quote:
Originally Posted by davidfor
That was the first thing I tried. But, the comma is replaced by a semi-colon. Actually, it half works. I hadn't looked before. The title page has the comma separated list. The semi-colon is only in the tag.
|
Hmm. That works for custom columns because they are set as a string. Tags are kept as list objects in python. So calibre, when it sees a ',' in a tag entry is changing it to a ';'.
So there isn't an
easy way to do it.
There is, however, a complicated way. You can make two copies of category in new entries, modify those, and then replace the original category with the two new ones. It's not intuitive, but because of the order things get included and replaced it does work.
Code:
extra_valid_entries:splitcat1,splitcat2
include_in_splitcat1:category
include_in_splitcat2:category
include_in_category:splitcat1,splitcat2
replace_metadata:
splitcat1=>Magical Girl Lyrical Nanoha=>Lyrical Nanoha
splitcat2=>Magical Girl Lyrical Nanoha=>Magical Girl
splitcat1=>Puella Magi Madoka Magica/魔法少女まどか★マギカ=>Puella Magi Madoka Magica
splitcat2=>Puella Magi Madoka Magica/魔法少女まどか★マギカ=>魔法少女まどか★マギカ