| 1 |
There are generic sort descriptions for various code pages. |
| 2 |
|
| 3 |
You could write one for a particular language. |
| 4 |
|
| 5 |
|
| 6 |
An ordering of characters for a given code page. |
| 7 |
Characters are represented either as themselves (in unicode) or |
| 8 |
as two or more hex digits of the unicode representation. |
| 9 |
|
| 10 |
There are three ordering strengths represented in this file. |
| 11 |
|
| 12 |
These are Primary (different letters), secondary (different |
| 13 |
accents), tertiary (different case). |
| 14 |
See the java documentation for the Collator class for some more |
| 15 |
discussion of the strength concept and examples. |
| 16 |
|
| 17 |
Note that primary differences always determine the order even if |
| 18 |
they are later in the word than secondary differences. |
| 19 |
ie A B comes after A-acute A, even though A-acute sorts after A. |
| 20 |
|
| 21 |
The word 'code' starts the ordering section. |
| 22 |
|
| 23 |
Primary differences are represented by the '<' separator. |
| 24 |
Characters with secondary differences are separated by semicolons |
| 25 |
and characters with tertiary differences are separated by commas. |
| 26 |
|
| 27 |
The code section ends if the word 'expansion' is seen. |
| 28 |
This introduces a character that should sort as though it is |
| 29 |
two (or more) separate characters. |
| 30 |
|
| 31 |
|
| 32 |
ID values |
| 33 |
--------- |
| 34 |
|
| 35 |
I believe that these are arbitary identifiers. Here is a registry of |
| 36 |
values we are using. If you make a variation on a code-page |
| 37 |
sort-order then give it a different id2 value. |
| 38 |
It is believed that having sorts with the same id1/id2 but different data loaded |
| 39 |
on the same device will give unexpected results |
| 40 |
|
| 41 |
code-page id1 description |
| 42 |
|
| 43 |
1250 12 Central European sort |
| 44 |
1251 8 Cyrillic sort |
| 45 |
1252 7 Western European sort |
| 46 |
1253 13 Greek sort |
| 47 |
1254 14 Turkish sort |
| 48 |
1255 15 Hebrew sort |
| 49 |
1256 16?9 Arabic sort cp1256.txt has id1=9, original version of this doc said 16 |
| 50 |
1257 17 Latin Baltic sort |
| 51 |
1258 18 Vietnamese sort |
| 52 |
874 11 Thai. 8-bit not implemented |
| 53 |
932 9 Japanese. Shift JIS not implemented. Note id1=9 used by 1256 |
| 54 |
936 5 Simplified Chinese not implemented |
| 55 |
949 10 Korean. Unified Hangui not implemented |
| 56 |
|
| 57 |
65001 19 Unicode sort |
| 58 |
0 0 ASCII 7-bit sort |