by euazOn · 1y ago · 0 comments
A reasonable approach might be to sort the list of names by using, as the sort keys, the strings projected through a Unicode normalization function, followed by folding to upper case. Then Čestina gets mapped to CESTINA and at least appears among the C's.
Also, we regard 'Ch' as its own letter. So yeah, try sorting alphabetically. I'll wait.
perl -E'Unicode::Collate::Locale->new(locale => 'cs')->sort … … …'
works. Test cases at https://prirucka.ujc.cas.cz/?action=view&id=900If you want to see bizarre sort rules, look up how french sorts accent characters.
I tried to do this, but there do not appear to be any sources addressing this question.
I did find a French Stack Exchange question asking for this exact information, and complaining that there are no sources (other than an uncited wikipedia page) that address it. There is no answer posted, but there is a comment from a French guy suggesting that there are no official rules.
https://french.stackexchange.com/questions/54217/french-dict...
How were you imagining I would look this up?
Of course at some point Unicode needs to be ordered, but you don’t get to impose technical details to people around the world because it matches with how English does it.
That’s where geo-ip guessing becomes relevant. Show a list with the most likely languages at the top.
But in the language native locale, no.
U+005A LATIN CAPITAL LETTER Z
U+010C LATIN CAPITAL LETTER C WITH CARON
U+0395 GREEK CAPITAL LETTER EPSILON