Open gczobel opened 8 years ago
It's a bug indeed but not one that can be easily fixed.
You can check https://github.com/seblucas/cops/issues/262#issuecomment-211400043 to see it's a long time problem. It would need specific extension to sqlite which are hard to handle with PHP.
In France, we also have diacritics (accentuated characters and some harder cases) and I have the same sorting problem. The only solution I have for now is to use https://github.com/seblucas/cops/blob/master/config_default.php#L291-L297. You won't see any accentuated anymore in your list but the list will be correctly sorted. But this parameter is really slow.
Perhaps Collator('bg_BG') might be a potential general solution, still not perfect though.
That's true that I could sort the array in PHP (for now every sort was done by the database)
SQLite3 is supposed to support UTF8 encoding, and supposedly should sort it correctly, are we using that?
I have suggestion - calibre has "sort_name" field in the authors table. May be we just can store non-accented letters in that field an use it to the sorting?
@Ecksters
Thanks for the idea with Collator, it seems to work with French, I'll check the performance hit and will fix it soon
Something new about this?
Hi, Some authors with an spanish last name have accented characters in the first letter. Example: "Úbeda, Francisco López de" Not sure about other languages but in Spanish accented letters must be grouped with non accented ones. So... á = a, é = e, í = i, ó = o and ú = u
In the authors list, I see different entries for authors with accented and non-accented first letter.