(char-db-coded-charset-priority-list): Prefer `=adobe-japan1-*' to
authorMORIOKA Tomohiko <tomo.git@chise.org>
Fri, 7 Sep 2012 12:43:08 +0000 (21:43 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Fri, 7 Sep 2012 12:43:08 +0000 (21:43 +0900)
`=jis-x0208'; prefer `=>>>adobe-japan1-*' to other abstract glyph-form
CCSs; prefer `=>>adobe-japan1-*' to other abstract glyph CCSs.

lisp/utf-2000/char-db-util.el

index 8b5dd74..2b349d5 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
     =jis-x0208
     =jis-x0208@1978
     =jis-x0208@1983
     chinese-gb12345
     latin-viscii
     ethiopic-ucs
-    =adobe-japan1-0
-    =adobe-japan1-1
-    =adobe-japan1-2
-    =adobe-japan1-3
-    =adobe-japan1-4
-    =adobe-japan1-5
-    =adobe-japan1-6
     =big5-cdp
     =hanyo-denshi/ja
     =hanyo-denshi/jb
     ideograph-hanziku-10
     ideograph-hanziku-11
     ideograph-hanziku-12
+    =>>>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
     =>>>gt
-    =>>>adobe-japan1
+    =>>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-1@2000
     =>>hanyo-denshi/ks
     =>>gt
     =>>daikanwa
-    =>>adobe-japan1
     =+>jis-x0208
     =+>jis-x0213-1
     =+>jis-x0213-2
                         (setq char-spec (cons (cons 'name* ret) char-spec))
                         ))
                  )
+                ((encode-char char '=adobe-japan1 'defined-only)
+                 (setq char-spec nil)
+                 (dolist (ccs (charset-list))
+                   (if (and (or (memq ccs
+                                      '(=adobe-japan1-0
+                                        =adobe-japan1-1
+                                        =adobe-japan1-2
+                                        =adobe-japan1-3
+                                        =adobe-japan1-4
+                                        =adobe-japan1-5
+                                        =adobe-japan1-6
+                                        ))
+                                 ;; (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))))
+                 )
                 ((setq ret
                        (catch 'tag
                          (let ((rest char-db-coded-charset-priority-list)
                                         ;; =gt-k
                                         =jis-x0208@1997
                                         ))
-                                (string-match "=ucs@" (symbol-name ccs)))
+                                 (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)))