(www-parse-string-as-space-separated-char-list): Use
authorMORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
Tue, 12 Oct 2010 01:18:04 +0000 (10:18 +0900)
committerMORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
Tue, 12 Oct 2010 01:18:04 +0000 (10:18 +0900)
`www-uri-decode-object' instead of `www-uri-decode-char'.
(www-parse-string-as-space-separated-ids): Likewise.
(www-set-display-char-desc): Likewise; use `www-get-feature-value'
instead of `www-char-feature'.

cwiki-set.el

index dd2f309..ea7c732 100644 (file)
 (defun www-parse-string-as-space-separated-char-list (string)
   (let (dest char)
     (dolist (unit (split-string string "\\+"))
-      (if (setq char (www-uri-decode-char unit))
+      (if (setq char (www-uri-decode-object 'character unit))
          (setq dest (cons char dest))))
     (nreverse dest)))
 
     (let (char)
       (mapconcat
        (lambda (unit)
-        (if (setq char (www-uri-decode-char unit))
+        (if (setq char (www-uri-decode-object 'character unit))
             (char-to-string char)
           unit))
        (split-string string "\\+")
     (setq feature (intern feature)))
   (when (stringp format)
     (setq format (intern format)))
-  (let ((char (www-uri-decode-char uri-char))
+  (let ((char (www-uri-decode-object 'character uri-char))
        latest-feature
        logical-feature displayed-features
        ret)
       (setq latest-feature
            (char-feature-name-at-domain feature '$rev=latest))
       (if value
-         (if (equal (www-char-feature char feature) value)
+         (if (equal (www-get-feature-value char feature) value)
              (www-html-display-paragraph
               "Feature-value is not changed.")
             ;; (www-html-display-paragraph
             ;;  (format "New feature-value = %S is different from old value %S"
             ;;          value
-            ;;          (www-char-feature char feature)))
+            ;;          (www-get-feature-value char feature)))
            (put-char-attribute char latest-feature value)
            (save-char-attribute-table latest-feature)
            (setq ret (char-feature-property '$object 'additional-features))
     (princ "<hr />")
     (www-html-display-paragraph
      (format "「[[%c|%s?char=%s]]」に\u623Bる"
-            (www-uri-decode-char uri-char)
+            (www-uri-decode-object 'character uri-char)
             chise-wiki-view-url
             uri-char))
     ))