From 323df81c4eaf80591de2e57ebcb081fc51f01f01 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Fri, 21 Feb 2014 08:01:07 +0900 Subject: [PATCH] (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'. --- lisp/utf-2000/char-db-util.el | 55 ++++++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 14 deletions(-) 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) -- 1.7.10.4