View Single Post
Old 03-07-2024, 11:22 AM   #3
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: 11,791
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
There is a long and detailed discussion of author names on Kobos in this thread. It is relevant if your author names are stored as LN, FN. The discussion is quite detailed and helpful.

I store author names LN, FN. The template in my plugboard for my Libra 2 is
Code:
program:
	comma = '';
	res = '';
	for author in $authors separator '&':
		res = strcat(res, comma, swap_around_comma(author));
		comma = ', '
	rof;
	res
If the author name contains a comma then this template moves the text before the comma to the end. Thus names like "Blogs, Joe" become "Joe Blogs". "Blogs MD, Joe" becomes "Joe Blogs MD".

The template depends on there being at most one comma in the author name. If there are more than one comma then more processing must be done. What processing depends on your naming conventions. The thread referenced above discusses this problem in detail.
chaley is offline   Reply With Quote