(U+5188): Unify M-28201.
[chise/xemacs-chise.git-] / lisp / utf-2000 / read-maps.el
index f9e7410..f75b965 100644 (file)
@@ -24,7 +24,9 @@
 
 ;;; Code:
 
+;;;###autoload
 (defun mapping-table-read-file (filename)
+  "Read mapping table." 
   (interactive "fMapping table : ")
   (with-temp-buffer
     (buffer-disable-undo)
                   "[ \t]*U[+-]\\([0-9A-F][0-9A-F][0-9A-F][0-9A-F]+\\)")
                  (string-to-int (match-string 1) 16)))
        (when (setq chr (decode-char ccs code))
-         (unless (eq (get-char-attribute chr ccs) code)
+         (unless (eq (encode-char chr ccs 'defined-only)
+                     ;; (get-char-attribute chr ccs)
+                     code)
            (put-char-attribute chr ccs code))
          (when (and ucs-code
                     (not (eq (or (get-char-attribute chr ucs-ccs)
                                ucs)))
        (forward-line)))))
 
-(dolist (file '("J90-to-UCS.txt" "JSP-to-UCS.txt"
-               "JX1-to-UCS.txt" "JX2-to-UCS.txt"
-               ;; "C3-to-UCS.txt" ; "C4-to-UCS.txt"
-               "B-to-UCS.txt" "JC3-to-UCS.txt"))
-  (mapping-table-read-file (expand-file-name file "../etc/char-data/")))
+
+(provide 'read-maps)
 
 ;;; read-maps.el ends here