update.
[chise/xemacs-chise.git.1] / lisp / utf-2000 / update-cdb.el
index bce7fd1..8ee1852 100644 (file)
@@ -1,6 +1,6 @@
 ;;; update-cdb.el --- Update and/or setup character attribute database
 
-;; Copyright (C) 2002,2003 MORIOKA Tomohiko.
+;; Copyright (C) 2002,2003,2004 MORIOKA Tomohiko.
 
 ;; Author: MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
 ;; Keywords: Character, Database, CHISE, Unicode, UCS-4, MULE.
@@ -38,8 +38,8 @@
  ((featurep 'chise)
   (defvar system-char-database-directory
     (expand-file-name "chise-db"
-                     (or exec-directory
-                         "../lib-src/")))
+                     (or data-directory
+                         "../etc/")))
 
   (defun file-name-char-attribute-name (filename)
     (let ((i 0)
       (save-char-attribute-table attribute))
 
     (dolist (ccs (charset-list))
+      (and (fboundp 'save-charset-properties)
+          (save-charset-properties ccs))
       (save-charset-mapping-table ccs))
+
+    (with-temp-buffer
+      (insert
+       (format
+       "(setq next-defined-char-id #x%X)\n"
+       next-defined-char-id))
+      (write-region (point-min)(point-max)
+                   "../lisp/utf-2000/cid-conf.el"))
     )
    (t
     (if (>= (function-max-args 'char-attribute-list) 1)
@@ -87,6 +97,7 @@
               nil nil t t)))
     (dolist (ccs (charset-list))
       (reset-charset-mapping-table ccs))
+    (load "../lisp/utf-2000/cid-conf.el")
     )))
  (t
   (load "dumped-chars.el")