Mercurial > emacs
annotate lisp/international/mule-conf.el @ 89211:6fc3dc5bec6c
(copy_text): Check C by ASCII_CHAR_P, not by
SINGLE_BYTE_CHAR_P.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 15 Oct 2002 01:18:45 +0000 |
parents | 492be7d36b2a |
children | bf10578caec8 |
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 | |
88666 | 37 ;;; Remarks |
38 | |
88575 | 39 ;; The ISO-IR registry is at http://www.itscj.ipsj.or.jp/ISO-IR/. |
40 ;; Standards docs equivalent to iso-2022 and iso-8859 are at | |
41 ;; http://www.ecma.ch/. | |
42 | |
88717 | 43 ;; FWIW, http://www.microsoft.com/globaldev/ lists the following for |
44 ;; MS Windows, which are presumably the only charsets we really need | |
45 ;; to worry about on such systems: | |
88666 | 46 ;; `OEM codepages': 437, 720, 737, 775, 850, 852, 855, 857, 858, 862, 866 |
47 ;; `Windows codepages': 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, | |
48 ;; 1258, 874, 932, 936, 949, 950 | |
49 | |
17070 | 50 ;;; Definitions of character sets. |
51 | |
89089 | 52 ;; The charsets `ascii', `unicode' and `eight-bit' are already defined |
53 ;; in charset.c as below: | |
88411 | 54 ;; |
55 ;; (define-charset 'ascii | |
56 ;; "" | |
57 ;; :dimension 1 | |
58 ;; :code-space [0 127] | |
89089 | 59 ;; :iso-final-char ?B |
88411 | 60 ;; :ascii-compatible-p t |
61 ;; :emacs-mule-id 0 | |
62 ;; :code-offset 0) | |
63 ;; | |
64 ;; (define-charset 'unicode | |
65 ;; "" | |
66 ;; :dimension 3 | |
67 ;; :code-space [0 255 0 255 0 16] | |
68 ;; :ascii-compatible-p t | |
69 ;; :code-offset 0) | |
70 ;; | |
89089 | 71 ;; (define-charset 'eight-bit |
72 ;; "" | |
73 ;; :dimension 1 | |
74 ;; :code-space [128 255] | |
75 ;; :code-offset #x3FFF80) | |
76 ;; | |
89091 | 77 ;; (define-charset 'eight-bit |
78 ;; "" | |
79 ;; :dimension 1 | |
80 ;; :code-space [128 255] | |
81 ;; :code-offset #x3FFF80) | |
82 ;; | |
88411 | 83 ;; We now set :docstring, :short-name, and :long-name properties. |
84 | |
85 (put-charset-property | |
86 'ascii :docstring "ASCII (ISO646 IRV)") | |
87 (put-charset-property | |
88 'ascii :short-name "ASCII") | |
89 (put-charset-property | |
90 'ascii :long-name "ASCII (ISO646 IRV)") | |
91 (put-charset-property | |
89050
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
92 'iso-8859-1 :docstring "Latin-1 (ISO/IEC 8859-1)") |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
93 (put-charset-property |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
94 'iso-8859-1 :short-name "Latin-1") |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
95 (put-charset-property |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
96 'iso-8859-1 :long-name "Latin-1") |
c00be25be9ad
Don't define the charset iso-8859-1 here, just setup its properties.
Kenichi Handa <handa@m17n.org>
parents:
89041
diff
changeset
|
97 (put-charset-property |
88411 | 98 'unicode :docstring "Unicode (ISO10646)") |
99 (put-charset-property | |
100 'unicode :short-name "Unicode") | |
101 (put-charset-property | |
102 'unicode :long-name "Unicode (ISO10646)") | |
89089 | 103 (put-charset-property 'eight-bit :docstring "Raw bytes 0-255") |
104 (put-charset-property 'eight-bit :short-name "Raw bytes") | |
17070 | 105 |
88411 | 106 (define-charset-alias 'ucs 'unicode) |
107 | |
108 (define-charset 'emacs | |
88647 | 109 "Full Emacs characters" |
88411 | 110 :ascii-compatible-p t |
111 :code-space [ 0 255 0 255 0 63 ] | |
112 :code-offset 0 | |
113 :supplementary-p t) | |
114 | |
115 (define-charset 'latin-iso8859-1 | |
116 "Right-Hand Part of ISO/IEC 8859/1 (Latin-1): ISO-IR-100" | |
117 :short-name "RHP of Latin-1" | |
118 :long-name "RHP of ISO/IEC 8859/1 (Latin-1): ISO-IR-100" | |
119 :iso-final-char ?A | |
120 :emacs-mule-id 129 | |
121 :code-space [32 127] | |
122 :code-offset 160) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
123 |
88735 | 124 ;; Name perhaps not ideal, but is XEmacs-compatible. |
125 (define-charset 'control-1 | |
88411 | 126 "8-bit control code (0x80..0x9F)" |
127 :short-name "8-bit control code" | |
128 :code-space [128 159] | |
129 :code-offset 128) | |
130 | |
88735 | 131 (define-charset 'eight-bit-control |
132 "Raw bytes in the range 0x80..0x9F (usually produced from invalid encodings)" | |
133 :short-name "Raw bytes 0x80..0x9F" | |
134 :code-space [128 159] | |
135 :code-offset #x3FFF80) ; see character.h | |
136 | |
88411 | 137 (define-charset 'eight-bit-graphic |
88735 | 138 "Raw bytes in the range 0xA0..0xFF (usually produced from invalid encodings)" |
139 :short-name "Raw bytes 0xA0..0xFF" | |
88411 | 140 :code-space [160 255] |
88735 | 141 :code-offset #x3FFFA0) ; see character.h |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
142 |
88411 | 143 (defmacro define-iso-single-byte-charset (symbol iso-symbol name nickname |
144 iso-ir iso-final | |
145 emacs-mule-id map) | |
146 `(progn | |
147 (define-charset ,symbol | |
148 ,name | |
149 :short-name ,nickname | |
150 :long-name ,name | |
151 :ascii-compatible-p t | |
152 :code-space [0 255] | |
153 :map ,map) | |
154 (if ,iso-symbol | |
155 (define-charset ,iso-symbol | |
156 (if ,iso-ir | |
157 (format "Right-Hand Part of %s (%s): ISO-IR-%d" | |
158 ,name ,nickname ,iso-ir) | |
159 (format "Right-Hand Part of %s (%s)" ,name ,nickname)) | |
160 :short-name (format "RHP of %s" ,name) | |
161 :long-name (format "RHP of %s (%s)" ,name ,nickname) | |
162 :iso-final-char ,iso-final | |
88486 | 163 :emacs-mule-id ,emacs-mule-id |
88411 | 164 :code-space [32 127] |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
165 :subset (list ,symbol 160 255 -128))))) |
88411 | 166 |
167 (define-iso-single-byte-charset 'iso-8859-2 'latin-iso8859-2 | |
168 "ISO/IEC 8859/2" "Latin-2" 101 ?B 130 "8859-2") | |
169 | |
170 (define-iso-single-byte-charset 'iso-8859-3 'latin-iso8859-3 | |
171 "ISO/IEC 8859/3" "Latin-3" 109 ?C 131 "8859-3") | |
172 | |
173 (define-iso-single-byte-charset 'iso-8859-4 'latin-iso8859-4 | |
174 "ISO/IEC 8859/4" "Latin-4" 110 ?D 132 "8859-4") | |
175 | |
176 (define-iso-single-byte-charset 'iso-8859-5 'cyrillic-iso8859-5 | |
177 "ISO/IEC 8859/5" "Latin/Cyrillic" 144 ?L 140 "8859-5") | |
178 | |
179 (define-iso-single-byte-charset 'iso-8859-6 'arabic-iso8859-6 | |
180 "ISO/IEC 8859/6" "Latin/Arabic" 127 ?G 135 "8859-6") | |
181 | |
182 (define-iso-single-byte-charset 'iso-8859-7 'greek-iso8859-7 | |
183 "ISO/IEC 8859/7" "Latin/Greek" 126 ?F 134 "8859-7") | |
184 | |
185 (define-iso-single-byte-charset 'iso-8859-8 'hebrew-iso8859-8 | |
186 "ISO/IEC 8859/8" "Latin/Hebrew" 138 ?H 136 "8859-8") | |
187 | |
188 (define-iso-single-byte-charset 'iso-8859-9 'latin-iso8859-9 | |
189 "ISO/IEC 8859/9" "Latin-5" 148 ?M 141 "8859-9") | |
190 | |
88575 | 191 (define-iso-single-byte-charset 'iso-8859-10 'latin-iso8859-10 |
88671 | 192 "ISO/IEC 8859/10" "Latin-6" 157 ?V nil "8859-10") |
88575 | 193 |
88671 | 194 ;; http://www.nectec.or.th/it-standards/iso8859-11/ |
195 ;; http://www.cwi.nl/~dik/english/codes/8859.html says this is tis-620 | |
196 ;; plus nbsp | |
197 (define-iso-single-byte-charset 'iso-8859-11 'thai-iso8859-11 | |
198 "ISO/IEC 8859/11" "Latin/Thai" 166 ?T nil "8859-11") | |
199 | |
200 ;; 8859-12 doesn't (yet?) exist. | |
88575 | 201 |
88411 | 202 (define-iso-single-byte-charset 'iso-8859-13 'latin-iso8859-13 |
88575 | 203 "ISO/IEC 8859/13" "Latin-7" 179 ?Y nil "8859-13") |
88411 | 204 |
205 (define-iso-single-byte-charset 'iso-8859-14 'latin-iso8859-14 | |
206 "ISO/IEC 8859/14" "Latin-8" 199 ?_ 143 "8859-14") | |
207 | |
208 (define-iso-single-byte-charset 'iso-8859-15 'latin-iso8859-15 | |
209 "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
|
210 |
88565 | 211 (define-iso-single-byte-charset 'iso-8859-16 'latin-iso8859-16 |
88638 | 212 "ISO/IEC 8859/16" "Latin-10" 226 ?f nil "8859-16") |
88565 | 213 |
88647 | 214 ;; No point in keeping it around. |
215 (fmakunbound 'define-iso-single-byte-charset) | |
216 | |
88671 | 217 ;; Can this be shared with 8859-11? |
89089 | 218 ;; N.b. not all of these are defined unicodes. |
88411 | 219 (define-charset 'thai-tis620 |
220 "TIS620.2533" | |
221 :short-name "TIS620.2533" | |
222 :iso-final-char ?T | |
223 :emacs-mule-id 133 | |
224 :code-space [32 127] | |
225 :code-offset #x0E00) | |
226 | |
88671 | 227 ;; Fixme: doc for this, c.f. above |
88411 | 228 (define-charset 'tis620-2533 |
229 "TIS620.2533" | |
230 :short-name "TIS620.2533" | |
231 :ascii-compatible-p t | |
232 :code-space [0 255] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
233 :superset '(ascii eight-bit-control (thai-tis620 . 128))) |
88411 | 234 |
235 (define-charset 'jisx0201 | |
236 "JISX0201" | |
237 :short-name "JISX0201" | |
238 :code-space [33 254] | |
239 :map "jisx0201") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
240 |
88411 | 241 (define-charset 'latin-jisx0201 |
242 "Roman Part of JISX0201.1976" | |
243 :short-name "JISX0201 Roman" | |
244 :long-name "Japanese Roman (JISX0201.1976)" | |
245 :iso-final-char ?J | |
246 :emacs-mule-id 138 | |
247 :code-space [33 126] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
248 :subset '(jisx0201 33 126 0)) |
88411 | 249 |
250 (define-charset 'katakana-jisx0201 | |
251 "Katakana Part of JISX0201.1976" | |
252 :short-name "JISX0201 Katakana" | |
253 :long-name "Japanese Katakana (JISX0201.1976)" | |
254 :iso-final-char ?I | |
255 :emacs-mule-id 137 | |
256 :code-space [33 126] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
257 :subset '(jisx0201 161 254 -128)) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
258 |
88411 | 259 (define-charset 'chinese-gb2312 |
260 "GB2312 Chinese simplified: ISO-IR-58" | |
261 :short-name "GB2312" | |
262 :long-name "GB2312: ISO-IR-58" | |
263 :iso-final-char ?A | |
264 :emacs-mule-id 145 | |
265 :code-space [33 126 33 126] | |
266 :code-offset #x110000 | |
267 :unify-map "gb2312-1980") | |
268 | |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
269 (define-charset 'chinese-gbk |
88486 | 270 "GBK Chinese simplified." |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
271 :short-name "GBK" |
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
272 :code-space [#x40 #xFE #x81 #xFE] |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
273 :code-offset #x160000 |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
274 :unify-map "gbk") |
88666 | 275 (define-charset-alias 'cp936 'chinese-gbk) |
88717 | 276 (define-charset-alias 'windows-936 'chinese-gbk) |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
277 |
88411 | 278 (define-charset 'chinese-cns11643-1 |
279 "CNS11643 Plane 1 Chinese traditional: ISO-IR-171" | |
280 :short-name "CNS11643-1" | |
281 :long-name "CNS11643-1 (Chinese traditional): ISO-IR-171" | |
282 :iso-final-char ?G | |
283 :emacs-mule-id 149 | |
284 :code-space [33 126 33 126] | |
285 :code-offset #x114000 | |
286 :unify-map "cns11643-1") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
287 |
88411 | 288 (define-charset 'chinese-cns11643-2 |
289 "CNS11643 Plane 2 Chinese traditional: ISO-IR-172" | |
290 :short-name "CNS11643-2" | |
291 :long-name "CNS11643-2 (Chinese traditional): ISO-IR-172" | |
292 :iso-final-char ?H | |
293 :emacs-mule-id 150 | |
294 :code-space [33 126 33 126] | |
295 :code-offset #x118000 | |
296 :unify-map "cns11643-2") | |
297 | |
298 (define-charset 'chinese-cns11643-3 | |
299 "CNS11643 Plane 3 Chinese Traditional: ISO-IR-183" | |
300 :short-name "CNS11643-3" | |
301 :long-name "CNS11643-3 (Chinese traditional): ISO-IR-183" | |
302 :iso-final-char ?I | |
303 :code-space [33 126 33 126] | |
304 :emacs-mule-id 246 | |
305 :code-offset #x11C000) | |
306 | |
307 (define-charset 'chinese-cns11643-4 | |
308 "CNS11643 Plane 4 Chinese Traditional: ISO-IR-184" | |
309 :short-name "CNS11643-4" | |
310 :long-name "CNS11643-4 (Chinese traditional): ISO-IR-184" | |
311 :iso-final-char ?J | |
312 :emacs-mule-id 247 | |
313 :code-space [33 126 33 126] | |
314 :code-offset #x120000) | |
315 | |
316 (define-charset 'chinese-cns11643-5 | |
317 "CNS11643 Plane 5 Chinese Traditional: ISO-IR-185" | |
318 :short-name "CNS11643-5" | |
319 :long-name "CNS11643-5 (Chinese traditional): ISO-IR-185" | |
320 :iso-final-char ?K | |
321 :emacs-mule-id 248 | |
322 :code-space [33 126 33 126] | |
323 :code-offset #x124000) | |
324 | |
325 (define-charset 'chinese-cns11643-6 | |
326 "CNS11643 Plane 6 Chinese Traditional: ISO-IR-186" | |
327 :short-name "CNS11643-6" | |
328 :long-name "CNS11643-6 (Chinese traditional): ISO-IR-186" | |
329 :iso-final-char ?L | |
330 :emacs-mule-id 249 | |
331 :code-space [33 126 33 126] | |
332 :code-offset #x128000) | |
333 | |
334 (define-charset 'chinese-cns11643-7 | |
335 "CNS11643 Plane 7 Chinese Traditional: ISO-IR-187" | |
336 :short-name "CNS11643-7" | |
337 :long-name "CNS11643-7 (Chinese traditional): ISO-IR-187" | |
338 :iso-final-char ?M | |
339 :emacs-mule-id 250 | |
340 :code-space [33 126 33 126] | |
341 :code-offset #x12C000) | |
342 | |
343 (define-charset 'big5 | |
344 "Big5 (Chinese traditional)" | |
345 :short-name "Big5" | |
346 :code-space [#x40 #xFE #xA1 #xFE] | |
347 :code-offset #x130000 | |
348 :unify-map "big5") | |
88666 | 349 ;; Fixme: AKA cp950 according to |
350 ;; <URL:http://www.microsoft.com/globaldev/reference/WinCP.asp>. Is | |
351 ;; that correct? | |
88411 | 352 |
353 (define-charset 'chinese-big5-1 | |
88486 | 354 "Frequently used part (A141-C67E) of Big5 (Chinese traditional)" |
88411 | 355 :short-name "Big5 (Level-1)" |
356 :long-name "Big5 (Level-1) A141-C67F" | |
357 :iso-final-char ?0 | |
358 :emacs-mule-id 152 | |
359 :code-space [#x21 #x7E #x21 #x7E] | |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
360 :code-offset #x135000 |
88411 | 361 :unify-map "big5-1") |
362 | |
363 (define-charset 'chinese-big5-2 | |
88486 | 364 "Less frequently used part (C940-FEFE) of Big5 (Chinese traditional)" |
88411 | 365 :short-name "Big5 (Level-2)" |
366 :long-name "Big5 (Level-2) C940-FEFE" | |
367 :iso-final-char ?1 | |
368 :emacs-mule-id 153 | |
369 :code-space [#x21 #x7E #x21 #x7E] | |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
370 :code-offset #x137800 |
88411 | 371 :unify-map "big5-2") |
372 | |
373 (define-charset 'japanese-jisx0208 | |
374 "JISX0208.1983/1990 Japanese Kanji: ISO-IR-87" | |
375 :short-name "JISX0208" | |
376 :long-name "JISX0208.1983/1990 (Japanese): ISO-IR-87" | |
377 :iso-final-char ?B | |
378 :emacs-mule-id 146 | |
379 :code-space [33 126 33 126] | |
380 :code-offset #x140000 | |
381 :unify-map "jisx0208-1990") | |
382 | |
383 (define-charset 'japanese-jisx0208-1978 | |
384 "JISX0208.1978 Japanese Kanji (so called \"old JIS\"): ISO-IR-42" | |
385 :short-name "JISX0208.1978" | |
386 :long-name "JISX0208.1978 (Japanese): ISO-IR-42" | |
387 :iso-final-char ?@ | |
388 :emacs-mule-id 144 | |
389 :code-space [33 126 33 126] | |
390 :code-offset #x144000 | |
391 :unify-map "jisx0208-1978") | |
17070 | 392 |
88411 | 393 (define-charset 'japanese-jisx0212 |
394 "JISX0212 Japanese supplement: ISO-IR-159" | |
395 :short-name "JISX0212" | |
396 :long-name "JISX0212 (Japanese): ISO-IR-159" | |
397 :iso-final-char ?D | |
398 :emacs-mule-id 148 | |
399 :code-space [33 126 33 126] | |
400 :code-offset #x148000 | |
401 :unify-map "jisx0212-1990") | |
402 | |
403 (define-charset 'japanese-jisx0213-1 | |
404 "JISX0213 Plane 1 (Japanese)" | |
405 :short-name "JISX0213-1" | |
406 :iso-final-char ?O | |
407 :emacs-mule-id 151 | |
88760 | 408 :unify-map "jisx0213-1" |
88411 | 409 :code-space [33 126 33 126] |
410 :code-offset #x14C000) | |
17070 | 411 |
88411 | 412 (define-charset 'japanese-jisx0213-2 |
413 "JISX0213 Plane 2 (Japanese)" | |
414 :short-name "JISX0213-2" | |
415 :iso-final-char ?P | |
416 :emacs-mule-id 254 | |
88760 | 417 :unify-map "jisx0213-2" |
88411 | 418 :code-space [33 126 33 126] |
419 :code-offset #x150000) | |
17070 | 420 |
88411 | 421 (define-charset 'korean-ksc5601 |
422 "KSC5601 Korean Hangul and Hanja: ISO-IR-149" | |
423 :short-name "KSC5601" | |
424 :long-name "KSC5601 (Korean): ISO-IR-149" | |
425 :iso-final-char ?C | |
426 :emacs-mule-id 147 | |
427 :code-space [33 126 33 126] | |
88735 | 428 :code-offset #x279f94 |
429 :unify-map "ksc5601-1987") | |
17070 | 430 |
88666 | 431 ;; Fixme: Korean cp949/UHC |
432 | |
88411 | 433 (define-charset 'chinese-sisheng |
434 "SiSheng characters for PinYin/ZhuYin" | |
435 :short-name "SiSheng" | |
436 :long-name "SiSheng (PinYin/ZhuYin)" | |
437 :iso-final-char ?0 | |
438 :emacs-mule-id 160 | |
439 :code-space [33 126] | |
88704 | 440 :unify-map "sisheng" |
88411 | 441 :code-offset #x200000) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
442 |
88735 | 443 ;; A subset of the 1989 version of IPA. It consists of the consonant |
444 ;; signs used in English, French, German and Italian, and all vowels | |
445 ;; signs in the table. [says old MULE doc] | |
88411 | 446 (define-charset 'ipa |
447 "IPA (International Phonetic Association)" | |
448 :short-name "IPA" | |
449 :iso-final-char ?0 | |
450 :emacs-mule-id 161 | |
88704 | 451 :unify-map "ipa" |
88411 | 452 :code-space [32 127] |
453 :code-offset #x200080) | |
17070 | 454 |
88411 | 455 (define-charset 'viscii |
456 "VISCII1.1" | |
457 :short-name "VISCII" | |
458 :long-name "VISCII 1.1" | |
459 :code-space [0 255] | |
460 :map "viscii") | |
461 | |
462 (define-charset 'vietnamese-viscii-lower | |
463 "VISCII1.1 lower-case" | |
464 :short-name "VISCII lower" | |
465 :long-name "VISCII lower-case" | |
466 :iso-final-char ?1 | |
467 :emacs-mule-id 162 | |
468 :code-space [32 127] | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
469 :code-offset #x200200 |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
470 :unify-map "viscii-lower") |
17070 | 471 |
88411 | 472 (define-charset 'vietnamese-viscii-upper |
473 "VISCII1.1 upper-case" | |
474 :short-name "VISCII upper" | |
475 :long-name "VISCII upper-case" | |
476 :iso-final-char ?2 | |
477 :emacs-mule-id 163 | |
478 :code-space [32 127] | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
479 :code-offset #x200280 |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
480 :unify-map "viscii-upper") |
88411 | 481 |
482 (define-charset 'vscii | |
483 "VSCII1.1" | |
484 :short-name "VSCII" | |
485 :code-space [0 255] | |
486 :map "vscii") | |
487 | |
88727 | 488 ;; Fixme: see note in tcvn.map about combining characters |
489 (define-charset 'tcvn-5712 | |
490 "TCVN-5712" | |
491 :code-space [0 255] | |
492 :map "tcvn") | |
493 | |
88411 | 494 (define-charset 'koi8-r |
495 "KOI8-R" | |
496 :short-name "KOI8-R" | |
497 :ascii-compatible-p t | |
498 :code-space [0 255] | |
499 :map "koi8-r") | |
500 | |
501 (define-charset-alias 'koi8 'koi8-r) | |
502 | |
503 (define-charset 'alternativnyj | |
504 "ALTERNATIVNYJ" | |
505 :short-name "alternativnyj" | |
506 :ascii-compatible-p t | |
507 :code-space [0 255] | |
89200 | 508 :map "alternativnyj") |
509 | |
510 (define-charset 'cp866 | |
511 "CP866" | |
512 :short-name "cp866" | |
513 :ascii-compatible-p t | |
514 :code-space [0 255] | |
88411 | 515 :map "ibm866") |
89200 | 516 (define-charset-alias 'ibm866 'cp866) |
17070 | 517 |
88533 | 518 (define-charset 'koi8-u |
519 "KOI8-U" | |
520 :short-name "KOI8-U" | |
521 :ascii-compatible-p t | |
522 :code-space [0 255] | |
523 :map "koi8-u") | |
524 | |
525 (define-charset 'koi8-t | |
526 "KOI8-T" | |
527 :short-name "KOI8-T" | |
528 :ascii-compatible-p t | |
529 :code-space [0 255] | |
530 :map "koi8-t") | |
531 | |
532 (define-charset 'georgian-ps | |
533 "GEORGIAN-PS" | |
534 :short-name "GEORGIAN-PS" | |
535 :ascii-compatible-p t | |
536 :code-space [0 255] | |
537 :map "georgian-ps") | |
538 | |
539 (define-charset 'windows-1250 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
540 "WINDOWS-1250 (Central Europe)" |
88533 | 541 :short-name "WINDOWS-1250" |
542 :ascii-compatible-p t | |
543 :code-space [0 255] | |
544 :map "windows-1250") | |
545 (define-charset-alias 'cp1250 'windows-1250) | |
546 | |
547 (define-charset 'windows-1251 | |
88666 | 548 "WINDOWS-1251 (Cyrillic)" |
88533 | 549 :short-name "WINDOWS-1251" |
550 :ascii-compatible-p t | |
551 :code-space [0 255] | |
552 :map "windows-1251") | |
553 (define-charset-alias 'cp1251 'windows-1251) | |
554 | |
555 (define-charset 'windows-1252 | |
88666 | 556 "WINDOWS-1252 (Latin I)" |
88533 | 557 :short-name "WINDOWS-1252" |
558 :ascii-compatible-p t | |
559 :code-space [0 255] | |
560 :map "windows-1252") | |
561 (define-charset-alias 'cp1252 'windows-1252) | |
562 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
563 (define-charset 'windows-1253 |
88666 | 564 "WINDOWS-1253 (Greek)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
565 :short-name "WINDOWS-1253" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
566 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
567 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
568 :map "windows-1253") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
569 (define-charset-alias 'cp1253 'windows-1253) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
570 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
571 (define-charset 'windows-1254 |
88666 | 572 "WINDOWS-1254 (Turkish)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
573 :short-name "WINDOWS-1254" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
574 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
575 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
576 :map "windows-1254") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
577 (define-charset-alias 'cp1254 'windows-1254) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
578 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
579 (define-charset 'windows-1255 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
580 "WINDOWS-1255 (Hebrew)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
581 :short-name "WINDOWS-1255" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
582 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
583 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
584 :map "windows-1255") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
585 (define-charset-alias 'cp1255 'windows-1255) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
586 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
587 (define-charset 'windows-1256 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
588 "WINDOWS-1256 (Arabic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
589 :short-name "WINDOWS-1256" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
590 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
591 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
592 :map "windows-1256") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
593 (define-charset-alias 'cp1256 'windows-1256) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
594 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
595 (define-charset 'windows-1257 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
596 "WINDOWS-1257 (Baltic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
597 :short-name "WINDOWS-1257" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
598 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
599 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
600 :map "windows-1257") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
601 (define-charset-alias 'cp1257 'windows-1257) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
602 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
603 (define-charset 'windows-1258 |
88666 | 604 "WINDOWS-1258 (Viet Nam)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
605 :short-name "WINDOWS-1258" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
606 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
607 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
608 :map "windows-1258") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
609 (define-charset-alias 'cp1258 'windows-1258) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
610 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
611 (define-charset 'next |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
612 "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
613 :short-name "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
614 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
615 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
616 :map "next") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
617 |
88533 | 618 (define-charset 'cp1125 |
619 "CP1125" | |
620 :short-name "CP1125" | |
621 :code-space [0 255] | |
622 :map "cp1125") | |
623 (define-charset-alias 'ruscii 'cp1125) | |
624 ;; Original name for cp1125, says Serhii Hlodin <hlodin@lutsk.bank.gov.ua> | |
625 (define-charset-alias 'cp866u 'cp1125) | |
626 | |
88671 | 627 ;; Fixme: C.f. iconv, http://czyborra.com/charsets/codepages.html |
628 ;; shows this as not ASCII comptaible, with various graphics in | |
629 ;; 0x01-0x1F. | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
630 (define-charset 'cp437 |
88671 | 631 "CP437 (MS-DOS United States, Australia, New Zealand, South Africa)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
632 :short-name "CP437" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
633 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
634 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
635 :map "cp437") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
636 |
88666 | 637 (define-charset 'cp720 |
638 "CP720 (Arabic)" | |
639 :short-name "CP720" | |
640 :code-space [0 255] | |
641 :ascii-compatible-p t | |
642 :map "cp720") | |
643 | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
644 (define-charset 'cp737 |
88671 | 645 "CP737 (PC Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
646 :short-name "CP737" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
647 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
648 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
649 :map "cp737") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
650 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
651 (define-charset 'cp775 |
88671 | 652 "CP775 (PC Baltic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
653 :short-name "CP775" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
654 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
655 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
656 :map "cp775") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
657 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
658 (define-charset 'cp851 |
89089 | 659 "CP851 (Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
660 :short-name "CP851" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
661 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
662 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
663 :map "cp851") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
664 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
665 (define-charset 'cp852 |
88671 | 666 "CP852 (MS-DOS Latin-2)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
667 :short-name "CP852" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
668 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
669 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
670 :map "cp852") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
671 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
672 (define-charset 'cp855 |
88671 | 673 "CP855 (IBM Cyrillic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
674 :short-name "CP855" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
675 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
676 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
677 :map "cp855") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
678 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
679 (define-charset 'cp857 |
88671 | 680 "CP857 (IBM Turkish)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
681 :short-name "CP857" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
682 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
683 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
684 :map "cp857") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
685 |
88666 | 686 (define-charset 'cp858 |
687 "CP858 (Multilingual Latin I + Euro)" | |
688 :short-name "CP858" | |
689 :code-space [0 255] | |
690 :ascii-compatible-p t | |
691 :map "cp858") | |
88671 | 692 (define-charset-alias 'cp00858 'cp858) ; IANA has IBM00858/CP00858 |
88666 | 693 |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
694 (define-charset 'cp860 |
88671 | 695 "CP860 (MS-DOS Portuguese)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
696 :short-name "CP860" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
697 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
698 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
699 :map "cp860") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
700 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
701 (define-charset 'cp861 |
88671 | 702 "CP861 (MS-DOS Icelandic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
703 :short-name "CP861" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
704 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
705 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
706 :map "cp861") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
707 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
708 (define-charset 'cp862 |
88671 | 709 "CP862 (PC Hebrew)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
710 :short-name "CP862" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
711 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
712 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
713 :map "cp862") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
714 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
715 (define-charset 'cp863 |
88671 | 716 "CP863 (MS-DOS Canadian French)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
717 :short-name "CP863" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
718 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
719 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
720 :map "cp863") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
721 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
722 (define-charset 'cp864 |
88671 | 723 "CP864 (PC Arabic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
724 :short-name "CP864" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
725 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
726 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
727 :map "cp864") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
728 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
729 (define-charset 'cp865 |
88671 | 730 "CP865 (MS-DOS Nordic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
731 :short-name "CP865" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
732 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
733 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
734 :map "cp865") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
735 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
736 (define-charset 'cp869 |
88671 | 737 "CP869 (IBM Modern Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
738 :short-name "CP869" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
739 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
740 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
741 :map "cp869") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
742 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
743 (define-charset 'cp874 |
88671 | 744 "CP874 (IBM Thai)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
745 :short-name "CP874" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
746 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
747 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
748 :map "cp874") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
749 |
17070 | 750 ;; For Arabic, we need three different types of character sets. |
751 ;; Digits are of direction left-to-right and of width 1-column. | |
752 ;; Others are of direction right-to-left and of width 1-column or | |
753 ;; 2-column. | |
88411 | 754 (define-charset 'arabic-digit |
755 "Arabic digit" | |
756 :short-name "Arabic digit" | |
757 :iso-final-char ?2 | |
758 :emacs-mule-id 164 | |
759 :code-space [34 42] | |
760 :code-offset #x0600) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
761 |
88411 | 762 (define-charset 'arabic-1-column |
763 "Arabic 1-column" | |
764 :short-name "Arabic 1-col" | |
765 :long-name "Arabic 1-column" | |
766 :iso-final-char ?3 | |
767 :emacs-mule-id 165 | |
768 :code-space [33 126] | |
769 :code-offset #x200100) | |
770 | |
771 (define-charset 'arabic-2-column | |
772 "Arabic 2-column" | |
773 :short-name "Arabic 2-col" | |
774 :long-name "Arabic 2-column" | |
775 :iso-final-char ?4 | |
776 :emacs-mule-id 224 | |
777 :code-space [33 126] | |
778 :code-offset #x200180) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
779 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
780 ;; Lao script. |
88411 | 781 ;; Codes 0x21..0x7E are mapped to Unicode U+0E81..U+0EDF. |
89089 | 782 ;; Not all of them are defined unicodes. |
88411 | 783 (define-charset 'lao |
784 "Lao characters (ISO10646 0E81..0EDF)" | |
785 :short-name "Lao" | |
786 :iso-final-char ?1 | |
787 :emacs-mule-id 167 | |
788 :code-space [33 126] | |
789 :code-offset #x0E81) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
790 |
88411 | 791 (define-charset 'mule-lao |
792 "Lao characters (ISO10646 0E81..0EDF)" | |
793 :short-name "Lao" | |
794 :code-space [0 255] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
795 :superset '(ascii eight-bit-control (lao . 128))) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
796 |
17070 | 797 |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
798 ;; 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
|
799 ;; 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
|
800 ;; script which IS-13194 supports. |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
801 |
88411 | 802 (define-charset 'indian-is13194 |
803 "Generic Indian charset for data exchange with IS 13194" | |
804 :short-name "IS 13194" | |
805 :long-name "Indian IS 13194" | |
806 :iso-final-char ?5 | |
807 :emacs-mule-id 225 | |
808 :code-space [33 126] | |
88704 | 809 :unify-map "is13194" |
88411 | 810 :code-offset #x180000) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
811 |
89091 | 812 (define-charset 'devanagari-glyph |
813 "Glyphs for Devanagari script. Subset of `indian-glyph'." | |
814 :short-name "Devanagari glyph" | |
815 :code-space [0 255] | |
816 :code-offset #x180100) | |
817 | |
818 ;; These would be necessary for supporting the complete set of Indian | |
819 ;; scripts. See also fontset.el. | |
820 | |
821 ;; (let ((i 0)) | |
822 ;; (dolist (script '(sanskrit bengali tamil telugu assamese | |
823 ;; oriya kannada malayalam gujarati punjabi)) | |
824 ;; (define-charset (intern (concat (symbol-name script) "-glyph")) | |
825 ;; (concat "Glyphs for " (capitalize (symbol-name script)) | |
826 ;; " script. Subset of `indian-glyph'.") | |
827 ;; :short-name (concat (capitalize (symbol-name script)) " glyph") | |
828 ;; :code-space [0 255] | |
829 ;; :code-offset (+ #x180100 (* 256 i))) | |
830 ;; (setq i (1+ i)))) | |
831 | |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
832 (define-charset 'indian-glyph |
88411 | 833 "Glyphs for Indian characters." |
834 :short-name "Indian glyph" | |
835 :iso-final-char ?4 | |
836 :emacs-mule-id 240 | |
837 :code-space [32 127 32 127] | |
838 :code-offset #x180100) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
839 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
840 ;; Actual Glyph for 1-column width. |
88411 | 841 (define-charset 'indian-1-column |
842 "Indian charset for 1-column width glyphs" | |
843 :short-name "Indian 1-col" | |
844 :long-name "Indian 1 Column" | |
845 :iso-final-char ?6 | |
846 :emacs-mule-id 240 | |
847 :code-space [33 126 33 126] | |
848 :code-offset #x184000) | |
849 | |
850 ;; Actual Glyph for 2-column width. | |
851 (define-charset 'indian-2-column | |
852 "Indian charset for 2-column width glyphs" | |
853 :short-name "Indian 2-col" | |
854 :long-name "Indian 2 Column" | |
855 :iso-final-char ?5 | |
856 :emacs-mule-id 251 | |
857 :code-space [33 126 33 126] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
858 :superset '(indian-1-column)) |
88411 | 859 |
860 (define-charset 'tibetan | |
861 "Tibetan characters" | |
862 :iso-final-char ?7 | |
863 :short-name "Tibetan 2-col" | |
88486 | 864 :long-name "Tibetan 2 column" |
88411 | 865 :iso-final-char ?7 |
866 :emacs-mule-id 252 | |
88704 | 867 :unify-map "tibetan" |
88411 | 868 :code-space [33 126 33 126] |
869 :code-offset #x190000) | |
870 | |
871 (define-charset 'tibetan-1-column | |
872 "Tibetan 1 column glyph" | |
873 :short-name "Tibetan 1-col" | |
874 :long-name "Tibetan 1 column" | |
875 :iso-final-char ?8 | |
876 :emacs-mule-id 241 | |
877 :code-space [33 126 33 37] | |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
878 :superset '(tibetan)) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
879 |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
880 ;; Subsets of Unicode. |
88411 | 881 (define-charset 'mule-unicode-2500-33ff |
882 "Unicode characters of the range U+2500..U+33FF." | |
883 :short-name "Unicode subset 2" | |
884 :long-name "Unicode subset (U+2500..U+33FF)" | |
885 :iso-final-char ?2 | |
886 :emacs-mule-id 242 | |
887 :code-space [#x20 #x7f #x20 #x47] | |
888 :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
|
889 |
88411 | 890 (define-charset 'mule-unicode-e000-ffff |
891 "Unicode characters of the range U+E000..U+FFFF." | |
892 :short-name "Unicode subset 3" | |
893 :long-name "Unicode subset (U+E000+FFFF)" | |
894 :iso-final-char ?3 | |
895 :emacs-mule-id 243 | |
896 :code-space [#x20 #x7F #x20 #x75] | |
88843 | 897 :code-offset #xE000 |
898 :max-code 30015) ; U+FFFF | |
17070 | 899 |
88411 | 900 (define-charset 'mule-unicode-0100-24ff |
901 "Unicode characters of the range U+0100..U+24FF." | |
902 :short-name "Unicode subset" | |
903 :long-name "Unicode subset (U+0100..U+24FF)" | |
904 :iso-final-char ?1 | |
905 :emacs-mule-id 244 | |
906 :code-space [#x20 #x7F #x20 #x7F] | |
907 :code-offset #x100) | |
17070 | 908 |
89089 | 909 (define-charset 'unicode-bmp |
910 "Unicode Basic Multilingual Plane" | |
911 :short-name "Unicode BMP" | |
912 :code-space [0 255 0 255] | |
913 :subset '(unicode 0 #xFFFF 0)) | |
914 | |
89091 | 915 (define-charset 'unicode-bmp |
916 "Unicode Basic Multilingual Plane" | |
917 :short-name "Unicode BMP" | |
918 :code-space [0 255 0 255] | |
919 :subset '(unicode 0 #xFFFF 0)) | |
920 | |
88411 | 921 (define-charset 'ethiopic |
88486 | 922 "Ethiopic characters for Amharic and Tigrigna." |
88411 | 923 :short-name "Ethiopic" |
924 :long-name "Ethiopic characters" | |
925 :iso-final-char ?3 | |
926 :emacs-mule-id 245 | |
88704 | 927 :unify-map "ethiopic" |
88411 | 928 :code-space [33 126 33 126] |
929 :code-offset #x1A0000) | |
17070 | 930 |
88411 | 931 (define-charset 'mac-roman |
932 "Mac Roman charset" | |
933 :short-name "Mac Roman" | |
934 :ascii-compatible-p t | |
935 :code-space [0 255] | |
936 :map "mac-roman") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
937 |
88533 | 938 ;; Fixme: modern EBCDIC variants, e.g. IBM00924? |
939 (define-charset 'ebcdic-us | |
940 "US version of EBCDIC" | |
941 :short-name "EBCDIC-US" | |
942 :code-space [0 255] | |
943 :mime-charset 'ebcdic-us | |
944 :map "ebcdic-us") | |
945 | |
946 (define-charset 'ebcdic-uk | |
947 "UK version of EBCDIC" | |
948 :short-name "EBCDIC-UK" | |
949 :code-space [0 255] | |
950 :mime-charset 'ebcdic-uk | |
951 :map "ebcdic-uk") | |
952 | |
89200 | 953 (define-charset 'ibm1047 |
954 ;; Says groff: | |
955 "IBM1047, some form of EBCDIC used by OS/390 Unix." | |
956 :short-name "IBM1047" | |
957 :code-space [0 255] | |
958 :mime-charset 'ibm1047 | |
959 :map "ibm1047") | |
960 (define-charset-alias 'cp1047 'ibm1047) | |
961 | |
88575 | 962 (define-charset 'hp-roman8 |
963 "Encoding used by Hewlet-Packard printer software" | |
964 :short-name "HP-ROMAN8" | |
965 :ascii-compatible-p t | |
966 :code-space [0 255] | |
967 :map "hp-roman8") | |
968 | |
88671 | 969 ;; To make a coding system with this, a pre-write-conversion should |
970 ;; account for the commented-out multi-valued code points in | |
971 ;; stdenc.map. | |
88575 | 972 (define-charset 'adobe-standard-encoding |
973 "Adobe `standard encoding' used in PostScript" | |
974 :short-name "ADOBE-STANDARD-ENCODING" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
975 :code-space [#x20 255] |
88575 | 976 :map "stdenc") |
977 | |
978 (define-charset 'symbol | |
979 "Adobe symbol encoding used in PostScript" | |
980 :short-name "ADOBE-SYMBOL" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
981 :code-space [#x20 255] |
88575 | 982 :map "symbol") |
983 | |
984 (define-charset 'ibm850 | |
88671 | 985 "DOS codepage 850 (Latin-1)" |
88575 | 986 :short-name "IBM850" |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
987 :ascii-compatible-p t |
88575 | 988 :code-space [0 255] |
989 :map "ibm850") | |
990 (define-charset-alias 'cp850 'ibm850) | |
991 | |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
992 (define-charset 'gb18030-2-byte |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
993 "GB18030 2-byte (0x814E..0xFEFE)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
994 :code-space [#x40 #xFE #x81 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
995 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
996 :map "gb18030-2") |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
997 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
998 (define-charset 'gb18030-4-byte-bmp |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
999 "GB18030 4-byte for BMP (0x81308130-0x8431A439)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1000 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #x81 #x84] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1001 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1002 :map "gb18030-4") |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1003 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1004 (define-charset 'gb18030-4-byte-smp |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1005 "GB18030 4-byte for SMP (0x90308130-0xE3329A35)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1006 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #x90 #xE3] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1007 :min-code '(#x9030 . #x8130) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1008 :max-code '(#xE332 . #x9A35) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1009 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1010 :code-offset #x10000) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1011 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1012 (define-charset 'gb18030-4-byte-ext-1 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1013 "GB18030 4-byte (0x8431A530-0x8F39FE39)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1014 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #x84 #x8F] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1015 :min-code '(#x8431 . #xA530) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1016 :max-code '(#x8F39 . #xFE39) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1017 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1018 :code-offset #x200000 ; ... #x22484B |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1019 ) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1020 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1021 (define-charset 'gb18030-4-byte-ext-2 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1022 "GB18030 4-byte (0xE3329A36-0xFE39FE39)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1023 :code-space [#x30 #x39 #x81 #xFE #x30 #x39 #xE3 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1024 :min-code '(#xE332 . #x9A36) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1025 :max-code '(#xFE39 . #xFE39) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1026 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1027 :code-offset #X22484C ; ... #x279f93 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1028 ) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1029 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1030 (define-charset 'gb18030 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1031 "GB18030" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1032 :code-space [#x00 #xFF #x00 #xFE #x00 #xFE #x00 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1033 :min-code 0 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1034 :max-code '(#xFE39 . #xFE39) |
88751
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
1035 :superset '(ascii gb18030-2-byte |
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
1036 gb18030-4-byte-bmp gb18030-4-byte-smp |
809b6bfe4dfa
Adjusted for the change of define-charset (:parent -> :subset or
Kenichi Handa <handa@m17n.org>
parents:
88735
diff
changeset
|
1037 gb18030-4-byte-ext-1 gb18030-4-byte-ext-2)) |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1038 |
88411 | 1039 (unify-charset 'chinese-gb2312) |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
1040 (unify-charset 'chinese-gbk) |
88411 | 1041 (unify-charset 'chinese-cns11643-1) |
1042 (unify-charset 'chinese-cns11643-2) | |
1043 (unify-charset 'big5) | |
1044 (unify-charset 'chinese-big5-1) | |
1045 (unify-charset 'chinese-big5-2) | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1046 (unify-charset 'vietnamese-viscii-lower) |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1047 (unify-charset 'vietnamese-viscii-upper) |
88760 | 1048 ;; Fixme: unifying sucks in the charset tables, which may be large. |
88776
805a3bb7daf4
(file-coding-system-alist): Change
Dave Love <fx@gnu.org>
parents:
88760
diff
changeset
|
1049 ;; (Can we avoid that and do it anyhow (with lazy loading)?) |
88760 | 1050 (unify-charset 'chinese-sisheng) |
1051 (unify-charset 'indian-is13194) | |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1052 (unify-charset 'korean-ksc5601) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1053 (unify-charset 'ipa) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1054 (unify-charset 'tibetan) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1055 (unify-charset 'ethiopic) |
88704 | 1056 ;; (unify-charset 'japanese-jisx0208-1978) |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1057 (unify-charset 'japanese-jisx0208) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1058 (unify-charset 'japanese-jisx0212) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1059 (unify-charset 'japanese-jisx0213-1) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1060 (unify-charset 'japanese-jisx0213-2) |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1061 |
17070 | 1062 |
22126
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
1063 ;; These are tables for translating characters on decoding and |
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
1064 ;; encoding. |
88760 | 1065 ;; Fixme: these aren't used now -- should they be? |
88411 | 1066 (setq standard-translation-table-for-decode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1067 |
22186
fc4aaf1b1772
Change term "character translation table" to "translation table".
Kenichi Handa <handa@m17n.org>
parents:
22126
diff
changeset
|
1068 (setq standard-translation-table-for-encode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1069 |
88760 | 1070 ;; Fixme: should this be retained? I guess it could be useful for |
1071 ;; non-unified charsets. | |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1072 (defvar translation-table-for-input nil |
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1073 "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
|
1074 \(Currently only used by Quail.)") |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1075 |
17070 | 1076 ;;; Make fundamental coding systems. |
1077 | |
88411 | 1078 ;; The coding system `no-conversion' is already defined in coding.c as |
1079 ;; below: | |
1080 ;; | |
1081 ;; (define-coding-system 'no-conversion | |
1082 ;; "Do no conversion." | |
1083 ;; :coding-type 'raw-text | |
1084 ;; :mnemonic ?=) | |
18529
8e293f1a19a9
(binary): Define as coding system alias.
Richard M. Stallman <rms@gnu.org>
parents:
18519
diff
changeset
|
1085 |
88647 | 1086 (define-coding-system-alias 'binary 'no-conversion) |
1087 | |
88411 | 1088 (define-coding-system 'raw-text |
36518
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
1089 "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
|
1090 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
|
1091 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
|
1092 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
|
1093 byte. |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1094 |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1095 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
|
1096 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
|
1097 is treated as a character." |
88411 | 1098 :coding-type 'raw-text |
1099 :mnemonic ?t) | |
1100 | |
1101 (define-coding-system 'undecided | |
88647 | 1102 "No conversion on encoding, automatic conversion on decoding." |
88411 | 1103 :coding-type 'undecided |
1104 :mnemonic ?- | |
1105 :charset-list '(ascii)) | |
1106 | |
1107 (define-coding-system-alias 'unix 'undecided-unix) | |
1108 (define-coding-system-alias 'dos 'undecided-dos) | |
1109 (define-coding-system-alias 'mac 'undecided-mac) | |
1110 | |
1111 (define-coding-system 'iso-latin-1 | |
1112 "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)." | |
89091 | 1113 :coding-type 'charset |
88411 | 1114 :mnemonic ?1 |
89091 | 1115 :charset-list '(iso-8859-1) |
88411 | 1116 :mime-charset 'iso-8859-1) |
1117 | |
1118 (define-coding-system-alias 'iso-8859-1 'iso-latin-1) | |
1119 (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
|
1120 |
88411 | 1121 ;; Coding systems not specific to each language environment. |
1122 | |
1123 (define-coding-system 'emacs-mule | |
1124 "Emacs 21 internal format used in buffer and string." | |
1125 :coding-type 'emacs-mule | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1126 :charset-list 'emacs-mule |
88411 | 1127 :mnemonic ?M) |
1128 | |
1129 (define-coding-system 'utf-8 | |
1130 "UTF-8." | |
1131 :coding-type 'utf-8 | |
1132 :mnemonic ?U | |
89041
2ce9656d788b
(utf-8): Give :mime-charset property.
Kenichi Handa <handa@m17n.org>
parents:
88894
diff
changeset
|
1133 :charset-list '(unicode) |
2ce9656d788b
(utf-8): Give :mime-charset property.
Kenichi Handa <handa@m17n.org>
parents:
88894
diff
changeset
|
1134 :mime-charset 'utf-8) |
88411 | 1135 |
1136 (define-coding-system-alias 'mule-utf-8 'utf-8) | |
1137 | |
1138 (define-coding-system 'utf-8-emacs | |
88468 | 1139 "Support for all Emacs characters (including non-Unicode characters)." |
88411 | 1140 :coding-type 'utf-8 |
1141 :mnemonic ?U | |
88503 | 1142 :charset-list '(emacs) |
1143 :mime-charset 'utf-8) | |
88411 | 1144 |
1145 (define-coding-system 'utf-16 | |
1146 "UTF-16" | |
1147 :coding-type 'utf-16 | |
1148 :mnemonic ?U | |
88503 | 1149 :charset-list '(unicode) |
1150 :mime-charset 'utf-16) | |
17070 | 1151 |
88411 | 1152 (define-coding-system 'utf-16-le-nosig |
88647 | 1153 "UTF-16, little endian, no signature." |
88411 | 1154 :coding-type 'utf-16 |
1155 :mnemonic ?U | |
1156 :charset-list '(unicode) | |
1157 :endian 'little) | |
1158 | |
1159 (define-coding-system 'utf-16-be-nosig | |
88647 | 1160 "UTF-16, big endian, no signature." |
88411 | 1161 :coding-type 'utf-16 |
1162 :mnemonic ?U | |
1163 :charset-list '(unicode) | |
1164 :endian 'big) | |
1165 | |
1166 (define-coding-system 'utf-16-le | |
88647 | 1167 "UTF-16, little endian, with signature." |
88411 | 1168 :coding-type 'utf-16 |
1169 :mnemonic ?U | |
1170 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
1171 :bom t |
88503 | 1172 :endian 'little |
1173 :mime-charset 'utf-16-le) | |
17070 | 1174 |
88411 | 1175 (define-coding-system 'utf-16-be |
88647 | 1176 "UTF-16, big endian, with signature." |
88411 | 1177 :coding-type 'utf-16 |
1178 :mnemonic ?U | |
1179 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
1180 :bom t |
88503 | 1181 :endian 'big |
1182 :mime-charset 'utf-16-be) | |
88411 | 1183 |
1184 (define-coding-system 'iso-2022-7bit | |
88647 | 1185 "ISO 2022 based 7-bit encoding using only G0." |
88411 | 1186 :coding-type 'iso-2022 |
1187 :mnemonic ?J | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1188 :charset-list 'iso-2022 |
88411 | 1189 :designation [(ascii t) nil nil nil] |
1190 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation composition)) | |
1191 | |
1192 (define-coding-system 'iso-2022-7bit-ss2 | |
88647 | 1193 "ISO 2022 based 7-bit encoding using SS2 for 96-charset." |
88411 | 1194 :coding-type 'iso-2022 |
1195 :mnemonic ?$ | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1196 :charset-list 'iso-2022 |
88411 | 1197 :designation [(ascii 94) nil (nil 96) nil] |
1198 :flags '(short ascii-at-eol ascii-at-cntl 7-bit | |
1199 designation single-shift composition)) | |
1200 | |
1201 (define-coding-system 'iso-2022-7bit-lock | |
88647 | 1202 "ISO-2022 coding system using Locking-Shift for 96-charset." |
88411 | 1203 :coding-type 'iso-2022 |
1204 :mnemonic ?& | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1205 :charset-list 'iso-2022 |
88411 | 1206 :designation [(ascii 94) (nil 96) nil nil] |
1207 :flags '(ascii-at-eol ascii-at-cntl 7-bit | |
1208 designation locking-shift composition)) | |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1209 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
1210 (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
|
1211 |
88411 | 1212 (define-coding-system 'iso-2022-7bit-lock-ss2 |
88647 | 1213 "Mixture of ISO-2022-JP, ISO-2022-KR, and ISO-2022-CN." |
88411 | 1214 :coding-type 'iso-2022 |
1215 :mnemonic ?i | |
1216 :charset-list '(ascii | |
1217 japanese-jisx0208 japanese-jisx0208-1978 latin-jisx0201 | |
1218 korean-ksc5601 | |
1219 chinese-gb2312 | |
1220 chinese-cns11643-1 chinese-cns11643-2 chinese-cns11643-3 | |
1221 chinese-cns11643-4 chinese-cns11643-5 chinese-cns11643-6 | |
1222 chinese-cns11643-7) | |
1223 :designation [(ascii 94) | |
1224 (nil korean-ksc5601 chinese-gb2312 chinese-cns11643-1 96) | |
1225 (nil chinese-cns11643-2) | |
1226 (nil chinese-cns11643-3 chinese-cns11643-4 chinese-cns11643-5 | |
1227 chinese-cns11643-6 chinese-cns11643-7)] | |
1228 :flags '(short ascii-at-eol ascii-at-cntl 7-bit locking-shift | |
1229 single-shift init-bol)) | |
17070 | 1230 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
1231 (define-coding-system-alias 'iso-2022-cjk 'iso-2022-7bit-lock-ss2) |
17070 | 1232 |
88411 | 1233 (define-coding-system 'iso-2022-8bit-ss2 |
88647 | 1234 "ISO 2022 based 8-bit encoding using SS2 for 96-charset." |
88411 | 1235 :coding-type 'iso-2022 |
1236 :mnemonic ?@ | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1237 :charset-list 'iso-2022 |
88411 | 1238 :designation [(ascii 94) nil (nil 96) nil] |
1239 :flags '(ascii-at-eol ascii-at-cntl designation single-shift composition)) | |
17070 | 1240 |
88411 | 1241 (define-coding-system 'compound-text |
1242 "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
|
1243 |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1244 This coding system does not support ICCCM Extended Segments." |
88411 | 1245 :coding-type 'iso-2022 |
1246 :mnemonic ?x | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1247 :charset-list 'iso-2022 |
88411 | 1248 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] |
1249 :flags '(ascii-at-eol ascii-at-cntl | |
1250 designation locking-shift single-shift composition) | |
88503 | 1251 ;; Fixme: this isn't a valid MIME charset and has to be |
1252 ;; special-cased elsewhere -- fx | |
88411 | 1253 :mime-charset 'x-ctext) |
24619
6057f7a48050
(x-ctext): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
24308
diff
changeset
|
1254 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1255 (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
|
1256 (define-coding-system-alias 'ctext 'compound-text) |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1257 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1258 ;; 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
|
1259 ;; 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
|
1260 ;; 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
|
1261 ;; 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
|
1262 ;; close to the beginning of coding systems ordered by priority. |
88411 | 1263 (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
|
1264 "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
|
1265 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1266 Like `compound-text', but does not produce escape sequences for compositions." |
88411 | 1267 :coding-type 'iso-2022 |
1268 :mnemonic ?x | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1269 :charset-list 'iso-2022 |
88411 | 1270 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] |
1271 :flags '(ascii-at-eol ascii-at-cntl | |
1272 designation locking-shift single-shift)) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1273 |
88411 | 1274 (define-coding-system 'compound-text-with-extensions |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1275 "Compound text encoding with ICCCM Extended Segment extensions. |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1276 |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1277 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
|
1278 for decoding and encoding files, process I/O, etc." |
88411 | 1279 :coding-type 'raw-text |
1280 :mnemonic ?x | |
1281 :post-read-conversion 'ctext-post-read-conversion | |
1282 :pre-write-conversion 'ctext-pre-write-conversion) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1283 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1284 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1285 '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
|
1286 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1287 '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
|
1288 |
88411 | 1289 (define-coding-system 'us-ascii |
1290 "Convert all characters but ASCII to `?'." | |
1291 :coding-type 'charset | |
1292 :mnemonic ?- | |
1293 :charset-list '(ascii) | |
1294 :default-char ?? | |
1295 :mime-charset 'us-ascii) | |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1296 |
88411 | 1297 (define-coding-system-alias 'iso-safe 'us-ascii) |
1298 | |
1299 ;; Use us-ascii for terminal output if some other coding system is not | |
23196 | 1300 ;; specified explicitly. |
88411 | 1301 (set-safe-terminal-coding-system-internal 'us-ascii) |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1302 |
17070 | 1303 ;; The other coding-systems are defined in each language specific |
88411 | 1304 ;; files under lisp/language. |
17070 | 1305 |
21713
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1306 ;; 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
|
1307 ;; 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
|
1308 ;; 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
|
1309 ;; Tar files are not decoded at all, but we treat them as raw bytes. |
17070 | 1310 |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1311 (setq file-coding-system-alist |
88776
805a3bb7daf4
(file-coding-system-alist): Change
Dave Love <fx@gnu.org>
parents:
88760
diff
changeset
|
1312 '(("\\.elc\\'" . utf-8-emacs) |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1313 ("\\.utf\\(-8\\)?\\'" . utf-8) |
88575 | 1314 ;; This is the defined default for XML documents. It may be |
1315 ;; overridden by a charset specification in the header. That | |
1316 ;; should be grokked by the auto-coding mechanism, but rms | |
1317 ;; vetoed that. -- fx | |
1318 ("\\.xml\\'" . utf-8) | |
34264
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1319 ;; 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
|
1320 ;; 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
|
1321 ;; newlines. This is required to make the special treatment |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1322 ;; of the "\ newline" combination in loaddefs.el, which marks |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1323 ;; the beginning of a doc string, work. |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1324 ("\\(\\`\\|/\\)loaddefs.el\\'" . (raw-text . raw-text-unix)) |
32228
6a5bae3ed1c1
file-coding-system-alist): Use \',
Dave Love <fx@gnu.org>
parents:
30260
diff
changeset
|
1325 ("\\.tar\\'" . (no-conversion . no-conversion)) |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1326 ("" . (undecided . nil)))) |
17070 | 1327 |
1328 | |
1329 ;;; Setting coding categories and their priorities. | |
1330 | |
1331 ;; This setting is just to read an Emacs Lisp source files which | |
1332 ;; 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
|
1333 ;; values are set by the command `set-language-environment' for each |
17070 | 1334 ;; language environment. |
1335 | |
88411 | 1336 (set-coding-system-priority |
1337 'iso-latin-1 | |
1338 'utf-8 | |
1339 'iso-2022-7bit | |
1340 ) | |
17070 | 1341 |
19372 | 1342 |
1343 ;;; Miscellaneous settings. | |
88411 | 1344 |
1345 ;; Make all multibyte characters self-insert. | |
1346 (set-char-table-range (nth 1 global-map) | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
1347 (cons 128 (max-char)) |
88411 | 1348 'self-insert-command) |
1349 | |
19372 | 1350 (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
|
1351 |
88647 | 1352 ;; Move least specific charsets to end of priority list |
1353 | |
1354 (apply #'set-charset-priority | |
1355 (delq 'unicode (delq 'emacs (charset-priority-list)))) | |
1356 | |
88600 | 1357 ;; The old code-pages library is obsoleted by coding systems based on |
1358 ;; the charsets defined in this file but might be required by user | |
1359 ;; code. | |
1360 (provide 'code-pages) | |
1361 | |
88575 | 1362 ;; Local variables: |
1363 ;; no-byte-compile: t | |
1364 ;; End: | |
1365 | |
17070 | 1366 ;;; mule-conf.el ends here |