From: tomo Date: Wed, 13 Feb 2002 04:27:42 +0000 (+0000) Subject: (insert-char-attributes): Ignore `->ucs-variants' if optional argument X-Git-Tag: r21-2-44-lazy-n7c~109 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=34d394939c504b35e88d3f5184cbcd1e71af0ad4;p=chise%2Fxemacs-chise.git (insert-char-attributes): Ignore `->ucs-variants' if optional argument `readable' is not specified; regard ->FOO and <-FOO as list of char-refs. --- diff --git a/lisp/utf-2000/char-db-util.el b/lisp/utf-2000/char-db-util.el index 94d17bd..81f60e1 100644 --- a/lisp/utf-2000/char-db-util.el +++ b/lisp/utf-2000/char-db-util.el @@ -673,6 +673,10 @@ value line-breaking)) (setq attributes (delq 'hanyu-dazidian-char attributes)) ) + (when (and (not readable) + (memq '->ucs-variants attributes)) + (setq attributes (delq '->ucs-variants attributes)) + ) (setq rest ccs-attributes) (while (and rest (progn @@ -692,22 +696,24 @@ (insert (format "(%-18s . #x%04X)%s" name value line-breaking))) - ((memq name '(->lowercase - ->uppercase ->titlecase - ->fullwidth <-fullwidth - ->identical - ->vulgar-ideograph <-vulgar-ideograph - ->ancient-ideograph <-ancient-ideograph - ->original-ideograph <-original-ideograph - ->simplified-ideograph <-simplified-ideograph - ->wrong-ideograph <-wrong-ideograph - ->same-ideograph - ->ideographic-variants - ->synonyms - ->radical <-radical - ->bopomofo <-bopomofo - ->ideographic <-ideographic - ideographic-structure)) + ((or (eq name 'ideographic-structure) + (string-match "^\\(->\\|<-\\)" (symbol-name name))) + ;; (memq name '(->lowercase + ;; ->uppercase ->titlecase + ;; ->fullwidth <-fullwidth + ;; ->identical + ;; ->vulgar-ideograph <-vulgar-ideograph + ;; ->ancient-ideograph <-ancient-ideograph + ;; ->original-ideograph <-original-ideograph + ;; ->simplified-ideograph <-simplified-ideograph + ;; ->wrong-ideograph <-wrong-ideograph + ;; ->same-ideograph + ;; ->ideographic-variants + ;; ->synonyms + ;; ->radical <-radical + ;; ->bopomofo <-bopomofo + ;; ->ideographic <-ideographic + ;; ideographic-structure)) (insert (format "(%-18s%s " name line-breaking)) (setq lbs (concat "\n" (make-string (current-column) ?\ )) separator nil) @@ -718,7 +724,9 @@ (cond ((characterp cell) (if separator (insert lbs)) - (char-db-insert-char-spec cell readable) + (if readable + (insert (format "%S" cell)) + (char-db-insert-char-spec cell readable)) (setq separator lbs)) ((consp cell) (if separator @@ -762,20 +770,20 @@ (setq value (cdr value))) (insert ")") (insert line-breaking)) - ((string-match "^->" (symbol-name name)) - (insert - (format "(%-18s %s)%s" - name - (mapconcat (lambda (code) - (cond ((symbolp code) - (symbol-name code)) - ((integerp code) - (format "#x%04X" code)) - (t - (format "%s%S" - line-breaking code)))) - value " ") - line-breaking))) + ;; ((string-match "^->" (symbol-name name)) + ;; (insert + ;; (format "(%-18s %s)%s" + ;; name + ;; (mapconcat (lambda (code) + ;; (cond ((symbolp code) + ;; (symbol-name code)) + ;; ((integerp code) + ;; (format "#x%04X" code)) + ;; (t + ;; (format "%s%S" + ;; line-breaking code)))) + ;; value " ") + ;; line-breaking))) ((consp value) (insert (format "(%-18s " name)) (setq lbs (concat "\n" (make-string (current-column) ?\ ))