annotate lisp/mule/european.el @ 728:4d00488244c1

[xemacs-hg @ 2002-01-10 09:50:43 by stephent] Add ISO 8859/15 support. <877kqq8rkj.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Thu, 10 Jan 2002 09:50:50 +0000
parents 8de8e3f6228a
children 943eaba38521
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 ;;; european.el --- European languages -*- coding: iso-2022-7bit; -*-
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
728
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
6 ;; Copyright (C) 2002 Free Software Foundation
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 ;; Keywords: multilingual, European
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 ;; This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 ;; XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 ;; under the terms of the GNU General Public License as published by
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 ;; the Free Software Foundation; either version 2, or (at your option)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 ;; any later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 ;; XEmacs is distributed in the hope that it will be useful, but
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 ;; General Public License for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 ;; You should have received a copy of the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 ;; along with XEmacs; see the file COPYING. If not, write to the Free
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 ;; 02111-1307, USA.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 ;;; Commentary:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28
728
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
29 ;; Support six Latin coded character sets ISO8859-1,2,3,4,9,15.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
31 ;; #### latin.el would be a better name for this file.
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
32
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 ;;; Code:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 ;; For syntax of Latin-1 characters.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 (loop for c from 64 to 127 ; from ',A@(B' to ',A(B'
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 do (modify-syntax-entry (make-char 'latin-iso8859-1 c) "w"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 (modify-syntax-entry (make-char 'latin-iso8859-1 32) "w") ; no-break space
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 (modify-syntax-entry ?,AW(B "_")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 (modify-syntax-entry ?,Aw(B "_")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42
728
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
43 ;; For syntax of Latin-9 characters.
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
44 ;; Based on Latin-1 and differences from Jukka Korpela
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
45 ;; http://www.cs.tut.fi/~jkorpela/latin9.html
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
46 (loop for c in '(?,b&(B ?,b((B ?,b4(B ?,b8(B ?,b<(B ?,b=(B ?,b>(B)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
47 do (modify-syntax-entry c "w"))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
48
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
49 (loop for c from 64 to 127 ; from ',b@(B' to ',b(B'
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
50 do (modify-syntax-entry (make-char 'latin-iso8859-1 c) "w"))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
51
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
52 (modify-syntax-entry (make-char 'latin-iso8859-15 32) "w") ; no-break space
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
53 (modify-syntax-entry ?,bW(B "_")
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
54 (modify-syntax-entry ?,bw(B "_")
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
55
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 ;; For syntax of Latin-2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 (loop for c in '(?,B!(B ?,B#(B ?,B%(B ?,B&(B ?,B)(B ?,B*(B ?,B+(B ?,B,(B ?,B.(B ?,B/(B ?,B1(B ?,B3(B ?,B5(B ?,B6(B ?,B9(B ?,B:(B ?,B;(B ?,B<(B)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 do (modify-syntax-entry c "w"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60 (loop for c from 62 to 126
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 do (modify-syntax-entry (make-char 'latin-iso8859-2 c) "w"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 (modify-syntax-entry (make-char 'latin-iso8859-2 32) "w") ; no-break space
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 (modify-syntax-entry ?,BW(B ".")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65 (modify-syntax-entry ?,Bw(B ".")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
67 ;; For syntax of Latin-3
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
68 (loop for c in '(?,C!(B ?,C&(B ?,C)(B ?,C*(B ?,C+(B ?,C,(B ?,C/(B ?,C1(B ?,C5(B ?,C6(B ?,C:(B ?,C;(B ?,C<(B ?,C?(B)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
69 do (modify-syntax-entry c "w"))
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
70
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
71 (loop for c from 64 to 126
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
72 do (modify-syntax-entry (make-char 'latin-iso8859-3 c) "w"))
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
73
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
74 (modify-syntax-entry (make-char 'latin-iso8859-3 32) "w") ; no-break space
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
75 (modify-syntax-entry ?,CW(B ".")
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
76 (modify-syntax-entry ?,Cw(B ".")
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
77
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
78 ;; For syntax of Latin-4
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
79 (loop for c in '(?,D!(B ?,D"(B ?,D#(B ?,D%(B ?,D&(B ?,D)(B ?,D*(B ?,D+(B ?,D,(B ?,D.(B ?,D1(B ?,D3(B ?,D5(B ?,D6(B ?,D9(B ?,D:(B ?,D;(B ?,D<(B ?,D=(B ?,D>(B ?,D?(B)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
80 do (modify-syntax-entry c "w"))
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
81
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
82 (loop for c from 64 to 126
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
83 do (modify-syntax-entry (make-char 'latin-iso8859-4 c) "w"))
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
84
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
85 (modify-syntax-entry (make-char 'latin-iso8859-4 32) "w") ; no-break space
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
86 (modify-syntax-entry ?,DW(B ".")
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
87 (modify-syntax-entry ?,Dw(B ".")
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
88
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 428
diff changeset
89
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 ;;; EUROPEANS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 ;; Latin-1 (ISO-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 ;; (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 ;; 'iso-latin-1 2 ?1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 ;; "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 ;; '(ascii latin-iso8859-1 nil nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 ;; nil nil nil nil nil nil nil nil nil nil nil nil t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 ;; '((safe-charsets ascii latin-iso8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 ;; (mime-charset . iso-8859-1)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 ;; (define-coding-system-alias 'iso-8859-1 'iso-latin-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 ;; (define-coding-system-alias 'latin-1 'iso-latin-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 ;; (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 ;; 'compound-text 2 ?1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 ;; "ISO 2022 based encoding used in inter client communication of X"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111 ;; '((ascii t) (latin-iso8859-1 t) nil nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 ;; nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 ;; '((safe-charsets . t)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 ;; (define-coding-system-alias 'ctext 'compound-text)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 (defun setup-latin1-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 "Set up multilingual environment (MULE) for European Latin-1 users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 (set-language-environment "Latin-1"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 "Latin-1" '((charset ascii latin-iso8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 (coding-system iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 (coding-priority iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 (input-method . "latin-1-prefix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 (sample-text
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130 This language environment is a generic one for Latin-1 (ISO-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 character set which supports the following languages:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134 We also have a German specific language environment \"German\"."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 "French" '((charset ascii latin-iso8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 (coding-system iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140 (coding-priority iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 (tutorial . "TUTORIAL.fr")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 (sample-text
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 (documentation . ("\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 These languages are supported with the Latin-1 (ISO-8859-1) character set:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 ")))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 "Norwegian" '((charset ascii latin-iso8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 (coding-system iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 (coding-priority iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 (tutorial . "TUTORIAL.no")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 (sample-text
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 (documentation . ("\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 These languages are supported with the Latin-1 (ISO-8859-1) character set:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 ")))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165
728
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
166 ;; Latin-9 (ISO-8859-15)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
167 ;; Latin-1 plus Euro, plus a few accented characters
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
168
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
169 ;; (make-charset 'latin-iso8859-15
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
170 ;; "Latin-9, aka Latin-1 with Euro etc"
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
171 ;; '(short-name "Latin 9"
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
172 ;; long-name "Latin-9 (typically GR of ISO 8859/15)"
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
173 ;; registry "iso8859-15"
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
174 ;; dimension 1
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
175 ;; columns 1
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
176 ;; chars 96
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
177 ;; final ?b ; ISO-IR-203
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
178 ;; graphic 1
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
179 ;; direction l2r))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
180
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
181 (make-coding-system
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
182 'iso-8859-15 'iso2022
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
183 "ISO 4873 conforming 8-bit code (ASCII + Latin 9; aka Latin-1 with Euro)"
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
184 `(mnemonic "MIME/Ltn-9" ; bletch
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
185 eol-type nil
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
186 charset-g0 ascii
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
187 charset-g1 latin-iso8859-15
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
188 charset-g2 t
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
189 charset-g3 t
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
190 ))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
191
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
192 (defun setup-latin9-environment ()
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
193 "Set up multilingual environment (MULE) for European Latin-9 users."
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
194 (interactive)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
195 (set-language-environment "Latin-9"))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
196
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
197 (set-language-info-alist
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
198 "Latin-9" '((charset ascii latin-iso8859-15)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
199 (coding-system iso-8859-15)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
200 (coding-priority iso-8859-15)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
201 (input-method . "latin-1-prefix") ; FIXME!!
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
202 (sample-text
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
203 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!, my ")
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
204 (documentation . "\
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
205 This language environment is a generic one for Latin-9 (ISO-8859-15)
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
206 character set which supports the Euro sign and the following languages:
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
207 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
208 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish."))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
209 '("European"))
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
210
4d00488244c1 [xemacs-hg @ 2002-01-10 09:50:43 by stephent]
stephent
parents: 440
diff changeset
211
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212 ;; Latin-2 (ISO-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
214 ;; (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
215 ;; 'iso-latin-2 2 ?2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
216 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
217 ;; '(ascii latin-iso8859-2 nil nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
218 ;; nil nil nil nil nil nil nil)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219 ;; '((safe-charsets ascii latin-iso8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220 ;; (mime-charset . iso-8859-2)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 ;; (define-coding-system-alias 'iso-8859-2 'iso-latin-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223 ;; (define-coding-system-alias 'latin-2 'iso-latin-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
224
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
225 (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
226 'iso-8859-2 'iso2022 "MIME ISO-8859-2"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
227 '(charset-g0 ascii
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
228 charset-g1 latin-iso8859-2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229 charset-g2 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
230 charset-g3 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
231 mnemonic "MIME/Ltn-2"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
232 ))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234 (defun setup-latin2-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 "Set up multilingual environment (MULE) for European Latin-2 users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
236 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
237 (set-language-environment "Latin-2"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
238
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
239 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 "Latin-2" '((charset ascii latin-iso8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 (coding-system iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242 (coding-priority iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 (input-method . "latin-2-prefix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 This language environment is a generic one for Latin-2 (ISO-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 character set which supports the following languages:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248 Serbian, Croatian, Slovak, Slovene, Sorbian (upper and lower),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
249 and Swedish."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
250 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
253 "Croatian" '((charset ascii latin-iso8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 (coding-system iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 (coding-priority iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 (tutorial . "TUTORIAL.hr")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
257 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
258 This language environment is a generic one for Latin-2 (ISO-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259 character set which supports the following languages:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
261 Serbian, Croatian, Slovak, Slovene, Sorbian (upper and lower),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
262 and Swedish."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
263 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
265 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
266 "Polish" '((charset ascii latin-iso8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 (coding-system iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
268 (coding-priority iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
269 (tutorial . "TUTORIAL.pl")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
270 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
271 This language environment is a generic one for Latin-2 (ISO-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
272 character set which supports the following languages:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
273 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
274 Serbian, Croatian, Slovak, Slovene, Sorbian (upper and lower),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
275 and Swedish."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
276 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
277
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
278 ;; Romanian support originally from romanian.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
279
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
280 (defun setup-romanian-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
281 "Setup multilingual environment (MULE) for Romanian."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
282 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
283 (set-language-environment "Romanian"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
285 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286 "Romanian" '((charset ascii latin-iso8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
287 (coding-system iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
288 (coding-priority iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
289 (input-method . "latin-2-postfix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
290 (tutorial . "TUTORIAL.ro")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291 (sample-text . "Bun,Bc(B ziua, bine a,B~(Bi venit!")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292 (documentation . t))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
293 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
294
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
295 (provide 'romanian)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
296
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297 ;; Czech support originally from czech.el
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
298 ;; Author: Milan Zamazal <pdm@fi.muni.cz>
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299 ;; Maintainer(for XEmacs): David Sauer <davids@penguin.cz>
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 (defun setup-czech-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
302 "Set up multilingual environment (MULE) for czech users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
303 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304 (set-language-environment "Czech"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
305
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
306 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
307 "Czech" '((charset ascii latin-iso8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
308 (coding-system iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
309 (coding-priority iso-8859-2)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
310 (tutorial . "TUTORIAL.cs")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311 (sample-text . "P,Bx(Bejeme v,Ba(Bm hezk,B}(B den!")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
312 (documentation . t))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
313 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
314
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315 (provide 'czech)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
318 ;; Latin-3 (ISO-8859-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
319
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 ;; (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
321 ;; 'iso-latin-3 2 ?3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
322 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
323 ;; '(ascii latin-iso8859-3 nil nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324 ;; nil nil nil nil nil nil nil)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
325 ;; '((safe-charsets ascii latin-iso8859-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
326 ;; (mime-charset . iso-8859-3)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
328 ;; (define-coding-system-alias 'iso-8859-3 'iso-latin-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329 ;; (define-coding-system-alias 'latin-3 'iso-latin-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
330
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332 'iso-8859-3 'iso2022 "MIME ISO-8859-3"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 '(charset-g0 ascii
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
334 charset-g1 latin-iso8859-3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 charset-g2 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 charset-g3 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
337 mnemonic "MIME/Ltn-3"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
338 ))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340 (defun setup-latin3-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341 "Set up multilingual environment (MULE) for European Latin-3 users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
342 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343 (set-language-environment "Latin-3"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
345 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
346 "Latin-3" '((charset ascii latin-iso8859-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
347 (coding-system iso-8859-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
348 (coding-priority iso-8859-3)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
349 (input-method . "latin-3-prefix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
350 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
351 These languages are supported with the Latin-3 (ISO-8859-3) character set:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
352 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
353 German, Italian, Maltese, Spanish, and Turkish."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
354 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
355
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
356
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
357 ;; Latin-4 (ISO-8859-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
358
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
359 ;; (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
360 ;; 'iso-latin-4 2 ?4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
361 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
362 ;; '(ascii latin-iso8859-4 nil nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
363 ;; nil nil nil nil nil nil nil)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
364 ;; '((safe-charsets ascii latin-iso8859-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
365 ;; (mime-charset . iso-8895-4)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
366
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
367 ;; (define-coding-system-alias 'iso-8859-4 'iso-latin-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
368 ;; (define-coding-system-alias 'latin-4 'iso-latin-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
369
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
370 (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
371 'iso-8859-4 'iso2022 "MIME ISO-8859-4"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
372 '(charset-g0 ascii
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
373 charset-g1 latin-iso8859-4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
374 charset-g2 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
375 charset-g3 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
376 mnemonic "MIME/Ltn-4"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
377 ))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
378
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
379 (defun setup-latin4-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
380 "Set up multilingual environment (MULE) for European Latin-4 users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
381 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
382 (set-language-environment "Latin-4"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
383
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
384 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
385 "Latin-4" '((charset ascii latin-iso8859-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
386 (coding-system iso-8859-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
387 (coding-priority iso-8859-4)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
388 (input-method . "latin-4-prefix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
389 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
390 These languages are supported with the Latin-4 (ISO-8859-4) character set:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
391 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
392 Latvian, Lithuanian, and Norwegian."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
393 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
394
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
395
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
396 ;; Latin-5 (ISO-8859-9)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
397
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
398 ;; (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
399 ;; 'iso-latin-5 2 ?9
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
401 ;; '(ascii latin-iso8859-9 nil nil
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
402 ;; nil nil nil nil nil nil nil)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
403 ;; '((safe-charsets ascii latin-iso8859-9)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
404 ;; (mime-charset . iso-8859-9)))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
405
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
406 ;; (define-coding-system-alias 'iso-8859-9 'iso-latin-5)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
407 ;; (define-coding-system-alias 'latin-5 'iso-latin-5)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
408
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
409 (make-coding-system
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
410 'iso-8859-9 'iso2022 "MIME ISO-8859-9"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
411 '(charset-g0 ascii
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
412 charset-g1 latin-iso8859-9
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
413 charset-g2 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
414 charset-g3 t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
415 mnemonic "MIME/Ltn-5"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
416 ))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
417
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
418 (defun setup-latin5-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
419 "Set up multilingual environment (MULE) for European Latin-5 users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
420 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
421 (set-language-environment "Latin-5"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
422
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
423 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
424 "Latin-5" '((charset ascii latin-iso8859-9)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
425 (coding-system iso-8859-9)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
426 (coding-priority iso-8859-9)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
427 (input-method . "latin-5-prefix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
428 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
429 These languages are supported with the Latin-5 (ISO-8859-9) character set."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
430 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
431
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
432
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
433 (defun setup-german-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
434 "Set up multilingual environment (MULE) for German users."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
435 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
436 (set-language-environment "German"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
437
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
438 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
439 "German" '((tutorial . "TUTORIAL.de")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
440 (charset ascii latin-iso8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
441 (coding-system iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
442 (coding-priority iso-8859-1)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
443 (input-method . "german-postfix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
444 (sample-text . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
445 German (Deutsch Nord) Guten Tag
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
446 German (Deutsch S,A|(Bd) Gr,A|_(B Gott")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
447 (documentation . "\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
448 This language environment is almost the same as Latin-1,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
449 but default input method is set to \"german-postfix\"."))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
450 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
451
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
452 (defun setup-slovenian-environment ()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
453 "Setup multilingual environment (MULE) for Slovenian."
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
454 (interactive)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
455 (set-language-environment "Slovenian"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
456
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
457 (set-language-info-alist
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
458 "Slovenian" '((charset . (ascii latin-iso8859-2))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
459 (coding-system . (iso-8859-2))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
460 (coding-priority . (iso-8859-2))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
461 (input-method . "latin-2-postfix")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
462 (tutorial . "TUTORIAL.sl")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
463 (sample-text . ",B.(Belimo vam uspe,B9(Ben dan!")
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
464 (documentation . t))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
465 '("European"))
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
466
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
467 (provide 'slovenian)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
468
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
469 ;;; european.el ends here