Add code to set `(=ucs@JP/hanazono . nil)' into each `=ucs@unicode'
authorMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 3 Mar 2015 10:09:24 +0000 (19:09 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Tue, 3 Mar 2015 10:09:24 +0000 (19:09 +0900)
object differ from `=ucs@JP' object.

lisp/utf-2000/maps-conf.el

index 1a23726..3737c99 100644 (file)
    '==hanyo-denshi/jd)
   )
 
+(let (j-chr)
+  (map-char-attribute
+   (lambda (c v)
+     (if (and (setq j-chr (decode-char '=ucs@JP v))
+             (not (eq j-chr c))
+             (null (encode-char c '=ucs)))
+        (put-char-attribute c '=ucs@JP/hanazono nil))
+     nil)
+   '=ucs@unicode)
+  (map-char-attribute
+   (lambda (c v)
+     (if (and (setq j-chr (decode-char '==ucs@JP v))
+             (not (eq j-chr c)))
+        (put-char-attribute c '==ucs@JP/hanazono nil))
+     nil)
+   '==ucs@unicode)
+  )