| 1 |
%%% utf8-dk.csf --- Danish UTF-8 sorting order file for bibtex8 |
| 2 |
|
| 3 |
%% Copyright (C) 2005 Arne Jorgensen |
| 4 |
|
| 5 |
%% Author: Arne Jorgensen <[email protected]> |
| 6 |
%% Version: $Id: utf8-dk.csf 71 2005-08-05 22:44:05Z arne $ |
| 7 |
|
| 8 |
%% This file is free software; you can redistribute it and/or modify |
| 9 |
%% it under the terms of the GNU General Public License as published |
| 10 |
%% by the Free Software Foundation; either version 2 of the License, |
| 11 |
%% or (at your option) any later version. |
| 12 |
|
| 13 |
%% This file is distributed in the hope that it will be useful, but |
| 14 |
%% WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
%% General Public License for more details. |
| 17 |
|
| 18 |
%% You should have received a copy of the GNU General Public License |
| 19 |
%% along with this file; if not, write to the Free Software |
| 20 |
%% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 21 |
%% 02110-1301, USA. |
| 22 |
|
| 23 |
%%% Commentary: |
| 24 |
|
| 25 |
%% This is a VERY EXPERIMENTAL shot at making a sorting order file for |
| 26 |
%% the Danish language and the UTF-8 character set. |
| 27 |
|
| 28 |
%% Generally it should not be possible to fit a sorting of the UTF-8 |
| 29 |
%% character set into bibtex8's scheme, but we try to use some hacks |
| 30 |
%% and unexplained behaviour to fit it in anyway. |
| 31 |
|
| 32 |
%% As we said VERY EXPERIMENTAL. |
| 33 |
|
| 34 |
%% Please report any experiences to the author. |
| 35 |
|
| 36 |
%%% Code: |
| 37 |
|
| 38 |
%%% Character Set: |
| 39 |
|
| 40 |
%% Whether this really works for UTF-8 is a big question. Please |
| 41 |
%% report expriences with it. |
| 42 |
|
| 43 |
\lowupcase{ |
| 44 |
^^a0 ^^80 % \`{a} \`{A} |
| 45 |
^^a1 ^^81 % \'{a} \'{A} |
| 46 |
^^a2 ^^82 % \^{a} \^{A} |
| 47 |
^^a3 ^^83 % \~{a} \~{A} |
| 48 |
^^a4 ^^84 % \"{a} \"{A} |
| 49 |
^^a5 ^^85 % \ring{a} \ring{A} |
| 50 |
^^a6 ^^86 % \ae \AE |
| 51 |
^^a7 ^^87 % \c{c} \c{C} |
| 52 |
^^a8 ^^88 % \`{e} \`{E} |
| 53 |
^^a9 ^^89 % \'{e} \'{E} |
| 54 |
^^aa ^^8a % \^{e} \^{E} |
| 55 |
^^ab ^^8b % \"{e} \"{E} |
| 56 |
^^ac ^^8c % \`{\i} \`{I} |
| 57 |
^^ad ^^8d % \'{\i} \'{I} |
| 58 |
^^ae ^^8e % \^{\i} \^{I} |
| 59 |
^^af ^^8f % \"{\i} \"{I} |
| 60 |
^^b0 ^^90 % eth ETH |
| 61 |
^^b1 ^^91 % \~{n} \~{N} |
| 62 |
^^b2 ^^92 % \`{o} \`{O} |
| 63 |
^^b3 ^^93 % \'{o} \'{O} |
| 64 |
^^b4 ^^94 % \^{o} \^{O} |
| 65 |
^^b5 ^^95 % \~{o} \~{O} |
| 66 |
^^b6 ^^96 % \"{o} \"{O} |
| 67 |
^^b8 ^^98 % \o \O |
| 68 |
^^b9 ^^99 % \`{u} \`{U} |
| 69 |
^^ba ^^9a % \'{u} \'{U} |
| 70 |
^^bb ^^9b % \^{u} \^{U} |
| 71 |
^^bc ^^9c % \"{u} \"{U} |
| 72 |
^^bd ^^9d % \'{y} \'{Y} |
| 73 |
^^be ^^9e % thorn THORN |
| 74 |
} |
| 75 |
|
| 76 |
%%% Sorting Order: |
| 77 |
|
| 78 |
%% For sorting we rely on the fact that the most used and relevant |
| 79 |
%% parts of the special characters in Danish in UTF-8 is encoded as |
| 80 |
%% the two-byte combination of a ^^c3 and a second byte which is |
| 81 |
%% placed above value ^^7f and thus does not collide with the normal |
| 82 |
%% character ranges. |
| 83 |
|
| 84 |
%% So we leave out ^^c3 of the sorting order and there by ignoring |
| 85 |
%% it's presence (it shouldn't be ignored, but sorted last, but it |
| 86 |
%% actually IS ignored) and let the second byte decide the order of |
| 87 |
%% the character. |
| 88 |
|
| 89 |
\order{ |
| 90 |
0-9 % 0-9 |
| 91 |
A ^^81 ^^80 ^^82 ^^83 a ^^a1 ^^a0 ^^a2 ^^a3 % A \'{A} \`{A} \^{A} \~{A} a \'{a} \`{a} \^{a} \~{a} |
| 92 |
B b % B b |
| 93 |
C ^^87 c ^^a7 % C \c{C} c \c{c} |
| 94 |
D ^^90 d ^^b0 % D ETH d eth |
| 95 |
E ^^89 ^^88 ^^8b ^^8a e ^^a9 ^^a8 ^^ab ^^aa % E \'{E} \`{E} \"{E} \^{E} e \'{e} \`{e} \"{e} \^{e} |
| 96 |
F f % F f |
| 97 |
G g % G g |
| 98 |
H h % H h |
| 99 |
I ^^8d ^^8c ^^8f ^^8e i ^^ad ^^ac ^^af ^^ae % I \'{I} \`{I} \"{I} \^{I} i \'{\i} \`{\i} \"{\i} \^{\i} |
| 100 |
J j % J j |
| 101 |
K k % K k |
| 102 |
L l % L l |
| 103 |
M m % M m |
| 104 |
N ^^91 n ^^b1 % N \~{N} n \~{n} |
| 105 |
O ^^93 ^^92 ^^94 ^^95 o ^^b3 ^^b2 ^^b4 ^^b5 % O \'{O} \`{O} \^{O} \~{O} o \'{o} \`{o} \^{o} \~{o} |
| 106 |
P p % P p |
| 107 |
Q q % Q q |
| 108 |
R r % R r |
| 109 |
S s % S s |
| 110 |
T ^^9e t ^^be % T THORN t thorn |
| 111 |
U ^^9a ^^99 ^^9b u ^^ba ^^b9 ^^bb % U \'{U} \`{U} \^{U} u \'{u} \`{u} \^{u} |
| 112 |
V v % V v |
| 113 |
W w % W w |
| 114 |
X x % X x |
| 115 |
Y ^^9c ^^9d y ^^bc ^^bd ^^bf % Y \"{U} \'{Y} y \"{u} \'{y} \"{y} |
| 116 |
Z z % Z z |
| 117 |
^^86 ^^84 ^^a6 ^^a4 % \AE \"{A} \ae \"{a} |
| 118 |
^^98 ^^96 ^^b8 ^^b6 % \O \"{O} \o \"{o} |
| 119 |
^^85 ^^a5 % \ring{A} \ring{a} |
| 120 |
} |
| 121 |
|
| 122 |
%% Local Variables: |
| 123 |
%% coding: raw-text |
| 124 |
%% comment-start: "%% " |
| 125 |
%% End: |
| 126 |
|
| 127 |
%%% utf8-dk.csf ends here |