(insert-char-attributes): Don't omit `->uppercase', `->lowercase' and
authortomo <tomo>
Thu, 29 Sep 2005 01:58:06 +0000 (01:58 +0000)
committertomo <tomo>
Thu, 29 Sep 2005 01:58:06 +0000 (01:58 +0000)
`->titlecase' even if running with non-readable mode; `->bopomofo' was
renamed to `->Bopomofo'; support {<-|->}FOO*note; don't display
`<-uppercase', `<-lowercase' and `<-titlecase' when running with
non-readable mode; don't use `char-db-insert-relation-feature' for
{<-|->}FOO*BAR except {<-|->}FOO*sources; modify formatter for atom.

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

index 09eb84e..cbe713b 100644 (file)
                ((and
                  (not readable)
                  (not (eq name '->subsumptive))
-                 (not (eq name '->bopomofo))
+                 (not (eq name '->uppercase))
+                 (not (eq name '->lowercase))
+                 (not (eq name '->titlecase))
+                 (not (eq name '->canonical))
+                 (not (eq name '->Bopomofo))
                  (not (eq name '->mistakable))
                  (not (eq name '->ideographic-variants))
-                 (not (eq name '->canonical))
                  (null (get-char-attribute
                         char (intern (format "%s*sources" name))))
                  (not (string-match "\\*sources$" (symbol-name name)))
+                 (null (get-char-attribute
+                        char (intern (format "%s*note" name))))
+                 (not (string-match "\\*note$" (symbol-name name)))
                  (or (eq name '<-identical)
+                     (eq name '<-uppercase)
+                     (eq name '<-lowercase)
+                     (eq name '<-titlecase)
                      (eq name '<-canonical)
                      (eq name '<-ideographic-variants)
                       ;; (eq name '<-synonyms)
                     (eq name 'ideographic-)
                     (eq name '=decomposition)
                     (string-match "^=>decomposition" (symbol-name name))
-                    (string-match "^\\(->\\|<-\\)" (symbol-name name)))
+                    (string-match "^\\(->\\|<-\\)[^*]*$" (symbol-name name))
+                    (string-match "^\\(->\\|<-\\)[^*]*\\*sources$"
+                                  (symbol-name name))
+                    )
                 (char-db-insert-relation-feature char name value
                                                  line-breaking
                                                  ccss readable))
                 (insert ")")
                 (insert line-breaking))
                (t
-                (insert (format "(%-18s . %S)%s"
-                                name value
-                                line-breaking)))
+                 (insert (format "(%-18s" name))
+                (setq ret (prin1-to-string value))
+                (unless (< (+ (current-column)
+                              (length ret)
+                              3)
+                           76)
+                  (insert line-breaking))
+                (insert " . " ret ")" line-breaking)
+                ;; (insert (format "(%-18s . %S)%s"
+                 ;;                 name value
+                 ;;                 line-breaking))
+                )
                ))
       (setq attributes (cdr attributes)))
     (insert ")")))