1 ;;; european.el --- European languages -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
7 ;; Keywords: multilingual, European
9 ;; This file is part of XEmacs.
11 ;; XEmacs is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; XEmacs is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
28 ;; For Europeans, six coded character sets ISO8859-1,2,3,4,9 are supported.
29 ;; Note: ISO 8859/15 (Latin-9) is supported via the latin-unity package.
31 ;; #### latin.el would be a better name for this file.
35 ;; For syntax of Latin-1 characters.
36 (loop for c from 64 to 127 ; from '
\e,A@
\e(B' to '
\e,A
\7f\e(B'
37 do (modify-syntax-entry (make-char 'latin-iso8859-1 c) "w"))
39 (modify-syntax-entry (make-char 'latin-iso8859-1 32) "w") ; no-break space
40 (modify-syntax-entry ?
\e,AW
\e(B "_")
41 (modify-syntax-entry ?
\e,Aw
\e(B "_")
43 ;; For syntax of Latin-2
44 (loop for c in '(?
\e,B!
\e(B ?
\e,B#
\e(B ?
\e,B%
\e(B ?
\e,B&
\e(B ?
\e,B)
\e(B ?
\e,B*
\e(B ?
\e,B+
\e(B ?
\e,B,
\e(B ?
\e,B.
\e(B ?
\e,B/
\e(B ?
\e,B1
\e(B ?
\e,B3
\e(B ?
\e,B5
\e(B ?
\e,B6
\e(B ?
\e,B9
\e(B ?
\e,B:
\e(B ?
\e,B;
\e(B ?
\e,B<
\e(B)
45 do (modify-syntax-entry c "w"))
47 (loop for c from 62 to 126
48 do (modify-syntax-entry (make-char 'latin-iso8859-2 c) "w"))
50 (modify-syntax-entry (make-char 'latin-iso8859-2 32) "w") ; no-break space
51 (modify-syntax-entry ?
\e,BW
\e(B ".")
52 (modify-syntax-entry ?
\e,Bw
\e(B ".")
54 ;; For syntax of Latin-3
55 (loop for c in '(?
\e,C!
\e(B ?
\e,C&
\e(B ?
\e,C)
\e(B ?
\e,C*
\e(B ?
\e,C+
\e(B ?
\e,C,
\e(B ?
\e,C/
\e(B ?
\e,C1
\e(B ?
\e,C5
\e(B ?
\e,C6
\e(B ?
\e,C:
\e(B ?
\e,C;
\e(B ?
\e,C<
\e(B ?
\e,C?
\e(B)
56 do (modify-syntax-entry c "w"))
58 (loop for c from 64 to 126
59 do (modify-syntax-entry (make-char 'latin-iso8859-3 c) "w"))
61 (modify-syntax-entry (make-char 'latin-iso8859-3 32) "w") ; no-break space
62 (modify-syntax-entry ?
\e,CW
\e(B ".")
63 (modify-syntax-entry ?
\e,Cw
\e(B ".")
65 ;; For syntax of Latin-4
66 (loop for c in '(?
\e,D!
\e(B ?
\e,D"
\e(B ?
\e,D#
\e(B ?
\e,D%
\e(B ?
\e,D&
\e(B ?
\e,D)
\e(B ?
\e,D*
\e(B ?
\e,D+
\e(B ?
\e,D,
\e(B ?
\e,D.
\e(B ?
\e,D1
\e(B ?
\e,D3
\e(B ?
\e,D5
\e(B ?
\e,D6
\e(B ?
\e,D9
\e(B ?
\e,D:
\e(B ?
\e,D;
\e(B ?
\e,D<
\e(B ?
\e,D=
\e(B ?
\e,D>
\e(B ?
\e,D?
\e(B)
67 do (modify-syntax-entry c "w"))
69 (loop for c from 64 to 126
70 do (modify-syntax-entry (make-char 'latin-iso8859-4 c) "w"))
72 (modify-syntax-entry (make-char 'latin-iso8859-4 32) "w") ; no-break space
73 (modify-syntax-entry ?
\e,DW
\e(B ".")
74 (modify-syntax-entry ?
\e,Dw
\e(B ".")
77 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
79 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
82 ;; Latin-1 (ISO-8859-1)
84 ;; (make-coding-system
86 ;; "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)"
87 ;; '(ascii latin-iso8859-1 nil nil
88 ;; nil nil nil nil nil nil nil nil nil nil nil nil t)
89 ;; '((safe-charsets ascii latin-iso8859-1)
90 ;; (mime-charset . iso-8859-1)))
92 ;; (define-coding-system-alias 'iso-8859-1 'iso-latin-1)
93 ;; (define-coding-system-alias 'latin-1 'iso-latin-1)
95 ;; (make-coding-system
96 ;; 'compound-text 2 ?1
97 ;; "ISO 2022 based encoding used in inter client communication of X"
98 ;; '((ascii t) (latin-iso8859-1 t) nil nil
99 ;; nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t)
100 ;; '((safe-charsets . t)))
102 ;; (define-coding-system-alias 'ctext 'compound-text)
104 (defun setup-latin1-environment ()
105 "Set up multilingual environment (MULE) for European Latin-1 users."
107 (set-language-environment "Latin-1"))
109 (set-language-info-alist
110 "Latin-1" '((charset ascii latin-iso8859-1)
111 (coding-system iso-8859-1)
112 (coding-priority iso-8859-1)
113 (input-method . "latin-1-prefix")
115 . "Hello, Hej, Tere, Hei, Bonjour, Gr
\e,A|_
\e(B Gott, Ciao,
\e,A!
\e(BHola!")
117 This language environment is a generic one for Latin-1 (ISO-8859-1)
118 character set which supports the following languages:
119 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
120 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
121 We also have a German specific language environment \"German\"."))
124 (set-language-info-alist
125 "French" '((charset ascii latin-iso8859-1)
126 (coding-system iso-8859-1)
127 (coding-priority iso-8859-1)
128 (tutorial . "TUTORIAL.fr")
130 . "Hello, Hej, Tere, Hei, Bonjour, Gr
\e,A|_
\e(B Gott, Ciao,
\e,A!
\e(BHola!")
132 These languages are supported with the Latin-1 (ISO-8859-1) character set:
133 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
134 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
138 (set-language-info-alist
139 "Norwegian" '((charset ascii latin-iso8859-1)
140 (coding-system iso-8859-1)
141 (coding-priority iso-8859-1)
142 (tutorial . "TUTORIAL.no")
144 . "Hello, Hej, Tere, Hei, Bonjour, Gr
\e,A|_
\e(B Gott, Ciao,
\e,A!
\e(BHola!")
146 These languages are supported with the Latin-1 (ISO-8859-1) character set:
147 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
148 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
153 ;; Latin-2 (ISO-8859-2)
155 ;; (make-coding-system
157 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)"
158 ;; '(ascii latin-iso8859-2 nil nil
159 ;; nil nil nil nil nil nil nil)
160 ;; '((safe-charsets ascii latin-iso8859-2)
161 ;; (mime-charset . iso-8859-2)))
163 ;; (define-coding-system-alias 'iso-8859-2 'iso-latin-2)
164 ;; (define-coding-system-alias 'latin-2 'iso-latin-2)
167 'iso-8859-2 'iso2022 "MIME ISO-8859-2"
169 charset-g1 latin-iso8859-2
172 mnemonic "MIME/Ltn-2"
175 (defun setup-latin2-environment ()
176 "Set up multilingual environment (MULE) for European Latin-2 users."
178 (set-language-environment "Latin-2"))
180 (set-language-info-alist
181 "Latin-2" '((charset ascii latin-iso8859-2)
182 (coding-system iso-8859-2)
183 (coding-priority iso-8859-2)
184 (input-method . "latin-2-prefix")
186 This language environment is a generic one for Latin-2 (ISO-8859-2)
187 character set which supports the following languages:
188 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
189 Serbian, Croatian, Slovak, Slovene, Sorbian (upper and lower),
193 (set-language-info-alist
194 "Croatian" '((charset ascii latin-iso8859-2)
195 (coding-system iso-8859-2)
196 (coding-priority iso-8859-2)
197 (tutorial . "TUTORIAL.hr")
199 This language environment is a generic one for Latin-2 (ISO-8859-2)
200 character set which supports the following languages:
201 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
202 Serbian, Croatian, Slovak, Slovene, Sorbian (upper and lower),
206 (set-language-info-alist
207 "Polish" '((charset ascii latin-iso8859-2)
208 (coding-system iso-8859-2)
209 (coding-priority iso-8859-2)
210 (tutorial . "TUTORIAL.pl")
212 This language environment is a generic one for Latin-2 (ISO-8859-2)
213 character set which supports the following languages:
214 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
215 Serbian, Croatian, Slovak, Slovene, Sorbian (upper and lower),
219 ;; Romanian support originally from romanian.el
221 (defun setup-romanian-environment ()
222 "Setup multilingual environment (MULE) for Romanian."
224 (set-language-environment "Romanian"))
226 (set-language-info-alist
227 "Romanian" '((charset ascii latin-iso8859-2)
228 (coding-system iso-8859-2)
229 (coding-priority iso-8859-2)
230 (input-method . "latin-2-postfix")
231 (tutorial . "TUTORIAL.ro")
232 (sample-text . "Bun
\e,Bc
\e(B ziua, bine a
\e,B~
\e(Bi venit!")
238 ;; Czech support originally from czech.el
239 ;; Author: Milan Zamazal <pdm@fi.muni.cz>
240 ;; Maintainer(for XEmacs): David Sauer <davids@penguin.cz>
242 (defun setup-czech-environment ()
243 "Set up multilingual environment (MULE) for czech users."
245 (set-language-environment "Czech"))
247 (set-language-info-alist
248 "Czech" '((charset ascii latin-iso8859-2)
249 (coding-system iso-8859-2)
250 (coding-priority iso-8859-2)
251 (tutorial . "TUTORIAL.cs")
252 (sample-text . "P
\e,Bx
\e(Bejeme v
\e,Ba
\e(Bm hezk
\e,B}
\e(B den!")
259 ;; Latin-3 (ISO-8859-3)
261 ;; (make-coding-system
263 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)"
264 ;; '(ascii latin-iso8859-3 nil nil
265 ;; nil nil nil nil nil nil nil)
266 ;; '((safe-charsets ascii latin-iso8859-3)
267 ;; (mime-charset . iso-8859-3)))
269 ;; (define-coding-system-alias 'iso-8859-3 'iso-latin-3)
270 ;; (define-coding-system-alias 'latin-3 'iso-latin-3)
273 'iso-8859-3 'iso2022 "MIME ISO-8859-3"
275 charset-g1 latin-iso8859-3
278 mnemonic "MIME/Ltn-3"
281 (defun setup-latin3-environment ()
282 "Set up multilingual environment (MULE) for European Latin-3 users."
284 (set-language-environment "Latin-3"))
286 (set-language-info-alist
287 "Latin-3" '((charset ascii latin-iso8859-3)
288 (coding-system iso-8859-3)
289 (coding-priority iso-8859-3)
290 (input-method . "latin-3-prefix")
292 These languages are supported with the Latin-3 (ISO-8859-3) character set:
293 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
294 German, Italian, Maltese, Spanish, and Turkish."))
298 ;; Latin-4 (ISO-8859-4)
300 ;; (make-coding-system
302 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)"
303 ;; '(ascii latin-iso8859-4 nil nil
304 ;; nil nil nil nil nil nil nil)
305 ;; '((safe-charsets ascii latin-iso8859-4)
306 ;; (mime-charset . iso-8895-4)))
308 ;; (define-coding-system-alias 'iso-8859-4 'iso-latin-4)
309 ;; (define-coding-system-alias 'latin-4 'iso-latin-4)
312 'iso-8859-4 'iso2022 "MIME ISO-8859-4"
314 charset-g1 latin-iso8859-4
317 mnemonic "MIME/Ltn-4"
320 (defun setup-latin4-environment ()
321 "Set up multilingual environment (MULE) for European Latin-4 users."
323 (set-language-environment "Latin-4"))
325 (set-language-info-alist
326 "Latin-4" '((charset ascii latin-iso8859-4)
327 (coding-system iso-8859-4)
328 (coding-priority iso-8859-4)
329 (input-method . "latin-4-prefix")
331 These languages are supported with the Latin-4 (ISO-8859-4) character set:
332 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
333 Latvian, Lithuanian, and Norwegian."))
337 ;; Latin-5 (ISO-8859-9)
339 ;; (make-coding-system
341 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)"
342 ;; '(ascii latin-iso8859-9 nil nil
343 ;; nil nil nil nil nil nil nil)
344 ;; '((safe-charsets ascii latin-iso8859-9)
345 ;; (mime-charset . iso-8859-9)))
347 ;; (define-coding-system-alias 'iso-8859-9 'iso-latin-5)
348 ;; (define-coding-system-alias 'latin-5 'iso-latin-5)
351 'iso-8859-9 'iso2022 "MIME ISO-8859-9"
353 charset-g1 latin-iso8859-9
356 mnemonic "MIME/Ltn-5"
359 (defun setup-latin5-environment ()
360 "Set up multilingual environment (MULE) for European Latin-5 users."
362 (set-language-environment "Latin-5"))
364 (set-language-info-alist
365 "Latin-5" '((charset ascii latin-iso8859-9)
366 (coding-system iso-8859-9)
367 (coding-priority iso-8859-9)
368 (input-method . "latin-5-prefix")
370 These languages are supported with the Latin-5 (ISO-8859-9) character set."))
374 (defun setup-german-environment ()
375 "Set up multilingual environment (MULE) for German users."
377 (set-language-environment "German"))
379 (set-language-info-alist
380 "German" '((tutorial . "TUTORIAL.de")
381 (charset ascii latin-iso8859-1)
382 (coding-system iso-8859-1)
383 (coding-priority iso-8859-1)
384 (input-method . "german-postfix")
386 German (Deutsch Nord) Guten Tag
387 German (Deutsch S
\e,A|
\e(Bd) Gr
\e,A|_
\e(B Gott")
389 This language environment is almost the same as Latin-1,
390 but default input method is set to \"german-postfix\"."))
393 (defun setup-slovenian-environment ()
394 "Setup multilingual environment (MULE) for Slovenian."
396 (set-language-environment "Slovenian"))
398 (set-language-info-alist
399 "Slovenian" '((charset . (ascii latin-iso8859-2))
400 (coding-system . (iso-8859-2))
401 (coding-priority . (iso-8859-2))
402 (input-method . "latin-2-postfix")
403 (tutorial . "TUTORIAL.sl")
404 (sample-text . "
\e,B.
\e(Belimo vam uspe
\e,B9
\e(Ben dan!")
410 ;;; european.el ends here