View Single Post
Old 12-03-2010, 06:24 AM   #19
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,486
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Coleccionista View Post
I didn't noticed before that accented chars are sorted last which makes the alphabetical order a bit confusing.
So Amos Oz is listed before Kenzaburo Oé, I don't know if the sorting is looking only at the ASCII code of the letter but I'd say that for most languages the following should be true while sorting:

Code:
 
a = á = à
e = é = è
i = í = ì
o = ò = ó
u = ú =ù
In this day of Unicode and with calibre localized to different languages I am quite surprised since I imagine Python would have support libraries for all kinds of international / unicode sorting
This is a surprisingly hard problem. See https://www.mobileread.com/forums/sho...d.php?t=101104 for some discussion and a poll.
chaley is offline   Reply With Quote