View Single Post
Old 12-20-2017, 12:28 PM   #4
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,463
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
It does NOT handle the edge case of 1 right, 1 wrong (Multiple Authors). Those need TLC
Just for fun I looked at using bulk S&R to solve this problem: multiple authors with only some of them incorrect. Under the assumption that any name containing a comma is LN, FN and wants to become FN LN, then using SR template mode with the template
Code:
program:
	list_re_group(field('authors'), '&', '.', '(.*)', '{$:swap_around_comma()}')
does the job. It processes each author in the list individually.

Click image for larger version

Name:	Clipboard02.jpg
Views:	296
Size:	178.4 KB
ID:	160809
chaley is offline   Reply With Quote