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.