View Single Post
Old 09-29-2022, 09:04 AM   #13
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DrChiper View Post
The good part it hat there are no errors. The bad part is that it still does not provide me what I desire.

I did use author_sort to get the LN, FN combo. I do understand that the comma does not work for Kobo, so in my previous post #5 I figured to replace that comma by some other character which would not be wrongly interpreted by Kobo.

The last code simply swaps the LN, FN --> FN LN which is not my intention.
I need something like:
Code:
program:re(author_sort:list_item(0,&),',', 'U+0088')
But as I am no template specialist, my ideas may be totally wrong.
I don't follow. Lets assume we change the comma to a semicolon. Using author_sort with that change, if you send "Asimov; Isaac" and "Deer; Carl" to the Kobo then it will display the authors sorted incorrectly like this:
  • Deer; Carl
  • Asimov; Isaac
Why? Because the kobo treats the part after the last space as the last name and sorts on that. Is that really what you want?

If you really want to do that then this should work. I used semicolon because the template parser doesn't support extended character definition sequences and U+0088 doesn't seem to be a proper character.
Code:
program:re(list_item($author_sort, '0', '&'),',', ';')
chaley is offline   Reply With Quote