Sync up with r21-4-22-chise-0_24-jis-x0213-2004-add.
[chise/xemacs-chise.git] / lisp / mule / mule-conf.el
1 ;;; mule-conf.el --- configure multilingual environment
2
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,
6 ;;   2009, 2010 MORIOKA Tomohiko
7
8 ;; Keywords: mule, multilingual, character set, coding system
9
10 ;; This file is part of XEmacs.
11
12 ;; XEmacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; any later version.
16
17 ;; XEmacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 ;; GNU General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with XEmacs; see the file COPYING.  If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
26
27 ;;; Code:
28
29 (cond
30  ((featurep 'utf-2000)
31   (make-charset
32    '=jis-x0208@1978
33    "JIS X 0208:1978, unchanged part."
34    '(registry "jisx0208\\.1978"
35               dimension 2
36               chars 94
37               mother =jis-x0208
38               =>iso-ir 42
39               final ?@
40               graphic 0
41               partial t))
42   (make-charset
43    '=jis-x0208@1978/-4pr
44    "JIS X 0208:1978, 1st - 3rd impressions."
45    '(registry "jisx0208\\.1978"
46               dimension 2
47               chars 94
48               mother =jis-x0208@1978
49               =>iso-ir 42
50               final ?@
51               graphic 0
52               partial t))
53   (make-charset
54    '=jis-x0208@1978/1pr
55    "JIS X 0208:1978, 1st impression."
56    '(iso-ir 42
57             registry "jisx0208\\.1978"
58             dimension 2
59             chars 94
60             mother =jis-x0208@1978/-4pr
61             final ?@
62             graphic 0))
63   (make-charset
64    '=jis-x0208@1978/-4X
65    "JIS X 0208:1978, index before the 4th impression."
66    '(registry "jisx0208\\.1978"
67               dimension 2
68               chars 94
69               mother =jis-x0208@1978
70               =>iso-ir 42
71               ;; final ?@
72               graphic 0
73               partial t))
74   (make-charset
75    '=jis-x0208@1978/1er-pr
76    "JIS X 0208:1978, fixed by errata [Nov 1978]."
77    '(registry "jisx0208\\.1978"
78               dimension 2
79               chars 94
80               mother =jis-x0208@1978
81               =>iso-ir 42
82               ;; final ?@
83               graphic 0
84               partial t))
85   (make-charset
86    '=jis-x0208@1978/2-pr
87    "JIS X 0208:1978, 2nd impression or later."
88    '(registry "jisx0208\\.1978"
89               dimension 2
90               chars 94
91               mother =jis-x0208@1978/1er-pr
92               =>iso-ir 42
93               ;; final ?@
94               graphic 0
95               partial t))
96   (make-charset
97    '=jis-x0208@1978/4er
98    "JIS X 0208:1978, replaced by errata of 4th impression."
99    '(registry "jisx0208\\.1978"
100               dimension 2
101               chars 94
102               mother =jis-x0208@1978/2-pr
103               =>iso-ir 42
104               ;; final ?@
105               graphic 0
106               partial t))
107   (make-charset
108    '=jis-x0208@1978/4-pr
109    "JIS X 0208:1978, 4th impression or later."
110    '(registry "jisx0208\\.1978"
111               dimension 2
112               chars 94
113               mother =jis-x0208@1978/2-pr
114               =>iso-ir 42
115               ;; final ?@
116               graphic 0
117               partial t))
118   (make-charset
119    '=jis-x0208@1978/5pr
120    "JIS X 0208:1978, 5th impression."
121    '(registry "jisx0208\\.1978"
122               dimension 2
123               chars 94
124               mother =jis-x0208@1978/4-pr
125               =>iso-ir 42
126               ;; final ?@
127               graphic 0
128               partial t))
129   (define-charset-alias '=jis-x0208@1978/i1 '=jis-x0208@1978/1pr)
130   (define-charset-alias '=jis-x0208@1978/i-4 '=jis-x0208@1978/-4pr)
131   (define-charset-alias '=jis-x0208@1978/i4- '=jis-x0208@1978/4-pr)
132   )
133  (t
134   (make-charset
135    '=jis-x0208@1978
136    "JIS X0208:1978 Japanese Kanji (so called \"old JIS\")."
137    '(iso-ir 42
138             registry "jisx0208\\.1978"
139             dimension 2
140             chars 94
141             mother =jis-x0208
142             final ?@
143             graphic 0))
144   ))
145
146 (define-charset-alias '=jis-x0208-1978          '=jis-x0208@1978)
147 (define-charset-alias 'japanese-jisx0208-1978   '=jis-x0208@1978)
148 (define-charset-alias 'chinese-gb2312           '=gb2312)
149 (define-charset-alias '=jis-x0208-1983          '=jis-x0208@1983)
150 (define-charset-alias 'japanese-jisx0208        '=jis-x0208@1983)
151 (define-charset-alias 'korean-ksc5601           '=ks-x1001)
152 (define-charset-alias 'japanese-jisx0212        '=jis-x0212)
153 (define-charset-alias 'chinese-cns11643-1       '=cns11643-1)
154 (define-charset-alias 'chinese-cns11643-2       '=cns11643-2)
155 (define-charset-alias 'chinese-gb12345          '=gb12345)
156 (define-charset-alias 'chinese-big5             '=big5)
157
158 ;; PinYin-ZhuYin
159 (make-charset 'sisheng "PinYin-ZhuYin"
160               '(registry "sisheng_cwnn\\|OMRON_UDC_ZH"
161                 dimension 1
162                 chars 94
163                 final ?0
164                 graphic 0
165                 ))
166
167 ;; Lao script.
168 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F.
169 (make-charset 'lao "Lao script"
170               '(registry "MuleLao-1"
171                 dimension 1
172                 chars 94
173                 final ?1
174                 graphic 1))
175
176 ;; IPA (International Phonetic Alphabet)
177 (make-charset 'ipa "International Phonetic Alphabet"
178               '(registry "MuleIPA"
179                 dimension 1
180                 chars 96
181                 final ?0
182                 graphic 1))
183
184 ;; Ethiopic
185 (make-charset 'ethiopic "Ethiopic"
186               '(registry "Ethio"
187                 dimension 2
188                 chars 94
189                 final ?3
190                 graphic 0
191                 ))
192
193 ;; ISO-IR-165 (CCITT Extended GB)
194 ;;    It is based on CCITT Recommendation T.101, includes GB 2312-80 +
195 ;;    GB 8565-88 table A4 + 293 characters.
196 (if (featurep 'utf-2000)
197     (progn
198       (make-charset '=iso-ir165
199                     "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
200                     '(iso-ir 165
201                              dimension 2
202                              chars 94
203                              mother =gb2312
204                              final ?E
205                              registry "isoir165"
206                              graphic 0))
207       (define-charset-alias 'chinese-isoir165 '=iso-ir165))
208   (make-charset 'chinese-isoir165
209                 "ISO-IR-165 (CCITT Extended GB; Chinese simplified)"
210                 '(iso-ir 165
211                          dimension 2
212                          chars 94
213                          final ?E
214                          registry "isoir165"
215                          graphic 0)))
216
217 ;; CNS11643 Plane3 thru Plane7
218 ;; These represent more and more obscure Chinese characters.
219 ;; By the time you get to Plane 7, we're talking about characters
220 ;; that appear once in some ancient manuscript and whose meaning
221 ;; is unknown.
222
223 (flet
224     ((make-chinese-cns11643-charset
225       (name iso-ir plane final)
226       (make-charset
227        name (concat "CNS 11643 Plane " plane " (Chinese traditional)")
228        `(iso-ir ,iso-ir
229          registry 
230          ,(concat "CNS11643[.-]\\(.*[.-]\\)?" plane "$")
231          dimension 2
232          chars 94
233          final ,final
234          graphic 0))
235       ))
236   (make-chinese-cns11643-charset '=cns11643-3 183 "3" ?I)
237   (make-chinese-cns11643-charset '=cns11643-4 184 "4" ?J)
238   (make-chinese-cns11643-charset '=cns11643-5 185 "5" ?K)
239   (make-chinese-cns11643-charset '=cns11643-6 186 "6" ?L)
240   (make-chinese-cns11643-charset '=cns11643-7 187 "7" ?M)
241   (define-charset-alias 'chinese-cns11643-3     '=cns11643-3)
242   (define-charset-alias 'chinese-cns11643-4     '=cns11643-4)
243   (define-charset-alias 'chinese-cns11643-5     '=cns11643-5)
244   (define-charset-alias 'chinese-cns11643-6     '=cns11643-6)
245   (define-charset-alias 'chinese-cns11643-7     '=cns11643-7)
246   )
247
248 ;; JIS X 0213:2000
249 (cond
250  ((featurep 'utf-2000)
251   (make-charset
252    '=jis-x0213-1
253    "JIS X 0213 Plain 1 (unchanged part)"
254    '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
255               dimension 2
256               chars 94
257               =>iso-ir 228
258               final ?O
259               graphic 0
260               partial t))
261
262   (make-charset
263    '=jis-x0213-1@2000
264    "JIS X 0213:2000 Plain 1"
265    '(iso-ir 228
266             registry "jisx0213\\(\\.2000\\)-1"
267             dimension 2
268             chars 94
269             mother =jis-x0213-1
270             final ?O
271             graphic 0))
272   (make-charset
273    '=jis-x0213-2
274    "JIS X 0213 Plain 2"
275    '(iso-ir 229
276             registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
277             dimension 2
278             chars 94
279             final ?P
280             graphic 0))
281
282   (make-charset
283    '=jis-x0213-1@2004
284    "JIS X 0213:2004 Plain 1"
285    '(iso-ir 233
286             registry "jisx0213\\(\\.2004\\)-1"
287             dimension 2
288             chars 94
289             mother =jis-x0213-1
290             final ?Q
291             graphic 0))
292
293   (define-charset-alias 'japanese-jisx0213-1 '=jis-x0213-1@2000)
294   (define-charset-alias 'japanese-jisx0213-2 '=jis-x0213-2)
295   (define-charset-alias '=jis-x0213-1-2000 '=jis-x0213-1@2000)
296   (define-charset-alias '=jis-x0213-2-2000 '=jis-x0213-2)
297   )
298  (t
299   (make-charset
300    'japanese-jisx0213-1
301    "JIS X 0213:2000 Plain 1"
302    '(registry "jisx0213\\(\\.2000\\)-1"
303               dimension 2
304               chars 94
305               final ?O
306               graphic 0))
307   (make-charset
308    'japanese-jisx0213-2
309    "JIS X 0213:2000 Plain 2"
310    '(registry "jisx0213\\(\\.2000\\)-2"
311               dimension 2
312               chars 94
313               final ?P
314               graphic 0))
315   ))
316
317 (when (featurep 'utf-2000)
318   (define-charset-alias 'ucs '=ucs)
319   (define-charset-alias '=jis-x0208-1990 '=jis-x0208@1990)
320   (define-charset-alias 'japanese-jisx0208-1990 '=jis-x0208@1990)
321
322   (make-charset
323    '=>>jis-x0208
324    "JIS X 0208 abstract glyphs (unchanged part)."
325    '(registry "jisx0208\\.1990"
326               dimension 2
327               chars 94
328               mother =jis-x0208
329               =>iso-ir 168
330               ;; final ?B
331               graphic 0))
332   (make-charset
333    '=>>jis-x0208@1978
334    "JIS X 0208:1978 abstract glyphs (unchanged part)."
335    '(registry "jisx0208\\.1978"
336               dimension 2
337               chars 94
338               mother =>>jis-x0208
339               =>iso-ir 42
340               ;; final ?@
341               graphic 0))
342
343   (make-charset
344    '=>>jis-x0213-1
345    "JIS X 0213 Plain 1 abstract glyphs (unchanged part)"
346    '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
347               dimension 2
348               chars 94
349               mother =jis-x0213-1
350               =>iso-ir 228
351               ;; final ?O
352               graphic 0
353               ;; partial t
354               ))
355   (make-charset
356    '=>>jis-x0213-1@2000
357    "JIS X 0213:2000 Plain 1 abstract glyphs"
358    '(registry "jisx0213\\(\\.2000\\)-1"
359               dimension 2
360               chars 94
361               mother =>>jis-x0213-1
362               =>iso-ir 228
363               ;; final ?O
364               graphic 0
365               ;; partial t
366               ))
367   (make-charset
368    '=>>jis-x0213-2
369    "JIS X 0213 Plain 2 abstract glyphs"
370    '(registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
371               dimension 2
372               chars 94
373               mother =jis-x0213-2
374               =>iso-ir 229
375               ;; final ?P
376               graphic 0))
377   (make-charset
378    '=>>jis-x0213-1@2004
379    "JIS X 0213:2004 Plain 1 abstract glyphs"
380    '(registry "jisx0213\\(\\.2004\\)-1"
381               dimension 2
382               chars 94
383               mother =>>jis-x0213-1
384               =>iso-ir 233
385               ;; final ?Q
386               graphic 0
387               ;; partial t
388               ))
389
390   (make-charset
391    '=>jis-x0208
392    "JIS X 0208 based on the unchanged unification rules."
393    '(registry "jisx0208\\.1990"
394               dimension 2
395               chars 94
396               mother =>>jis-x0208
397               =>iso-ir 168
398               ;; final ?B
399               graphic 0))
400   (define-charset-alias '<=>jis-x0208 '=>jis-x0208)
401   (make-charset
402    '=>jis-x0208@1997
403    "JIS X 0208 based on the unification rule of 1997 edition."
404    '(registry "jisx0208\\.1990"
405               dimension 2
406               chars 94
407               mother =>jis-x0208
408               =>iso-ir 168
409               ;; final ?B
410               graphic 0))
411   (define-charset-alias '<=>jis-x0208@1997 '=>jis-x0208@1997)
412   (define-charset-alias '  =jis-x0208@1997 '=>jis-x0208@1997)
413
414   (make-charset
415    '=>jis-x0213-1
416    "JIS X 0213 Plain 1 abstract characters (unchanged part)"
417    '(registry "jisx0213\\(\\.[0-9]+\\)?-1"
418               dimension 2
419               chars 94
420               mother =>>jis-x0213-1
421               =>iso-ir 228
422               ;; final ?O
423               graphic 0
424               ;; partial t
425               ))
426   (define-charset-alias '<=>jis-x0213-1 '=>jis-x0213-1)
427   (make-charset
428    '=>jis-x0213-1@2000
429    "JIS X 0213:2000 Plain 1 abstract characters"
430    '(registry "jisx0213\\(\\.2000\\)-1"
431               dimension 2
432               chars 94
433               mother =>jis-x0213-1
434               =>iso-ir 228
435               ;; final ?O
436               graphic 0
437               ;; partial t
438               ))
439   (define-charset-alias '<=>jis-x0213-1@2000 '=>jis-x0213-1@2000)
440   (make-charset
441    '=>jis-x0213-1@2004
442    "JIS X 0213:2004 Plain 1 abstract characters"
443    '(registry "jisx0213\\(\\.2004\\)-1"
444               dimension 2
445               chars 94
446               mother =>jis-x0213-1
447               =>iso-ir 233
448               ;; final ?Q
449               graphic 0
450               ;; partial t
451               ))
452   (define-charset-alias '<=>jis-x0213-1@2004 '=>jis-x0213-1@2004)
453   (make-charset
454    '=>jis-x0213-2
455    "JIS X 0213 Plain 2 abstract characters"
456    '(registry "jisx0213\\(\\.\\(2000\\|2004\\)\\)?-2"
457               dimension 2
458               chars 94
459               mother =>>jis-x0213-2
460               =>iso-ir 229
461               ;; final ?P
462               graphic 0))
463
464   (make-charset '=big5-cdp
465                 "Big5 with CDP extension"
466                 '(long-name     "Big5-CDP"
467                   chars         256
468                   dimension     2
469                   columns       2
470                   graphic       2
471                   direction     l2r
472                   registry      "big5\\.cdp-0"
473                   mother        chinese-big5
474                   min-code      #x8140
475                   max-code      #x8DFE))
476   (define-charset-alias 'chinese-big5-cdp '=big5-cdp)
477
478   (make-charset '=gt
479                 "GT 2000"
480                 `(long-name     "GT"
481                   chars         256
482                   dimension     3
483                   columns       2
484                   graphic       2
485                   direction     l2r
486                   registry      ""
487                   min-code      ,(lsh #x6100 16)
488                   max-code      ,(+ (lsh #x6100 16) 67547)
489                   code-offset   ,(lsh #x6100 16)))
490   (define-charset-alias 'ideograph-gt '=gt)
491   (make-charset '=>>gt
492                 "GT 2000 abstract glyphs"
493                 `(long-name     "abstract GT glyphs"
494                   chars         256
495                   dimension     3
496                   columns       2
497                   graphic       2
498                   direction     l2r
499                   mother        =gt))
500   (define-charset-alias '<=>gt '=>>gt)
501   (define-charset-alias '<==>gt '=>>gt)
502   (make-charset '=>gt
503                 "GT 2000 abstract characters"
504                 `(long-name     "abstract GT characters"
505                   chars         256
506                   dimension     3
507                   columns       2
508                   graphic       2
509                   direction     l2r
510                   mother        =>>gt))
511   (make-charset '=gt-k
512                 "Ideographic components of GT"
513                 `(long-name     "GT components"
514                   chars         256
515                   dimension     2
516                   columns       2
517                   graphic       2
518                   direction     l2r
519                   registry      ""
520                   min-code      ,(lsh #x6110 16)
521                   max-code      ,(+ (lsh #x6110 16) 17090)
522                   code-offset   ,(lsh #x6110 16)))
523   (define-charset-alias 'ideograph-gt-k '=gt-k)
524   (let ((i 1))
525     (while (<= i 11)
526       (make-charset
527        (intern (format "=gt-pj-%d" i))
528        (format "GT 2000 (pseudo JIS encoding) part %d" i)
529        `(long-name ,(format "GT PJ %d" i)
530                    chars 94
531                    dimension 2
532                    columns 2
533                    graphic 0
534                    direction l2r
535                    registry ,(format "\\(GTpj-%d\\|jisx0208\\.GT-%d\\)$" i i)))
536       (define-charset-alias
537         (intern (format "ideograph-gt-pj-%d" i))
538         (intern (format "=gt-pj-%d" i)))
539       (setq i (1+ i))))
540   (make-charset
541    '=gt-pj-k1
542    "Ideographic parts of GT (pseudo JIS encoding) part 1"
543    '(long-name "GT K1"
544                chars 94
545                dimension 2
546                columns 2
547                graphic 0
548                direction l2r
549                registry "\\(GTKpj-1\\|jisx0208\\.GTK-1\\)$"))
550   (define-charset-alias 'ideograph-gt-pj-k1 '=gt-pj-k1)
551   (make-charset
552    '=gt-pj-k2
553    "Ideographic parts of GT (pseudo JIS encoding) part 2"
554    '(long-name "GT K2"
555                chars 94
556                dimension 2
557                columns 2
558                graphic 0
559                direction l2r
560                registry "\\(GTKpj-2\\|jisx0208\\.GTK-2\\)$"))
561   (define-charset-alias 'ideograph-gt-pj-k2 '=gt-pj-k2)
562
563   (make-charset '=daikanwa
564                 "Daikanwa dictionary (revised version 2)"
565                 `(long-name     "Daikanwa"
566                   chars         256
567                   dimension     2
568                   columns       2
569                   graphic       2
570                   direction     l2r
571                   registry      "Daikanwa\\(\\.[0-9]+\\)?-3"
572                   min-code      #xE00000
573                   max-code      ,(+ #xE00000 50100)
574                   code-offset   #xE00000))
575   (define-charset-alias 'ideograph-daikanwa '=daikanwa)
576
577   (make-charset '=daikanwa@rev1
578                 "Daikanwa dictionary (revised version)"
579                 `(long-name     "Daikanwa Rev."
580                   chars         256
581                   dimension     2
582                   columns       2
583                   graphic       2
584                   direction     l2r
585                   registry      "Daikanwa\\(\\.[0-9]+\\)?-2"
586                   mother        =daikanwa
587                   ))
588   (define-charset-alias 'ideograph-daikanwa-2 '=daikanwa@rev1)
589   (define-charset-alias '=daikanwa-rev1 '=daikanwa@rev1)
590
591   (make-charset '=daikanwa@rev2
592                 "Daikanwa dictionary (revised version 2)"
593                 `(long-name     "Daikanwa"
594                   chars         256
595                   dimension     2
596                   columns       2
597                   graphic       2
598                   direction     l2r
599                   registry      "Daikanwa\\(\\.[0-9]+\\)?-3"
600                   mother        =daikanwa
601                   min-code      1
602                   max-code      49964
603                   ;; min-code   #xE00000
604                   ;; max-code   ,(+ #xE00000 50100)
605                   ;; code-offset        #xE00000
606                   ))
607   (define-charset-alias '=daikanwa-rev2 '=daikanwa@rev2)
608
609   (make-charset '=shinjigen
610                 "Kadokawa ShinJigen dictionary (common parts)"
611                 `(long-name     "Shinjigen common parts"
612                   chars         256
613                   dimension     2
614                   columns       2
615                   graphic       2
616                   direction     l2r
617                   registry      "Shinjigen\\(\\.[0-9]+\\)?-*"))
618
619   (make-charset '=shinjigen@1ed
620                 "Kadokawa ShinJigen dictionary (the first edition)"
621                 `(long-name     "Shinjigen-1"
622                   chars         256
623                   dimension     2
624                   columns       2
625                   graphic       2
626                   direction     l2r
627                   mother        =shinjigen
628                   registry      "Shinjigen\\(\\.[0-9]+\\)?-1"))
629   (define-charset-alias 'shinjigen-1 '=shinjigen@1ed)
630
631   (make-charset '=shinjigen@1ed/24pr
632                 "Kadokawa ShinJigen dictionary (the 24th impression)"
633                 `(long-name     "Shinjigen-1 24pr"
634                   chars         256
635                   dimension     2
636                   columns       2
637                   graphic       2
638                   direction     l2r
639                   mother        =shinjigen@1ed))
640
641   (make-charset '=shinjigen@rev
642                 "Kadokawa ShinJigen dictionary (the revised edition)"
643                 `(long-name     "Shinjigen-2"
644                   chars         256
645                   dimension     2
646                   columns       2
647                   graphic       2
648                   direction     l2r
649                   mother        =shinjigen
650                   registry      "Shinjigen\\(\\.[0-9]+\\)?-2"))
651   (define-charset-alias 'shinjigen-2 '=shinjigen@rev)
652   (make-charset '=shinjigen/+p@rev
653                 "ShinJigen (the second edition) number with '"
654                 `(long-name     "Shinjigen-2 with '"
655                   chars         256
656                   dimension     2
657                   columns       2
658                   graphic       2
659                   direction     l2r))
660   (define-charset-alias 'shinjigen-2-p '=shinjigen/+p@rev)
661
662   (make-charset '=big5-pua
663                 "Big5 with private used area"
664                 '(long-name     "Big5-PUA"
665                   chars         256
666                   dimension     2
667                   columns       2
668                   graphic       2
669                   direction     l2r
670                   mother        chinese-big5
671                   registry      "Big5\\.ETEN"))
672   (define-charset-alias 'chinese-big5-pua '=big5-pua)
673   (make-charset '=big5-eten
674                 "Big5 ETEN"
675                 '(long-name     "Big5-ETEN"
676                   chars         256
677                   dimension     2
678                   columns       2
679                   graphic       2
680                   direction     l2r
681                   mother        chinese-big5
682                   min-code      #x8140
683                   max-code      #xFEFE
684                   registry      "Big5\\.ETEN"))
685   (define-charset-alias 'chinese-big5-eten '=big5-eten)
686   (make-charset 'chinese-big5-eten-a
687                 "Big5 ETEN (#xF9D6 .. #xF9FE)"
688                 '(long-name     "Big5-ETEN-a"
689                   chars         256
690                   dimension     2
691                   columns       2
692                   graphic       2
693                   direction     l2r
694                   mother        chinese-big5
695                   min-code      #xF9D6
696                   max-code      #xF9FE
697                   registry      "Big5\\.ETEN"))
698   (make-charset 'chinese-big5-eten-b
699                 "Big5 ETEN (#xC6A1 .. #xC8FE)"
700                 '(long-name     "Big5-ETEN-b"
701                   chars         256
702                   dimension     2
703                   columns       2
704                   graphic       2
705                   direction     l2r
706                   mother        chinese-big5
707                   min-code      #xC6A1
708                   max-code      #xC8FE
709                   registry      "Big5\\.ETEN"))
710
711   (let* ((i 1)
712          (hzk-min (+ (lsh #x6200 16) 65536))
713          (hzk-max (+ hzk-min 65535)))
714     (while (<= i 12)
715       (make-charset
716        (intern (format "=hanziku-%d" i))
717        (format "HANZIKU (pseudo BIG5 encoding) part %d" i)
718        `(long-name ,(format "HANZIKU-%d" i)
719                    chars 256
720                    dimension 2
721                    columns 2
722                    graphic 2
723                    direction l2r
724                    registry ,(format "hanziku-%d$" i i)
725                    min-code ,hzk-min
726                    max-code ,hzk-max
727                    code-offset ,hzk-min))
728       (define-charset-alias
729         (intern (format "ideograph-hanziku-%d" i))
730         (intern (format "=hanziku-%d" i)))
731       (setq hzk-min (1+ hzk-max)
732             hzk-max (+ hzk-min 65535))
733       (setq i (1+ i))))
734
735   (make-charset '=cbeta "CBETA private characters"
736                 '(long-name     "CBETA PUA"
737                   chars         256
738                   dimension     2
739                   registry      "cbeta-0"
740                   graphic       2
741                   min-code      #xE20000
742                   max-code      #xE2FFFF
743                   code-offset   #xE20000
744                   columns       2
745                   direction     l2r))
746   (define-charset-alias 'ideograph-cbeta '=cbeta)
747
748   (make-charset '=zinbun-oracle
749                 "Oracle Bones Script"
750                 `(long-name     "Oracle Bones Script in Zinbun, Kyoto Univ."
751                   chars         256
752                   dimension     2
753                   registry      "zob1968-0"
754                   graphic       2
755                   min-code      #xE70000
756                   max-code      ,(+ #xE70000 8192)
757                   code-offset   #xE70000
758                   columns       2
759                   direction     l2r))
760
761   (make-charset '=>zinbun-oracle
762                 "Abstract Oracle Bones"
763                 '(long-name     "Abstract characters of Zinbun Oracle Bones."
764                   chars         256
765                   dimension     2
766                   mother        =zinbun-oracle
767                   registry      "zob1968-0"
768                   graphic       2
769                   columns       2
770                   direction     l2r))
771
772   (make-charset '=jef-china3
773                 "JEF + CHINA3 private characters"
774                 '(long-name     "JEF + CHINA3"
775                   chars         256
776                   dimension     2
777                   columns       2
778                   graphic       2
779                   direction     l2r
780                   registry      "china3jef-0"
781                   min-code      #xE80000
782                   max-code      #xE8FFFF
783                   code-offset   #xE80000))
784   (define-charset-alias 'china3-jef '=jef-china3)
785
786   (make-charset '=ruimoku-v6
787                 "private characters used in RUIMOKU Version.6"
788                 `(long-name     "RUI6"
789                   chars         256
790                   dimension     2
791                   columns       2
792                   graphic       2
793                   direction     l2r
794                   registry      "rui6-0"
795                   ;; mother     ucs
796                   min-code      #xE90000 ; #xE000
797                   max-code      #xE908FF ; #xE8FF
798                   code-offset   ,(- #xE90000 #xE000)))
799
800   (make-charset '=ucs@iso
801                 "ISO/IEC 10646 for its representative glyphs"
802                 '(long-name     "UCS for ISO"
803                   chars         256
804                   dimension     3
805                   columns       2
806                   graphic       2
807                   direction     l2r
808                   =>iso-ir      177
809                   mother        =ucs))
810   (make-charset '=ucs@unicode
811                 "Unicode for its representative glyphs"
812                 '(long-name     "UCS for Unicode"
813                   chars         256
814                   dimension     3
815                   columns       2
816                   graphic       2
817                   direction     l2r
818                   =>iso-ir      177
819                   mother        =ucs@iso))
820   (make-charset '=ucs@gb
821                 "ISO/IEC 10646 for GB"
822                 '(long-name     "UCS for GB"
823                   chars         256
824                   dimension     3
825                   columns       2
826                   graphic       2
827                   direction     l2r
828                   =>iso-ir      177
829                   mother        =ucs@unicode))
830   (define-charset-alias 'ucs-gb '=ucs@gb)
831   (make-charset '=ucs@gb/fw
832                 "ISO/IEC 10646 for GB with fullwidth"
833                 '(long-name     "UCS for GB-fullwidth"
834                   chars         256
835                   dimension     3
836                   columns       2
837                   graphic       2
838                   direction     l2r
839                   =>iso-ir      177
840                   mother        =ucs@gb))
841   (make-charset '=ucs-bmp@gb
842                 "ISO/IEC 10646 BMP for GB"
843                 '(long-name     "BMP for GB"
844                   chars         256
845                   dimension     3
846                   columns       2
847                   graphic       2
848                   direction     l2r
849                   mother        =ucs@gb
850                   min-code      #x0000
851                   max-code      #xFFFF))
852   (make-charset '=ucs@cns
853                 "ISO/IEC 10646 for CNS 11643"
854                 '(long-name     "UCS for CNS"
855                   chars         256
856                   dimension     3
857                   columns       2
858                   graphic       2
859                   direction     l2r
860                   =>iso-ir      177
861                   mother        =ucs@unicode))
862   (define-charset-alias 'ucs-cns '=ucs@cns)
863   (make-charset '=ucs@cns/fw
864                 "ISO/IEC 10646 for CNS 11643 with fullwidth"
865                 '(long-name     "UCS for CNS-fullwidth"
866                   chars         256
867                   dimension     3
868                   columns       2
869                   graphic       2
870                   direction     l2r
871                   =>iso-ir      177
872                   mother        =ucs@cns))
873   (make-charset '=ucs-bmp@cns
874                 "ISO/IEC 10646 BMP for CNS"
875                 '(long-name     "BMP for CNS"
876                   chars         256
877                   dimension     3
878                   columns       2
879                   graphic       2
880                   direction     l2r
881                   mother        =ucs@cns
882                   min-code      #x0000
883                   max-code      #xFFFF))
884   (make-charset '=ucs@jis
885                 "ISO/IEC 10646 for JIS X0208/0212/0213"
886                 '(long-name     "UCS for JIS"
887                   chars         256
888                   dimension     3
889                   columns       2
890                   graphic       2
891                   direction     l2r
892                   =>iso-ir      177
893                   mother        =ucs@unicode))
894   (define-charset-alias 'ucs-jis '=ucs@jis)
895   (make-charset '=ucs@jis/fw
896                 "ISO/IEC 10646 for JIS X0208/0212/0213 with fullwidth"
897                 '(long-name     "UCS for JIS-fullwidth"
898                   chars         256
899                   dimension     3
900                   columns       2
901                   graphic       2
902                   direction     l2r
903                   =>iso-ir      177
904                   mother        =ucs@jis))
905   (make-charset '=ucs-bmp@jis
906                 "ISO/IEC 10646 BMP for JIS"
907                 '(long-name     "BMP for JIS"
908                   chars         256
909                   dimension     3
910                   columns       2
911                   graphic       2
912                   direction     l2r
913                   mother        =ucs@jis
914                   min-code      #x0000
915                   max-code      #xFFFF))
916   (make-charset '=ucs@jis/1990
917                 "ISO/IEC 10646 for JIS X 0208/0212:1990"
918                 '(long-name     "UCS for JIS:1990"
919                   chars         256
920                   dimension     3
921                   columns       2
922                   graphic       2
923                   direction     l2r
924                   =>iso-ir      177
925                   mother        ucs-jis))
926   (define-charset-alias '=ucs@jis-1990 '=ucs@jis/1990)
927   (define-charset-alias '=ucs-jis-1990 '=ucs@jis/1990)
928   (make-charset '=ucs@jis/2000
929                 "ISO/IEC 10646 for JIS X 0213:2000"
930                 '(long-name     "UCS for JIS:2000"
931                   chars         256
932                   dimension     3
933                   columns       2
934                   graphic       2
935                   direction     l2r
936                   =>iso-ir      177
937                   mother        ucs-jis))
938   (define-charset-alias '=ucs@jis-2000 '=ucs@jis/2000)
939   (define-charset-alias '=ucs-jis-2000 '=ucs@jis/2000)
940   (make-charset '=ucs@jis/2004
941                 "ISO/IEC 10646 for JIS X 0213:2004"
942                 '(long-name     "UCS for JIS:2004"
943                   chars         256
944                   dimension     3
945                   columns       2
946                   graphic       2
947                   direction     l2r
948                   =>iso-ir      177
949                   mother        ucs-jis))
950   (make-charset '=ucs@JP
951                 "UCS for common glyphs used in Japan"
952                 '(long-name     "UCS for Japan"
953                   chars         256
954                   dimension     3
955                   columns       2
956                   graphic       2
957                   direction     l2r
958                   =>iso-ir      177
959                   mother        =ucs@jis/2004))
960   (define-charset-alias '=ucs@jp '=ucs@JP)
961   (make-charset '=ucs@ks
962                 "ISO/IEC 10646 for Korean Standards"
963                 '(long-name     "UCS for KS"
964                   chars         256
965                   dimension     3
966                   columns       2
967                   graphic       2
968                   direction     l2r
969                   =>iso-ir      177
970                   mother        =ucs@unicode))
971   (define-charset-alias 'ucs-ks '=ucs@ks)
972   (make-charset '=ucs-bmp@ks
973                 "ISO/IEC 10646 BMP for KS"
974                 '(long-name     "BMP for KS"
975                   chars         256
976                   dimension     3
977                   columns       2
978                   graphic       2
979                   direction     l2r
980                   mother        =ucs@ks
981                   min-code      #x0000
982                   max-code      #xFFFF))
983   (make-charset '=ucs@cns11643
984                 "ISO/IEC 10646 for CNS based on www.cns11643.gov.tw"
985                 '(long-name     "UCS for CNS11643"
986                   chars         256
987                   dimension     3
988                   columns       2
989                   graphic       2
990                   direction     l2r
991                   =>iso-ir      177
992                   mother        =ucs@cns))
993
994   (make-charset '=>>ucs@unicode
995                 "Representative abstract glyphs of Unicode"
996                 '(long-name     "Unicode abstract glyphs"
997                   chars         256
998                   dimension     3
999                   columns       2
1000                   graphic       2
1001                   direction     l2r
1002                   =>iso-ir      177
1003                   mother        =ucs@unicode))
1004   (make-charset '=ucs@big5
1005                 "ISO/IEC 10646 for Big5"
1006                 '(long-name     "UCS for Big5"
1007                   chars         256
1008                   dimension     3
1009                   columns       2
1010                   graphic       2
1011                   direction     l2r
1012                   =>iso-ir      177
1013                   mother        =>>ucs@unicode))
1014   (define-charset-alias 'ucs-big5 '=ucs@big5)
1015   (make-charset '=ucs@big5/cns11643
1016                 "ISO/IEC 10646 for Big5 based on www.cns11643.gov.tw"
1017                 '(long-name     "UCS for Big5@CNS11643"
1018                   chars         256
1019                   dimension     3
1020                   columns       2
1021                   graphic       2
1022                   direction     l2r
1023                   =>iso-ir      177
1024                   mother        =ucs@big5))
1025
1026   (make-charset
1027    '=ucs-radicals
1028    "CJK Radicals of UCS"
1029    '(long-name "UCS-Radicals"
1030                chars 256
1031                dimension 2
1032                columns 2
1033                graphic 2
1034                direction l2r
1035                registry "-zhRadicals-.*-ucs-0"
1036                mother ucs-bmp
1037                min-code #x2E00 max-code #x2FFF))
1038   (make-charset
1039    '=ucs-radicals@unicode
1040    "CJK Radicals of UCS"
1041    '(long-name "UCS-Radicals"
1042                chars 256
1043                dimension 2
1044                columns 2
1045                graphic 2
1046                direction l2r
1047                registry "-zhRadicals-.*-ucs-0"
1048                mother =ucs@unicode
1049                min-code #x2E00 max-code #x2FFF))
1050   (make-charset
1051    '=ucs-hangul
1052    "Hangul Syllables of UCS"
1053    '(long-name "UCS-Hangul-Syllables"
1054                chars 256
1055                dimension 2
1056                columns 2
1057                graphic 2
1058                direction l2r
1059                registry "-Hangul-.*-ucs-0"
1060                mother =ucs
1061                min-code #xAC00 max-code #xD7AF))
1062   (make-charset
1063    '=ucs-bmp-cjk
1064    "CJK Characters in BMP of UCS"
1065    '(long-name "UCS-BMP-CJK"
1066                chars 256
1067                dimension 2
1068                columns 2
1069                graphic 2
1070                direction l2r
1071                registry "-zh-.*-ucs-0"
1072                mother ucs-bmp
1073                min-code #x2E00
1074                max-code #x9FA5
1075                ;; max-code #xA4CF
1076                ))
1077   (make-charset
1078    '=ucs-bmp-cjk@unicode
1079    "CJK Characters in BMP of Unicode"
1080    '(long-name "Unicode-BMP-CJK"
1081                chars 256
1082                dimension 2
1083                columns 2
1084                graphic 2
1085                direction l2r
1086                registry "-zh-.*-ucs-0"
1087                mother =ucs@unicode
1088                min-code #x2E00
1089                max-code #x9FA5
1090                ;; max-code #xA4CF
1091                ))
1092   (make-charset
1093    '=ucs-sip-ext-b
1094    "CJK Ideographs Extension B"
1095    '(long-name "UCS CJK Ext-B"
1096                chars 256
1097                dimension 2
1098                columns 2
1099                graphic 2
1100                direction l2r
1101                registry "\\(iso10646\\|ucs02\\)-2$"
1102                mother ucs
1103                min-code #x20000 max-code #x2A6D6
1104                code-offset #x20000))
1105   (make-charset
1106    '=ucs-sip-ext-b@iso
1107    "CJK Ideographs Extension B (ISO/IEC 10646-2)"
1108    '(long-name "UCS CJK Ext-B"
1109                chars 256
1110                dimension 2
1111                columns 2
1112                graphic 2
1113                direction l2r
1114                registry "\\(iso10646\\|ucs02\\)-2$"
1115                mother =ucs@iso
1116                min-code #x20000 max-code #x2A6D6
1117                code-offset #x20000))
1118
1119   (make-charset
1120    '=adobe-japan1-base
1121    "Adobe-Japan1 Character Collection for CID-Keyed Fonts"
1122    `(long-name "Adobe-Japan1"
1123                chars 256
1124                dimension 2
1125                columns 2
1126                graphic 2
1127                direction l2r
1128                registry "AdobeJapan1-[0-6]$"
1129                min-code ,(lsh #x6300 16)
1130                max-code ,(+ (lsh #x6300 16) 23057)
1131                code-offset      ,(lsh #x6300 16)))
1132   (make-charset
1133    '=adobe-japan1-0
1134    "Adobe-Japan1-0 Character Collection for CID-Keyed Fonts"
1135    '(long-name "Adobe-Japan1-0"
1136                chars 256
1137                dimension 2
1138                columns 2
1139                graphic 2
1140                direction l2r
1141                mother =adobe-japan1-base
1142                min-code 0
1143                max-code 8283
1144                registry "AdobeJapan1-0$"))
1145   (make-charset
1146    '=adobe-japan1-1
1147    "Adobe-Japan1-1 Character Collection for CID-Keyed Fonts"
1148    '(long-name "Adobe-Japan1-1"
1149                chars 256
1150                dimension 2
1151                columns 2
1152                graphic 2
1153                direction l2r
1154                mother =adobe-japan1-0
1155                min-code 0
1156                max-code 8358
1157                registry "AdobeJapan1-1$"))
1158   (make-charset
1159    '=adobe-japan1-2
1160    "Adobe-Japan1-2 Character Collection for CID-Keyed Fonts"
1161    '(long-name "Adobe-Japan1-2"
1162                chars 256
1163                dimension 2
1164                columns 2
1165                graphic 2
1166                direction l2r
1167                mother =adobe-japan1-1
1168                min-code 0
1169                max-code 8719
1170                registry "AdobeJapan1-2$"))
1171   (make-charset
1172    '=adobe-japan1-3
1173    "Adobe-Japan1-3 Character Collection for CID-Keyed Fonts"
1174    '(long-name "Adobe-Japan1-3"
1175                chars 256
1176                dimension 2
1177                columns 2
1178                graphic 2
1179                direction l2r
1180                mother =adobe-japan1-2
1181                min-code 0
1182                max-code 9353
1183                registry "AdobeJapan1-3$"))
1184   (make-charset
1185    '=adobe-japan1-4
1186    "Adobe-Japan1-4 Character Collection for CID-Keyed Fonts"
1187    '(long-name "Adobe-Japan1-4"
1188                chars 256
1189                dimension 2
1190                columns 2
1191                graphic 2
1192                direction l2r
1193                mother =adobe-japan1-3
1194                min-code 0
1195                max-code 15443
1196                registry "AdobeJapan1-4$"))
1197   (make-charset
1198    '=adobe-japan1-5
1199    "Adobe-Japan1-5 Character Collection for CID-Keyed Fonts"
1200    '(long-name "Adobe-Japan1-5"
1201                chars 256
1202                dimension 2
1203                columns 2
1204                graphic 2
1205                direction l2r
1206                mother =adobe-japan1-4
1207                min-code 0
1208                max-code 20316
1209                registry "AdobeJapan1-5$"))
1210   (make-charset
1211    '=adobe-japan1-6
1212    "Adobe-Japan1-6 Character Collection for CID-Keyed Fonts"
1213    '(long-name "Adobe-Japan1-6"
1214                chars 256
1215                dimension 2
1216                columns 2
1217                graphic 2
1218                direction l2r
1219                mother =adobe-japan1-5
1220                min-code 0
1221                max-code 23057
1222                registry "AdobeJapan1-6$"))
1223   )
1224
1225 ;;; mule-conf.el ends here