1 ;;; mule-conf.el --- configure multilingual environment
3 ;; Copyright (C) 1995,1999 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 1997,1999,2000,2002,2003 MORIOKA Tomohiko
7 ;; Keywords: mule, multilingual, character set, coding system
9 ;; This file is part of XEmacs.
11 ;; XEmacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; XEmacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
28 (define-charset-alias 'japanese-jisx0208-1978 '=jis-x0208-1978)
29 (define-charset-alias 'japanese-jisx0208 '=jis-x0208-1983)
32 (make-charset 'sisheng "PinYin-ZhuYin"
33 '(registry "sisheng_cwnn\\|OMRON_UDC_ZH"
41 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F.
42 (make-charset 'lao "Lao script"
43 '(registry "MuleLao-1"
49 ;; IPA (International Phonetic Alphabet)
50 (make-charset 'ipa "International Phonetic Alphabet"
58 (make-charset 'ethiopic "Ethiopic"
66 ;; ISO-IR-165 (CCITT Extended GB)
67 ;; It is based on CCITT Recommendation T.101, includes GB 2312-80 +
68 ;; GB 8565-88 table A4 + 293 characters.
69 (make-charset '=iso-ir165
70 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
77 (define-charset-alias 'chinese-isoir165 '=iso-ir165)
79 ;; CNS11643 Plane3 thru Plane7
80 ;; These represent more and more obscure Chinese characters.
81 ;; By the time you get to Plane 7, we're talking about characters
82 ;; that appear once in some ancient manuscript and whose meaning
86 ((make-chinese-cns11643-charset
87 (name iso-ir plane final)
89 name (concat "CNS 11643 Plane " plane " (Chinese traditional)")
92 ,(concat "CNS11643[.-]\\(.*[.-]\\)?" plane "$")
98 (make-chinese-cns11643-charset 'chinese-cns11643-3 183 "3" ?I)
99 (make-chinese-cns11643-charset 'chinese-cns11643-4 184 "4" ?J)
100 (make-chinese-cns11643-charset 'chinese-cns11643-5 185 "5" ?K)
101 (make-chinese-cns11643-charset 'chinese-cns11643-6 186 "6" ?L)
102 (make-chinese-cns11643-charset 'chinese-cns11643-7 187 "7" ?M)
106 (if (featurep 'utf-2000)
110 "JIS X 0213:2000 Plain 1"
112 registry "jisx0213\\(\\.2000\\)-1"
115 mother =jis-x0208-1990
120 "JIS X 0213:2000 Plain 2"
122 registry "jisx0213\\(\\.2000\\)-2"
127 (define-charset-alias 'japanese-jisx0213-1 '=jis-x0213-1-2000)
128 (define-charset-alias 'japanese-jisx0213-2 '=jis-x0213-2-2000)
132 "JIS X 0213:2000 Plain 1"
133 '(registry "jisx0213\\(\\.2000\\)-1"
140 "JIS X 0213:2000 Plain 2"
141 '(registry "jisx0213\\(\\.2000\\)-2"
148 (when (featurep 'utf-2000)
149 (define-charset-alias 'ucs '=ucs)
150 (define-charset-alias 'japanese-jisx0208-1990 '=jis-x0208-1990)
151 (make-charset '=ucs@gb
153 `(long-name "ISO/IEC 10646 for GB"
160 (define-charset-alias 'ucs-gb '=ucs@gb)
161 (make-charset '=ucs@cns
163 `(long-name "ISO/IEC 10646 for CNS 11643"
170 (define-charset-alias 'ucs-cns '=ucs@cns)
171 (make-charset '=ucs@jis
173 `(long-name "ISO/IEC 10646 for JIS X0208/0212/0213"
180 (define-charset-alias 'ucs-jis '=ucs@jis)
181 (make-charset '=ucs@jis-1990
183 `(long-name "ISO/IEC 10646 for JIS X 0208/0212:1990"
190 (define-charset-alias '=ucs-jis-1990 '=ucs@jis-1990)
191 (make-charset '=ucs@jis-2000
193 `(long-name "ISO/IEC 10646 for JIS X 0213:2000"
200 (define-charset-alias '=ucs-jis-2000 '=ucs@jis-2000)
201 (make-charset '=ucs@ks
203 `(long-name "ISO/IEC 10646 for Korean Standards"
210 (define-charset-alias 'ucs-ks '=ucs@ks)
211 (make-charset '=ucs@big5
213 `(long-name "ISO/IEC 10646 for Big5"
220 (define-charset-alias 'ucs-big5 '=ucs@big5)
222 (make-charset 'ideograph-daikanwa
224 `(long-name "Daikanwa dictionary (revised version 2)"
230 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
232 max-code ,(+ #xE00000 50100)
233 code-offset #xE00000))
235 (make-charset '=daikanwa-rev1
237 `(long-name "Daikanwa dictionary (revised version)"
243 registry "Daikanwa\\(\\.[0-9]+\\)?-2"))
244 (define-charset-alias 'ideograph-daikanwa-2 '=daikanwa-rev1)
246 (make-charset '=daikanwa-rev2
248 `(long-name "Daikanwa dictionary (revised version 2)"
254 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
256 max-code ,(+ #xE00000 50100)
257 code-offset #xE00000))
259 (make-charset '=big5-pua
261 `(long-name "Big5 with private used area"
268 registry "Big5\\.ETEN"))
269 (define-charset-alias 'chinese-big5-pua '=big5-pua)
270 (make-charset '=big5-eten
272 `(long-name "Big5 ETEN"
281 registry "Big5\\.ETEN"))
282 (define-charset-alias 'chinese-big5-eten '=big5-eten)
283 (make-charset 'chinese-big5-eten-a
285 `(long-name "Big5 ETEN (#xF9D6 .. #xF9FE)"
294 registry "Big5\\.ETEN"))
295 (make-charset 'chinese-big5-eten-b
297 `(long-name "Big5 ETEN (#xC6A1 .. #xC8FE)"
306 registry "Big5\\.ETEN"))
307 (make-charset '=big5-cdp
309 `(long-name "Big5 with CDP extension"
315 registry "big5\\.cdp-0"
319 (define-charset-alias 'chinese-big5-cdp '=big5-cdp)
321 (hzk-min (+ (lsh #x6200 16) 65536))
322 (hzk-max (+ hzk-min 65535)))
325 (intern (format "=hanziku-%d" i))
326 (format "HANZIKU-%d" i)
327 `(long-name ,(format "HANZIKU (pseudo BIG5 encoding) part %d" i)
333 registry ,(format "hanziku-%d$" i i)
336 code-offset ,hzk-min))
337 (define-charset-alias
338 (intern (format "ideograph-hanziku-%d" i))
339 (intern (format "=hanziku-%d" i)))
340 (setq hzk-min (1+ hzk-max)
341 hzk-max (+ hzk-min 65535))
346 `(long-name "GT 2000"
353 min-code ,(lsh #x6100 16)
354 max-code ,(+ (lsh #x6100 16) 67547)
355 code-offset ,(lsh #x6100 16)))
356 (define-charset-alias 'ideograph-gt '=gt)
359 `(long-name "Ideographic parts of GT"
366 min-code ,(lsh #x6110 16)
367 max-code ,(+ (lsh #x6110 16) 17090)
368 code-offset ,(lsh #x6110 16)))
369 (define-charset-alias 'ideograph-gt-k '=gt-k)
373 (intern (format "=gt-pj-%d" i))
374 (format "GT PJ %d" i)
375 `(long-name ,(format "GT 2000 (pseudo JIS encoding) part %d" i)
381 registry ,(format "\\(GTpj-%d\\|jisx0208\\.GT-%d\\)$" i i)))
382 (define-charset-alias
383 (intern (format "ideograph-gt-pj-%d" i))
384 (intern (format "=gt-pj-%d" i)))
389 `(long-name "Ideographic parts of GT (pseudo JIS encoding) part 1"
395 registry "\\(GTKpj-1\\|jisx0208\\.GTK-1\\)$"))
396 (define-charset-alias 'ideograph-gt-pj-k1 '=gt-pj-k1)
400 `(long-name "Ideographic parts of GT (pseudo JIS encoding) part 2"
406 registry "\\(GTKpj-2\\|jisx0208\\.GTK-2\\)$"))
407 (define-charset-alias 'ideograph-gt-pj-k2 '=gt-pj-k2)
408 (make-charset '=cbeta "CBETA PUA"
409 '(long-name "CBETA private characters"
419 (define-charset-alias 'ideograph-cbeta '=cbeta)
420 (make-charset '=jef-china3
422 `(long-name "JEF + CHINA3 private characters"
428 registry "china3jef-0"
431 code-offset #xE80000))
432 (define-charset-alias 'china3-jef '=jef-china3)
435 ;;; mule-conf.el ends here