Mercurial > emacs
annotate lisp/international/mule-conf.el @ 89102:1365cbd31156
(emacs-mule, iso-2022-7bit)
(iso-2022-7bit-ss2, iso-2022-7bit-lock, iso-2022-8bit-ss2)
(compound-text, ctext-no-compositions): Cancel provious change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 12 Sep 2002 08:37:25 +0000 |
parents | d520353b835a |
children | 492be7d36b2a |
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] | |
508 :map "ibm866") | |
88671 | 509 ;; Fixme: http://czyborra.com/charsets/cyrillic.html says the |
510 ;; following, but the iconv map for cp866 isn't the same as his chart | |
511 ;; for alternativnyj. I can't find anything that looks like an | |
512 ;; official definition of alternativnyj. | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
513 (define-charset-alias 'cp866 'alternativnyj) |
88638 | 514 (define-charset-alias 'ibm866 'alternativnyj) |
17070 | 515 |
88533 | 516 (define-charset 'koi8-u |
517 "KOI8-U" | |
518 :short-name "KOI8-U" | |
519 :ascii-compatible-p t | |
520 :code-space [0 255] | |
521 :map "koi8-u") | |
522 | |
523 (define-charset 'koi8-t | |
524 "KOI8-T" | |
525 :short-name "KOI8-T" | |
526 :ascii-compatible-p t | |
527 :code-space [0 255] | |
528 :map "koi8-t") | |
529 | |
530 (define-charset 'georgian-ps | |
531 "GEORGIAN-PS" | |
532 :short-name "GEORGIAN-PS" | |
533 :ascii-compatible-p t | |
534 :code-space [0 255] | |
535 :map "georgian-ps") | |
536 | |
537 (define-charset 'windows-1250 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
538 "WINDOWS-1250 (Central Europe)" |
88533 | 539 :short-name "WINDOWS-1250" |
540 :ascii-compatible-p t | |
541 :code-space [0 255] | |
542 :map "windows-1250") | |
543 (define-charset-alias 'cp1250 'windows-1250) | |
544 | |
545 (define-charset 'windows-1251 | |
88666 | 546 "WINDOWS-1251 (Cyrillic)" |
88533 | 547 :short-name "WINDOWS-1251" |
548 :ascii-compatible-p t | |
549 :code-space [0 255] | |
550 :map "windows-1251") | |
551 (define-charset-alias 'cp1251 'windows-1251) | |
552 | |
553 (define-charset 'windows-1252 | |
88666 | 554 "WINDOWS-1252 (Latin I)" |
88533 | 555 :short-name "WINDOWS-1252" |
556 :ascii-compatible-p t | |
557 :code-space [0 255] | |
558 :map "windows-1252") | |
559 (define-charset-alias 'cp1252 'windows-1252) | |
560 | |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
561 (define-charset 'windows-1253 |
88666 | 562 "WINDOWS-1253 (Greek)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
563 :short-name "WINDOWS-1253" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
564 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
565 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
566 :map "windows-1253") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
567 (define-charset-alias 'cp1253 'windows-1253) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
568 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
569 (define-charset 'windows-1254 |
88666 | 570 "WINDOWS-1254 (Turkish)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
571 :short-name "WINDOWS-1254" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
572 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
573 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
574 :map "windows-1254") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
575 (define-charset-alias 'cp1254 'windows-1254) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
576 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
577 (define-charset 'windows-1255 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
578 "WINDOWS-1255 (Hebrew)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
579 :short-name "WINDOWS-1255" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
580 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
581 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
582 :map "windows-1255") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
583 (define-charset-alias 'cp1255 'windows-1255) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
584 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
585 (define-charset 'windows-1256 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
586 "WINDOWS-1256 (Arabic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
587 :short-name "WINDOWS-1256" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
588 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
589 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
590 :map "windows-1256") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
591 (define-charset-alias 'cp1256 'windows-1256) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
592 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
593 (define-charset 'windows-1257 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
594 "WINDOWS-1257 (Baltic)" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
595 :short-name "WINDOWS-1257" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
596 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
597 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
598 :map "windows-1257") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
599 (define-charset-alias 'cp1257 'windows-1257) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
600 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
601 (define-charset 'windows-1258 |
88666 | 602 "WINDOWS-1258 (Viet Nam)" |
88555
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
603 :short-name "WINDOWS-1258" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
604 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
605 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
606 :map "windows-1258") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
607 (define-charset-alias 'cp1258 'windows-1258) |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
608 |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
609 (define-charset 'next |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
610 "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
611 :short-name "NEXT" |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
612 :ascii-compatible-p t |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
613 :code-space [0 255] |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
614 :map "next") |
e52f0de0d5d1
(ebcdic-us, ebcdic-uk): Change map
Dave Love <fx@gnu.org>
parents:
88533
diff
changeset
|
615 |
88533 | 616 (define-charset 'cp1125 |
617 "CP1125" | |
618 :short-name "CP1125" | |
619 :code-space [0 255] | |
620 :map "cp1125") | |
621 (define-charset-alias 'ruscii 'cp1125) | |
622 ;; Original name for cp1125, says Serhii Hlodin <hlodin@lutsk.bank.gov.ua> | |
623 (define-charset-alias 'cp866u 'cp1125) | |
624 | |
88671 | 625 ;; Fixme: C.f. iconv, http://czyborra.com/charsets/codepages.html |
626 ;; shows this as not ASCII comptaible, with various graphics in | |
627 ;; 0x01-0x1F. | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
628 (define-charset 'cp437 |
88671 | 629 "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
|
630 :short-name "CP437" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
631 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
632 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
633 :map "cp437") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
634 |
88666 | 635 (define-charset 'cp720 |
636 "CP720 (Arabic)" | |
637 :short-name "CP720" | |
638 :code-space [0 255] | |
639 :ascii-compatible-p t | |
640 :map "cp720") | |
641 | |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
642 (define-charset 'cp737 |
88671 | 643 "CP737 (PC Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
644 :short-name "CP737" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
645 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
646 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
647 :map "cp737") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
648 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
649 (define-charset 'cp775 |
88671 | 650 "CP775 (PC Baltic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
651 :short-name "CP775" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
652 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
653 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
654 :map "cp775") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
655 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
656 (define-charset 'cp851 |
89089 | 657 "CP851 (Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
658 :short-name "CP851" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
659 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
660 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
661 :map "cp851") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
662 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
663 (define-charset 'cp852 |
88671 | 664 "CP852 (MS-DOS Latin-2)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
665 :short-name "CP852" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
666 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
667 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
668 :map "cp852") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
669 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
670 (define-charset 'cp855 |
88671 | 671 "CP855 (IBM Cyrillic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
672 :short-name "CP855" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
673 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
674 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
675 :map "cp855") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
676 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
677 (define-charset 'cp857 |
88671 | 678 "CP857 (IBM Turkish)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
679 :short-name "CP857" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
680 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
681 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
682 :map "cp857") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
683 |
88666 | 684 (define-charset 'cp858 |
685 "CP858 (Multilingual Latin I + Euro)" | |
686 :short-name "CP858" | |
687 :code-space [0 255] | |
688 :ascii-compatible-p t | |
689 :map "cp858") | |
88671 | 690 (define-charset-alias 'cp00858 'cp858) ; IANA has IBM00858/CP00858 |
88666 | 691 |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
692 (define-charset 'cp860 |
88671 | 693 "CP860 (MS-DOS Portuguese)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
694 :short-name "CP860" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
695 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
696 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
697 :map "cp860") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
698 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
699 (define-charset 'cp861 |
88671 | 700 "CP861 (MS-DOS Icelandic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
701 :short-name "CP861" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
702 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
703 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
704 :map "cp861") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
705 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
706 (define-charset 'cp862 |
88671 | 707 "CP862 (PC Hebrew)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
708 :short-name "CP862" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
709 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
710 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
711 :map "cp862") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
712 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
713 (define-charset 'cp863 |
88671 | 714 "CP863 (MS-DOS Canadian French)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
715 :short-name "CP863" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
716 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
717 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
718 :map "cp863") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
719 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
720 (define-charset 'cp864 |
88671 | 721 "CP864 (PC Arabic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
722 :short-name "CP864" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
723 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
724 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
725 :map "cp864") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
726 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
727 (define-charset 'cp865 |
88671 | 728 "CP865 (MS-DOS Nordic)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
729 :short-name "CP865" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
730 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
731 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
732 :map "cp865") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
733 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
734 (define-charset 'cp869 |
88671 | 735 "CP869 (IBM Modern Greek)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
736 :short-name "CP869" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
737 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
738 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
739 :map "cp869") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
740 |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
741 (define-charset 'cp874 |
88671 | 742 "CP874 (IBM Thai)" |
88613
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
743 :short-name "CP874" |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
744 :code-space [0 255] |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
745 :ascii-compatible-p t |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
746 :map "cp874") |
cb347c3671eb
Avoid decode-char in top-level code
Dave Love <fx@gnu.org>
parents:
88600
diff
changeset
|
747 |
17070 | 748 ;; For Arabic, we need three different types of character sets. |
749 ;; Digits are of direction left-to-right and of width 1-column. | |
750 ;; Others are of direction right-to-left and of width 1-column or | |
751 ;; 2-column. | |
88411 | 752 (define-charset 'arabic-digit |
753 "Arabic digit" | |
754 :short-name "Arabic digit" | |
755 :iso-final-char ?2 | |
756 :emacs-mule-id 164 | |
757 :code-space [34 42] | |
758 :code-offset #x0600) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
759 |
88411 | 760 (define-charset 'arabic-1-column |
761 "Arabic 1-column" | |
762 :short-name "Arabic 1-col" | |
763 :long-name "Arabic 1-column" | |
764 :iso-final-char ?3 | |
765 :emacs-mule-id 165 | |
766 :code-space [33 126] | |
767 :code-offset #x200100) | |
768 | |
769 (define-charset 'arabic-2-column | |
770 "Arabic 2-column" | |
771 :short-name "Arabic 2-col" | |
772 :long-name "Arabic 2-column" | |
773 :iso-final-char ?4 | |
774 :emacs-mule-id 224 | |
775 :code-space [33 126] | |
776 :code-offset #x200180) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
777 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
778 ;; Lao script. |
88411 | 779 ;; Codes 0x21..0x7E are mapped to Unicode U+0E81..U+0EDF. |
89089 | 780 ;; Not all of them are defined unicodes. |
88411 | 781 (define-charset 'lao |
782 "Lao characters (ISO10646 0E81..0EDF)" | |
783 :short-name "Lao" | |
784 :iso-final-char ?1 | |
785 :emacs-mule-id 167 | |
786 :code-space [33 126] | |
787 :code-offset #x0E81) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
788 |
88411 | 789 (define-charset 'mule-lao |
790 "Lao characters (ISO10646 0E81..0EDF)" | |
791 :short-name "Lao" | |
792 :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
|
793 :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
|
794 |
17070 | 795 |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
796 ;; 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
|
797 ;; 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
|
798 ;; script which IS-13194 supports. |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
799 |
88411 | 800 (define-charset 'indian-is13194 |
801 "Generic Indian charset for data exchange with IS 13194" | |
802 :short-name "IS 13194" | |
803 :long-name "Indian IS 13194" | |
804 :iso-final-char ?5 | |
805 :emacs-mule-id 225 | |
806 :code-space [33 126] | |
88704 | 807 :unify-map "is13194" |
88411 | 808 :code-offset #x180000) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
809 |
89091 | 810 (define-charset 'devanagari-glyph |
811 "Glyphs for Devanagari script. Subset of `indian-glyph'." | |
812 :short-name "Devanagari glyph" | |
813 :code-space [0 255] | |
814 :code-offset #x180100) | |
815 | |
816 ;; These would be necessary for supporting the complete set of Indian | |
817 ;; scripts. See also fontset.el. | |
818 | |
819 ;; (let ((i 0)) | |
820 ;; (dolist (script '(sanskrit bengali tamil telugu assamese | |
821 ;; oriya kannada malayalam gujarati punjabi)) | |
822 ;; (define-charset (intern (concat (symbol-name script) "-glyph")) | |
823 ;; (concat "Glyphs for " (capitalize (symbol-name script)) | |
824 ;; " script. Subset of `indian-glyph'.") | |
825 ;; :short-name (concat (capitalize (symbol-name script)) " glyph") | |
826 ;; :code-space [0 255] | |
827 ;; :code-offset (+ #x180100 (* 256 i))) | |
828 ;; (setq i (1+ i)))) | |
829 | |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
830 (define-charset 'indian-glyph |
88411 | 831 "Glyphs for Indian characters." |
832 :short-name "Indian glyph" | |
833 :iso-final-char ?4 | |
834 :emacs-mule-id 240 | |
835 :code-space [32 127 32 127] | |
836 :code-offset #x180100) | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
837 |
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
838 ;; Actual Glyph for 1-column width. |
88411 | 839 (define-charset 'indian-1-column |
840 "Indian charset for 1-column width glyphs" | |
841 :short-name "Indian 1-col" | |
842 :long-name "Indian 1 Column" | |
843 :iso-final-char ?6 | |
844 :emacs-mule-id 240 | |
845 :code-space [33 126 33 126] | |
846 :code-offset #x184000) | |
847 | |
848 ;; Actual Glyph for 2-column width. | |
849 (define-charset 'indian-2-column | |
850 "Indian charset for 2-column width glyphs" | |
851 :short-name "Indian 2-col" | |
852 :long-name "Indian 2 Column" | |
853 :iso-final-char ?5 | |
854 :emacs-mule-id 251 | |
855 :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
|
856 :superset '(indian-1-column)) |
88411 | 857 |
858 (define-charset 'tibetan | |
859 "Tibetan characters" | |
860 :iso-final-char ?7 | |
861 :short-name "Tibetan 2-col" | |
88486 | 862 :long-name "Tibetan 2 column" |
88411 | 863 :iso-final-char ?7 |
864 :emacs-mule-id 252 | |
88704 | 865 :unify-map "tibetan" |
88411 | 866 :code-space [33 126 33 126] |
867 :code-offset #x190000) | |
868 | |
869 (define-charset 'tibetan-1-column | |
870 "Tibetan 1 column glyph" | |
871 :short-name "Tibetan 1-col" | |
872 :long-name "Tibetan 1 column" | |
873 :iso-final-char ?8 | |
874 :emacs-mule-id 241 | |
875 :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
|
876 :superset '(tibetan)) |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
877 |
33044
7878d85aef6d
New charsets mule-unicode-2500-33ff and mule-unicode-e000-ffff.
Kenichi Handa <handa@m17n.org>
parents:
32786
diff
changeset
|
878 ;; Subsets of Unicode. |
88411 | 879 (define-charset 'mule-unicode-2500-33ff |
880 "Unicode characters of the range U+2500..U+33FF." | |
881 :short-name "Unicode subset 2" | |
882 :long-name "Unicode subset (U+2500..U+33FF)" | |
883 :iso-final-char ?2 | |
884 :emacs-mule-id 242 | |
885 :code-space [#x20 #x7f #x20 #x47] | |
886 :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
|
887 |
88411 | 888 (define-charset 'mule-unicode-e000-ffff |
889 "Unicode characters of the range U+E000..U+FFFF." | |
890 :short-name "Unicode subset 3" | |
891 :long-name "Unicode subset (U+E000+FFFF)" | |
892 :iso-final-char ?3 | |
893 :emacs-mule-id 243 | |
894 :code-space [#x20 #x7F #x20 #x75] | |
88843 | 895 :code-offset #xE000 |
896 :max-code 30015) ; U+FFFF | |
17070 | 897 |
88411 | 898 (define-charset 'mule-unicode-0100-24ff |
899 "Unicode characters of the range U+0100..U+24FF." | |
900 :short-name "Unicode subset" | |
901 :long-name "Unicode subset (U+0100..U+24FF)" | |
902 :iso-final-char ?1 | |
903 :emacs-mule-id 244 | |
904 :code-space [#x20 #x7F #x20 #x7F] | |
905 :code-offset #x100) | |
17070 | 906 |
89089 | 907 (define-charset 'unicode-bmp |
908 "Unicode Basic Multilingual Plane" | |
909 :short-name "Unicode BMP" | |
910 :code-space [0 255 0 255] | |
911 :subset '(unicode 0 #xFFFF 0)) | |
912 | |
89091 | 913 (define-charset 'unicode-bmp |
914 "Unicode Basic Multilingual Plane" | |
915 :short-name "Unicode BMP" | |
916 :code-space [0 255 0 255] | |
917 :subset '(unicode 0 #xFFFF 0)) | |
918 | |
88411 | 919 (define-charset 'ethiopic |
88486 | 920 "Ethiopic characters for Amharic and Tigrigna." |
88411 | 921 :short-name "Ethiopic" |
922 :long-name "Ethiopic characters" | |
923 :iso-final-char ?3 | |
924 :emacs-mule-id 245 | |
88704 | 925 :unify-map "ethiopic" |
88411 | 926 :code-space [33 126 33 126] |
927 :code-offset #x1A0000) | |
17070 | 928 |
88411 | 929 (define-charset 'mac-roman |
930 "Mac Roman charset" | |
931 :short-name "Mac Roman" | |
932 :ascii-compatible-p t | |
933 :code-space [0 255] | |
934 :map "mac-roman") | |
29167
7b645b883dcb
Specify CHARSET-ID explicitely for private charsets.
Kenichi Handa <handa@m17n.org>
parents:
28951
diff
changeset
|
935 |
88533 | 936 ;; Fixme: modern EBCDIC variants, e.g. IBM00924? |
937 (define-charset 'ebcdic-us | |
938 "US version of EBCDIC" | |
939 :short-name "EBCDIC-US" | |
940 :code-space [0 255] | |
941 :mime-charset 'ebcdic-us | |
942 :map "ebcdic-us") | |
943 | |
944 (define-charset 'ebcdic-uk | |
945 "UK version of EBCDIC" | |
946 :short-name "EBCDIC-UK" | |
947 :code-space [0 255] | |
948 :mime-charset 'ebcdic-uk | |
949 :map "ebcdic-uk") | |
950 | |
88575 | 951 (define-charset 'hp-roman8 |
952 "Encoding used by Hewlet-Packard printer software" | |
953 :short-name "HP-ROMAN8" | |
954 :ascii-compatible-p t | |
955 :code-space [0 255] | |
956 :map "hp-roman8") | |
957 | |
88671 | 958 ;; To make a coding system with this, a pre-write-conversion should |
959 ;; account for the commented-out multi-valued code points in | |
960 ;; stdenc.map. | |
88575 | 961 (define-charset 'adobe-standard-encoding |
962 "Adobe `standard encoding' used in PostScript" | |
963 :short-name "ADOBE-STANDARD-ENCODING" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
964 :code-space [#x20 255] |
88575 | 965 :map "stdenc") |
966 | |
967 (define-charset 'symbol | |
968 "Adobe symbol encoding used in PostScript" | |
969 :short-name "ADOBE-SYMBOL" | |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
970 :code-space [#x20 255] |
88575 | 971 :map "symbol") |
972 | |
973 (define-charset 'ibm850 | |
88671 | 974 "DOS codepage 850 (Latin-1)" |
88575 | 975 :short-name "IBM850" |
88591
b8eb49355bfe
(adobe-standard-encoding, symbol):
Dave Love <fx@gnu.org>
parents:
88588
diff
changeset
|
976 :ascii-compatible-p t |
88575 | 977 :code-space [0 255] |
978 :map "ibm850") | |
979 (define-charset-alias 'cp850 'ibm850) | |
980 | |
88675
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
981 (define-charset 'gb18030-2-byte |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
982 "GB18030 2-byte (0x814E..0xFEFE)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
983 :code-space [#x40 #xFE #x81 #xFE] |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
984 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
985 :map "gb18030-2") |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
986 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
987 (define-charset 'gb18030-4-byte-bmp |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
988 "GB18030 4-byte for BMP (0x81308130-0x8431A439)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
989 :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
|
990 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
991 :map "gb18030-4") |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
992 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
993 (define-charset 'gb18030-4-byte-smp |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
994 "GB18030 4-byte for SMP (0x90308130-0xE3329A35)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
995 :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
|
996 :min-code '(#x9030 . #x8130) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
997 :max-code '(#xE332 . #x9A35) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
998 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
999 :code-offset #x10000) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1000 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1001 (define-charset 'gb18030-4-byte-ext-1 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1002 "GB18030 4-byte (0x8431A530-0x8F39FE39)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1003 :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
|
1004 :min-code '(#x8431 . #xA530) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1005 :max-code '(#x8F39 . #xFE39) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1006 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1007 :code-offset #x200000 ; ... #x22484B |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1008 ) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1009 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1010 (define-charset 'gb18030-4-byte-ext-2 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1011 "GB18030 4-byte (0xE3329A36-0xFE39FE39)" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1012 :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
|
1013 :min-code '(#xE332 . #x9A36) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1014 :max-code '(#xFE39 . #xFE39) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1015 :supplementary-p t |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1016 :code-offset #X22484C ; ... #x279f93 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1017 ) |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1018 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1019 (define-charset 'gb18030 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1020 "GB18030" |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1021 :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
|
1022 :min-code 0 |
20cca396a8ee
(chinese-gbk): Change :code-offset to
Kenichi Handa <handa@m17n.org>
parents:
88671
diff
changeset
|
1023 :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
|
1024 :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
|
1025 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
|
1026 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
|
1027 |
88411 | 1028 (unify-charset 'chinese-gb2312) |
88451
33d9bd9d6aa7
(chinese-gbk): New charset.
Kenichi Handa <handa@m17n.org>
parents:
88440
diff
changeset
|
1029 (unify-charset 'chinese-gbk) |
88411 | 1030 (unify-charset 'chinese-cns11643-1) |
1031 (unify-charset 'chinese-cns11643-2) | |
1032 (unify-charset 'big5) | |
1033 (unify-charset 'chinese-big5-1) | |
1034 (unify-charset 'chinese-big5-2) | |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1035 (unify-charset 'vietnamese-viscii-lower) |
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1036 (unify-charset 'vietnamese-viscii-upper) |
88760 | 1037 ;; 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
|
1038 ;; (Can we avoid that and do it anyhow (with lazy loading)?) |
88760 | 1039 (unify-charset 'chinese-sisheng) |
1040 (unify-charset 'indian-is13194) | |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1041 (unify-charset 'korean-ksc5601) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1042 (unify-charset 'ipa) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1043 (unify-charset 'tibetan) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1044 (unify-charset 'ethiopic) |
88704 | 1045 ;; (unify-charset 'japanese-jisx0208-1978) |
88894
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1046 (unify-charset 'japanese-jisx0208) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1047 (unify-charset 'japanese-jisx0212) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1048 (unify-charset 'japanese-jisx0213-1) |
9eb791116de8
Unify these charses: korean-ksc5601, ipa, tibetan, ethiopic,
Kenichi Handa <handa@m17n.org>
parents:
88843
diff
changeset
|
1049 (unify-charset 'japanese-jisx0213-2) |
88588
2516c98d56d2
(vietnamese-viscii-lower, vietnamese-viscii-upper): Supply them
Kenichi Handa <handa@m17n.org>
parents:
88575
diff
changeset
|
1050 |
17070 | 1051 |
22126
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
1052 ;; These are tables for translating characters on decoding and |
97cf1cae1971
Change term unification to
Kenichi Handa <handa@m17n.org>
parents:
21713
diff
changeset
|
1053 ;; encoding. |
88760 | 1054 ;; Fixme: these aren't used now -- should they be? |
88411 | 1055 (setq standard-translation-table-for-decode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1056 |
22186
fc4aaf1b1772
Change term "character translation table" to "translation table".
Kenichi Handa <handa@m17n.org>
parents:
22126
diff
changeset
|
1057 (setq standard-translation-table-for-encode nil) |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1058 |
88760 | 1059 ;; Fixme: should this be retained? I guess it could be useful for |
1060 ;; non-unified charsets. | |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1061 (defvar translation-table-for-input nil |
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1062 "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
|
1063 \(Currently only used by Quail.)") |
17760
b3d62674b210
Delete code for alternate-charset-table.
Kenichi Handa <handa@m17n.org>
parents:
17541
diff
changeset
|
1064 |
17070 | 1065 ;;; Make fundamental coding systems. |
1066 | |
88411 | 1067 ;; The coding system `no-conversion' is already defined in coding.c as |
1068 ;; below: | |
1069 ;; | |
1070 ;; (define-coding-system 'no-conversion | |
1071 ;; "Do no conversion." | |
1072 ;; :coding-type 'raw-text | |
1073 ;; :mnemonic ?=) | |
18529
8e293f1a19a9
(binary): Define as coding system alias.
Richard M. Stallman <rms@gnu.org>
parents:
18519
diff
changeset
|
1074 |
88647 | 1075 (define-coding-system-alias 'binary 'no-conversion) |
1076 | |
88411 | 1077 (define-coding-system 'raw-text |
36518
60e98df5c4ce
(emacs-mule, raw-text): Docstring modified.
Kenichi Handa <handa@m17n.org>
parents:
35805
diff
changeset
|
1078 "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
|
1079 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
|
1080 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
|
1081 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
|
1082 byte. |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1083 |
9688519d51d6
(no-conversion): Fix docstring.
Kenichi Handa <handa@m17n.org>
parents:
36518
diff
changeset
|
1084 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
|
1085 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
|
1086 is treated as a character." |
88411 | 1087 :coding-type 'raw-text |
1088 :mnemonic ?t) | |
1089 | |
1090 (define-coding-system 'undecided | |
88647 | 1091 "No conversion on encoding, automatic conversion on decoding." |
88411 | 1092 :coding-type 'undecided |
1093 :mnemonic ?- | |
1094 :charset-list '(ascii)) | |
1095 | |
1096 (define-coding-system-alias 'unix 'undecided-unix) | |
1097 (define-coding-system-alias 'dos 'undecided-dos) | |
1098 (define-coding-system-alias 'mac 'undecided-mac) | |
1099 | |
1100 (define-coding-system 'iso-latin-1 | |
1101 "ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1)." | |
89091 | 1102 :coding-type 'charset |
88411 | 1103 :mnemonic ?1 |
89091 | 1104 :charset-list '(iso-8859-1) |
88411 | 1105 :mime-charset 'iso-8859-1) |
1106 | |
1107 (define-coding-system-alias 'iso-8859-1 'iso-latin-1) | |
1108 (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
|
1109 |
88411 | 1110 ;; Coding systems not specific to each language environment. |
1111 | |
1112 (define-coding-system 'emacs-mule | |
1113 "Emacs 21 internal format used in buffer and string." | |
1114 :coding-type 'emacs-mule | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1115 :charset-list 'emacs-mule |
88411 | 1116 :mnemonic ?M) |
1117 | |
1118 (define-coding-system 'utf-8 | |
1119 "UTF-8." | |
1120 :coding-type 'utf-8 | |
1121 :mnemonic ?U | |
89041
2ce9656d788b
(utf-8): Give :mime-charset property.
Kenichi Handa <handa@m17n.org>
parents:
88894
diff
changeset
|
1122 :charset-list '(unicode) |
2ce9656d788b
(utf-8): Give :mime-charset property.
Kenichi Handa <handa@m17n.org>
parents:
88894
diff
changeset
|
1123 :mime-charset 'utf-8) |
88411 | 1124 |
1125 (define-coding-system-alias 'mule-utf-8 'utf-8) | |
1126 | |
1127 (define-coding-system 'utf-8-emacs | |
88468 | 1128 "Support for all Emacs characters (including non-Unicode characters)." |
88411 | 1129 :coding-type 'utf-8 |
1130 :mnemonic ?U | |
88503 | 1131 :charset-list '(emacs) |
1132 :mime-charset 'utf-8) | |
88411 | 1133 |
1134 (define-coding-system 'utf-16 | |
1135 "UTF-16" | |
1136 :coding-type 'utf-16 | |
1137 :mnemonic ?U | |
88503 | 1138 :charset-list '(unicode) |
1139 :mime-charset 'utf-16) | |
17070 | 1140 |
88411 | 1141 (define-coding-system 'utf-16-le-nosig |
88647 | 1142 "UTF-16, little endian, no signature." |
88411 | 1143 :coding-type 'utf-16 |
1144 :mnemonic ?U | |
1145 :charset-list '(unicode) | |
1146 :endian 'little) | |
1147 | |
1148 (define-coding-system 'utf-16-be-nosig | |
88647 | 1149 "UTF-16, big endian, no signature." |
88411 | 1150 :coding-type 'utf-16 |
1151 :mnemonic ?U | |
1152 :charset-list '(unicode) | |
1153 :endian 'big) | |
1154 | |
1155 (define-coding-system 'utf-16-le | |
88647 | 1156 "UTF-16, little endian, with signature." |
88411 | 1157 :coding-type 'utf-16 |
1158 :mnemonic ?U | |
1159 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
1160 :bom t |
88503 | 1161 :endian 'little |
1162 :mime-charset 'utf-16-le) | |
17070 | 1163 |
88411 | 1164 (define-coding-system 'utf-16-be |
88647 | 1165 "UTF-16, big endian, with signature." |
88411 | 1166 :coding-type 'utf-16 |
1167 :mnemonic ?U | |
1168 :charset-list '(unicode) | |
88440
5b1dd2e30f16
(utf-16-le): Use :bom attribute instead of :signature.
Kenichi Handa <handa@m17n.org>
parents:
88411
diff
changeset
|
1169 :bom t |
88503 | 1170 :endian 'big |
1171 :mime-charset 'utf-16-be) | |
88411 | 1172 |
1173 (define-coding-system 'iso-2022-7bit | |
88647 | 1174 "ISO 2022 based 7-bit encoding using only G0." |
88411 | 1175 :coding-type 'iso-2022 |
1176 :mnemonic ?J | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1177 :charset-list 'iso-2022 |
88411 | 1178 :designation [(ascii t) nil nil nil] |
1179 :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation composition)) | |
1180 | |
1181 (define-coding-system 'iso-2022-7bit-ss2 | |
88647 | 1182 "ISO 2022 based 7-bit encoding using SS2 for 96-charset." |
88411 | 1183 :coding-type 'iso-2022 |
1184 :mnemonic ?$ | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1185 :charset-list 'iso-2022 |
88411 | 1186 :designation [(ascii 94) nil (nil 96) nil] |
1187 :flags '(short ascii-at-eol ascii-at-cntl 7-bit | |
1188 designation single-shift composition)) | |
1189 | |
1190 (define-coding-system 'iso-2022-7bit-lock | |
88647 | 1191 "ISO-2022 coding system using Locking-Shift for 96-charset." |
88411 | 1192 :coding-type 'iso-2022 |
1193 :mnemonic ?& | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1194 :charset-list 'iso-2022 |
88411 | 1195 :designation [(ascii 94) (nil 96) nil nil] |
1196 :flags '(ascii-at-eol ascii-at-cntl 7-bit | |
1197 designation locking-shift composition)) | |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1198 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
1199 (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
|
1200 |
88411 | 1201 (define-coding-system 'iso-2022-7bit-lock-ss2 |
88647 | 1202 "Mixture of ISO-2022-JP, ISO-2022-KR, and ISO-2022-CN." |
88411 | 1203 :coding-type 'iso-2022 |
1204 :mnemonic ?i | |
1205 :charset-list '(ascii | |
1206 japanese-jisx0208 japanese-jisx0208-1978 latin-jisx0201 | |
1207 korean-ksc5601 | |
1208 chinese-gb2312 | |
1209 chinese-cns11643-1 chinese-cns11643-2 chinese-cns11643-3 | |
1210 chinese-cns11643-4 chinese-cns11643-5 chinese-cns11643-6 | |
1211 chinese-cns11643-7) | |
1212 :designation [(ascii 94) | |
1213 (nil korean-ksc5601 chinese-gb2312 chinese-cns11643-1 96) | |
1214 (nil chinese-cns11643-2) | |
1215 (nil chinese-cns11643-3 chinese-cns11643-4 chinese-cns11643-5 | |
1216 chinese-cns11643-6 chinese-cns11643-7)] | |
1217 :flags '(short ascii-at-eol ascii-at-cntl 7-bit locking-shift | |
1218 single-shift init-bol)) | |
17070 | 1219 |
18519
b6badf3614ea
Fix calls to define-coding-system-alias.
Richard M. Stallman <rms@gnu.org>
parents:
18377
diff
changeset
|
1220 (define-coding-system-alias 'iso-2022-cjk 'iso-2022-7bit-lock-ss2) |
17070 | 1221 |
88411 | 1222 (define-coding-system 'iso-2022-8bit-ss2 |
88647 | 1223 "ISO 2022 based 8-bit encoding using SS2 for 96-charset." |
88411 | 1224 :coding-type 'iso-2022 |
1225 :mnemonic ?@ | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1226 :charset-list 'iso-2022 |
88411 | 1227 :designation [(ascii 94) nil (nil 96) nil] |
1228 :flags '(ascii-at-eol ascii-at-cntl designation single-shift composition)) | |
17070 | 1229 |
88411 | 1230 (define-coding-system 'compound-text |
1231 "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
|
1232 |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1233 This coding system does not support ICCCM Extended Segments." |
88411 | 1234 :coding-type 'iso-2022 |
1235 :mnemonic ?x | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1236 :charset-list 'iso-2022 |
88411 | 1237 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] |
1238 :flags '(ascii-at-eol ascii-at-cntl | |
1239 designation locking-shift single-shift composition) | |
88503 | 1240 ;; Fixme: this isn't a valid MIME charset and has to be |
1241 ;; special-cased elsewhere -- fx | |
88411 | 1242 :mime-charset 'x-ctext) |
24619
6057f7a48050
(x-ctext): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
24308
diff
changeset
|
1243 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1244 (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
|
1245 (define-coding-system-alias 'ctext 'compound-text) |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1246 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1247 ;; 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
|
1248 ;; 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
|
1249 ;; 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
|
1250 ;; 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
|
1251 ;; close to the beginning of coding systems ordered by priority. |
88411 | 1252 (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
|
1253 "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
|
1254 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1255 Like `compound-text', but does not produce escape sequences for compositions." |
88411 | 1256 :coding-type 'iso-2022 |
1257 :mnemonic ?x | |
89102
1365cbd31156
(emacs-mule, iso-2022-7bit)
Kenichi Handa <handa@m17n.org>
parents:
89091
diff
changeset
|
1258 :charset-list 'iso-2022 |
88411 | 1259 :designation [(ascii 94) (latin-iso8859-1 katakana-jisx0201 96) nil nil] |
1260 :flags '(ascii-at-eol ascii-at-cntl | |
1261 designation locking-shift single-shift)) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1262 |
88411 | 1263 (define-coding-system 'compound-text-with-extensions |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1264 "Compound text encoding with ICCCM Extended Segment extensions. |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1265 |
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1266 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
|
1267 for decoding and encoding files, process I/O, etc." |
88411 | 1268 :coding-type 'raw-text |
1269 :mnemonic ?x | |
1270 :post-read-conversion 'ctext-post-read-conversion | |
1271 :pre-write-conversion 'ctext-pre-write-conversion) | |
43458
3dd402082e18
(ctext-no-compositions): New coding system.
Eli Zaretskii <eliz@gnu.org>
parents:
42112
diff
changeset
|
1272 |
43552
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1273 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1274 '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
|
1275 (define-coding-system-alias |
52e76230bc9c
(compound-text): Renamed back from compound-text-no-extensions.
Eli Zaretskii <eliz@gnu.org>
parents:
43458
diff
changeset
|
1276 '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
|
1277 |
88411 | 1278 (define-coding-system 'us-ascii |
1279 "Convert all characters but ASCII to `?'." | |
1280 :coding-type 'charset | |
1281 :mnemonic ?- | |
1282 :charset-list '(ascii) | |
1283 :default-char ?? | |
1284 :mime-charset 'us-ascii) | |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1285 |
88411 | 1286 (define-coding-system-alias 'iso-safe 'us-ascii) |
1287 | |
1288 ;; Use us-ascii for terminal output if some other coding system is not | |
23196 | 1289 ;; specified explicitly. |
88411 | 1290 (set-safe-terminal-coding-system-internal 'us-ascii) |
19266
a042f26b7a4c
(iso-safe): New coding system.
Kenichi Handa <handa@m17n.org>
parents:
19005
diff
changeset
|
1291 |
17070 | 1292 ;; The other coding-systems are defined in each language specific |
88411 | 1293 ;; files under lisp/language. |
17070 | 1294 |
21713
aa160e4358ac
(file-coding-system-alist): Use emacs-mule for .elc files.
Richard M. Stallman <rms@gnu.org>
parents:
20732
diff
changeset
|
1295 ;; 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
|
1296 ;; 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
|
1297 ;; 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
|
1298 ;; Tar files are not decoded at all, but we treat them as raw bytes. |
17070 | 1299 |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1300 (setq file-coding-system-alist |
88776
805a3bb7daf4
(file-coding-system-alist): Change
Dave Love <fx@gnu.org>
parents:
88760
diff
changeset
|
1301 '(("\\.elc\\'" . utf-8-emacs) |
42047
83eb799f3657
(translation-table-for-input): New
Dave Love <fx@gnu.org>
parents:
41468
diff
changeset
|
1302 ("\\.utf\\(-8\\)?\\'" . utf-8) |
88575 | 1303 ;; This is the defined default for XML documents. It may be |
1304 ;; overridden by a charset specification in the header. That | |
1305 ;; should be grokked by the auto-coding mechanism, but rms | |
1306 ;; vetoed that. -- fx | |
1307 ("\\.xml\\'" . utf-8) | |
34264
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1308 ;; 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
|
1309 ;; 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
|
1310 ;; newlines. This is required to make the special treatment |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1311 ;; of the "\ newline" combination in loaddefs.el, which marks |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1312 ;; the beginning of a doc string, work. |
b0c17ac74953
(file-coding-system-alist): Use
Eli Zaretskii <eliz@gnu.org>
parents:
33933
diff
changeset
|
1313 ("\\(\\`\\|/\\)loaddefs.el\\'" . (raw-text . raw-text-unix)) |
32228
6a5bae3ed1c1
file-coding-system-alist): Use \',
Dave Love <fx@gnu.org>
parents:
30260
diff
changeset
|
1314 ("\\.tar\\'" . (no-conversion . no-conversion)) |
18196
85354a726fa5
Coding system names changed.
Kenichi Handa <handa@m17n.org>
parents:
17992
diff
changeset
|
1315 ("" . (undecided . nil)))) |
17070 | 1316 |
1317 | |
1318 ;;; Setting coding categories and their priorities. | |
1319 | |
1320 ;; This setting is just to read an Emacs Lisp source files which | |
1321 ;; 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
|
1322 ;; values are set by the command `set-language-environment' for each |
17070 | 1323 ;; language environment. |
1324 | |
88411 | 1325 (set-coding-system-priority |
1326 'iso-latin-1 | |
1327 'utf-8 | |
1328 'iso-2022-7bit | |
1329 ) | |
17070 | 1330 |
19372 | 1331 |
1332 ;;; Miscellaneous settings. | |
88411 | 1333 |
1334 ;; Make all multibyte characters self-insert. | |
1335 (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
|
1336 (cons 128 (max-char)) |
88411 | 1337 'self-insert-command) |
1338 | |
19372 | 1339 (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
|
1340 |
88647 | 1341 ;; Move least specific charsets to end of priority list |
1342 | |
1343 (apply #'set-charset-priority | |
1344 (delq 'unicode (delq 'emacs (charset-priority-list)))) | |
1345 | |
88600 | 1346 ;; The old code-pages library is obsoleted by coding systems based on |
1347 ;; the charsets defined in this file but might be required by user | |
1348 ;; code. | |
1349 (provide 'code-pages) | |
1350 | |
88575 | 1351 ;; Local variables: |
1352 ;; no-byte-compile: t | |
1353 ;; End: | |
1354 | |
17070 | 1355 ;;; mule-conf.el ends here |