(insert-char-attributes): Don't display `->fullwidth' for non UCS
authortomo <tomo>
Tue, 2 Nov 2004 14:57:08 +0000 (14:57 +0000)
committertomo <tomo>
Tue, 2 Nov 2004 14:57:08 +0000 (14:57 +0000)
character when running with non-readable mode and it does not have
`->fullwidth*sources'.

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

index 7ed7c62..45d4fa1 100644 (file)
                      (not (string-match "\\*sources$" (symbol-name name)))
                      (or (eq name '<-identical)
                          (string-match "^->halfwidth" (symbol-name name))
+                         (and
+                          (string-match "^->fullwidth" (symbol-name name))
+                          (not
+                           (and (consp value)
+                                (characterp (car value))
+                                (encode-char
+                                 (car value) '=ucs 'defined-only))))
                          (string-match "^->simplified" (symbol-name name))
                          (string-match "^->vulgar" (symbol-name name))
                          (string-match "^->wrong" (symbol-name name))