annotate lisp/mule/european.el @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children 95016f13131a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
1 ;;; european.el --- Support for European languages
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
6
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
7 ;; Keywords: multilingual, European
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
8
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
10
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
14 ;; any later version.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
15
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
19 ;; General Public License for more details.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
20
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
24 ;; 02111-1307, USA.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
25
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
26 ;;; Commentary:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
27
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
28 ;; For Europeans, five character sets ISO8859-1,2,3,4,9 are supported.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
29
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
30 ;;; Code:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
31
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
32 ;; For syntax of Latin-1 characters.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
33 (loop for c from 64 to 127 ; from ',A@(B' to ',A(B'
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
34 do (modify-syntax-entry (make-char 'latin-iso8859-1 c) "w"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
35
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
36 (modify-syntax-entry (make-char 'latin-iso8859-1 32) "w") ; no-break space
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
37 (modify-syntax-entry ?,AW(B "_")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
38 (modify-syntax-entry ?,Aw(B "_")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
39
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
40 ;; For syntax of Latin-2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
41 (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)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
42 do (modify-syntax-entry c "w"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
43
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
44 (loop for c from 62 to 126
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
45 do (modify-syntax-entry (make-char 'latin-iso8859-2 c) "w"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
46
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
47 (modify-syntax-entry (make-char 'latin-iso8859-2 32) "w") ; no-break space
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
48 (modify-syntax-entry ?,BW(B ".")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
49 (modify-syntax-entry ?,Bw(B ".")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
50
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
51 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
52 ;;; EUROPEANS
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
53 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
54
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
55 ;; (define-prefix-command 'describe-european-environment-map)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
56 ;; (define-key-after describe-language-environment-map [European]
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
57 ;; '("European" . describe-european-environment-map)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
58 ;; t)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
59
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
60 ;; (define-prefix-command 'setup-european-environment-map)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
61 ;; (define-key-after setup-language-environment-map [European]
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
62 ;; '("European" . setup-european-environment-map)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
63 ;; t)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
64
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
65 ;; Setup for LANGAUGE which uses one-byte 8-bit CHARSET, one-byte
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
66 ;; 8-bit CODING-SYSTEM, and INPUT-METHOD.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
67 (defun setup-8-bit-environment (language charset coding-system input-method)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
68 (setup-english-environment)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
69 (set-default-coding-systems coding-system)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
70 ;; (setq coding-category-iso-8-1 coding-system
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
71 ;; coding-category-iso-8-2 coding-system)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
72 (set-coding-category-system 'iso-8-1 coding-system)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
73 (set-coding-category-system 'iso-8-2 coding-system)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
74
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
75 ;; (if charset
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
76 ;; (let ((nonascii-offset (- (make-char charset) 128)))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
77 ;; ;; Set up for insertion of characters in this character set
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
78 ;; ;; when codes 0200 - 0377 are typed in.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
79 ;; (setq nonascii-insert-offset nonascii-offset)))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
80
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
81 (if input-method
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
82 (setq default-input-method input-method))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
83
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
84 ;; If this is a Latin-N character set, set up syntax for it in
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
85 ;; single-byte mode. We can't use require because the file
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
86 ;; must be eval'd each time in case we change from one Latin-N to another.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
87 ;; (if (string-match "^Latin-\\([1-9]\\)$" language)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
88 ;; (load (downcase language) nil t))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
89 )
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
90
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
91 ;; Latin-1 (ISO-8859-1)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
92
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
93 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
94 ;; 'iso-latin-1 2 ?1
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
95 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-1, Compound Text Encoding)"
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
96 ;; '((ascii t) (latin-iso8859-1 t) nil nil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
97 ;; nil ascii-eol ascii-cntl nil nil nil nil nil nil nil nil nil t))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
98
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
99 ;; (define-coding-system-alias 'iso-8859-1 'iso-latin-1)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
100 ;; (define-coding-system-alias 'latin-1 'iso-latin-1)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
101 ;; (define-coding-system-alias 'ctext 'iso-latin-1)
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
102
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
103 (defun setup-latin1-environment ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
104 "Set up multilingual environment (MULE) for European Latin-1 users."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
105 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
106 (setup-8-bit-environment "Latin-1" 'latin-iso8859-1 'iso-8859-1
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
107 "latin-1-prefix"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
108
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
109 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
110 "Latin-1" '((setup-function . (setup-latin1-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
111 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
112 (charset . (ascii latin-iso8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
113 (coding-system . (iso-8859-1))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
114 (sample-text
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
115 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
116 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
117 These languages are supported with the Latin-1 (ISO-8859-1) character set:
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
118 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
119 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
120 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
121 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
122
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
123 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
124 "German" '((setup-function . (setup-latin1-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
125 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
126 (charset . (ascii latin-iso8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
127 (coding-system . (iso-8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
128 (tutorial . "TUTORIAL.de")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
129 (sample-text
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
130 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
131 (documentation . ("\
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
132 These languages are supported with the Latin-1 (ISO-8859-1) character set:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
133 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
134 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
135 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
136 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
137
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
138 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
139 "French" '((setup-function . (setup-latin1-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
140 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
141 (charset . (ascii latin-iso8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
142 (coding-system . (iso-8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
143 (tutorial . "TUTORIAL.fr")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
144 (sample-text
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
145 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
146 (documentation . ("\
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
147 These languages are supported with the Latin-1 (ISO-8859-1) character set:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
148 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
149 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
150 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
151 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
152
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
153 (set-language-info-alist
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
154 "Norwegian" '((setup-function . (setup-latin1-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
155 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
156 (charset . (ascii latin-iso8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
157 (coding-system . (iso-8859-1))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
158 (tutorial . "TUTORIAL.no")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
159 (sample-text
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
160 . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
161 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
162 These languages are supported with the Latin-1 (ISO-8859-1) character set:
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
163 Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
164 Irish, Italian, Norwegian, Portuguese, Spanish, and Swedish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
165 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
166 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
167
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
168 ;; Latin-2 (ISO-8859-2)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
169
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
170 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
171 ;; 'iso-latin-2 2 ?2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
172 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-2)"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
173 ;; '((ascii t) (latin-iso8859-2 t) nil nil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
174 ;; nil ascii-eol ascii-cntl nil nil nil nil))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
175
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
176 ;; (define-coding-system-alias 'iso-8859-2 'iso-latin-2)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
177 ;; (define-coding-system-alias 'latin-2 'iso-latin-2)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
178
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
179 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
180 'iso-8859-2 'iso2022 "MIME ISO-8859-2"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
181 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
182 charset-g1 latin-iso8859-2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
183 charset-g2 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
184 charset-g3 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
185 mnemonic "MIME/Ltn-2"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
186 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
187
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
188 (defun setup-latin2-environment ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
189 "Set up multilingual environment (MULE) for European Latin-2 users."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
190 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
191 (setup-8-bit-environment "Latin-2" 'latin-iso8859-2 'iso-8859-2
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
192 "latin-2-prefix"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
193
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
194 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
195 "Latin-2" '((setup-function . (setup-latin2-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
196 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
197 (charset . (ascii latin-iso8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
198 (coding-system . (iso-8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
199 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
200 These languages are supported with the Latin-2 (ISO-8859-2) character set:
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
201 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
202 Serbian, Croatian, Slovak, Slovene, and Swedish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
203 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
204 ))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
205
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
206 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
207 "Croatian" '((setup-function . (setup-latin2-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
208 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
209 (charset . (ascii latin-iso8859-2))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
210 (tutorial . "TUTORIAL.hr")
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
211 (coding-system . (iso-8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
212 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
213 These languages are supported with the Latin-2 (ISO-8859-2) character set:
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
214 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
215 Serbian, Croatian, Slovak, Slovene, and Swedish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
216 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
217 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
218
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
219 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
220 "Polish" '((setup-function . (setup-latin2-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
221 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
222 (charset . (ascii latin-iso8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
223 (tutorial . "TUTORIAL.pl")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
224 (coding-system . (iso-8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
225 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
226 These languages are supported with the Latin-2 (ISO-8859-2) character set:
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
227 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
228 Serbian, Croatian, Slovak, Slovene, and Swedish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
229 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
230 ))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
231
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
232 ;; Romanian support originally from romanian.el
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
233
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
234 (defun setup-romanian-environment ()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
235 "Setup multilingual environment (MULE) for Romanian."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
236 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
237 (setup-8-bit-environment "Romanian" 'latin-iso8859-2 'iso-8859-2
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
238 "romanian"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
239
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
240 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
241 "Romanian" '((setup-function . (setup-romanian-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
242 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
243 (charset . (ascii latin-iso8859-2))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
244 (tutorial . "TUTORIAL.ro")
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
245 (coding-system . (iso-8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
246 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
247 These languages are supported with the Latin-2 (ISO-8859-2) character set:
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
248 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
249 Serbian, Croatian, Slovak, Slovene, and Swedish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
250 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
251 ))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
252
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
253 ;; Czech support originally from czech.el
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
254 ;; Author: Milan Zamazal <pdm@fi.muni.cz>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
255 ;; Maintainer(for XEmacs): David Sauer <davids@penguin.cz>
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
256
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
257 (defun setup-czech-environment ()
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
258 "Set up multilingual environment (MULE) for czech users."
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
259 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
260 (setup-8-bit-environment "Czech" 'latin-iso8859-2 'iso-8859-2
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
261 "czech"))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
262
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
263
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
264 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
265 "Czech"
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
266 '((setup-function . (setup-czech-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
267 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
268 (charset . (ascii latin-iso8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
269 (coding-system . (iso-8859-2))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
270 (tutorial . "TUTORIAL.cs")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
271 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
272 These languages are supported with the Latin-2 (ISO-8859-2) character set:
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
273 Albanian, Czech, English, German, Hungarian, Polish, Romanian,
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
274 Serbian, Croatian, Slovak, Slovene, and Swedish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
275 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
276 ))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
277
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 333
diff changeset
278
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
279
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
280 ;; Latin-3 (ISO-8859-3)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
281
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
282 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
283 ;; 'iso-latin-3 2 ?3
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
284 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-3)"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
285 ;; '((ascii t) (latin-iso8859-3 t) nil nil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
286 ;; nil ascii-eol ascii-cntl nil nil nil nil))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
287
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
288 ;; (define-coding-system-alias 'iso-8859-3 'iso-latin-3)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
289 ;; (define-coding-system-alias 'latin-3 'iso-latin-3)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
290
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
291 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
292 'iso-8859-3 'iso2022 "MIME ISO-8859-3"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
293 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
294 charset-g1 latin-iso8859-3
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
295 charset-g2 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
296 charset-g3 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
297 mnemonic "MIME/Ltn-3"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
298 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
299
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
300 (defun setup-latin3-environment ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
301 "Set up multilingual environment (MULE) for European Latin-3 users."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
302 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
303 (setup-8-bit-environment "Latin-3" 'latin-iso8859-3 'iso-8859-3
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
304 "latin-3-prefix"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
305
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
306 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
307 "Latin-3" '((setup-function . (setup-latin3-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
308 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
309 (charset . (ascii latin-iso8859-3))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
310 (coding-system . (iso-8859-3))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
311 (documentation . ("\
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
312 These languages are supported with the Latin-3 (ISO-8859-3) character set:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
313 Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
314 German, Italian, Maltese, Spanish, and Turkish.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
315 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
316 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
317
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
318 ;; Latin-4 (ISO-8859-4)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
319
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
320 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
321 ;; 'iso-latin-4 2 ?4
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
322 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-4)"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
323 ;; '((ascii t) (latin-iso8859-4 t) nil nil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
324 ;; nil ascii-eol ascii-cntl nil nil nil nil))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
325
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
326 ;; (define-coding-system-alias 'iso-8859-4 'iso-latin-4)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
327 ;; (define-coding-system-alias 'latin-4 'iso-latin-4)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
328
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
329 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
330 'iso-8859-4 'iso2022 "MIME ISO-8859-4"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
331 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
332 charset-g1 latin-iso8859-4
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
333 charset-g2 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
334 charset-g3 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
335 mnemonic "MIME/Ltn-4"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
336 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
337
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
338 (defun setup-latin4-environment ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
339 "Set up multilingual environment (MULE) for European Latin-4 users."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
340 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
341 (setup-8-bit-environment "Latin-4" 'latin-iso8859-4 'iso-8859-4
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
342 "latin-4-prefix"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
343
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
344 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
345 "Latin-4" '((setup-function . (setup-latin4-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
346 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
347 (charset . (ascii latin-iso8859-4))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
348 (coding-system . (iso-8859-4))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
349 (documentation . ("\
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
350 These languages are supported with the Latin-4 (ISO-8859-4) character set:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
351 Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
352 Latvian, Lithuanian, and Norwegian.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
353 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
354 ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
355
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
356 ;; Latin-5 (ISO-8859-9)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
357
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
358 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
359 ;; 'iso-latin-5 2 ?9
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
360 ;; "ISO 2022 based 8-bit encoding (MIME:ISO-8859-9)"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
361 ;; '((ascii t) (latin-iso8859-9 t) nil nil
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
362 ;; nil ascii-eol ascii-cntl nil nil nil nil))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
363
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
364 ;; (define-coding-system-alias 'iso-8859-9 'iso-latin-5)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
365 ;; (define-coding-system-alias 'latin-5 'iso-latin-5)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
366
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
367 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
368 'iso-8859-9 'iso2022 "MIME ISO-8859-9"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
369 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
370 charset-g1 latin-iso8859-9
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
371 charset-g2 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
372 charset-g3 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
373 mnemonic "MIME/Ltn-5"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
374 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
375
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
376 (defun setup-latin5-environment ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
377 "Set up multilingual environment (MULE) for European Latin-5 users."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
378 (interactive)
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
379 (setup-8-bit-environment "Latin-5" 'latin-iso8859-9 'iso-8859-5
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
380 "latin-5-prefix"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
381
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
382 (set-language-info-alist
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
383 "Latin-5" '((setup-function . (setup-latin5-environment
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
384 . setup-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
385 (charset . (ascii latin-iso8859-9))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
386 (coding-system . (iso-8859-5))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
387 (documentation . ("\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
388 These languages are supported with the Latin-5 (ISO-8859-9) character set.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
389 " . describe-european-environment-map))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
390 ))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
391
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
392 ;; (defun setup-european-environment ()
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
393 ;; "Setup multilingual environment (MULE) for European languages users.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
394 ;; It actually reset MULE to the default status, and
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
395 ;; set quail-latin-1 as the default input method to be selected.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
396 ;; See also the documentation of setup-english-environment."
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
397 ;; (setup-english-environment)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
398 ;; (setq default-input-method '("European" . "quail-latin-1")))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
399
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
400 ;; (defun describe-european-support ()
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
401 ;; "Describe how Emacs support European languages."
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
402 ;; (interactive)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
403 ;; (describe-language-support-internal "European"))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
404
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
405 ;; (set-language-info-alist
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
406 ;; "European" '((setup-function . setup-european-environment)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
407 ;; (describe-function . describe-european-support)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
408 ;; (charset . (ascii latin-iso8859-1 latin-iso8859-2
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
409 ;; latin-iso8859-3 latin-iso8859-4 latin-iso8859-9))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
410 ;; (coding-system . (iso-8859-1 iso-8859-2 iso-8859-3
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
411 ;; iso-8859-4 iso-8859-9))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
412 ;; (sample-text
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
413 ;; . "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
414 ;; (documentation . "\
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
415 ;; Almost all of European languages are supported by the character sets and
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
416 ;; coding systems listed below.
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
417 ;; To input them, LEIM (Libraries for Emacs Input Methods) should have been
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
418 ;; installed.")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
419 ;; ))
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
420
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
421 ;;; european.el ends here