From: tomo Date: Sat, 28 Jul 2001 17:46:40 +0000 (+0000) Subject: (char-db-decode-isolated-char): Don't use isolated characters of X-Git-Tag: r21-2-38-utf-2000-0_17-1~184 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=8251668837c4ebedb72fde1996b65caaddc9c95f;p=chise%2Fxemacs-chise.git- (char-db-decode-isolated-char): Don't use isolated characters of `arabic-iso8859-6'; format `->original-ideograph', `<-original-ideograph', `->ideographic', `<-ideographic' and `->ideograph' as character-reference style. (insert-char-data-with-variant): Sort variants. --- diff --git a/lisp/utf-2000/char-db-util.el b/lisp/utf-2000/char-db-util.el index 78bc654..1027c20 100644 --- a/lisp/utf-2000/char-db-util.el +++ b/lisp/utf-2000/char-db-util.el @@ -253,21 +253,24 @@ (defun char-db-decode-isolated-char (ccs code-point) (let (ret) (setq ret - (if (and (memq ccs '(ideograph-gt-pj-1 - ideograph-gt-pj-2 - ideograph-gt-pj-3 - ideograph-gt-pj-4 - ideograph-gt-pj-5 - ideograph-gt-pj-6 - ideograph-gt-pj-7 - ideograph-gt-pj-8 - ideograph-gt-pj-9 - ideograph-gt-pj-10 - ideograph-gt-pj-11)) - (setq ret (decode-char ccs code-point)) - (setq ret (get-char-attribute ret 'ideograph-gt))) - (decode-builtin-char 'ideograph-gt ret) - (decode-builtin-char ccs code-point))) + (cond ((eq ccs 'arabic-iso8859-6) + (decode-char ccs code-point)) + ((and (memq ccs '(ideograph-gt-pj-1 + ideograph-gt-pj-2 + ideograph-gt-pj-3 + ideograph-gt-pj-4 + ideograph-gt-pj-5 + ideograph-gt-pj-6 + ideograph-gt-pj-7 + ideograph-gt-pj-8 + ideograph-gt-pj-9 + ideograph-gt-pj-10 + ideograph-gt-pj-11)) + (setq ret (decode-char ccs code-point)) + (setq ret (get-char-attribute ret 'ideograph-gt))) + (decode-builtin-char 'ideograph-gt ret)) + (t + (decode-builtin-char ccs code-point)))) (cond ((and (<= 0 (char-int ret)) (<= (char-int ret) #x1F)) (decode-char 'ucs (+ #x2400 (char-int ret)))) @@ -581,9 +584,11 @@ ->fullwidth <-fullwidth ->vulgar-ideograph <-vulgar-ideograph ->ancient-ideograph <-ancient-ideograph + ->original-ideograph <-original-ideograph ->simplified-ideograph <-simplified-ideograph ->same-ideograph - ->bopomofo)) + ->ideographic <-ideographic + ->bopomofo ->ideograph)) (insert (format "(%-18s%s " name line-breaking)) (setq lbs (concat "\n" (make-string (current-column) ?\ )) separator nil) @@ -790,6 +795,7 @@ (if ucs (delete char (char-variants (int-char ucs))))))) variant vs) + (setq variants (sort variants #'<)) (while variants (setq variant (car variants)) (if (and (or (null script)