From: MORIOKA Tomohiko Date: Thu, 20 Feb 2014 23:01:07 +0000 (+0900) Subject: (char-db-coded-charset-priority-list): Delete `=mj', X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=323df81c4eaf80591de2e57ebcb081fc51f01f01;p=chise%2Fxemacs-chise.git- (char-db-coded-charset-priority-list): Delete `=mj', `=adobe-japan1-*', `==mj' and `==adobe-japan1-*'. (char-db-make-char-spec): Add code for `=mj' and `==mj' to prefer them to `=adobe-japan1-*' and `==adobe-japan1-*'. (char-db-insert-ccs-feature): Support `=mj', `==mj' and `=>>mj'. --- diff --git a/lisp/utf-2000/char-db-util.el b/lisp/utf-2000/char-db-util.el index 371cc67..7ba6f97 100644 --- a/lisp/utf-2000/char-db-util.el +++ b/lisp/utf-2000/char-db-util.el @@ -116,13 +116,14 @@ cyrillic-iso8859-5 greek-iso8859-7 thai-tis620 - =adobe-japan1-0 - =adobe-japan1-1 - =adobe-japan1-2 - =adobe-japan1-3 - =adobe-japan1-4 - =adobe-japan1-5 - =adobe-japan1-6 + ;; =mj + ;; =adobe-japan1-0 + ;; =adobe-japan1-1 + ;; =adobe-japan1-2 + ;; =adobe-japan1-3 + ;; =adobe-japan1-4 + ;; =adobe-japan1-5 + ;; =adobe-japan1-6 =jis-x0208 =jis-x0208@1978 =jis-x0208@1983 @@ -158,13 +159,14 @@ =hanyo-denshi/hg =hanyo-denshi/jt =hanyo-denshi/ks - ==adobe-japan1-0 - ==adobe-japan1-1 - ==adobe-japan1-2 - ==adobe-japan1-3 - ==adobe-japan1-4 - ==adobe-japan1-5 - ==adobe-japan1-6 + ;; ==mj + ;; ==adobe-japan1-0 + ;; ==adobe-japan1-1 + ;; ==adobe-japan1-2 + ;; ==adobe-japan1-3 + ;; ==adobe-japan1-4 + ;; ==adobe-japan1-5 + ;; ==adobe-japan1-6 ==jis-x0208 ==jis-x0213-1 ==jis-x0213-2 @@ -319,6 +321,30 @@ (setq char-spec (cons (cons 'name* ret) char-spec)) )) ) + ((encode-char char '=mj 'defined-only) + (setq char-spec nil) + (dolist (ccs (charset-list)) + (if (and (or (eq ccs '=mj) + ;; (eq (charset-property ccs 'iso-ir) 177) + (string-match "=ucs@" (symbol-name ccs)) + ) + (setq ccs (charset-name ccs)) + (null (assq ccs char-spec)) + (setq ret (encode-char char ccs 'defined-only))) + (setq char-spec (cons (cons ccs ret) char-spec)))) + ) + ((encode-char char '==mj 'defined-only) + (setq char-spec nil) + (dolist (ccs (charset-list)) + (if (and (or (eq ccs '==mj) + ;; (eq (charset-property ccs 'iso-ir) 177) + (string-match "=ucs@" (symbol-name ccs)) + ) + (setq ccs (charset-name ccs)) + (null (assq ccs char-spec)) + (setq ret (encode-char char ccs 'defined-only))) + (setq char-spec (cons (cons ccs ret) char-spec)))) + ) ((encode-char char '=adobe-japan1 'defined-only) (setq char-spec nil) (dolist (ccs (charset-list)) @@ -630,6 +656,7 @@ ==hanyo-denshi/ks ; =>>>hanyo-denshi/ks =>>hanyo-denshi/ks =koseki + =mj ==mj =>>mj =zihai mojikyo)) "(%-18s . %06d)\t; %c") ((>= (charset-dimension name) 2)