Rename `chinese-cns11643-6' to `=cns11643-6'.
[chise/xemacs-chise.git.1] / lisp / utf-2000 / maps-conf.el
1 (require 'read-maps)
2
3 (dolist (file '("J90-to-UCS.txt" "JSP-to-UCS.txt"
4                 "JX1-to-UCS.txt" "JX2-to-UCS.txt"
5                 "C3-to-UCS.txt" "C4-to-UCS.txt"
6                 "B-to-UCS.txt" "JC3-to-UCS.txt"))
7   (mapping-table-read-file (expand-file-name file "../etc/char-data/")))
8
9
10 (let ((ucs #xE000)
11       big5 chr
12       ret)
13   (while (<= ucs #xF848)
14     (setq chr (decode-char 'ucs ucs))
15     (when (setq big5 (get-char-attribute chr '=big5-pua))
16       (when (setq chr (decode-char '=big5-cdp big5))
17         (unless (get-char-attribute chr '=big5-cdp)
18           (put-char-attribute chr '=big5-cdp big5))))
19     (setq ucs (1+ ucs))))
20
21
22 (map-char-attribute
23  (lambda (c v)
24    (put-char-attribute (decode-char 'japanese-jisx0208-1990 v)
25                        '=gt-pj-1 v)
26    nil)
27  '=gt-pj-1)
28
29 (let ((default-coded-charset-priority-list
30         '(=gt-pj-1
31           =gt-pj-2
32           =gt-pj-3
33           =gt-pj-4
34           =gt-pj-5
35           =gt-pj-6
36           =gt-pj-7
37           =gt-pj-8
38           =gt-pj-9
39           =gt-pj-10
40           =gt-pj-11
41           =gt-pj-k1
42           =gt-pj-k2))
43       (i 1)
44       chr ret)
45   (while (<= i 12000)
46     (when (and (setq ret (decode-char '=gt-k i))
47                (setq ret (split-char ret))
48                (memq (car ret) default-coded-charset-priority-list))
49       (when (setq chr (apply (function make-char) ret))
50         (put-char-attribute chr '=gt-k i)))
51     (setq i (1+ i))))