1 ;;; european.el --- European languages -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 1995, 1997 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
6 ;; Keywords: multilingual, European
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
27 ;; For Europeans, character sets ISO8859-1,2,3,4,9,14,15 are supported.
31 ;; Latin-1 (ISO-8859-1)
35 "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)"
36 '(ascii latin-iso8859-1 nil nil
37 nil nil nil nil nil nil nil nil nil nil nil nil t
)
38 '((safe-charsets ascii latin-iso8859-1
)
39 (mime-charset . iso-8859-1
)))
41 (define-coding-system-alias 'iso-8859-1
'iso-latin-1
)
42 (define-coding-system-alias 'latin-1
'iso-latin-1
)
46 "ISO 2022 based encoding used in inter client communication of X"
47 '((ascii t
) (latin-iso8859-1 t
) nil nil
48 nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t
)
49 '((safe-charsets . t
)))
51 (define-coding-system-alias 'ctext
'compound-text
)
53 (defun setup-latin1-environment ()
54 "Set up multilingual environment (MULE) for European Latin-1 users."
56 (set-language-environment "Latin-1"))
58 (set-language-info-alist
59 "Latin-1" '((charset ascii latin-iso8859-1
)
60 (coding-system iso-latin-1
)
61 (coding-priority iso-latin-1
)
62 (nonascii-translation . latin-iso8859-1
)
63 (unibyte-syntax .
"latin-1")
64 (unibyte-display . iso-latin-1
)
65 (input-method .
"latin-1-prefix")
67 .
"Hello, Hej, Tere, Hei, Bonjour, Gr\e,A|_\e(B Gott, Ciao, \e,A!\e(BHola!")
69 This language environment is a generic one for the Latin-1 (ISO-8859-1)
70 character set which supports the following European languages:
71 Albanian, Basque, Breton, Catalan, Danish, Dutch, English, Faeroese,
72 Finnish, French (with restrictions -- see Latin-9), Frisian, Galician,
73 German, Greenlandic, Icelandic, Irish Gaelic (new orthography),
74 Italian, Latin, Luxemburgish, Norwegian, Portuguese, Rhaeto-Romanic,
75 Scottish Gaelic, Spanish, and Swedish.
76 We also have a German specific language environment \"German\".
78 Latin-1 also covers several written languages outside Europe, including
79 Indonesian/Malay, Tagalog (Philippines), Swahili and Afrikaans."))
83 ;; Latin-2 (ISO-8859-2)
87 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)"
88 '(ascii latin-iso8859-2 nil nil
89 nil nil nil nil nil nil nil
)
90 '((safe-charsets ascii latin-iso8859-2
)
91 (mime-charset . iso-8859-2
)))
93 (define-coding-system-alias 'iso-8859-2
'iso-latin-2
)
94 (define-coding-system-alias 'latin-2
'iso-latin-2
)
96 (defun setup-latin2-environment ()
97 "Set up multilingual environment (MULE) for European Latin-2 users."
99 (set-language-environment "Latin-2"))
101 (set-language-info-alist
102 "Latin-2" '((charset ascii latin-iso8859-2
)
103 (coding-system iso-latin-2
)
104 (coding-priority iso-latin-2
)
105 (nonascii-translation . latin-iso8859-2
)
106 (unibyte-syntax .
"latin-2")
107 (unibyte-display . iso-latin-2
)
108 (input-method .
"latin-2-prefix")
110 This language environment is a generic one for the Latin-2 (ISO-8859-2)
111 character set which supports the following languages:
112 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
113 Serbo-Croatian or Croatian, Slovak, Slovene, Sorbian (upper and lower),
115 We also have specific language environments for the following languages:
116 For Czech, \"Czech\".
117 For Romanian, \"Romanian\".
118 For Slovak, \"Slovak\"."))
122 ;; Latin-3 (ISO-8859-3)
126 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)"
127 '(ascii latin-iso8859-3 nil nil
128 nil nil nil nil nil nil nil
)
129 '((safe-charsets ascii latin-iso8859-3
)
130 (mime-charset . iso-8859-3
)))
132 (define-coding-system-alias 'iso-8859-3
'iso-latin-3
)
133 (define-coding-system-alias 'latin-3
'iso-latin-3
)
135 (defun setup-latin3-environment ()
136 "Set up multilingual environment (MULE) for European Latin-3 users."
138 (set-language-environment "Latin-3"))
140 (set-language-info-alist
141 "Latin-3" '((charset ascii latin-iso8859-3
)
142 (coding-system iso-latin-3
)
143 (coding-priority iso-latin-3
)
144 (nonascii-translation . latin-iso8859-3
)
145 (unibyte-syntax .
"latin-3")
146 (unibyte-display . iso-latin-3
)
147 (input-method .
"latin-3-prefix")
149 These languages are supported with the Latin-3 (ISO-8859-3) character set:
150 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
151 German, Italian, Maltese, Spanish, and Turkish."))
155 ;; Latin-4 (ISO-8859-4)
159 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)"
160 '(ascii latin-iso8859-4 nil nil
161 nil nil nil nil nil nil nil
)
162 '((safe-charsets ascii latin-iso8859-4
)
163 (mime-charset . iso-8895-4
)))
165 (define-coding-system-alias 'iso-8859-4
'iso-latin-4
)
166 (define-coding-system-alias 'latin-4
'iso-latin-4
)
168 (defun setup-latin4-environment ()
169 "Set up multilingual environment (MULE) for European Latin-4 users."
171 (set-language-environment "Latin-4"))
173 (set-language-info-alist
174 "Latin-4" '((charset ascii latin-iso8859-4
)
175 (coding-system iso-8859-4
)
176 (coding-priority iso-8859-4
)
177 (nonascii-translation . latin-iso8859-4
)
178 (unibyte-syntax .
"latin-4")
179 (unibyte-display . iso-8859-4
)
180 (input-method .
"latin-4-prefix")
182 These languages are supported with the Latin-4 (ISO-8859-4) character set:
183 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
184 Latvian, Lithuanian, and Norwegian."))
188 ;; Latin-5 (ISO-8859-9)
192 "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)"
193 '(ascii latin-iso8859-9 nil nil
194 nil nil nil nil nil nil nil
)
195 '((safe-charsets ascii latin-iso8859-9
)
196 (mime-charset . iso-8859-9
)))
198 (define-coding-system-alias 'iso-8859-9
'iso-latin-5
)
199 (define-coding-system-alias 'latin-5
'iso-latin-5
)
201 (defun setup-latin5-environment ()
202 "Set up multilingual environment (MULE) for European Latin-5 users."
204 (set-language-environment "Latin-5"))
206 (set-language-info-alist
207 "Latin-5" '((charset ascii latin-iso8859-9
)
208 (coding-system iso-latin-5
)
209 (coding-priority iso-latin-5
)
210 (nonascii-translation . latin-iso8859-9
)
211 (unibyte-syntax .
"latin-5")
212 (unibyte-display . iso-latin-5
)
213 (input-method .
"latin-5-prefix")
215 These languages are supported with the Latin-5 (ISO-8859-9) character set:
216 Bulgarian, Byelorussian, (Slavic) Macedonian, Russian, Serbian and
217 Ukranian.")) ; says ISO 8859-1
221 ;; Latin-8 (ISO-8859-14)
224 'iso-latin-8
2 ?W
; `W' for `Welsh', since `C'
225 ; for `Celtic' is taken.
226 "ISO 2022 based 8-bit encoding for Latin-8 (MIME:ISO-8859-14)"
227 '(ascii latin-iso8859-14 nil nil
228 nil nil nil nil nil nil nil nil nil nil nil nil t
)
229 '((safe-charsets ascii latin-iso8859-14
)
230 (mime-charset . iso-8859-14
)))
232 (define-coding-system-alias 'iso-8859-14
'iso-latin-8
)
233 (define-coding-system-alias 'latin-8
'iso-latin-8
)
235 (defun setup-latin8-environment ()
236 "Set up multilingual environment (MULE) for European Latin-8 users."
238 (set-language-environment "latin-8"))
240 (set-language-info-alist
241 "Latin-8" '((charset ascii latin-iso8859-14
)
242 (coding-system iso-latin-8
)
243 (coding-priority iso-latin-8
)
244 (nonascii-translation . latin-iso8859-14
)
245 (unibyte-syntax .
"latin-8")
246 (unibyte-display . iso-latin-8
)
247 (input-method .
"latin-1-prefix") ; fixme
248 ;;; Fixme: Welsh/Ga{e}lic greetings
252 This language environment is a generic one for the Latin-8 (ISO-8859-14)
253 character set which supports the Celtic languages which are not covered
254 by other ISO-8859 character sets, specifically Welsh, Manx Gaelic and
255 Irish Gaelic (old orthography)."))
258 ;; Latin-9 (ISO-8859-15)
261 'iso-latin-9
2 ?
0 ; `0' for `Latin-0'
262 "ISO 2022 based 8-bit encoding for Latin-9 (MIME:ISO-8859-15)"
263 '(ascii latin-iso8859-15 nil nil
264 nil nil nil nil nil nil nil nil nil nil nil nil t
)
265 '((safe-charsets ascii latin-iso8859-15
)
266 (mime-charset . iso-8859-15
)))
268 (define-coding-system-alias 'iso-8859-15
'iso-latin-9
)
269 (define-coding-system-alias 'latin-9
'iso-latin-9
)
270 (define-coding-system-alias 'latin-0
'iso-latin-9
)
272 (defun setup-latin9-environment ()
273 "Set up multilingual environment (MULE) for European Latin-9 users."
275 (set-language-environment "latin-9"))
277 (set-language-info-alist
278 "Latin-9" '((charset ascii latin-iso8859-15
)
279 (coding-system iso-latin-9
)
280 (coding-priority iso-latin-9
)
281 (nonascii-translation . latin-iso8859-15
)
282 (unibyte-syntax .
"latin-9")
283 (unibyte-display . iso-latin-9
)
284 (input-method .
"latin-1-prefix") ; fixme?
286 .
"Ave Latinum IX, \e,b&(48<=>\e(B \e,b$$$\e(B")
288 This language environment is a generic one for the Latin-9 (ISO-8859-15)
289 character set which supports the same languages as Latin-1 with the
290 addition of the Euro sign and some additional French and Finnish letters.
291 Latin-9 is sometimes nicknamed `Latin-0'."))
294 (defun setup-german-environment ()
295 "Set up multilingual environment (MULE) for German users."
297 (set-language-environment "German"))
299 (set-language-info-alist
300 "German" '((tutorial .
"TUTORIAL.de")
301 (charset ascii latin-iso8859-1
)
302 (coding-system iso-latin-1
)
303 (coding-priority iso-latin-1
)
304 (input-method .
"german-postfix")
305 (nonascii-translation . iso-latin-1
)
306 (unibyte-syntax .
"latin-1")
307 (unibyte-display . iso-latin-1
)
309 German (Deutsch Nord) Guten Tag
310 German (Deutsch S\e,A|\e(Bd) Gr\e,A|_\e(B Gott")
312 This language environment is almost the same as Latin-1,
313 but default input method is set to \"german-postfix\"."))
316 (defun setup-slovenian-environment ()
317 "Setup multilingual environment (MULE) for Slovenian."
319 (set-language-environment "Slovenian"))
321 (set-language-info-alist
322 "Slovenian" '((charset .
(ascii latin-iso8859-2
))
323 (coding-system .
(iso-8859-2))
324 (coding-priority .
(iso-8859-2))
325 (nonascii-translation . latin-iso8859-2
)
326 (input-method .
"latin-2-postfix")
327 (unibyte-syntax .
"latin-2")
328 (unibyte-display . iso-8859-2
)
329 (tutorial .
"TUTORIAL.sl")
330 (sample-text .
"\e,B.\e(Belimo vam uspe\e,B9\e(Ben dan!")
334 ;; For Turkish, the character set ISO-8859-9 (Latin-5) is used. But,
335 ;; before the introduction of ISO-8859-9 in 1988, ISO-8859-3 (Latin-3)
336 ;; was used for Turkish. Those who use Latin-3 for Turkish should use
337 ;; "Latin-3" language environment.
339 (set-language-info-alist
340 "Turkish" '((charset ascii latin-iso8859-9
)
341 (coding-system iso-latin-5
)
342 (coding-priority iso-latin-5
)
343 (nonascii-translation . latin-iso8859-9
)
344 (unibyte-syntax .
"latin-5")
345 (unibyte-display . iso-latin-5
)
346 (input-method .
"turkish-postfix")
347 (sample-text .
"Turkish (T\e,M|\e(Brk\e,Mg\e(Be) Merhaba")
348 (documentation . t
)))
350 ;;; european.el ends here