X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Futf-2000%2Fisolated-char.el;h=0b2be87700adf2aab2ddec80a0ab55b39f3d64a6;hb=6f8a91966f78f32c2150f434d378f7ac4d858bc0;hp=4e47b93e1e4086529aa122d0f47e7805f3b3952f;hpb=93b9bb29bf863f9f15fc8bc19339c04b640eebff;p=chise%2Fxemacs-chise.git diff --git a/lisp/utf-2000/isolated-char.el b/lisp/utf-2000/isolated-char.el index 4e47b93..0b2be87 100644 --- a/lisp/utf-2000/isolated-char.el +++ b/lisp/utf-2000/isolated-char.el @@ -1,6 +1,6 @@ ;;; isolated-char.el --- Set up isolated-characters. -;; Copyright (C) 2001,2002 MORIOKA Tomohiko +;; Copyright (C) 2001,2002,2003 MORIOKA Tomohiko ;; Author: MORIOKA Tomohiko ;; Keywords: UTF-2000, UCS-4, character, CCS, multiscript, multilingual @@ -173,49 +173,83 @@ (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) (setq gt-code (string-to-int (match-string 1)) plane (string-to-int (match-string 4)) code (string-to-int (match-string 5) 16)) - (put-char-attribute (decode-builtin-char 'ideograph-gt gt-code) - (intern (format "ideograph-gt-pj-%d" plane)) + (put-char-attribute (decode-builtin-char '=gt gt-code) + (intern (format "=gt-pj-%d" plane)) 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") + (insert-file-contents "../etc/char-data/GT-fmap-K3.txt") + (insert-file-contents "../etc/char-data/GT-fmap-K4.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 '=gt-k gt-code) + (intern (format "=gt-pj-%s" plane)) + (encode-char + (decode-shift-jis-char (cons (/ code 256) + (% code 256))) + 'japanese-jisx0208)) + ))) + +(define-char + '((=gt-pj-4 . #x3844) + (=gt . 19655) + )) +(define-char + '((=gt-pj-4 . #x3845) + (=gt . 19656) + )) +(define-char + '((=gt-pj-9 . #x4D7B) + (=gt . 19861) + )) (define-char - '((ideograph-gt-pj-4 . #x3844) - (ideograph-gt . 19655) + '((=gt-pj-4 . #x493C) + (=gt . 21862) )) (define-char - '((ideograph-gt-pj-4 . #x3845) - (ideograph-gt . 19656) + '((=gt-pj-4 . #x6D51) + (=gt . 26606) )) (define-char - '((ideograph-gt-pj-9 . #x4D7B) - (ideograph-gt . 19861) + '((=gt-pj-5 . #x4579) + (=gt . 30254) )) (define-char - '((ideograph-gt-pj-4 . #x493C) - (ideograph-gt . 21862) + '((=gt-pj-11 . #x5277) + (=gt . 40268) )) (define-char - '((ideograph-gt-pj-11 . #x5277) - (ideograph-gt . 40268) + '((=gt-pj-1 . #x3F6B) + (=gt . 52230) )) (define-char - '((ideograph-gt-pj-1 . #x3F6B) - (ideograph-gt . 52230) + '((=gt-pj-7 . #x5821) + (=gt . 52349) )) (define-char - '((ideograph-gt-pj-7 . #x5821) - (ideograph-gt . 52349) + '((=gt-pj-9 . #x4C4B) + (=gt . 56364) )) (define-char - '((ideograph-gt-pj-11 . #x5A40) - (ideograph-gt . 60403) + '((=gt-pj-11 . #x5A40) + (=gt . 60403) )) -;;; mime-view.el ends here +;;; isolated-char.el ends here