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,2004,2005,2006,2008 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 '=jis-x0208-1978 '=jis-x0208@1978)
29 (define-charset-alias 'japanese-jisx0208-1978 '=jis-x0208@1978)
30 (define-charset-alias 'chinese-gb2312 '=gb2312)
31 (define-charset-alias '=jis-x0208-1983 '=jis-x0208@1983)
32 (define-charset-alias 'japanese-jisx0208 '=jis-x0208@1983)
33 (define-charset-alias 'korean-ksc5601 '=ks-x1001)
34 (define-charset-alias 'japanese-jisx0212 '=jis-x0212)
35 (define-charset-alias 'chinese-cns11643-1 '=cns11643-1)
36 (define-charset-alias 'chinese-cns11643-2 '=cns11643-2)
37 (define-charset-alias 'chinese-gb12345 '=gb12345)
38 (define-charset-alias 'chinese-big5 '=big5)
41 (make-charset 'sisheng "PinYin-ZhuYin"
42 '(registry "sisheng_cwnn\\|OMRON_UDC_ZH"
50 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F.
51 (make-charset 'lao "Lao script"
52 '(registry "MuleLao-1"
58 ;; IPA (International Phonetic Alphabet)
59 (make-charset 'ipa "International Phonetic Alphabet"
67 (make-charset 'ethiopic "Ethiopic"
75 ;; ISO-IR-165 (CCITT Extended GB)
76 ;; It is based on CCITT Recommendation T.101, includes GB 2312-80 +
77 ;; GB 8565-88 table A4 + 293 characters.
78 (if (featurep 'utf-2000)
80 (make-charset '=iso-ir165
81 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
89 (define-charset-alias 'chinese-isoir165 '=iso-ir165))
90 (make-charset 'chinese-isoir165
91 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
99 ;; CNS11643 Plane3 thru Plane7
100 ;; These represent more and more obscure Chinese characters.
101 ;; By the time you get to Plane 7, we're talking about characters
102 ;; that appear once in some ancient manuscript and whose meaning
106 ((make-chinese-cns11643-charset
107 (name iso-ir plane final)
109 name (concat "CNS 11643 Plane " plane " (Chinese traditional)")
112 ,(concat "CNS11643[.-]\\(.*[.-]\\)?" plane "$")
118 (make-chinese-cns11643-charset '=cns11643-3 183 "3" ?I)
119 (make-chinese-cns11643-charset '=cns11643-4 184 "4" ?J)
120 (make-chinese-cns11643-charset '=cns11643-5 185 "5" ?K)
121 (make-chinese-cns11643-charset '=cns11643-6 186 "6" ?L)
122 (make-chinese-cns11643-charset '=cns11643-7 187 "7" ?M)
123 (define-charset-alias 'chinese-cns11643-3 '=cns11643-3)
124 (define-charset-alias 'chinese-cns11643-4 '=cns11643-4)
125 (define-charset-alias 'chinese-cns11643-5 '=cns11643-5)
126 (define-charset-alias 'chinese-cns11643-6 '=cns11643-6)
127 (define-charset-alias 'chinese-cns11643-7 '=cns11643-7)
132 ((featurep 'utf-2000)
135 "JIS X 0213 Plain 1 (unchanged part)"
136 '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
145 "JIS X 0213:2000 Plain 1"
147 registry "jisx0213\\(\\.2000\\)-1"
157 registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
165 "JIS X 0213:2004 Plain 1"
167 registry "jisx0213\\(\\.2004\\)-1"
174 (define-charset-alias 'japanese-jisx0213-1 '=jis-x0213-1@2000)
175 (define-charset-alias 'japanese-jisx0213-2 '=jis-x0213-2)
176 ;; (define-charset-alias '=jis-x0213-1-2000 '=jis-x0213-1@2000)
177 (define-charset-alias '=jis-x0213-1-2000 '=jis-x0213-1)
178 (define-charset-alias '=jis-x0213-2-2000 '=jis-x0213-2)
183 "JIS X 0213:2000 Plain 1"
184 '(registry "jisx0213\\(\\.2000\\)-1"
191 "JIS X 0213:2000 Plain 2"
192 '(registry "jisx0213\\(\\.2000\\)-2"
199 (when (featurep 'utf-2000)
200 (define-charset-alias 'ucs '=ucs)
201 (define-charset-alias '=jis-x0208-1990 '=jis-x0208@1990)
202 (define-charset-alias 'japanese-jisx0208-1990 '=jis-x0208@1990)
205 "JIS X 0208 based on the unification rule of 1997 edition."
206 '(registry "jisx0208\\.1990"
214 "The first impression of JIS X 0208:1978."
215 '(registry "jisx0208\\.1978"
218 mother =jis-x0208@1978
223 "The second and third impressions of JIS X 0208:1978."
224 '(registry "jisx0208\\.1978"
227 mother =jis-x0208@1978
231 (make-charset '=big5-cdp
232 "Big5 with CDP extension"
233 '(long-name "Big5-CDP"
239 registry "big5\\.cdp-0"
243 (define-charset-alias 'chinese-big5-cdp '=big5-cdp)
254 min-code ,(lsh #x6100 16)
255 max-code ,(+ (lsh #x6100 16) 67547)
256 code-offset ,(lsh #x6100 16)))
257 (define-charset-alias 'ideograph-gt '=gt)
259 "Ideographic components of GT"
260 `(long-name "GT components"
267 min-code ,(lsh #x6110 16)
268 max-code ,(+ (lsh #x6110 16) 17090)
269 code-offset ,(lsh #x6110 16)))
270 (define-charset-alias 'ideograph-gt-k '=gt-k)
274 (intern (format "=gt-pj-%d" i))
275 (format "GT 2000 (pseudo JIS encoding) part %d" i)
276 `(long-name ,(format "GT PJ %d" i)
282 registry ,(format "\\(GTpj-%d\\|jisx0208\\.GT-%d\\)$" i i)))
283 (define-charset-alias
284 (intern (format "ideograph-gt-pj-%d" i))
285 (intern (format "=gt-pj-%d" i)))
289 "Ideographic parts of GT (pseudo JIS encoding) part 1"
296 registry "\\(GTKpj-1\\|jisx0208\\.GTK-1\\)$"))
297 (define-charset-alias 'ideograph-gt-pj-k1 '=gt-pj-k1)
300 "Ideographic parts of GT (pseudo JIS encoding) part 2"
307 registry "\\(GTKpj-2\\|jisx0208\\.GTK-2\\)$"))
308 (define-charset-alias 'ideograph-gt-pj-k2 '=gt-pj-k2)
310 (make-charset '=daikanwa
311 "Daikanwa dictionary (revised version 2)"
312 `(long-name "Daikanwa"
318 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
320 max-code ,(+ #xE00000 50100)
321 code-offset #xE00000))
322 (define-charset-alias 'ideograph-daikanwa '=daikanwa)
324 (make-charset '=daikanwa@rev1
325 "Daikanwa dictionary (revised version)"
326 `(long-name "Daikanwa Rev."
332 registry "Daikanwa\\(\\.[0-9]+\\)?-2"
335 (define-charset-alias 'ideograph-daikanwa-2 '=daikanwa@rev1)
336 (define-charset-alias '=daikanwa-rev1 '=daikanwa@rev1)
338 (make-charset '=daikanwa@rev2
339 "Daikanwa dictionary (revised version 2)"
340 `(long-name "Daikanwa"
346 registry "Daikanwa\\(\\.[0-9]+\\)?-3"
351 ;; max-code ,(+ #xE00000 50100)
352 ;; code-offset #xE00000
354 (define-charset-alias '=daikanwa-rev2 '=daikanwa@rev2)
356 (make-charset '=shinjigen
357 "Kadokawa ShinJigen dictionary (common parts)"
358 `(long-name "Shinjigen common parts"
364 registry "Shinjigen\\(\\.[0-9]+\\)?-*"))
366 (make-charset '=shinjigen@1ed
367 "Kadokawa ShinJigen dictionary (the first edition)"
368 `(long-name "Shinjigen-1"
375 registry "Shinjigen\\(\\.[0-9]+\\)?-1"))
376 (define-charset-alias 'shinjigen-1 '=shinjigen@1ed)
378 (make-charset '=shinjigen@1ed/24pr
379 "Kadokawa ShinJigen dictionary (the 24th impression)"
380 `(long-name "Shinjigen-1 24pr"
386 mother =shinjigen@1ed))
388 (make-charset '=shinjigen@rev
389 "Kadokawa ShinJigen dictionary (the revised edition)"
390 `(long-name "Shinjigen-2"
397 registry "Shinjigen\\(\\.[0-9]+\\)?-2"))
398 (define-charset-alias 'shinjigen-2 '=shinjigen@rev)
399 (make-charset '=shinjigen/+p@rev
400 "ShinJigen (the second edition) number with '"
401 `(long-name "Shinjigen-2 with '"
407 (define-charset-alias 'shinjigen-2-p '=shinjigen/+p@rev)
409 (make-charset '=big5-pua
410 "Big5 with private used area"
411 '(long-name "Big5-PUA"
418 registry "Big5\\.ETEN"))
419 (define-charset-alias 'chinese-big5-pua '=big5-pua)
420 (make-charset '=big5-eten
422 '(long-name "Big5-ETEN"
431 registry "Big5\\.ETEN"))
432 (define-charset-alias 'chinese-big5-eten '=big5-eten)
433 (make-charset 'chinese-big5-eten-a
434 "Big5 ETEN (#xF9D6 .. #xF9FE)"
435 '(long-name "Big5-ETEN-a"
444 registry "Big5\\.ETEN"))
445 (make-charset 'chinese-big5-eten-b
446 "Big5 ETEN (#xC6A1 .. #xC8FE)"
447 '(long-name "Big5-ETEN-b"
456 registry "Big5\\.ETEN"))
459 (hzk-min (+ (lsh #x6200 16) 65536))
460 (hzk-max (+ hzk-min 65535)))
463 (intern (format "=hanziku-%d" i))
464 (format "HANZIKU (pseudo BIG5 encoding) part %d" i)
465 `(long-name ,(format "HANZIKU-%d" i)
471 registry ,(format "hanziku-%d$" i i)
474 code-offset ,hzk-min))
475 (define-charset-alias
476 (intern (format "ideograph-hanziku-%d" i))
477 (intern (format "=hanziku-%d" i)))
478 (setq hzk-min (1+ hzk-max)
479 hzk-max (+ hzk-min 65535))
482 (make-charset '=cbeta "CBETA private characters"
483 '(long-name "CBETA PUA"
493 (define-charset-alias 'ideograph-cbeta '=cbeta)
495 (make-charset '=zinbun-oracle
496 "Oracle Bones Script"
497 `(long-name "Oracle Bones Script in Zinbun, Kyoto Univ."
503 max-code ,(+ #xE70000 8192)
508 (make-charset '=jef-china3
509 "JEF + CHINA3 private characters"
510 '(long-name "JEF + CHINA3"
516 registry "china3jef-0"
519 code-offset #xE80000))
520 (define-charset-alias 'china3-jef '=jef-china3)
522 (make-charset '=ruimoku-v6
523 "private characters used in RUIMOKU Version.6"
532 min-code #xE90000 ; #xE000
533 max-code #xE908FF ; #xE8FF
534 code-offset ,(- #xE90000 #xE000)))
536 (make-charset '=ucs@iso
537 "ISO/IEC 10646 for its representative glyphs"
538 '(long-name "UCS for ISO"
545 (make-charset '=ucs@unicode
546 "Unicode for its representative glyphs"
547 '(long-name "UCS for Unicode"
554 (make-charset '=ucs@gb
555 "ISO/IEC 10646 for GB"
556 '(long-name "UCS for GB"
562 mother =ucs@unicode))
563 (define-charset-alias 'ucs-gb '=ucs@gb)
564 (make-charset '=ucs@gb/fw
565 "ISO/IEC 10646 for GB with fullwidth"
566 '(long-name "UCS for GB-fullwidth"
573 (make-charset '=ucs-bmp@gb
574 "ISO/IEC 10646 BMP for GB"
575 '(long-name "BMP for GB"
584 (make-charset '=ucs@cns
585 "ISO/IEC 10646 for CNS 11643"
586 '(long-name "UCS for CNS"
592 mother =ucs@unicode))
593 (define-charset-alias 'ucs-cns '=ucs@cns)
594 (make-charset '=ucs@cns/fw
595 "ISO/IEC 10646 for CNS 11643 with fullwidth"
596 '(long-name "UCS for CNS-fullwidth"
603 (make-charset '=ucs-bmp@cns
604 "ISO/IEC 10646 BMP for CNS"
605 '(long-name "BMP for CNS"
614 (make-charset '=ucs@jis
615 "ISO/IEC 10646 for JIS X0208/0212/0213"
616 '(long-name "UCS for JIS"
622 mother =ucs@unicode))
623 (define-charset-alias 'ucs-jis '=ucs@jis)
624 (make-charset '=ucs@jis/fw
625 "ISO/IEC 10646 for JIS X0208/0212/0213 with fullwidth"
626 '(long-name "UCS for JIS-fullwidth"
633 (make-charset '=ucs-bmp@jis
634 "ISO/IEC 10646 BMP for JIS"
635 '(long-name "BMP for JIS"
644 (make-charset '=ucs@jis/1990
645 "ISO/IEC 10646 for JIS X 0208/0212:1990"
646 '(long-name "UCS for JIS:1990"
653 (define-charset-alias '=ucs@jis-1990 '=ucs@jis/1990)
654 (define-charset-alias '=ucs-jis-1990 '=ucs@jis/1990)
655 (make-charset '=ucs@jis/2000
656 "ISO/IEC 10646 for JIS X 0213:2000"
657 '(long-name "UCS for JIS:2000"
664 (define-charset-alias '=ucs@jis-2000 '=ucs@jis/2000)
665 (define-charset-alias '=ucs-jis-2000 '=ucs@jis/2000)
666 (make-charset '=ucs@JP
667 "UCS for common glyphs used in Japan"
668 '(long-name "UCS for Japan"
674 mother =ucs@jis/2000))
675 (define-charset-alias '=ucs@jp '=ucs@JP)
676 (make-charset '=ucs@ks
677 "ISO/IEC 10646 for Korean Standards"
678 '(long-name "UCS for KS"
684 mother =ucs@unicode))
685 (define-charset-alias 'ucs-ks '=ucs@ks)
686 (make-charset '=ucs-bmp@ks
687 "ISO/IEC 10646 BMP for KS"
688 '(long-name "BMP for KS"
697 (make-charset '=ucs@big5
698 "ISO/IEC 10646 for Big5"
699 '(long-name "UCS for Big5"
705 mother =ucs@unicode))
706 (define-charset-alias 'ucs-big5 '=ucs@big5)
707 (make-charset '=ucs@big5/cns11643
708 "ISO/IEC 10646 for Big5 based on www.cns11643.gov.tw"
709 '(long-name "UCS for Big5@CNS11643"
716 (make-charset '=ucs@cns11643
717 "ISO/IEC 10646 for CNS based on www.cns11643.gov.tw"
718 '(long-name "UCS for CNS11643"
728 "CJK Radicals of UCS"
729 '(long-name "UCS-Radicals"
735 registry "-zhRadicals-.*-ucs-0"
737 min-code #x2E00 max-code #x2FFF))
739 '=ucs-radicals@unicode
740 "CJK Radicals of UCS"
741 '(long-name "UCS-Radicals"
747 registry "-zhRadicals-.*-ucs-0"
749 min-code #x2E00 max-code #x2FFF))
752 "Hangul Syllables of UCS"
753 '(long-name "UCS-Hangul-Syllables"
759 registry "-Hangul-.*-ucs-0"
761 min-code #xAC00 max-code #xD7AF))
764 "CJK Characters in BMP of UCS"
765 '(long-name "UCS-BMP-CJK"
771 registry "-zh-.*-ucs-0"
778 '=ucs-bmp-cjk@unicode
779 "CJK Characters in BMP of Unicode"
780 '(long-name "Unicode-BMP-CJK"
786 registry "-zh-.*-ucs-0"
794 "CJK Ideographs Extension B"
795 '(long-name "UCS CJK Ext-B"
801 registry "\\(iso10646\\|ucs02\\)-2$"
803 min-code #x20000 max-code #x2A6D6
804 code-offset #x20000))
807 "CJK Ideographs Extension B (ISO/IEC 10646-2)"
808 '(long-name "UCS CJK Ext-B"
814 registry "\\(iso10646\\|ucs02\\)-2$"
816 min-code #x20000 max-code #x2A6D6
817 code-offset #x20000))
821 "Adobe-Japan1-0 Character Collection for CID-Keyed Fonts"
822 '(long-name "Adobe-Japan1-0"
828 registry "AdobeJapan1-0$"))
831 "Adobe-Japan1-1 Character Collection for CID-Keyed Fonts"
832 '(long-name "Adobe-Japan1-1"
838 mother =adobe-japan1-0
839 registry "AdobeJapan1-1$"))
842 "Adobe-Japan1-2 Character Collection for CID-Keyed Fonts"
843 '(long-name "Adobe-Japan1-2"
849 mother =adobe-japan1-1
850 registry "AdobeJapan1-2$"))
853 "Adobe-Japan1-3 Character Collection for CID-Keyed Fonts"
854 '(long-name "Adobe-Japan1-3"
860 mother =adobe-japan1-2
861 registry "AdobeJapan1-3$"))
864 "Adobe-Japan1-4 Character Collection for CID-Keyed Fonts"
865 '(long-name "Adobe-Japan1-4"
871 mother =adobe-japan1-3
872 registry "AdobeJapan1-4$"))
875 "Adobe-Japan1-5 Character Collection for CID-Keyed Fonts"
876 '(long-name "Adobe-Japan1-5"
882 mother =adobe-japan1-4
883 registry "AdobeJapan1-5$"))
886 "Adobe-Japan1-6 Character Collection for CID-Keyed Fonts"
887 '(long-name "Adobe-Japan1-6"
893 mother =adobe-japan1-5
894 registry "AdobeJapan1-6$"))
897 ;;; mule-conf.el ends here