gsoc-alphabetical_order

Michael Bauer fios at akerbeltz.org
Tue Apr 4 12:12:02 UTC 2017


Sgrìobh gcompris-devel-request at kde.org na leanas 04/04/2017 aig 13:00:
> Alphabetical order is also language-dependent, so, unless there is a
> library that you can use, the best way out will be to make the letters
> and letter order translateable and leave it up to the localizers to
> define the order for you.
CLDR has data on the collation order in the xml of each locale under 
<exemplarCharacters>.

For example Icelandic has
http://unicode.org/cldr/trac/browser/trunk/common/main/is.xml
                 <exemplarCharacters>[a á b d ð e é f g h i í j k l m n 
o ó p r s t u ú v x y ý þ æ ö]</exemplarCharacters>
Welsh has
http://unicode.org/cldr/trac/browser/trunk/common/main/cy.xml
                 <exemplarCharacters>[a á à â ä b c {ch} d {dd} e é è ê 
ë f {ff} g {ng} h i í ì î ï j l {ll} m n o ó ò ô ö p {ph} r {rh} s t 
{th} u ú ù û ü w ẃ ẁ ŵ ẅ y ý ỳ ŷ ÿ]</exemplarCharacters>

German has
http://unicode.org/cldr/trac/browser/trunk/common/main/de.xml
                 <exemplarCharacters>[a ä b c d e f g h i j k l m n o ö 
p q r s ß t u ü v w x y z]</exemplarCharacters>

Michael


More information about the GCompris-devel mailing list