Ticket #917: navit_4692_ticket_917.patch

File navit_4692_ticket_917.patch, 3.8 KB (added by mvglasow (2), 10 years ago)

Complete character translation for letters in Latin-1 Supplement and Latin Extended-A

Line 
1Index: linguistics.c
2===================================================================
3--- linguistics.c       (revision 4692)
4+++ linguistics.c       (working copy)
5@@ -8,36 +8,52 @@
6 /* Capital Diacritics */
7 /* š Diaresis */
8 {"Ä","A","AE"},
9+{"Ë","E"},
10+{"Ï","I"},
11 {"Ö","O","OE"},
12 {"Ü","U","UE"},
13+{"Åž","Y"},
14 /* ˝ Double Acute Accent */
15-{"Ő","O"},
16-{"Å°","U"},
17+{"Ő","O","Ö"},
18+{"Ű","U","Ü"},
19 /* ÂŽ Acute Accent */
20 {"Á","A"},
21 {"Ć","C"},
22 {"É","E"},
23 {"Í","I"},
24+{"Ĺ","L"},
25 {"Ń","N"},
26 {"Ó","O"},
27+{"Ŕ","R"},
28 {"Ś","S"},
29 {"Ú","U"},
30 {"Ý","Y"},
31 {"Ź","Z"},
32-/* ˛ Ogonek */
33+/* ˛ Ogonek (nosinė) */
34 {"Ą","A"},
35 {"Ę","E"},
36+{"Ä®","I"},
37+{"Ų","U"},
38 /* ˙ Dot */
39+{"Ċ","C"},
40+{"Ė","E"},
41+{"Ä ","G"},
42+{"Ä°","I"},
43+{"Ä¿","L"},
44 {"Å»","Z"},
45 /* – Stroke */
46+{"Đ","D","DJ"}, /* Croatian Dj, not to be confused with the similar-looking Icelandic Eth */
47+{"ÄŠ","H"},
48 {"Ł","L"},
49+{"ÅŠ","T"},
50 /* ˚ Ring */
51 {"Å","A","AA"},
52 {"Å®","U"},
53-/* ˇ Caron */
54+/* ˇ Caron (haček, paukščiukas) */
55 {"Č","C"},
56 {"Ď","D"},
57 {"Ě","E"},
58+{"Ĝ","L"},
59 {"Ň","N"},
60 {"Ř","R"},
61 {"Å ","S"},
62@@ -45,51 +61,173 @@
63 {"Åœ","Z"},
64 /* / Slash */
65 {"Ø","O","OE"},
66+/* ¯ Macron */
67+{"Ā","A","AA"},
68+{"Ē","E","EE"},
69+{"Ī","I","II"},
70+{"Ō","O","OO"},
71+{"Ū","U","UU"},
72+/* ˘ Brevis */
73+{"Ă","A"},
74+{"Ĕ","E"},
75+{"Ğ","G"},
76+{"Ĭ","I"},
77+{"Ŏ","O"},
78+{"Ŭ","U"},
79+/* ^ Circumflex */
80+{"Â","A"},
81+{"Ĉ","C"},
82+{"Ê","E"},
83+{"Ĝ","G"},
84+{"Ä€","H"},
85+{"Î","I"},
86+{"ÄŽ","J"},
87+{"Ô","O"},
88+{"Ŝ","S"},
89+{"Û","U"},
90+{"ÅŽ","W"},
91+{"Ŷ","Y"},
92+/* ž Cedilla */
93+{"Ç","C"},
94+{"Ä¢","G","GJ"},
95+{"Ķ","K","KJ"},
96+{"Ä»","L","LJ"},
97+{"Ņ","N","NJ"},
98+{"Ŗ","R"},
99+{"Ş","S"},
100+{"Å¢","T"},
101+/* ~ Tilde */
102+{"Ã","A"},
103+{"Äš","I"},
104+{"Ñ","N"},
105+{"Õ","O"},
106+{"Åš","U"},
107+/* ` Grave */
108+{"À","A"},
109+{"È","E"},
110+{"Ì","I"},
111+{"Ò","O"},
112+{"Ù","U"},
113 /* ligatures */
114 {"Æ","A","AE"},
115+{"IJ","IJ"},
116+{"Œ","O","OE"},
117+/* special letters */
118+{"Ð","D","DH"}, /* Icelandic Eth, not to be confused with the similar-looking Croatian Dj */
119+{"Ŋ","N","NG"},
120+{"Þ","T","TH"},
121 /* Small Diacritics */
122 /* š Diaresis */
123 {"À","a","ae"},
124+{"ë","e"},
125+{"ï","i"},
126 {"ö","o","oe"},
127 {"ÃŒ","u","ue"},
128+{"ÿ","y"},
129 /* ˝ Double Acute Accent */
130-{"ő","o"},
131-{"ű","u"},
132+{"ő","o","ö"},
133+{"ű","u","Ì"},
134 /* ÂŽ Acute Accent */
135 {"á","a"},
136 {"ć","c"},
137 {"é","e"},
138 {"í","i"},
139+{"ĺ","l"},
140 {"ń","n"},
141 {"ó","o"},
142+{"ŕ","r"},
143 {"ś","s"},
144 {"ú","u"},
145 {"Ãœ","y"},
146 {"ź","z"},
147-/* ˛ Ogonek */
148+/* ˛ Ogonek (nosinė) */
149 {"ą","a"},
150 {"ę","e"},
151-/* ˙ Dot */
152+{"į","i"},
153+{"ų","u"},
154+/* ˙ Dot (and dotless i) */
155+{"ċ","c"},
156+{"ė","e"},
157+{"Ä¡","g"},
158+{"ı","i"},
159+{"ŀ","l"},
160 {"ÅŒ","z"},
161 /* – Stroke */
162+{"đ","d","dj"},
163+{"ħ","h"},
164 {"ł","l"},
165+{"ŧ","t"},
166 /* ˚ Ring */
167+{"Ã¥","a", "aa"},
168 {"ů","u"},
169-{"Ã¥","a", "aa"},
170-/* ˇ Caron */
171+/* ˇ Caron (haček, paukščiukas) */
172 {"č","c"},
173 {"ď","d"},
174 {"ě","e"},
175-{"Ň","N"},
176+{"ÄŸ","l"},
177+{"ň","n"},
178 {"ř","r"},
179 {"Å¡","s"},
180 {"Å¥","t"},
181 {"ÅŸ","z"},
182 /* / Slash */
183 {"Þ","o", "oe"},
184+/* Macron */
185+{"ā","a","aa"},
186+{"ē","e","ee"},
187+{"Ä«","i","ii"},
188+{"ō","o","oo"},
189+{"Å«","u","uu"},
190+/* ˘ Brevis */
191+{"ă","a"},
192+{"ĕ","e"},
193+{"ğ","g"},
194+{"Ä­","i"},
195+{"ŏ","o"},
196+{"Å­","u"},
197+/* ^ Circumflex */
198+{"â","a"},
199+{"ĉ","c"},
200+{"ê","e"},
201+{"ĝ","g"},
202+{"Ä¥","h"},
203+{"î","i"},
204+{"ĵ","j"},
205+{"ÃŽ","o"},
206+{"ŝ","s"},
207+{"û","u"},
208+{"ŵ","w"},
209+{"Å·","y"},
210+/* ž Cedilla */
211+{"ç","c"},
212+{"Ä£","g","gj"},
213+{"Ä·","k","kj"},
214+{"Č","l","lj"},
215+{"ņ","n","nj"},
216+{"ŗ","r"},
217+{"ş","s"},
218+{"Å£","t"},
219+/* ~ Tilde */
220+{"ã","a"},
221+{"Ä©","i"},
222+{"õ","o"},
223+{"ñ","n"},
224+{"Å©","u"},
225+/* ` Grave */
226+{"à","a"},
227+{"Ú","e"},
228+{"ì","i"},
229+{"ò","o"},
230+{"ù","u"},
231 /* ligatures */
232 {"Ê","a","ae"},
233+{"ij","ij"},
234+{"œ","o","oe"},
235 {"ß","s","ss"},
236+/* special letters */
237+{"ð","d","dh"},
238+{"ŋ","n","ng"},
239+{"ß","t","th"},
240 };
241 
242 char *