Mercurial > emacs
annotate lisp/international/mule-conf.el @ 88612:ec8e29bbca37
Various simplifications and
additions.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 23 May 2002 18:16:52 +0000 |
parents | bacfef7965e3 |
children | cb347c3671eb |
rev | line source |
---|---|
17070 | 1 ;;; mule-conf.el --- configure multilingual environment |
2 | |
3 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18302
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
88411 | 5 ;; Copyright (C) 2001, 2002 |
6 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
7 ;; Registration Number H13PRO009 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
8 ;; Copyright (C) 2002 Free Software Foundation, Inc. |
17070 | 9 |
88486 | 10 ;; Keywords: i18n, mule, multilingual, character set, coding system |
17070 | 11 |
12 ;; This file is part of GNU Emacs. | |
13 | |
14 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
15 ;; it under the terms of the GNU General Public License as published by | |
16 ;; the Free Software Foundation; either version 2, or (at your option) | |
17 ;; any later version. | |
18 | |
19 ;; GNU Emacs is distributed in the hope that it will be useful, | |
20 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 ;; GNU General Public License for more details. | |
23 | |
24 ;; You should have received a copy of the GNU General Public License | |
25 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
26 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
27 ;; Boston, MA 02111-1307, USA. | |
28 | |
29 ;;; Commentary: | |
30 | |
88575 | 31 ;; This file defines the Emacs charsets and some basic coding systems. |
32 ;; Other coding systems are defined in the files in directory | |
33 ;; lisp/language. | |
17070 | 34 |
35 ;;; Code: | |
36 | |
88575 | 37 ;; The ISO-IR registry is at http://www.itscj.ipsj.or.jp/ISO-IR/. |
38 ;; Standards docs equivalent to iso-2022 and iso-8859 are at | |
39 ;; http://www.ecma.ch/. | |
40 | |
17070 | 41 ;;; Definitions of character sets. |
42 | |
88486 | 43 ;; The charsets `ascii' and `unicode' are already defined in charset.c |
88411 | 44 ;; as below: |
45 ;; | |
46 ;; (define-charset 'ascii | |
47 ;; "" | |
48 ;; :dimension 1 | |
49 ;; :code-space [0 127] | |
50 ;; :iso-final-char ?A | |
51 ;; :ascii-compatible-p t | |
52 ;; :emacs-mule-id 0 | |
53 ;; :code-offset 0) | |
54 ;; | |
55 ;; (define-charset 'unicode | |
56 ;; "" | |
57 ;; :dimension 3 | |
58 ;; :code-space [0 255 0 255 0 16] | |
59 ;; :ascii-compatible-p t | |
60 ;; :code-offset 0) | |
61 ;; | |
62 ;; We now set :docstring, :short-name, and :long-name properties. | |
63 | |
64 (put-charset-property | |
65 'ascii :docstring "ASCII (ISO646 IRV)") | |
66 (put-charset-property | |
67 'ascii :short-name "ASCII") | |
68 (put-charset-property | |
69 'ascii :long-name "ASCII (ISO646 IRV)") | |
70 (put-charset-property | |
71 'unicode :docstring "Unicode (ISO10646)") | |
72 (put-charset-property | |
73 'unicode :short-name "Unicode") | |
74 (put-charset-property | |
75 'unicode :long-name "Unicode (ISO10646)") | |
17070 | 76 |
88411 | 77 (define-charset-alias 'ucs 'unicode) |
78 | |
79 (define-charset 'emacs | |
80 "Full Emacs characters." | |
81 :ascii-compatible-p t | |
82 :code-space [ 0 255 0 255 0 63 ] | |
83 :code-offset 0 | |
84 :supplementary-p t) | |
85 | |
86 (define-charset 'iso-8859-1 | |
88486 | 87 "Latin-1 (ISO/IEC 8859-1)" |
88411 | 88 :short-name "Latin-1" |
89 :ascii-compatible-p t | |
90 :code-space [0 255] | |
91 :code-offset 0) | |
17070 | 92 |
88411 | 93 (define-charset 'latin-iso8859-1 |
94 "Right-Hand Part of ISO/IEC 8859/1 (Latin-1): ISO-IR-100" | |
95 :short-name "RHP of Latin-1" | |
96 :long-name "RHP of ISO/IEC 8859/1 (Latin-1): ISO-IR-100" | |
97 :iso-final-char ?A | |
98 :emacs-mule-id 129 | |
99 :code-space [32 127] | |
100 :code-offset 160) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
101 |
88411 | 102 (define-charset 'eight-bit-control |
103 "8-bit control code (0x80..0x9F)" | |
104 :short-name "8-bit control code" | |
105 :code-space [128 159] | |
106 :code-offset 128) | |
107 | |
108 (define-charset 'eight-bit-graphic | |
109 "8-bit graphic code (0xA0..0xFF)" | |
110 :short-name "8-bit graphic code" | |
111 :code-space [160 255] | |
112 :code-offset 160) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
113 |
88411 | 114 (defmacro define-iso-single-byte-charset (symbol iso-symbol name nickname |
115 iso-ir iso-final | |
116 emacs-mule-id map) | |
117 "For internal use only." | |
118 `(progn | |
119 (define-charset ,symbol | |
120 ,name | |
121 :short-name ,nickname | |
122 :long-name ,name | |
123 :ascii-compatible-p t | |
124 :code-space [0 255] | |
125 :map ,map) | |
126 (if ,iso-symbol | |
127 (define-charset ,iso-symbol | |
128 (if ,iso-ir | |
129 (format "Right-Hand Part of %s (%s): ISO-IR-%d" | |
130 ,name ,nickname ,iso-ir) | |
131 (format "Right-Hand Part of %s (%s)" ,name ,nickname)) | |
132 :short-name (format "RHP of %s" ,name) | |
133 :long-name (format "RHP of %s (%s)" ,name ,nickname) | |
134 :iso-final-char ,iso-final | |
88486 | 135 :emacs-mule-id ,emacs-mule-id |
88411 | 136 :code-space [32 127] |
137 :parents (list (cons ,symbol 128)))))) | |
138 | |
139 (define-iso-single-byte-charset 'iso-8859-2 'latin-iso8859-2 | |
140 "ISO/IEC 8859/2" "Latin-2" 101 ?B 130 "8859-2") | |
141 | |
142 (define-iso-single-byte-charset 'iso-8859-3 'latin-iso8859-3 | |
143 "ISO/IEC 8859/3" "Latin-3" 109 ?C 131 "8859-3") | |
144 | |
145 (define-iso-single-byte-charset 'iso-8859-4 'latin-iso8859-4 | |
146 "ISO/IEC 8859/4" "Latin-4" 110 ?D 132 "8859-4") | |
147 | |
148 (define-iso-single-byte-charset 'iso-8859-5 'cyrillic-iso8859-5 | |
149 "ISO/IEC 8859/5" "Latin/Cyrillic" 144 ?L 140 "8859-5") | |
150 | |
151 (define-iso-single-byte-charset 'iso-8859-6 'arabic-iso8859-6 | |
152 "ISO/IEC 8859/6" "Latin/Arabic" 127 ?G 135 "8859-6") | |
153 | |
154 (define-iso-single-byte-charset 'iso-8859-7 'greek-iso8859-7 | |
155 "ISO/IEC 8859/7" "Latin/Greek" 126 ?F 134 "8859-7") | |
156 | |
157 (define-iso-single-byte-charset 'iso-8859-8 'hebrew-iso8859-8 | |
158 "ISO/IEC 8859/8" "Latin/Hebrew" 138 ?H 136 "8859-8") | |
159 | |
160 (define-iso-single-byte-charset 'iso-8859-9 'latin-iso8859-9 | |
161 "ISO/IEC 8859/9" "Latin-5" 148 ?M 141 "8859-9") | |
162 | |
88575 | 163 (define-iso-single-byte-charset 'iso-8859-10 'latin-iso8859-10 |
164 "ISO/IEC 8859/9" "Latin-6" 157 ?V nil "8859-10") | |
165 | |
166 ;; 8859-11, 12 don't (yet?) exist. | |
167 | |
88411 | 168 (define-iso-single-byte-charset 'iso-8859-13 'latin-iso8859-13 |
88575 | 169 "ISO/IEC 8859/13" "Latin-7" 179 ?Y nil "8859-13") |
88411 | 170 |
171 (define-iso-single-byte-charset 'iso-8859-14 'latin-iso8859-14 | |
172 "ISO/IEC 8859/14" "Latin-8" 199 ?_ 143 "8859-14") | |
173 | |
174 (define-iso-single-byte-charset 'iso-8859-15 'latin-iso8859-15 | |
175 "ISO/IEC 8859/15" "Latin-9" 203 ?b 142 "8859-15") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
176 |
88565 | 177 (define-iso-single-byte-charset 'iso-8859-16 'latin-iso8859-16 |
178 "ISO/IEC 8859/16" "Latin-9" 226 ?f nil "8859-16") | |
179 | |
88411 | 180 (define-charset 'thai-tis620 |
181 "TIS620.2533" | |
182 :short-name "TIS620.2533" | |
183 :iso-final-char ?T | |
184 :emacs-mule-id 133 | |
185 :code-space [32 127] | |
186 :code-offset #x0E00) | |
187 | |
188 (define-charset 'tis620-2533 | |
189 "TIS620.2533" | |
190 :short-name "TIS620.2533" | |
191 :ascii-compatible-p t | |
192 :code-space [0 255] | |
193 :parents '(ascii eight-bit-control (thai-tis620 . -128))) | |
194 | |
195 (define-charset 'jisx0201 | |
196 "JISX0201" | |
197 :short-name "JISX0201" | |
198 :long-name "JISX0201" | |
199 :code-space [33 254] | |
200 :map "jisx0201") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
201 |
88411 | 202 (define-charset 'latin-jisx0201 |
203 "Roman Part of JISX0201.1976" | |
204 :short-name "JISX0201 Roman" | |
205 :long-name "Japanese Roman (JISX0201.1976)" | |
206 :iso-final-char ?J | |
207 :emacs-mule-id 138 | |
208 :code-space [33 126] | |
209 :parents '(jisx0201)) | |
210 | |
211 (define-charset 'katakana-jisx0201 | |
212 "Katakana Part of JISX0201.1976" | |
213 :short-name "JISX0201 Katakana" | |
214 :long-name "Japanese Katakana (JISX0201.1976)" | |
215 :iso-final-char ?I | |
216 :emacs-mule-id 137 | |
217 :code-space [33 126] | |
218 :parents '((jisx0201 . #x80))) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
219 |
88411 | 220 (define-charset 'chinese-gb2312 |
221 "GB2312 Chinese simplified: ISO-IR-58" | |
222 :short-name "GB2312" | |
223 :long-name "GB2312: ISO-IR-58" | |
224 :iso-final-char ?A | |
225 :emacs-mule-id 145 | |
226 :code-space [33 126 33 126] | |
227 :code-offset #x110000 | |
228 :unify-map "gb2312-1980") | |
229 | |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
230 (define-charset 'chinese-gbk |
88486 | 231 "GBK Chinese simplified." |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
232 :short-name "GBK" |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
233 :long-name "GBK" |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
234 :code-space [#x40 #xFE #x81 #xFE] |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
235 :code-offset #x150000 |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
236 :unify-map "gbk") |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
237 |
88411 | 238 (define-charset 'chinese-cns11643-1 |
239 "CNS11643 Plane 1 Chinese traditional: ISO-IR-171" | |
240 :short-name "CNS11643-1" | |
241 :long-name "CNS11643-1 (Chinese traditional): ISO-IR-171" | |
242 :iso-final-char ?G | |
243 :emacs-mule-id 149 | |
244 :code-space [33 126 33 126] | |
245 :code-offset #x114000 | |
246 :unify-map "cns11643-1") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
247 |
88411 | 248 (define-charset 'chinese-cns11643-2 |
249 "CNS11643 Plane 2 Chinese traditional: ISO-IR-172" | |
250 :short-name "CNS11643-2" | |
251 :long-name "CNS11643-2 (Chinese traditional): ISO-IR-172" | |
252 :iso-final-char ?H | |
253 :emacs-mule-id 150 | |
254 :code-space [33 126 33 126] | |
255 :code-offset #x118000 | |
256 :unify-map "cns11643-2") | |
257 | |
258 (define-charset 'chinese-cns11643-3 | |
259 "CNS11643 Plane 3 Chinese Traditional: ISO-IR-183" | |
260 :short-name "CNS11643-3" | |
261 :long-name "CNS11643-3 (Chinese traditional): ISO-IR-183" | |
262 :iso-final-char ?I | |
263 :code-space [33 126 33 126] | |
264 :emacs-mule-id 246 | |
265 :code-offset #x11C000) | |
266 | |
267 (define-charset 'chinese-cns11643-4 | |
268 "CNS11643 Plane 4 Chinese Traditional: ISO-IR-184" | |
269 :short-name "CNS11643-4" | |
270 :long-name "CNS11643-4 (Chinese traditional): ISO-IR-184" | |
271 :iso-final-char ?J | |
272 :emacs-mule-id 247 | |
273 :code-space [33 126 33 126] | |
274 :code-offset #x120000) | |
275 | |
276 (define-charset 'chinese-cns11643-5 | |
277 "CNS11643 Plane 5 Chinese Traditional: ISO-IR-185" | |
278 :short-name "CNS11643-5" | |
279 :long-name "CNS11643-5 (Chinese traditional): ISO-IR-185" | |
280 :iso-final-char ?K | |
281 :emacs-mule-id 248 | |
282 :code-space [33 126 33 126] | |
283 :code-offset #x124000) | |
284 | |
285 (define-charset 'chinese-cns11643-6 | |
286 "CNS11643 Plane 6 Chinese Traditional: ISO-IR-186" | |
287 :short-name "CNS11643-6" | |
288 :long-name "CNS11643-6 (Chinese traditional): ISO-IR-186" | |
289 :iso-final-char ?L | |
290 :emacs-mule-id 249 | |
291 :code-space [33 126 33 126] | |
292 :code-offset #x128000) | |
293 | |
294 (define-charset 'chinese-cns11643-7 | |
295 "CNS11643 Plane 7 Chinese Traditional: ISO-IR-187" | |
296 :short-name "CNS11643-7" | |
297 :long-name "CNS11643-7 (Chinese traditional): ISO-IR-187" | |
298 :iso-final-char ?M | |
299 :emacs-mule-id 250 | |
300 :code-space [33 126 33 126] | |
301 :code-offset #x12C000) | |
302 | |
303 (define-charset 'big5 | |
304 "Big5 (Chinese traditional)" | |
305 :short-name "Big5" | |
306 :long-name "Big5" | |
307 :code-space [#x40 #xFE #xA1 #xFE] | |
308 :code-offset #x130000 | |
309 :unify-map "big5") | |
310 | |
311 (define-charset 'chinese-big5-1 | |
88486 | 312 "Frequently used part (A141-C67E) of Big5 (Chinese traditional)" |
88411 | 313 :short-name "Big5 (Level-1)" |
314 :long-name "Big5 (Level-1) A141-C67F" | |
315 :iso-final-char ?0 | |
316 :emacs-mule-id 152 | |
317 :code-space [#x21 #x7E #x21 #x7E] | |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
318 :code-offset #x135000 |
88411 | 319 :unify-map "big5-1") |
320 | |
321 (define-charset 'chinese-big5-2 | |
88486 | 322 "Less frequently used part (C940-FEFE) of Big5 (Chinese traditional)" |
88411 | 323 :short-name "Big5 (Level-2)" |
324 :long-name "Big5 (Level-2) C940-FEFE" | |
325 :iso-final-char ?1 | |
326 :emacs-mule-id 153 | |
327 :code-space [#x21 #x7E #x21 #x7E] | |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
328 :code-offset #x137800 |
88411 | 329 :unify-map "big5-2") |
330 | |
331 (define-charset 'japanese-jisx0208 | |
332 "JISX0208.1983/1990 Japanese Kanji: ISO-IR-87" | |
333 :short-name "JISX0208" | |
334 :long-name "JISX0208.1983/1990 (Japanese): ISO-IR-87" | |
335 :iso-final-char ?B | |
336 :emacs-mule-id 146 | |
337 :code-space [33 126 33 126] | |
338 :code-offset #x140000 | |
339 :unify-map "jisx0208-1990") | |
340 | |
341 (define-charset 'japanese-jisx0208-1978 | |
342 "JISX0208.1978 Japanese Kanji (so called \"old JIS\"): ISO-IR-42" | |
343 :short-name "JISX0208.1978" | |
344 :long-name "JISX0208.1978 (Japanese): ISO-IR-42" | |
345 :iso-final-char ?@ | |
346 :emacs-mule-id 144 | |
347 :code-space [33 126 33 126] | |
348 :code-offset #x144000 | |
349 :unify-map "jisx0208-1978") | |
17070 | 350 |
88411 | 351 (define-charset 'japanese-jisx0212 |
352 "JISX0212 Japanese supplement: ISO-IR-159" | |
353 :short-name "JISX0212" | |
354 :long-name "JISX0212 (Japanese): ISO-IR-159" | |
355 :iso-final-char ?D | |
356 :emacs-mule-id 148 | |
357 :code-space [33 126 33 126] | |
358 :code-offset #x148000 | |
359 :unify-map "jisx0212-1990") | |
360 | |
361 (define-charset 'japanese-jisx0213-1 | |
362 "JISX0213 Plane 1 (Japanese)" | |
363 :short-name "JISX0213-1" | |
364 :long-name "JISX0213-1" | |
365 :iso-final-char ?O | |
366 :emacs-mule-id 151 | |
367 :code-space [33 126 33 126] | |
368 :code-offset #x14C000) | |
17070 | 369 |
88411 | 370 (define-charset 'japanese-jisx0213-2 |
371 "JISX0213 Plane 2 (Japanese)" | |
372 :short-name "JISX0213-2" | |
88486 | 373 :long-name "JISX0213-2" |
88411 | 374 :iso-final-char ?P |
375 :emacs-mule-id 254 | |
376 :code-space [33 126 33 126] | |
377 :code-offset #x150000) | |
17070 | 378 |
88411 | 379 (define-charset 'korean-ksc5601 |
380 "KSC5601 Korean Hangul and Hanja: ISO-IR-149" | |
381 :short-name "KSC5601" | |
382 :long-name "KSC5601 (Korean): ISO-IR-149" | |
383 :iso-final-char ?C | |
384 :emacs-mule-id 147 | |
385 :code-space [33 126 33 126] | |
386 :map "ksc5601-1987") | |
17070 | 387 |
88411 | 388 (define-charset 'chinese-sisheng |
389 "SiSheng characters for PinYin/ZhuYin" | |
390 :short-name "SiSheng" | |
391 :long-name "SiSheng (PinYin/ZhuYin)" | |
392 :iso-final-char ?0 | |
393 :emacs-mule-id 160 | |
394 :code-space [33 126] | |
395 :code-offset #x200000) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
396 |
88411 | 397 (define-charset 'ipa |
398 "IPA (International Phonetic Association)" | |
399 :short-name "IPA" | |
400 :long-name "IPA" | |
401 :iso-final-char ?0 | |
402 :emacs-mule-id 161 | |
403 :code-space [32 127] | |
404 :code-offset #x200080) | |
17070 | 405 |
88411 | 406 (define-charset 'viscii |
407 "VISCII1.1" | |
408 :short-name "VISCII" | |
409 :long-name "VISCII 1.1" | |
410 :code-space [0 255] | |
411 :map "viscii") | |
412 | |
413 (define-charset 'vietnamese-viscii-lower | |
414 "VISCII1.1 lower-case" | |
415 :short-name "VISCII lower" | |
416 :long-name "VISCII lower-case" | |
417 :iso-final-char ?1 | |
418 :emacs-mule-id 162 | |
419 :code-space [32 127] | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
420 :code-offset #x200200 |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
421 :unify-map "viscii-lower") |
17070 | 422 |
88411 | 423 (define-charset 'vietnamese-viscii-upper |
424 "VISCII1.1 upper-case" | |
425 :short-name "VISCII upper" | |
426 :long-name "VISCII upper-case" | |
427 :iso-final-char ?2 | |
428 :emacs-mule-id 163 | |
429 :code-space [32 127] | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
430 :code-offset #x200280 |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
431 :unify-map "viscii-upper") |
88411 | 432 |
433 (define-charset 'vscii | |
434 "VSCII1.1" | |
435 :short-name "VSCII" | |
436 :long-name "VSCII" | |
437 :code-space [0 255] | |
438 :map "vscii") | |
439 | |
440 (define-charset 'koi8-r | |
441 "KOI8-R" | |
442 :short-name "KOI8-R" | |
443 :long-name "KOI8-R" | |
444 :ascii-compatible-p t | |
445 :code-space [0 255] | |
446 :map "koi8-r") | |
447 | |
448 (define-charset-alias 'koi8 'koi8-r) | |
449 | |
450 (define-charset 'alternativnyj | |
451 "ALTERNATIVNYJ" | |
452 :short-name "alternativnyj" | |
453 :long-name "alternativnyj" | |
454 :ascii-compatible-p t | |
455 :code-space [0 255] | |
456 :map "ibm866") | |
17070 | 457 |
88533 | 458 (define-charset 'koi8-u |
459 "KOI8-U" | |
460 :short-name "KOI8-U" | |
461 :long-name "KOI8-U" | |
462 :ascii-compatible-p t | |
463 :code-space [0 255] | |
464 :map "koi8-u") | |
465 | |
466 (define-charset 'koi8-t | |
467 "KOI8-T" | |
468 :short-name "KOI8-T" | |
469 :long-name "KOI8-T" | |
470 :ascii-compatible-p t | |
471 :code-space [0 255] | |
472 :map "koi8-t") | |
473 | |
474 (define-charset 'georgian-ps | |
475 "GEORGIAN-PS" | |
476 :short-name "GEORGIAN-PS" | |
477 :long-name "GEORGIAN-PS" | |
478 :ascii-compatible-p t | |
479 :code-space [0 255] | |
480 :map "georgian-ps") | |
481 | |
482 (define-charset 'windows-1250 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
483 "WINDOWS-1250 (Central Europe)" |
88533 | 484 :short-name "WINDOWS-1250" |
485 :long-name "WINDOWS-1250" | |
486 :ascii-compatible-p t | |
487 :code-space [0 255] | |
488 :map "windows-1250") | |
489 (define-charset-alias 'cp1250 'windows-1250) | |
490 | |
491 (define-charset 'windows-1251 | |
492 "WINDOWS-1251" | |
493 :short-name "WINDOWS-1251" | |
494 :long-name "WINDOWS-1251" | |
495 :ascii-compatible-p t | |
496 :code-space [0 255] | |
497 :map "windows-1251") | |
498 (define-charset-alias 'cp1251 'windows-1251) | |
499 | |
500 (define-charset 'windows-1252 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
501 "WINDOWS-1252 (Greek)" |
88533 | 502 :short-name "WINDOWS-1252" |
503 :long-name "WINDOWS-1252" | |
504 :ascii-compatible-p t | |
505 :code-space [0 255] | |
506 :map "windows-1252") | |
507 (define-charset-alias 'cp1252 'windows-1252) | |
508 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
509 (define-charset 'windows-1253 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
510 "WINDOWS-1253" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
511 :short-name "WINDOWS-1253" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
512 :long-name "WINDOWS-1253" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
513 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
514 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
515 :map "windows-1253") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
516 (define-charset-alias 'cp1253 'windows-1253) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
517 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
518 (define-charset 'windows-1254 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
519 "WINDOWS-1254" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
520 :short-name "WINDOWS-1254" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
521 :long-name "WINDOWS-1254" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
522 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
523 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
524 :map "windows-1254") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
525 (define-charset-alias 'cp1254 'windows-1254) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
526 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
527 (define-charset 'windows-1255 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
528 "WINDOWS-1255 (Hebrew)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
529 :short-name "WINDOWS-1255" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
530 :long-name "WINDOWS-1255" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
531 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
532 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
533 :map "windows-1255") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
534 (define-charset-alias 'cp1255 'windows-1255) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
535 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
536 (define-charset 'windows-1256 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
537 "WINDOWS-1256 (Arabic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
538 :short-name "WINDOWS-1256" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
539 :long-name "WINDOWS-1256" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
540 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
541 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
542 :map "windows-1256") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
543 (define-charset-alias 'cp1256 'windows-1256) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
544 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
545 (define-charset 'windows-1257 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
546 "WINDOWS-1257 (Baltic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
547 :short-name "WINDOWS-1257" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
548 :long-name "WINDOWS-1257" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
549 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
550 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
551 :map "windows-1257") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
552 (define-charset-alias 'cp1257 'windows-1257) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
553 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
554 (define-charset 'windows-1258 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
555 "WINDOWS-1258" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
556 :short-name "WINDOWS-1258" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
557 :long-name "WINDOWS-1258" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
558 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
559 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
560 :map "windows-1258") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
561 (define-charset-alias 'cp1258 'windows-1258) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
562 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
563 (define-charset 'next |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
564 "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
565 :short-name "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
566 :long-name "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
567 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
568 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
569 :map "next") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
570 |
88533 | 571 (define-charset 'cp1125 |
572 "CP1125" | |
573 :short-name "CP1125" | |
574 :long-name "CP1125" | |
575 :code-space [0 255] | |
576 :map "cp1125") | |
577 (define-charset-alias 'ruscii 'cp1125) | |
578 ;; Original name for cp1125, says Serhii Hlodin <hlodin@lutsk.bank.gov.ua> | |
579 (define-charset-alias 'cp866u 'cp1125) | |
580 | |
17070 | 581 ;; For Arabic, we need three different types of character sets. |
582 ;; Digits are of direction left-to-right and of width 1-column. | |
583 ;; Others are of direction right-to-left and of width 1-column or | |
584 ;; 2-column. | |
88411 | 585 (define-charset 'arabic-digit |
586 "Arabic digit" | |
587 :short-name "Arabic digit" | |
588 :long-name "Arabic digit" | |
589 :iso-final-char ?2 | |
590 :emacs-mule-id 164 | |
591 :code-space [34 42] | |
592 :code-offset #x0600) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
593 |
88411 | 594 (define-charset 'arabic-1-column |
595 "Arabic 1-column" | |
596 :short-name "Arabic 1-col" | |
597 :long-name "Arabic 1-column" | |
598 :iso-final-char ?3 | |
599 :emacs-mule-id 165 | |
600 :code-space [33 126] | |
601 :code-offset #x200100) | |
602 | |
603 (define-charset 'arabic-2-column | |
604 "Arabic 2-column" | |
605 :short-name "Arabic 2-col" | |
606 :long-name "Arabic 2-column" | |
607 :iso-final-char ?4 | |
608 :emacs-mule-id 224 | |
609 :code-space [33 126] | |
610 :code-offset #x200180) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
611 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
612 ;; Lao script. |
88411 | 613 ;; Codes 0x21..0x7E are mapped to Unicode U+0E81..U+0EDF. |
614 (define-charset 'lao | |
615 "Lao characters (ISO10646 0E81..0EDF)" | |
616 :short-name "Lao" | |
617 :long-name "Lao" | |
618 :iso-final-char ?1 | |
619 :emacs-mule-id 167 | |
620 :code-space [33 126] | |
621 :code-offset #x0E81) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
622 |
88411 | 623 (define-charset 'mule-lao |
624 "Lao characters (ISO10646 0E81..0EDF)" | |
625 :short-name "Lao" | |
626 :long-name "Lao" | |
627 :code-space [0 255] | |
628 :parents '(ascii eight-bit-control (lao . -128))) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
629 |
17070 | 630 |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
631 ;; Indian scripts. Symbolic charset for data exchange. Glyphs are |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
632 ;; not assigned. They are automatically converted to each Indian |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
633 ;; script which IS-13194 supports. |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
634 |
88411 | 635 (define-charset 'indian-is13194 |
636 "Generic Indian charset for data exchange with IS 13194" | |
637 :short-name "IS 13194" | |
638 :long-name "Indian IS 13194" | |
639 :iso-final-char ?5 | |
640 :emacs-mule-id 225 | |
641 :code-space [33 126] | |
642 :code-offset #x180000) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
643 |
88411 | 644 (define-charset 'indian-glyph |
645 "Glyphs for Indian characters." | |
646 :short-name "Indian glyph" | |
647 :long-name "Indian glyph" | |
648 :iso-final-char ?4 | |
649 :emacs-mule-id 240 | |
650 :code-space [32 127 32 127] | |
651 :code-offset #x180100) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
652 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
653 ;; Actual Glyph for 1-column width. |
88411 | 654 (define-charset 'indian-1-column |
655 "Indian charset for 1-column width glyphs" | |
656 :short-name "Indian 1-col" | |
657 :long-name "Indian 1 Column" | |
658 :iso-final-char ?6 | |
659 :emacs-mule-id 240 | |
660 :code-space [33 126 33 126] | |
661 :code-offset #x184000) | |
662 | |
663 ;; Actual Glyph for 2-column width. | |
664 (define-charset 'indian-2-column | |
665 "Indian charset for 2-column width glyphs" | |
666 :short-name "Indian 2-col" | |
667 :long-name "Indian 2 Column" | |
668 :iso-final-char ?5 | |
669 :emacs-mule-id 251 | |
670 :code-space [33 126 33 126] | |
671 :parents '(indian-1-column)) | |
672 | |
673 (define-charset 'tibetan | |
674 "Tibetan characters" | |
675 :iso-final-char ?7 | |
676 :short-name "Tibetan 2-col" | |
88486 | 677 :long-name "Tibetan 2 column" |
88411 | 678 :iso-final-char ?7 |
679 :emacs-mule-id 252 | |
680 :code-space [33 126 33 126] | |
681 :code-offset #x190000) | |
682 | |
683 (define-charset 'tibetan-1-column | |
684 "Tibetan 1 column glyph" | |
685 :short-name "Tibetan 1-col" | |
686 :long-name "Tibetan 1 column" | |
687 :iso-final-char ?8 | |
688 :emacs-mule-id 241 | |
689 :code-space [33 126 33 37] | |
690 :parents '(tibetan)) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
691 |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
692 ;; Subsets of Unicode. |
88411 | 693 (define-charset 'mule-unicode-2500-33ff |
694 "Unicode characters of the range U+2500..U+33FF." | |
695 :short-name "Unicode subset 2" | |
696 :long-name "Unicode subset (U+2500..U+33FF)" | |
697 :iso-final-char ?2 | |
698 :emacs-mule-id 242 | |
699 :code-space [#x20 #x7f #x20 #x47] | |
700 :code-offset #x2500) | |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
701 |
88411 | 702 (define-charset 'mule-unicode-e000-ffff |
703 "Unicode characters of the range U+E000..U+FFFF." | |
704 :short-name "Unicode subset 3" | |
705 :long-name "Unicode subset (U+E000+FFFF)" | |
706 :iso-final-char ?3 | |
707 :emacs-mule-id 243 | |
708 :code-space [#x20 #x7F #x20 #x75] | |
709 :code-offset #xE000) | |
17070 | 710 |
88411 | 711 (define-charset 'mule-unicode-0100-24ff |
712 "Unicode characters of the range U+0100..U+24FF." | |
713 :short-name "Unicode subset" | |
714 :long-name "Unicode subset (U+0100..U+24FF)" | |
715 :iso-final-char ?1 | |
716 :emacs-mule-id 244 | |
717 :code-space [#x20 #x7F #x20 #x7F] | |
718 :code-offset #x100) | |
17070 | 719 |
88411 | 720 (define-charset 'ethiopic |
88486 | 721 "Ethiopic characters for Amharic and Tigrigna." |
88411 | 722 :short-name "Ethiopic" |
723 :long-name "Ethiopic characters" | |
724 :iso-final-char ?3 | |
725 :emacs-mule-id 245 | |
726 :code-space [33 126 33 126] | |
727 :code-offset #x1A0000) | |
17070 | 728 |
88411 | 729 (define-charset 'mac-roman |
730 "Mac Roman charset" | |
731 :short-name "Mac Roman" | |
732 :long-name "Mac Roman" | |
733 :ascii-compatible-p t | |
734 :code-space [0 255] | |
735 :map "mac-roman") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
736 |
88533 | 737 ;; Fixme: modern EBCDIC variants, e.g. IBM00924? |
738 (define-charset 'ebcdic-us | |
739 "US version of EBCDIC" | |
740 :short-name "EBCDIC-US" | |
741 :long-name "EBCDIC-US" | |
742 :code-space [0 255] | |
743 :mime-charset 'ebcdic-us | |
744 :map "ebcdic-us") | |
745 | |
746 (define-charset 'ebcdic-uk | |
747 "UK version of EBCDIC" | |
748 :short-name "EBCDIC-UK" | |
749 :long-name "EBCDIC-UK" | |
750 :code-space [0 255] | |
751 :mime-charset 'ebcdic-uk | |
752 :map "ebcdic-uk") | |
753 | |
88575 | 754 (define-charset 'hp-roman8 |
755 "Encoding used by Hewlet-Packard printer software" | |
756 :short-name "HP-ROMAN8" | |
757 :long-name "HP-ROMAN8" | |
758 :ascii-compatible-p t | |
759 :code-space [0 255] | |
760 :map "hp-roman8") | |
761 | |
762 (define-charset 'adobe-standard-encoding | |
763 "Adobe `standard encoding' used in PostScript" | |
764 :short-name "ADOBE-STANDARD-ENCODING" | |
765 :long-name "ADOBE-STANDARD-ENCODING" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
766 :code-space [#x20 255] |
88575 | 767 :map "stdenc") |
768 | |
769 (define-charset 'symbol | |
770 "Adobe symbol encoding used in PostScript" | |
771 :short-name "ADOBE-SYMBOL" | |
772 :long-name "ADOBE-SYMBOL" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
773 :code-space [#x20 255] |
88575 | 774 :map "symbol") |
775 | |
776 (define-charset 'ibm850 | |
777 "DOS codepage 850" | |
778 :short-name "IBM850" | |
779 :long-name "IBM850" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
780 :ascii-compatible-p t |
88575 | 781 :code-space [0 255] |
782 :map "ibm850") | |
783 (define-charset-alias 'cp850 'ibm850) | |
784 | |
88411 | 785 (unify-charset 'chinese-gb2312) |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
786 (unify-charset 'chinese-gbk) |
88411 | 787 (unify-charset 'chinese-cns11643-1) |
788 (unify-charset 'chinese-cns11643-2) | |
789 (unify-charset 'big5) | |
790 (unify-charset 'chinese-big5-1) | |
791 (unify-charset 'chinese-big5-2) | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
792 (unify-charset 'vietnamese-viscii-lower) |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
793 (unify-charset 'vietnamese-viscii-upper) |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
794 |
17070 | 795 |
22126
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
796 ;; These are tables for translating characters on decoding and |
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
797 ;; encoding. |
88411 | 798 (setq standard-translation-table-for-decode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
799 |
22186
fc4aaf1b1772
Change term "character translation table" to "translation table".
Kenichi Handa <handa@m17n.org>
parents:
22126
diff
changeset
|
800 (setq standard-translation-table-for-encode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
801 |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
802 (defvar translation-table-for-input nil |
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
803 "If non-nil, a char table used to translate characters from input methods. |
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
804 \(Currently only used by Quail.)") |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
805 |
17070 | 806 ;;; Make fundamental coding systems. |
807 | |
88411 | 808 ;; The coding system `no-conversion' is already defined in coding.c as |
809 ;; below: | |
810 ;; | |
811 ;; (define-coding-system 'no-conversion | |
812 ;; "Do no conversion." | |
813 ;; :coding-type 'raw-text | |
814 ;; :mnemonic ?=) | |
18529
8e293f1a19a9
(binary): Define as coding system alias.
Richard M. Stallman <rms@gnu.org>
parents:
18519
diff
changeset
|
815 |
88411 | 816 (define-coding-system 'raw-text |
36518
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
817 "Raw text, which means text contains random 8-bit codes. |
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
818 Encoding text with this coding system produces the actual byte |
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
819 sequence of the text in buffers and strings. An exception is made for |
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
820 eight-bit-control characters. Each of them is encoded into a single |
36686
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
821 byte. |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
822 |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
823 When you visit a file with this coding, the file is read into a |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
824 unibyte buffer as is (except for EOL format), thus each byte of a file |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
825 is treated as a character." |
88411 | 826 :coding-type 'raw-text |
827 :mnemonic ?t) | |
828 | |
829 (define-coding-system 'undecided | |
830 "No conversion on encoding, automatic conversion on decoding" | |
831 :coding-type 'undecided | |
832 :mnemonic ?- | |
833 :charset-list '(ascii)) | |
834 | |
835 (define-coding-system-alias 'unix 'undecided-unix) | |
836 (define-coding-system-alias 'dos 'undecided-dos) | |
837 (define-coding-system-alias 'mac 'undecided-mac) | |
838 | |
839 (define-coding-system 'iso-latin-1 | |
840 "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)." | |
841 :coding-type 'iso-2022 | |
842 :mnemonic ?1 | |
843 :charset-list '(ascii latin-iso8859-1) | |
844 :designation [ascii latin-iso8859-1 nil nil] | |
845 :mime-charset 'iso-8859-1) | |
846 | |
847 (define-coding-system-alias 'iso-8859-1 'iso-latin-1) | |
848 (define-coding-system-alias 'latin-1 'iso-latin-1) | |
19607
ea0964347a40
(raw-text): New coding system. Set
Kenichi Handa <handa@m17n.org>
parents:
19372
diff
changeset
|
849 |
88411 | 850 ;; Coding systems not specific to each language environment. |
851 | |
852 (define-coding-system 'emacs-mule | |
853 "Emacs 21 internal format used in buffer and string." | |
854 :coding-type 'emacs-mule | |
88565 | 855 :charset-list 'emacs-mule |
88411 | 856 :mnemonic ?M) |
857 | |
858 (define-coding-system 'utf-8 | |
859 "UTF-8." | |
860 :coding-type 'utf-8 | |
861 :mnemonic ?U | |
862 :charset-list '(unicode)) | |
863 | |
864 (define-coding-system-alias 'mule-utf-8 'utf-8) | |
865 | |
866 (define-coding-system 'utf-8-emacs | |
88468 | 867 "Support for all Emacs characters (including non-Unicode characters)." |
88411 | 868 :coding-type 'utf-8 |
869 :mnemonic ?U | |
88503 | 870 :charset-list '(emacs) |
871 :mime-charset 'utf-8) | |
88411 | 872 |
873 (define-coding-system 'utf-16 | |
874 "UTF-16" | |
875 :coding-type 'utf-16 | |
876 :mnemonic ?U | |
88503 | 877 :charset-list '(unicode) |
878 :mime-charset 'utf-16) | |
17070 | 879 |
88411 | 880 (define-coding-system 'utf-16-le-nosig |
881 "UTF-16, little endian, no signature" | |
882 :coding-type 'utf-16 | |
883 :mnemonic ?U | |
884 :charset-list '(unicode) | |
885 :endian 'little) | |
886 | |
887 (define-coding-system 'utf-16-be-nosig | |
888 "UTF-16, big endian, no signature" | |
889 :coding-type 'utf-16 | |
890 :mnemonic ?U | |
891 :charset-list '(unicode) | |
892 :endian 'big) | |
893 | |
894 (define-coding-system 'utf-16-le | |
895 "UTF-16, little endian, with signature" | |
896 :coding-type 'utf-16 | |
897 :mnemonic ?U | |
898 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
899 :bom t |
88503 | 900 :endian 'little |
901 :mime-charset 'utf-16-le) | |
17070 | 902 |
88411 | 903 (define-coding-system 'utf-16-be |
904 "UTF-16, big endian, with signature" | |
905 :coding-type 'utf-16 | |
906 :mnemonic ?U | |
907 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
908 :bom t |
88503 | 909 :endian 'big |
910 :mime-charset 'utf-16-be) | |
88411 | 911 |
912 (define-coding-system 'iso-2022-7bit | |
913 "ISO 2022 based 7-bit encoding using only G0" | |
914 :coding-type 'iso-2022 | |
915 :mnemonic ?J | |
916 :charset-list 'iso-2022 | |
917 :designation [(ascii t) nil nil nil] | |
918 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation composition)) | |
919 | |
920 (define-coding-system 'iso-2022-7bit-ss2 | |
921 "ISO 2022 based 7-bit encoding using SS2 for 96-charset" | |
922 :coding-type 'iso-2022 | |
923 :mnemonic ?$ | |
924 :charset-list 'iso-2022 | |
925 :designation [(ascii 94) nil (nil 96) nil] | |
926 :flags '(short ascii-at-eol ascii-at-cntl 7-bit | |
927 designation single-shift composition)) | |
928 | |
929 (define-coding-system 'iso-2022-7bit-lock | |
930 "ISO-2022 coding system using Locking-Shift for 96-charset" | |
931 :coding-type 'iso-2022 | |
932 :mnemonic ?& | |
933 :charset-list 'iso-2022 | |
934 :designation [(ascii 94) (nil 96) nil nil] | |
935 :flags '(ascii-at-eol ascii-at-cntl 7-bit | |
936 designation locking-shift composition)) | |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
937 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
938 (define-coding-system-alias 'iso-2022-int-1 'iso-2022-7bit-lock) |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
939 |
88411 | 940 (define-coding-system 'iso-2022-7bit-lock-ss2 |
941 "Mixture of ISO-2022-JP, ISO-2022-KR, and ISO-2022-CN" | |
942 :coding-type 'iso-2022 | |
943 :mnemonic ?i | |
944 :charset-list '(ascii | |
945 japanese-jisx0208 japanese-jisx0208-1978 latin-jisx0201 | |
946 korean-ksc5601 | |
947 chinese-gb2312 | |
948 chinese-cns11643-1 chinese-cns11643-2 chinese-cns11643-3 | |
949 chinese-cns11643-4 chinese-cns11643-5 chinese-cns11643-6 | |
950 chinese-cns11643-7) | |
951 :designation [(ascii 94) | |
952 (nil korean-ksc5601 chinese-gb2312 chinese-cns11643-1 96) | |
953 (nil chinese-cns11643-2) | |
954 (nil chinese-cns11643-3 chinese-cns11643-4 chinese-cns11643-5 | |
955 chinese-cns11643-6 chinese-cns11643-7)] | |
956 :flags '(short ascii-at-eol ascii-at-cntl 7-bit locking-shift | |
957 single-shift init-bol)) | |
17070 | 958 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
959 (define-coding-system-alias 'iso-2022-cjk 'iso-2022-7bit-lock-ss2) |
17070 | 960 |
88411 | 961 (define-coding-system 'iso-2022-8bit-ss2 |
962 "ISO 2022 based 8-bit encoding using SS2 for 96-charset" | |
963 :coding-type 'iso-2022 | |
964 :mnemonic ?@ | |
965 :charset-list 'iso-2022 | |
966 :designation [(ascii 94) nil (nil 96) nil] | |
967 :flags '(ascii-at-eol ascii-at-cntl designation single-shift composition)) | |
17070 | 968 |
88411 | 969 (define-coding-system 'compound-text |
970 "Compound text based generic encoding for decoding unknown messages. | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
971 |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
972 This coding system does not support ICCCM Extended Segments." |
88411 | 973 :coding-type 'iso-2022 |
974 :mnemonic ?x | |
975 :charset-list 'iso-2022 | |
976 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] | |
977 :flags '(ascii-at-eol ascii-at-cntl | |
978 designation locking-shift single-shift composition) | |
88503 | 979 ;; Fixme: this isn't a valid MIME charset and has to be |
980 ;; special-cased elsewhere -- fx | |
88411 | 981 :mime-charset 'x-ctext) |
24619
6057f7a48050
(x-ctext): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
24308
diff
changeset
|
982 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
983 (define-coding-system-alias 'x-ctext 'compound-text) |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
984 (define-coding-system-alias 'ctext 'compound-text) |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
985 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
986 ;; Same as compound-text, but doesn't produce composition escape |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
987 ;; sequences. Used in post-read and pre-write conversions of |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
988 ;; compound-text-with-extensions, see mule.el. Note that this should |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
989 ;; not have a mime-charset property, to prevent it from showing up |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
990 ;; close to the beginning of coding systems ordered by priority. |
88411 | 991 (define-coding-system 'ctext-no-compositions 2 ?x |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
992 "Compound text based generic encoding for decoding unknown messages. |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
993 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
994 Like `compound-text', but does not produce escape sequences for compositions." |
88411 | 995 :coding-type 'iso-2022 |
996 :mnemonic ?x | |
997 :charset-list 'iso-2022 | |
998 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] | |
999 :flags '(ascii-at-eol ascii-at-cntl | |
1000 designation locking-shift single-shift)) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1001 |
88411 | 1002 (define-coding-system 'compound-text-with-extensions |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1003 "Compound text encoding with ICCCM Extended Segment extensions. |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1004 |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1005 This coding system should be used only for X selections. It is inappropriate |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1006 for decoding and encoding files, process I/O, etc." |
88411 | 1007 :coding-type 'raw-text |
1008 :mnemonic ?x | |
1009 :post-read-conversion 'ctext-post-read-conversion | |
1010 :pre-write-conversion 'ctext-pre-write-conversion) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1011 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1012 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1013 'x-ctext-with-extensions 'compound-text-with-extensions) |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1014 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1015 'ctext-with-extensions 'compound-text-with-extensions) |
33221
22ea1d0f7521
(compound-text): Define this coding system here. Make x-ctext and
Kenichi Handa <handa@m17n.org>
parents:
33044
diff
changeset
|
1016 |
88411 | 1017 (define-coding-system 'us-ascii |
1018 "Convert all characters but ASCII to `?'." | |
1019 :coding-type 'charset | |
1020 :mnemonic ?- | |
1021 :charset-list '(ascii) | |
1022 :default-char ?? | |
1023 :mime-charset 'us-ascii) | |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1024 |
88411 | 1025 (define-coding-system-alias 'iso-safe 'us-ascii) |
1026 | |
1027 ;; Use us-ascii for terminal output if some other coding system is not | |
23196 | 1028 ;; specified explicitly. |
88411 | 1029 (set-safe-terminal-coding-system-internal 'us-ascii) |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1030 |
17070 | 1031 ;; The other coding-systems are defined in each language specific |
88411 | 1032 ;; files under lisp/language. |
17070 | 1033 |
21713
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1034 ;; Normally, set coding system to `undecided' before reading a file. |
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1035 ;; Compiled Emacs Lisp files (*.elc) are not decoded at all, |
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1036 ;; but we regard them as containing multibyte characters. |
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1037 ;; Tar files are not decoded at all, but we treat them as raw bytes. |
17070 | 1038 |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1039 (setq file-coding-system-alist |
32228
6a5bae3ed1c1
file-coding-system-alist): Use \',
Dave Love <fx@gnu.org>
parents:
30260
diff
changeset
|
1040 '(("\\.elc\\'" . (emacs-mule . emacs-mule)) |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1041 ("\\.utf\\(-8\\)?\\'" . utf-8) |
88575 | 1042 ;; This is the defined default for XML documents. It may be |
1043 ;; overridden by a charset specification in the header. That | |
1044 ;; should be grokked by the auto-coding mechanism, but rms | |
1045 ;; vetoed that. -- fx | |
1046 ("\\.xml\\'" . utf-8) | |
34264
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1047 ;; We use raw-text for reading loaddefs.el so that if it |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1048 ;; happens to have DOS or Mac EOLs, they are converted to |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1049 ;; newlines. This is required to make the special treatment |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1050 ;; of the "\ newline" combination in loaddefs.el, which marks |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1051 ;; the beginning of a doc string, work. |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1052 ("\\(\\`\\|/\\)loaddefs.el\\'" . (raw-text . raw-text-unix)) |
32228
6a5bae3ed1c1
file-coding-system-alist): Use \',
Dave Love <fx@gnu.org>
parents:
30260
diff
changeset
|
1053 ("\\.tar\\'" . (no-conversion . no-conversion)) |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1054 ("" . (undecided . nil)))) |
17070 | 1055 |
1056 | |
1057 ;;; Setting coding categories and their priorities. | |
1058 | |
1059 ;; This setting is just to read an Emacs Lisp source files which | |
1060 ;; contain multilingual text while dumping Emacs. More appropriate | |
18302
6fbbef4e6c39
Change mnemonic letters for iso-2022-7bit-ss2 and
Kenichi Handa <handa@m17n.org>
parents:
18196
diff
changeset
|
1061 ;; values are set by the command `set-language-environment' for each |
17070 | 1062 ;; language environment. |
1063 | |
88411 | 1064 (set-coding-system-priority |
1065 'iso-latin-1 | |
1066 'utf-8 | |
1067 'iso-2022-7bit | |
1068 ) | |
17070 | 1069 |
19372 | 1070 |
1071 ;;; Miscellaneous settings. | |
88411 | 1072 |
1073 ;; Make all multibyte characters self-insert. | |
1074 (set-char-table-range (nth 1 global-map) | |
88494
2f99580a8762
Use decode-char instead of make-char.
Kenichi Handa <handa@m17n.org>
parents:
88486
diff
changeset
|
1075 (cons (decode-char 'ucs 128) (max-char)) |
88411 | 1076 'self-insert-command) |
1077 | |
19372 | 1078 (aset latin-extra-code-table ?\222 t) |
23260
1e8cac8d2c50
Call update-coding-systems-internal at the tail.
Kenichi Handa <handa@m17n.org>
parents:
23196
diff
changeset
|
1079 |
88600 | 1080 ;; The old code-pages library is obsoleted by coding systems based on |
1081 ;; the charsets defined in this file but might be required by user | |
1082 ;; code. | |
1083 (provide 'code-pages) | |
1084 | |
88575 | 1085 ;; Local variables: |
1086 ;; no-byte-compile: t | |
1087 ;; End: | |
1088 | |
17070 | 1089 ;;; mule-conf.el ends here |