| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
(set-language-info-alist |
|---|
| 39 |
"Latin-1" '((charset ascii latin-iso8859-1) |
|---|
| 40 |
(coding-system iso-latin-1) |
|---|
| 41 |
(coding-priority iso-latin-1 windows-1252) |
|---|
| 42 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 43 |
(unibyte-syntax . "latin-1") |
|---|
| 44 |
(unibyte-display . iso-latin-1) |
|---|
| 45 |
(input-method . "latin-1-prefix") |
|---|
| 46 |
(sample-text |
|---|
| 47 |
. "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!") |
|---|
| 48 |
(documentation . "\ |
|---|
| 49 |
This language environment is a generic one for the Latin-1 (ISO-8859-1) |
|---|
| 50 |
character set which supports the following European languages: |
|---|
| 51 |
Albanian, Basque, Breton, Catalan, Danish, Dutch, English, Faeroese, |
|---|
| 52 |
Finnish, French (with restrictions -- see Latin-9), Frisian, Galician, |
|---|
| 53 |
German, Greenlandic, Icelandic, Irish Gaelic (new orthography), |
|---|
| 54 |
Italian, Latin, Luxemburgish, Norwegian, Portuguese, Rhaeto-Romanic, |
|---|
| 55 |
Scottish Gaelic, Spanish, and Swedish. |
|---|
| 56 |
We also have specific language environments for the following languages: |
|---|
| 57 |
For Dutch, \"Dutch\". |
|---|
| 58 |
For German, \"German\". |
|---|
| 59 |
For French, \"French\". |
|---|
| 60 |
For Italian, \"Italian\". |
|---|
| 61 |
For Slovenian, \"Slovenian\". |
|---|
| 62 |
For Spanish, \"Spanish\". |
|---|
| 63 |
|
|---|
| 64 |
Latin-1 also covers several written languages outside Europe, including |
|---|
| 65 |
Indonesian/Malay, Tagalog (Philippines), Swahili and Afrikaans.")) |
|---|
| 66 |
'("European")) |
|---|
| 67 |
|
|---|
| 68 |
(eval-and-compile |
|---|
| 69 |
(setq |
|---|
| 70 |
non-iso-charset-alist |
|---|
| 71 |
(cp-make-coding-system |
|---|
| 72 |
windows-1252 |
|---|
| 73 |
[?\$,1tL(B nil ?\$,1rz(B ?\$,1!R(B ?\$,1r~(B ?\$,1s&(B ?\$,1s (B ?\$,1s!(B ?\$,1$f(B ?\$,1s0(B ?\$,1! (B ?\$,1s9(B ?\$,1 r(B nil ?\$,1!=(B nil nil |
|---|
| 74 |
?\$,1rx(B ?\$,1ry(B ?\$,1r|(B ?\$,1r}(B ?\$,1s"(B ?\$,1rs(B ?\$,1rt(B ?\$,1$|(B ?\$,1ub(B ?\$,1!!(B ?\$,1s:(B ?\$,1 s(B nil ?\$,1!>(B ?\$,1!8(B ?\,A (B ?\,A!(B |
|---|
| 75 |
?\,A"(B ?\,A#(B ?\,A$(B ?\,A%(B ?\,A&(B ?\,A'(B ?\,A((B ?\,A)(B ?\,A*(B ?\,A+(B ?\,A,(B ?\,A-(B ?\,A.(B ?\,A/(B ?\,A0(B ?\,A1(B ?\,A2(B |
|---|
| 76 |
?\,A3(B ?\,A4(B ?\,A5(B ?\,A6(B ?\,A7(B ?\,A8(B ?\,A9(B ?\,A:(B ?\,A |
|---|
| 77 |
?\,AD(B ?\,AE(B ?\,AF(B ?\,AG(B ?\,AH(B ?\,AI(B ?\,AJ(B ?\,AK(B ?\,AL(B ?\,AM(B ?\,AN(B ?\,AO(B ?\,AP(B ?\,AQ(B ?\,AR(B ?\,AS(B ?\,AT(B |
|---|
| 78 |
?\,AU(B ?\,AV(B ?\,AW(B ?\,AX(B ?\,AY(B ?\,AZ(B ?\,A[(B ?\,A\(B ?\,A](B ?\,A^(B ?\,A_(B ?\,A`(B ?\,Aa(B ?\,Ab(B ?\,Ac(B ?\,Ad(B ?\,Ae(B |
|---|
| 79 |
?\,Af(B ?\,Ag(B ?\,Ah(B ?\,Ai(B ?\,Aj(B ?\,Ak(B ?\,Al(B ?\,Am(B ?\,An(B ?\,Ao(B ?\,Ap(B ?\,Aq(B ?\,Ar(B ?\,As(B ?\,At(B ?\,Au(B ?\,Av(B |
|---|
| 80 |
?\,Aw(B ?\,Ax(B ?\,Ay(B ?\,Az(B ?\,A{(B ?\,A|(B ?\,A}(B ?\,A~(B ?\,A(B]))) |
|---|
| 81 |
|
|---|
| 82 |
(define-coding-system-alias 'cp1252 'windows-1252) |
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
(make-coding-system |
|---|
| 88 |
'iso-latin-2 2 ?2 |
|---|
| 89 |
"ISO 2022 based 8-bit encoding for Latin-2 (MIME:ISO-8859-2)." |
|---|
| 90 |
'(ascii latin-iso8859-2 nil nil |
|---|
| 91 |
nil nil nil nil nil nil nil nil nil nil nil t) |
|---|
| 92 |
'((safe-charsets ascii latin-iso8859-2) |
|---|
| 93 |
(mime-charset . iso-8859-2))) |
|---|
| 94 |
|
|---|
| 95 |
(define-coding-system-alias 'iso-8859-2 'iso-latin-2) |
|---|
| 96 |
(define-coding-system-alias 'latin-2 'iso-latin-2) |
|---|
| 97 |
|
|---|
| 98 |
(set-language-info-alist |
|---|
| 99 |
"Latin-2" '((charset ascii latin-iso8859-2) |
|---|
| 100 |
(coding-system iso-latin-2) |
|---|
| 101 |
(coding-priority iso-latin-2) |
|---|
| 102 |
(nonascii-translation . latin-iso8859-2) |
|---|
| 103 |
(unibyte-syntax . "latin-2") |
|---|
| 104 |
(unibyte-display . iso-latin-2) |
|---|
| 105 |
(input-method . "latin-2-prefix") |
|---|
| 106 |
(documentation . "\ |
|---|
| 107 |
This language environment is a generic one for the Latin-2 (ISO-8859-2) |
|---|
| 108 |
character set which supports the following languages: |
|---|
| 109 |
Albanian, Czech, English, German, Hungarian, Polish, Romanian, |
|---|
| 110 |
Serbo-Croatian or Croatian, Slovak, Slovene, Sorbian (upper and lower), |
|---|
| 111 |
and Swedish. |
|---|
| 112 |
We also have specific language environments for the following languages: |
|---|
| 113 |
For Czech, \"Czech\". |
|---|
| 114 |
For Croatian, \"Croatian\". |
|---|
| 115 |
For Romanian, \"Romanian\". |
|---|
| 116 |
For Slovak, \"Slovak\".")) |
|---|
| 117 |
'("European")) |
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 |
|
|---|
| 122 |
(make-coding-system |
|---|
| 123 |
'iso-latin-3 2 ?3 |
|---|
| 124 |
"ISO 2022 based 8-bit encoding for Latin-3 (MIME:ISO-8859-3)." |
|---|
| 125 |
'(ascii latin-iso8859-3 nil nil |
|---|
| 126 |
nil nil nil nil nil nil nil nil nil nil nil t) |
|---|
| 127 |
'((safe-charsets ascii latin-iso8859-3) |
|---|
| 128 |
(mime-charset . iso-8859-3))) |
|---|
| 129 |
|
|---|
| 130 |
(define-coding-system-alias 'iso-8859-3 'iso-latin-3) |
|---|
| 131 |
(define-coding-system-alias 'latin-3 'iso-latin-3) |
|---|
| 132 |
|
|---|
| 133 |
(set-language-info-alist |
|---|
| 134 |
"Latin-3" '((charset ascii latin-iso8859-3) |
|---|
| 135 |
(coding-system iso-latin-3) |
|---|
| 136 |
(coding-priority iso-latin-3) |
|---|
| 137 |
(nonascii-translation . latin-iso8859-3) |
|---|
| 138 |
(unibyte-syntax . "latin-3") |
|---|
| 139 |
(unibyte-display . iso-latin-3) |
|---|
| 140 |
(input-method . "latin-3-prefix") |
|---|
| 141 |
(documentation . "\ |
|---|
| 142 |
These languages are supported with the Latin-3 (ISO-8859-3) character set: |
|---|
| 143 |
Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician, |
|---|
| 144 |
German, Italian, Maltese, Spanish, and Turkish.")) |
|---|
| 145 |
'("European")) |
|---|
| 146 |
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| 149 |
|
|---|
| 150 |
(make-coding-system |
|---|
| 151 |
'iso-latin-4 2 ?4 |
|---|
| 152 |
"ISO 2022 based 8-bit encoding for Latin-4 (MIME:ISO-8859-4)." |
|---|
| 153 |
'(ascii latin-iso8859-4 nil nil |
|---|
| 154 |
nil nil nil nil nil nil nil nil nil nil nil t) |
|---|
| 155 |
'((safe-charsets ascii latin-iso8859-4) |
|---|
| 156 |
(mime-charset . iso-8859-4))) |
|---|
| 157 |
|
|---|
| 158 |
(define-coding-system-alias 'iso-8859-4 'iso-latin-4) |
|---|
| 159 |
(define-coding-system-alias 'latin-4 'iso-latin-4) |
|---|
| 160 |
|
|---|
| 161 |
(set-language-info-alist |
|---|
| 162 |
"Latin-4" '((charset ascii latin-iso8859-4) |
|---|
| 163 |
(coding-system iso-8859-4) |
|---|
| 164 |
(coding-priority iso-8859-4) |
|---|
| 165 |
(nonascii-translation . latin-iso8859-4) |
|---|
| 166 |
(unibyte-syntax . "latin-4") |
|---|
| 167 |
(unibyte-display . iso-8859-4) |
|---|
| 168 |
(input-method . "latin-4-postfix") |
|---|
| 169 |
(documentation . "\ |
|---|
| 170 |
These languages are supported with the Latin-4 (ISO-8859-4) character set: |
|---|
| 171 |
Danish, English, Estonian, Finnish, German, Greenlandic, Lappish, |
|---|
| 172 |
Latvian, Lithuanian, and Norwegian.")) |
|---|
| 173 |
'("European")) |
|---|
| 174 |
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| 177 |
|
|---|
| 178 |
(make-coding-system |
|---|
| 179 |
'iso-latin-5 2 ?9 |
|---|
| 180 |
"ISO 2022 based 8-bit encoding for Latin-5 (MIME:ISO-8859-9)." |
|---|
| 181 |
'(ascii latin-iso8859-9 nil nil |
|---|
| 182 |
nil nil nil nil nil nil nil nil nil nil nil t) |
|---|
| 183 |
'((safe-charsets ascii latin-iso8859-9) |
|---|
| 184 |
(mime-charset . iso-8859-9))) |
|---|
| 185 |
|
|---|
| 186 |
(define-coding-system-alias 'iso-8859-9 'iso-latin-5) |
|---|
| 187 |
(define-coding-system-alias 'latin-5 'iso-latin-5) |
|---|
| 188 |
|
|---|
| 189 |
(set-language-info-alist |
|---|
| 190 |
"Latin-5" '((charset ascii latin-iso8859-9) |
|---|
| 191 |
(coding-system iso-latin-5) |
|---|
| 192 |
(coding-priority iso-latin-5) |
|---|
| 193 |
(nonascii-translation . latin-iso8859-9) |
|---|
| 194 |
(unibyte-syntax . "latin-5") |
|---|
| 195 |
(unibyte-display . iso-latin-5) |
|---|
| 196 |
(input-method . "latin-5-postfix") |
|---|
| 197 |
(documentation . "Support for Turkish language.")) |
|---|
| 198 |
'("European")) |
|---|
| 199 |
|
|---|
| 200 |
|
|---|
| 201 |
|
|---|
| 202 |
|
|---|
| 203 |
(make-coding-system |
|---|
| 204 |
'iso-latin-8 2 ?W |
|---|
| 205 |
|
|---|
| 206 |
"ISO 2022 based 8-bit encoding for Latin-8 (MIME:ISO-8859-14)." |
|---|
| 207 |
'(ascii latin-iso8859-14 nil nil |
|---|
| 208 |
nil nil nil nil nil nil nil nil nil nil nil t t) |
|---|
| 209 |
'((safe-charsets ascii latin-iso8859-14) |
|---|
| 210 |
(mime-charset . iso-8859-14))) |
|---|
| 211 |
|
|---|
| 212 |
(define-coding-system-alias 'iso-8859-14 'iso-latin-8) |
|---|
| 213 |
(define-coding-system-alias 'latin-8 'iso-latin-8) |
|---|
| 214 |
|
|---|
| 215 |
(set-language-info-alist |
|---|
| 216 |
"Latin-8" '((charset ascii latin-iso8859-14) |
|---|
| 217 |
(coding-system iso-latin-8) |
|---|
| 218 |
(coding-priority iso-latin-8) |
|---|
| 219 |
(nonascii-translation . latin-iso8859-14) |
|---|
| 220 |
(unibyte-syntax . "latin-8") |
|---|
| 221 |
(unibyte-display . iso-latin-8) |
|---|
| 222 |
(input-method . "latin-8-prefix") |
|---|
| 223 |
|
|---|
| 224 |
(sample-text . ",_"(B ,_p(B ,_^(B") |
|---|
| 225 |
\ |
|---|
| 226 |
This language environment is a generic one for the Latin-8 (ISO-8859-14) |
|---|
| 227 |
character set which supports the Celtic languages, including those not |
|---|
| 228 |
covered by other ISO-8859 character sets: |
|---|
| 229 |
Welsh, Manx Gaelic and Irish Gaelic (old orthography).")) |
|---|
| 230 |
'("European")) |
|---|
| 231 |
|
|---|
| 232 |
;; Latin-9 (ISO-8859-15) |
|---|
| 233 |
|
|---|
| 234 |
(make-coding-system |
|---|
| 235 |
'iso-latin-9 2 ?0 ; `0' for `Latin-0' |
|---|
| 236 |
"ISO 2022 based 8-bit encoding for Latin-9 (MIME:ISO-8859-15)." |
|---|
| 237 |
'(ascii latin-iso8859-15 nil nil |
|---|
| 238 |
nil nil nil nil nil nil nil nil nil nil nil t t) |
|---|
| 239 |
'((safe-charsets ascii latin-iso8859-15) |
|---|
| 240 |
(mime-charset . iso-8859-15))) |
|---|
| 241 |
|
|---|
| 242 |
(define-coding-system-alias 'iso-8859-15 'iso-latin-9) |
|---|
| 243 |
(define-coding-system-alias 'latin-9 'iso-latin-9) |
|---|
| 244 |
(define-coding-system-alias 'latin-0 'iso-latin-9) |
|---|
| 245 |
|
|---|
| 246 |
(set-language-info-alist |
|---|
| 247 |
"Latin-9" '((charset ascii latin-iso8859-15) |
|---|
| 248 |
(coding-system iso-latin-9) |
|---|
| 249 |
(coding-priority iso-latin-9) |
|---|
| 250 |
(nonascii-translation . latin-iso8859-15) |
|---|
| 251 |
(unibyte-syntax . "latin-9") |
|---|
| 252 |
(unibyte-display . iso-latin-9) |
|---|
| 253 |
(input-method . "latin-9-prefix") |
|---|
| 254 |
(sample-text |
|---|
| 255 |
. "AVE. ,b&(48<=>(B ,b$(B") |
|---|
| 256 |
(documentation . "\ |
|---|
| 257 |
This language environment is a generic one for the Latin-9 (ISO-8859-15) |
|---|
| 258 |
character set which supports the same languages as Latin-1 with the |
|---|
| 259 |
addition of the Euro sign and some additional French and Finnish letters. |
|---|
| 260 |
Latin-9 is sometimes nicknamed `Latin-0'.")) |
|---|
| 261 |
'("European")) |
|---|
| 262 |
|
|---|
| 263 |
(set-language-info-alist |
|---|
| 264 |
"Dutch" '((tutorial . "TUTORIAL.nl") |
|---|
| 265 |
(charset ascii latin-iso8859-1) |
|---|
| 266 |
(coding-system iso-latin-1 iso-latin-9) |
|---|
| 267 |
(coding-priority iso-latin-1) |
|---|
| 268 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 269 |
(unibyte-syntax . "latin-1") |
|---|
| 270 |
(unibyte-display . iso-latin-1) |
|---|
| 271 |
(input-method . "dutch") |
|---|
| 272 |
(sample-text . "Er is een aantal manieren waarop je dit kan doen") |
|---|
| 273 |
(documentation . "\ |
|---|
| 274 |
This language environment is almost the same as Latin-1, |
|---|
| 275 |
but it selects the Dutch tutorial and input method.")) |
|---|
| 276 |
'("European")) |
|---|
| 277 |
|
|---|
| 278 |
(set-language-info-alist |
|---|
| 279 |
"German" '((tutorial . "TUTORIAL.de") |
|---|
| 280 |
(charset ascii latin-iso8859-1) |
|---|
| 281 |
(coding-system iso-latin-1 iso-latin-9) |
|---|
| 282 |
(coding-priority iso-latin-1 windows-1252) |
|---|
| 283 |
(input-method . "german-postfix") |
|---|
| 284 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 285 |
(unibyte-syntax . "latin-1") |
|---|
| 286 |
(unibyte-display . iso-latin-1) |
|---|
| 287 |
(sample-text . "\ |
|---|
| 288 |
German (Deutsch Nord) Guten Tag |
|---|
| 289 |
German (Deutsch S,A|(Bd) Gr,A|_(B Gott") |
|---|
| 290 |
(documentation . "\ |
|---|
| 291 |
This language environment is almost the same as Latin-1, |
|---|
| 292 |
but sets the default input method to \"german-postfix\". |
|---|
| 293 |
Additionally, it selects the German tutorial.")) |
|---|
| 294 |
'("European")) |
|---|
| 295 |
|
|---|
| 296 |
(set-language-info-alist |
|---|
| 297 |
"French" '((tutorial . "TUTORIAL.fr") |
|---|
| 298 |
(charset ascii latin-iso8859-1) |
|---|
| 299 |
(coding-system iso-latin-1 iso-latin-9) |
|---|
| 300 |
(coding-priority iso-latin-1) |
|---|
| 301 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 302 |
(unibyte-syntax . "latin-1") |
|---|
| 303 |
(unibyte-display . iso-latin-1) |
|---|
| 304 |
(input-method . "latin-1-prefix") |
|---|
| 305 |
(sample-text . "French (Fran,Ag(Bais) Bonjour, Salut") |
|---|
| 306 |
(documentation . "\ |
|---|
| 307 |
This language environment is almost the same as Latin-1, |
|---|
| 308 |
but it selects the French tutorial and input method.")) |
|---|
| 309 |
'("European")) |
|---|
| 310 |
|
|---|
| 311 |
(set-language-info-alist |
|---|
| 312 |
"Italian" '((tutorial . "TUTORIAL.it") |
|---|
| 313 |
(charset ascii latin-iso8859-1) |
|---|
| 314 |
(coding-system iso-latin-1 iso-latin-9) |
|---|
| 315 |
(coding-priority iso-latin-1) |
|---|
| 316 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 317 |
(unibyte-syntax . "latin-1") |
|---|
| 318 |
(unibyte-display . iso-latin-1) |
|---|
| 319 |
(input-method . "italian-postfix") |
|---|
| 320 |
(sample-text . "Salve, ciao!") |
|---|
| 321 |
(documentation . "\ |
|---|
| 322 |
This language environment is almost the same as Latin-1, |
|---|
| 323 |
but sets the default input method to \"italian-postfix\". |
|---|
| 324 |
Additionally, it selects the Italian tutorial.")) |
|---|
| 325 |
'("European")) |
|---|
| 326 |
|
|---|
| 327 |
(set-language-info-alist |
|---|
| 328 |
"Slovenian" '((charset . (ascii latin-iso8859-2)) |
|---|
| 329 |
(coding-system . (iso-8859-2)) |
|---|
| 330 |
(coding-priority . (iso-8859-2)) |
|---|
| 331 |
(nonascii-translation . latin-iso8859-2) |
|---|
| 332 |
(input-method . "slovenian") |
|---|
| 333 |
(unibyte-syntax . "latin-2") |
|---|
| 334 |
(unibyte-display . iso-8859-2) |
|---|
| 335 |
(tutorial . "TUTORIAL.sl") |
|---|
| 336 |
(sample-text . ",B.(Belimo vam uspe,B9(Ben dan!") |
|---|
| 337 |
(documentation . "\ |
|---|
| 338 |
This language environment is almost the same as Latin-2, |
|---|
| 339 |
but it selects the Slovenian tutorial and input method.")) |
|---|
| 340 |
'("European")) |
|---|
| 341 |
|
|---|
| 342 |
(set-language-info-alist |
|---|
| 343 |
"Spanish" '((tutorial . "TUTORIAL.es") |
|---|
| 344 |
(charset ascii latin-iso8859-1) |
|---|
| 345 |
(coding-system iso-latin-1 iso-latin-9) |
|---|
| 346 |
(coding-priority iso-latin-1) |
|---|
| 347 |
(input-method . "spanish-postfix") |
|---|
| 348 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 349 |
(unibyte-syntax . "latin-1") |
|---|
| 350 |
(unibyte-display . iso-latin-1) |
|---|
| 351 |
(sample-text . "Spanish (Espa,Aq(Bol) ,A!(BHola!") |
|---|
| 352 |
(documentation . "\ |
|---|
| 353 |
This language environment is almost the same as Latin-1, |
|---|
| 354 |
but it sets the default input method to \"spanish-postfix\", |
|---|
| 355 |
and it selects the Spanish tutorial.")) |
|---|
| 356 |
'("European")) |
|---|
| 357 |
|
|---|
| 358 |
|
|---|
| 359 |
|
|---|
| 360 |
|
|---|
| 361 |
|
|---|
| 362 |
|
|---|
| 363 |
(set-language-info-alist |
|---|
| 364 |
"Turkish" '((charset ascii latin-iso8859-9) |
|---|
| 365 |
(coding-system iso-latin-5 iso-latin-3) |
|---|
| 366 |
(coding-priority iso-latin-5) |
|---|
| 367 |
(nonascii-translation . latin-iso8859-9) |
|---|
| 368 |
(unibyte-syntax . "latin-5") |
|---|
| 369 |
(unibyte-display . iso-latin-5) |
|---|
| 370 |
(input-method . "turkish-postfix") |
|---|
| 371 |
(sample-text . "Turkish (T,M|(Brk,Mg(Be) Merhaba") |
|---|
| 372 |
(documentation . t) |
|---|
| 373 |
(setup-function . turkish-case-conversion-enable) |
|---|
| 374 |
(exit-function . turkish-case-conversion-disable))) |
|---|
| 375 |
|
|---|
| 376 |
(defun turkish-case-conversion-enable () |
|---|
| 377 |
"Set up Turkish case conversion of `i' and `I' into `$,1 P(B' and `$,1 Q(B'." |
|---|
| 378 |
(let ((table (standard-case-table))) |
|---|
| 379 |
(set-case-syntax-pair ?$,1 P(B ?i table) |
|---|
| 380 |
(set-case-syntax-pair ?I ?$,1 Q(B table))) |
|---|
| 381 |
|
|---|
| 382 |
(defun turkish-case-conversion-disable () |
|---|
| 383 |
"Set up normal (non-Turkish) case conversion of `i' into `I'." |
|---|
| 384 |
(let ((table (standard-case-table))) |
|---|
| 385 |
(set-case-syntax-pair ?I ?i table) |
|---|
| 386 |
(set-case-syntax ?$,1 P(B "w" table) |
|---|
| 387 |
(set-case-syntax ?$,1 Q(B "w" table))) |
|---|
| 388 |
|
|---|
| 389 |
|
|---|
| 390 |
|
|---|
| 391 |
|
|---|
| 392 |
|
|---|
| 393 |
(set-language-info-alist |
|---|
| 394 |
"Polish" '((charset . (ascii latin-iso8859-2)) |
|---|
| 395 |
(coding-system . (iso-8859-2)) |
|---|
| 396 |
(coding-priority . (iso-8859-2)) |
|---|
| 397 |
(input-method . "polish-slash") |
|---|
| 398 |
(nonascii-translation . latin-iso8859-2) |
|---|
| 399 |
(unibyte-syntax . "latin-2") |
|---|
| 400 |
(unibyte-display . iso-8859-2) |
|---|
| 401 |
(tutorial . "TUTORIAL.pl") |
|---|
| 402 |
(sample-text . "P,Bs(Bjd,B<(B, ki,Bq(B-,B?(Be t,Bj(B chmurno,B6f(B w g,B31(Bb flaszy") |
|---|
| 403 |
(documentation . t)) |
|---|
| 404 |
'("European")) |
|---|
| 405 |
|
|---|
| 406 |
(set-language-info-alist |
|---|
| 407 |
"Welsh" `((coding-system utf-8 latin-8) |
|---|
| 408 |
(coding-priority utf-8 latin-8) |
|---|
| 409 |
(nonascii-translation . latin-iso8859-14) |
|---|
| 410 |
(input-method . "welsh") |
|---|
| 411 |
(documentation . "Support for Welsh, using Unicode.")) |
|---|
| 412 |
'("European")) |
|---|
| 413 |
|
|---|
| 414 |
(set-language-info-alist |
|---|
| 415 |
"Latin-6" `((coding-system latin-6) |
|---|
| 416 |
(coding-priority latin-6) |
|---|
| 417 |
(nonascii-translation . ,(get 'decode-iso-latin-6 'translation-table)) |
|---|
| 418 |
(input-method . "latin-prefix") |
|---|
| 419 |
(features code-pages) |
|---|
| 420 |
(documentation . "Support for Latin-6.")) |
|---|
| 421 |
'("European")) |
|---|
| 422 |
|
|---|
| 423 |
(set-language-info-alist |
|---|
| 424 |
"Latin-7" `((coding-system latin-7) |
|---|
| 425 |
(coding-priority latin-7) |
|---|
| 426 |
(nonascii-translation . ,(get 'decode-iso-latin-7 |
|---|
| 427 |
'translation-table)) |
|---|
| 428 |
(input-method . "latin-prefix") |
|---|
| 429 |
(features code-pages) |
|---|
| 430 |
(documentation . "Support for Latin-7, e.g. Latvian, Lithuanian.")) |
|---|
| 431 |
'("European")) |
|---|
| 432 |
|
|---|
| 433 |
(set-language-info-alist |
|---|
| 434 |
"Lithuanian" `((coding-system latin-7) |
|---|
| 435 |
(coding-priority latin-7) |
|---|
| 436 |
(input-method . "lithuanian-keyboard") |
|---|
| 437 |
(nonascii-translation . ,(get 'decode-iso-latin-7 |
|---|
| 438 |
'translation-table)) |
|---|
| 439 |
(features code-pages) |
|---|
| 440 |
(documentation . "Support for Lithuanian.")) |
|---|
| 441 |
'("European")) |
|---|
| 442 |
|
|---|
| 443 |
(set-language-info-alist |
|---|
| 444 |
"Latvian" `((coding-system latin-7) |
|---|
| 445 |
(coding-priority latin-7) |
|---|
| 446 |
(input-method . "latvian-keyboard") |
|---|
| 447 |
(nonascii-translation . ,(get 'decode-iso-latin-7 |
|---|
| 448 |
'translation-table)) |
|---|
| 449 |
(features code-pages) |
|---|
| 450 |
(documentation . "Support for Latvian.")) |
|---|
| 451 |
'("European")) |
|---|
| 452 |
|
|---|
| 453 |
(set-language-info-alist |
|---|
| 454 |
"Swedish" '((tutorial . "TUTORIAL.sv") |
|---|
| 455 |
(charset ascii latin-iso8859-1) |
|---|
| 456 |
(coding-system iso-latin-1) |
|---|
| 457 |
(coding-priority iso-latin-1) |
|---|
| 458 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 459 |
(unibyte-syntax . "latin-1") |
|---|
| 460 |
(unibyte-display . iso-latin-1) |
|---|
| 461 |
(sample-text . "Goddag Hej") |
|---|
| 462 |
(documentation . "Support for Swedish")) |
|---|
| 463 |
'("European")) |
|---|
| 464 |
|
|---|
| 465 |
(set-language-info-alist |
|---|
| 466 |
"Croatian" '((charset . (ascii latin-iso8859-2)) |
|---|
| 467 |
(coding-system . (iso-8859-2)) |
|---|
| 468 |
(coding-priority . (iso-8859-2)) |
|---|
| 469 |
(input-method . "croatian") |
|---|
| 470 |
(nonascii-translation . latin-iso8859-2) |
|---|
| 471 |
(unibyte-syntax . "latin-2") |
|---|
| 472 |
(unibyte-display . iso-8859-2) |
|---|
| 473 |
(documentation . "Support for Croatian with Latin-2 encoding.")) |
|---|
| 474 |
'("European")) |
|---|
| 475 |
|
|---|
| 476 |
(set-language-info-alist |
|---|
| 477 |
"Brazilian Portuguese" '((tutorial . "TUTORIAL.pt_BR") |
|---|
| 478 |
(charset ascii latin-iso8859-1) |
|---|
| 479 |
(coding-system iso-latin-1 iso-latin-9) |
|---|
| 480 |
(coding-priority iso-latin-1) |
|---|
| 481 |
(nonascii-translation . latin-iso8859-1) |
|---|
| 482 |
(unibyte-syntax . "latin-1") |
|---|
| 483 |
(unibyte-display . iso-latin-1) |
|---|
| 484 |
(input-method . "latin-1-prefix") |
|---|
| 485 |
(sample-text . "Oi") |
|---|
| 486 |
(documentation . "Support for Brazilian Portuguese.")) |
|---|
| 487 |
'("European")) |
|---|
| 488 |
|
|---|
| 489 |
(set-language-info-alist |
|---|
| 490 |
"Esperanto" '((tutorial . "TUTORIAL.eo") |
|---|
| 491 |
(charset ascii latin-iso8859-3) |
|---|
| 492 |
(coding-system iso-latin-3) |
|---|
| 493 |
(coding-priority iso-latin-3) |
|---|
| 494 |
(nonascii-translation . latin-iso8859-3) |
|---|
| 495 |
(unibyte-syntax . "latin-3") |
|---|
| 496 |
(unibyte-display . iso-latin-3) |
|---|
| 497 |
(input-method . "latin-3-prefix") |
|---|
| 498 |
(documentation . "Support for Esperanto with ISO-8859-3 character set.")) |
|---|
| 499 |
'("European")) |
|---|
| 500 |
|
|---|
| 501 |
|
|---|
| 502 |
|
|---|
| 503 |
|
|---|
| 504 |
|
|---|
| 505 |
|
|---|
| 506 |
|
|---|
| 507 |
|
|---|
| 508 |
|
|---|
| 509 |
(let |
|---|
| 510 |
((encoding-vector (make-vector 256 nil)) |
|---|
| 511 |
(i 0) |
|---|
| 512 |
(vec |
|---|
| 513 |
[ #x00C4 |
|---|
| 514 |
#x00C5 |
|---|
| 515 |
#x00C7 |
|---|
| 516 |
#x00C9 |
|---|
| 517 |
#x00D1 |
|---|
| 518 |
#x00D6 |
|---|
| 519 |
#x00DC |
|---|
| 520 |
#x00E1 |
|---|
| 521 |
#x00E0 |
|---|
| 522 |
#x00E2 |
|---|
| 523 |
#x00E4 |
|---|
| 524 |
#x00E3 |
|---|
| 525 |
#x00E5 |
|---|
| 526 |
#x00E7 |
|---|
| 527 |
#x00E9 |
|---|
| 528 |
#x00E8 |
|---|
| 529 |
#x00EA |
|---|
| 530 |
#x00EB |
|---|
| 531 |
#x00ED |
|---|
| 532 |
#x00EC |
|---|
| 533 |
#x00EE |
|---|
| 534 |
#x00EF |
|---|
| 535 |
#x00F1 |
|---|
| 536 |
#x00F3 |
|---|
| 537 |
#x00F2 |
|---|
| 538 |
#x00F4 |
|---|
| 539 |
#x00F6 |
|---|
| 540 |
#x00F5 |
|---|
| 541 |
#x00FA |
|---|
| 542 |
#x00F9 |
|---|
| 543 |
#x00FB |
|---|
| 544 |
#x00FC |
|---|
| 545 |
#x2020 |
|---|
| 546 |
#x00B0 |
|---|
| 547 |
#x00A2 |
|---|
| 548 |
#x00A3 |
|---|
| 549 |
#x00A7 |
|---|
| 550 |
#x2022 |
|---|
| 551 |
#x00B6 |
|---|
| 552 |
#x00DF |
|---|
| 553 |
#x00AE |
|---|
| 554 |
#x00A9 |
|---|
| 555 |
#x2122 |
|---|
| 556 |
#x00B4 |
|---|
| 557 |
#x00A8 |
|---|
| 558 |
#x2260 |
|---|
| 559 |
#x00C6 |
|---|
| 560 |
#x00D8 |
|---|
| 561 |
#x221E |
|---|
| 562 |
#x00B1 |
|---|
| 563 |
#x2264 |
|---|
| 564 |
#x2265 |
|---|
| 565 |
#x00A5 |
|---|
| 566 |
#x00B5 |
|---|
| 567 |
#x2202 |
|---|
| 568 |
#x2211 |
|---|
| 569 |
#x220F |
|---|
| 570 |
#x03C0 |
|---|
| 571 |
#x222B |
|---|
| 572 |
#x00AA |
|---|
| 573 |
#x00BA |
|---|
| 574 |
#x03A9 |
|---|
| 575 |
#x00E6 |
|---|
| 576 |
#x00F8 |
|---|
| 577 |
#x00BF |
|---|
| 578 |
#x00A1 |
|---|
| 579 |
#x00AC |
|---|
| 580 |
#x221A |
|---|
| 581 |
#x0192 |
|---|
| 582 |
#x2248 |
|---|
| 583 |
#x2206 |
|---|
| 584 |
#x00AB |
|---|
| 585 |
#x00BB |
|---|
| 586 |
#x2026 |
|---|
| 587 |
#x00A0 |
|---|
| 588 |
#x00C0 |
|---|
| 589 |
#x00C3 |
|---|
| 590 |
#x00D5 |
|---|
| 591 |
#x0152 |
|---|
| 592 |
#x0153 |
|---|
| 593 |
#x2013 |
|---|
| 594 |
#x2014 |
|---|
| 595 |
#x201C |
|---|
| 596 |
#x201D |
|---|
| 597 |
#x2018 |
|---|
| 598 |
#x2019 |
|---|
| 599 |
#x00F7 |
|---|
| 600 |
#x25CA |
|---|
| 601 |
#x00FF |
|---|
| 602 |
#x0178 |
|---|
| 603 |
#x2044 |
|---|
| 604 |
#x20AC |
|---|
| 605 |
#x2039 |
|---|
| 606 |
#x203A |
|---|
| 607 |
#xFB01 |
|---|
| 608 |
#xFB02 |
|---|
| 609 |
#x2021 |
|---|
| 610 |
#x00B7 |
|---|
| 611 |
#x201A |
|---|
| 612 |
#x201E |
|---|
| 613 |
#x2030 |
|---|
| 614 |
#x00C2 |
|---|
| 615 |
#x00CA |
|---|
| 616 |
#x00C1 |
|---|
| 617 |
#x00CB |
|---|
| 618 |
#x00C8 |
|---|
| 619 |
#x00CD |
|---|
| 620 |
#x00CE |
|---|
| 621 |
#x00CF |
|---|
| 622 |
#x00CC |
|---|
| 623 |
#x00D3 |
|---|
| 624 |
#x00D4 |
|---|
| 625 |
#xF8FF |
|---|
| 626 |
#x00D2 |
|---|
| 627 |
#x00DA |
|---|
| 628 |
#x00DB |
|---|
| 629 |
#x00D9 |
|---|
| 630 |
#x0131 |
|---|
| 631 |
#x02C6 |
|---|
| 632 |
#x02DC |
|---|
| 633 |
#x00AF |
|---|
| 634 |
#x02D8 |
|---|
| 635 |
#x02D9 |
|---|
| 636 |
#x02DA |
|---|
| 637 |
#x00B8 |
|---|
| 638 |
#x02DD |
|---|
| 639 |
#x02DB |
|---|
| 640 |
#x02C7 |
|---|
| 641 |
]) |
|---|
| 642 |
translation-table) |
|---|
| 643 |
(while (< i 128) |
|---|
| 644 |
(aset encoding-vector i i) |
|---|
| 645 |
(setq i (1+ i))) |
|---|
| 646 |
(while (< i 256) |
|---|
| 647 |
(aset encoding-vector i |
|---|
| 648 |
(decode-char 'ucs (aref vec (- i 128)))) |
|---|
| 649 |
(setq i (1+ i))) |
|---|
| 650 |
(setq translation-table |
|---|
| 651 |
(make-translation-table-from-vector encoding-vector)) |
|---|
| 652 |
(define-translation-table 'mac-roman-decoder translation-table) |
|---|
| 653 |
(define-translation-table 'mac-roman-encoder |
|---|
| 654 |
(char-table-extra-slot translation-table 0))) |
|---|
| 655 |
|
|---|
| 656 |
(define-ccl-program decode-mac-roman |
|---|
| 657 |
`(4 |
|---|
| 658 |
((loop |
|---|
| 659 |
(read r1) |
|---|
| 660 |
(if (r1 < 128) |
|---|
| 661 |
(r0 = ,(charset-id 'ascii)) |
|---|
| 662 |
(if (r1 < 160) |
|---|
| 663 |
(r0 = ,(charset-id 'eight-bit-control)) |
|---|
| 664 |
(r0 = ,(charset-id 'eight-bit-graphic)))) |
|---|
| 665 |
(translate-character mac-roman-decoder r0 r1) |
|---|
| 666 |
(write-multibyte-character r0 r1) |
|---|
| 667 |
(repeat)))) |
|---|
| 668 |
"CCL program to decode Mac Roman") |
|---|
| 669 |
|
|---|
| 670 |
(define-ccl-program encode-mac-roman |
|---|
| 671 |
`(1 |
|---|
| 672 |
((loop |
|---|
| 673 |
(read-multibyte-character r0 r1) |
|---|
| 674 |
(translate-character ucs-mule-to-mule-unicode r0 r1) |
|---|
| 675 |
(translate-character mac-roman-encoder r0 r1) |
|---|
| 676 |
(if (r0 != ,(charset-id 'ascii)) |
|---|
| 677 |
(if (r0 != ,(charset-id 'eight-bit-graphic)) |
|---|
| 678 |
(if (r0 != ,(charset-id 'eight-bit-control)) |
|---|
| 679 |
(r1 = ??)))) |
|---|
| 680 |
(write-repeat r1)))) |
|---|
| 681 |
"CCL program to encode Mac Roman") |
|---|
| 682 |
|
|---|
| 683 |
(make-coding-system |
|---|
| 684 |
'mac-roman 4 ?M |
|---|
| 685 |
"Mac Roman Encoding (MIME:MACINTOSH)." |
|---|
| 686 |
'(decode-mac-roman . encode-mac-roman) |
|---|
| 687 |
(list (cons 'safe-chars (get 'mac-roman-encoder 'translation-table)) |
|---|
| 688 |
'(valid-codes (0 . 255)) |
|---|
| 689 |
'(mime-charset . macintosh))) |
|---|
| 690 |
|
|---|
| 691 |
(defconst diacritic-composition-pattern "\\C^\\c^+") |
|---|
| 692 |
|
|---|
| 693 |
(defun diacritic-compose-region (beg end) |
|---|
| 694 |
"Compose diacritic characters in the region. |
|---|
| 695 |
When called from a program, expects two arguments, |
|---|
| 696 |
positions (integers or markers) specifying the region." |
|---|
| 697 |
(interactive "r") |
|---|
| 698 |
(save-restriction |
|---|
| 699 |
(narrow-to-region beg end) |
|---|
| 700 |
(goto-char (point-min)) |
|---|
| 701 |
(while (re-search-forward diacritic-composition-pattern nil t) |
|---|
| 702 |
(compose-region (match-beginning 0) (match-end 0))))) |
|---|
| 703 |
|
|---|
| 704 |
(defun diacritic-compose-string (string) |
|---|
| 705 |
"Compose diacritic characters in STRING and return the resulting string." |
|---|
| 706 |
(let ((idx 0)) |
|---|
| 707 |
(while (setq idx (string-match diacritic-composition-pattern string idx)) |
|---|
| 708 |
(compose-string string idx (match-end 0)) |
|---|
| 709 |
(setq idx (match-end 0)))) |
|---|
| 710 |
string) |
|---|
| 711 |
|
|---|
| 712 |
(defun diacritic-compose-buffer () |
|---|
| 713 |
"Compose diacritic characters in the current buffer." |
|---|
| 714 |
(interactive) |
|---|
| 715 |
(diacritic-compose-region (point-min) (point-max))) |
|---|
| 716 |
|
|---|
| 717 |
(defun diacritic-post-read-conversion (len) |
|---|
| 718 |
(diacritic-compose-region (point) (+ (point) len)) |
|---|
| 719 |
len) |
|---|
| 720 |
|
|---|
| 721 |
(defun diacritic-composition-function (from to pattern &optional string) |
|---|
| 722 |
"Compose diacritic text in the region FROM and TO. |
|---|
| 723 |
The text matches the regular expression PATTERN. |
|---|
| 724 |
Optional 4th argument STRING, if non-nil, is a string containing text |
|---|
| 725 |
to compose. |
|---|
| 726 |
|
|---|
| 727 |
The return value is the number of composed characters." |
|---|
| 728 |
(when (< (1+ from) to) |
|---|
| 729 |
(if string |
|---|
| 730 |
(compose-string string from to) |
|---|
| 731 |
(compose-region from to)) |
|---|
| 732 |
(- to from))) |
|---|
| 733 |
|
|---|
| 734 |
|
|---|
| 735 |
(let ((patterns '(("\\C^\\c^+" . diacritic-composition-function)))) |
|---|
| 736 |
(let ((c #x300)) |
|---|
| 737 |
(while (<= c #x362) |
|---|
| 738 |
(aset composition-function-table (decode-char 'ucs c) patterns) |
|---|
| 739 |
(setq c (1+ c))) |
|---|
| 740 |
(setq c #x20d0) |
|---|
| 741 |
(while (<= c #x20e3) |
|---|
| 742 |
(aset composition-function-table (decode-char 'ucs c) patterns) |
|---|
| 743 |
(setq c (1+ c))))) |
|---|
| 744 |
|
|---|
| 745 |
(provide 'european) |
|---|
| 746 |
|
|---|
| 747 |
|
|---|
| 748 |
|
|---|
| 749 |
|
|---|