X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Futf-2000%2Fisolated-char.el;h=59a6ea358383c65730512e6a1a3ebcaaf7e8d6e9;hb=b439bfeea8e0beeed807c58c92e1911a6f19150d;hp=4812d10c0060425e936889a1c1f3446b4be4f2ef;hpb=0daa117a4ebc3d5b80ae2a54aae5018ac96328cd;p=chise%2Fxemacs-chise.git- diff --git a/lisp/utf-2000/isolated-char.el b/lisp/utf-2000/isolated-char.el index 4812d10..59a6ea3 100644 --- a/lisp/utf-2000/isolated-char.el +++ b/lisp/utf-2000/isolated-char.el @@ -173,7 +173,7 @@ (with-temp-buffer (buffer-disable-undo) - (insert-file-contents "../etc/GT-RS.txt") + (insert-file-contents "../etc/char-data/GT-RS.txt") (goto-char (point-min)) (let (gt-code radical strokes plane code) (while (re-search-forward "\\([0-9]+\\),\\([0-9]+\\),\\([0-9]+\\),GT\\([0-9]+\\),....,\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\)" nil t) @@ -185,25 +185,45 @@ code) ))) +(with-temp-buffer + (buffer-disable-undo) + (insert-file-contents "../etc/char-data/GT-fmap-K1.txt") + (insert-file-contents "../etc/char-data/GT-fmap-K2.txt") + (goto-char (point-min)) + (let (plane code gt-code) + (while (re-search-forward "^GTps-\\([0-9k][0-9]\\)-\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]\\)\tGT-K\\([0-9]+\\)" nil t) + (setq plane (match-string 1) + code (string-to-int (match-string 2) 16) + gt-code (string-to-int (match-string 3))) + (if (eq (aref plane 0) ?0) + (setq plane (substring plane 1))) + (put-char-attribute (decode-builtin-char 'ideograph-gt-k gt-code) + (intern (format "ideograph-gt-pj-%s" plane)) + (encode-char + (decode-shift-jis-char (cons (/ code 256) + (% code 256))) + 'japanese-jisx0208)) + ))) + (define-char - '((ideograph-gt-pj-4 . #x3844) - (ideograph-gt . 19655) + '((ideograph-gt-pj-4 . #x3844) + (ideograph-gt . 19655) )) (define-char - '((ideograph-gt-pj-4 . #x3845) - (ideograph-gt . 19656) + '((ideograph-gt-pj-4 . #x3845) + (ideograph-gt . 19656) )) (define-char - '((ideograph-gt-pj-9 . #x4D7B) - (ideograph-gt . 19861) + '((ideograph-gt-pj-9 . #x4D7B) + (ideograph-gt . 19861) )) (define-char '((ideograph-gt-pj-4 . #x493C) (ideograph-gt . 21862) )) (define-char - '((ideograph-gt . 26606) - (ideograph-gt-pj-4 . #x6D51) + '((ideograph-gt-pj-4 . #x6D51) + (ideograph-gt . 26606) )) (define-char '((ideograph-gt-pj-5 . #x4579) @@ -226,4 +246,4 @@ (ideograph-gt . 60403) )) -;;; mime-view.el ends here +;;; isolated-char.el ends here