(char-db-coded-charset-priority-list): Delete `=mj',
authorMORIOKA Tomohiko <tomo.git@chise.org>
Thu, 20 Feb 2014 23:01:07 +0000 (08:01 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Thu, 20 Feb 2014 23:01:07 +0000 (08:01 +0900)
`=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

index 371cc67..7ba6f97 100644 (file)
     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
     =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
                         (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))
                     ==hanyo-denshi/ks ; =>>>hanyo-denshi/ks
                     =>>hanyo-denshi/ks
                     =koseki
+                    =mj ==mj =>>mj
                     =zihai mojikyo))
        "(%-18s . %06d)\t; %c")
        ((>= (charset-dimension name) 2)