View Single Post
Old 05-16-2022, 09:37 AM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by TheArtfulDodger View Post
As for Author Mapping Rules, I can find, in the 'Adding Books' preferences, the author mapping rule that's there, under 'Rules to Manipulate Author Names' but I don't know if what's there is a rule or an example {Change the author name, if it matches regex expression (.*),(.*) to the name \2\1} but I didn't put that there so, unless it's been changed recently, I don't think it applies. [My understanding of what the regex (even in university, regex expressions were not my strong point!) says is 'if name,name' change it to whatever \2\1 means but that's not the kind of construction I've been seeing.]
I don't have that line. "Someone" must have added it sometime in the distant past.

The rule is intended to change "LN, FN" names to "FN LN". However, starting in calibre 5 the regex engine changed, allowing .* to match the empty string even when it can match more than that. Does changing the regex expression to "(.+),(.+)" fix your problem?
chaley is offline   Reply With Quote