View Single Post
Old 08-20-2023, 11:58 AM   #1159
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,086
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by luciaisacat View Post
Hi! I apologize if this topic has been already dealt with. In "QualityCheck/Fix/Swap author FN LN" the result is the introduction/removal of a comma between the author names in inverted order. In some cases, however, the original imported format differs (e.g. when bulk importing books from different collections) and authors are differently listed as FN LN or LS FN without comma. I wonder if it could be possible to introduce the option to just invert the author names without the adding of the comma (e.g. Doe John -> John Doe). Thanks!
Fix has 2 Name items
On fixes the initials: There are 4 choices
The other flips whatever the is between Comma and not. AFAIK Ln Fn is not a normal format (at least for English publishers )

Bulk S&R of the MDE might help. something like: NOT TESTED

YOU NEED TO EXCLUDE those that are correct since there is no way to tell just by the letters found.
Bill Brown is good Jane Mary is ??? Boop Betty needs fixing
I don't even know how to automate the detection )

Code:
({\w{2,})\s({\w{2,})
\2 \1
does not find when MI or Mn is included or when 2+ author names present

Finds a word with 2 or more letters separated by a space
Flips them to Fn Ln
theducks is online now   Reply With Quote