(char-db-convert-obsolete-format): New variable.
authortomo <tomo>
Tue, 24 Jul 2001 09:37:04 +0000 (09:37 +0000)
committertomo <tomo>
Tue, 24 Jul 2001 09:37:04 +0000 (09:37 +0000)
(insert-char-attributes): Don't convert `->ucs' to `=>ucs' if variable
`char-db-convert-obsolete-format' is nil; format
`->simplified-ideograph' and `<-simplified-ideograph' as character
reference.

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

index 1555a30..563d6a4 100644 (file)
           ?\u2421)
          (t ret))))
 
+(defvar char-db-convert-obsolete-format t)
+
 (defun insert-char-attributes (char &optional readable
                                    attributes ccs-attributes
                                    column)
       )
     (when (and (memq '->ucs attributes)
               (setq value (get-char-attribute char '->ucs)))
-      (insert (format "(=>ucs\t\t. #x%04X)\t; %c%s"
+      (insert (format (if char-db-convert-obsolete-format
+                         "(=>ucs\t\t. #x%04X)\t; %c%s"
+                       "(->ucs\t\t. #x%04X)\t; %c%s")
                      value (decode-char 'ucs value)
                      line-breaking))
       (setq attributes (delq '->ucs attributes))
                              ->fullwidth <-fullwidth
                              ->vulgar-ideograph <-vulgar-ideograph
                              ->ancient-ideograph <-ancient-ideograph
+                             ->simplified-ideograph <-simplified-ideograph
                              ->same-ideograph
                              ->bopomofo))
                 (insert (format "(%-18s%s " name line-breaking))