From: MORIOKA Tomohiko
Date: Thu, 18 Mar 2010 12:15:10 +0000 (+0900)
Subject: (www-char-display-feature-default): Use `www-char-feature' instead of
X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f77d94ad5cb5544f0f5249316addb6a5f92cc55f;p=chise%2Fest.git
(www-char-display-feature-default): Use `www-char-feature' instead of
`char-feature'.
(www-char-display-feature-as-ucs): Likewise.
(www-display-char-desc): Ignore `$rev=latest' domain features.
---
diff --git a/cwiki-view.el b/cwiki-view.el
index c30519d..ae8bb22 100644
--- a/cwiki-view.el
+++ b/cwiki-view.el
@@ -8,7 +8,7 @@
(defun www-char-display-feature-default (char feature-name &optional value
lang uri-char)
(unless value
- (setq value (char-feature char feature-name)))
+ (setq value (www-char-feature char feature-name)))
(unless uri-char
(setq uri-char (char-to-string char)))
(www-html-display-paragraph
@@ -25,7 +25,7 @@
(defun www-char-display-feature-as-ucs (char feature-name &optional value)
(unless value
- (setq value (char-feature char feature-name)))
+ (setq value (www-char-feature char feature-name)))
(www-html-display-paragraph
(format "= [[U+%s|http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=%s]] (%d)"
(www-format-value-as-HEX value)
@@ -35,7 +35,8 @@
(defun www-display-char-desc (uri-char &optional lang level)
(unless level
(setq level 1))
- (let ((char (www-uri-decode-char uri-char)))
+ (let ((char (www-uri-decode-char uri-char))
+ feature-name logical-feature displayed-features)
(when (characterp char)
(when (= (length uri-char) 1)
(setq uri-char (www-uri-encode-char char)))
@@ -57,28 +58,40 @@
(dolist (cell (sort (char-attribute-alist char)
(lambda (a b)
(char-attribute-name< (car a)(car b)))))
- (princ
- (if (= level 1)
- "\n"
- "
\n"))
- (princ
- (www-format-eval-list
- (or (char-feature-property (car cell) 'format)
- '((name) " : " (value)))
- char (car cell) lang uri-char))
- (princ
- (format " \n"
+ "\n"))
+ (princ
+ (www-format-eval-list
+ (or (char-feature-property logical-feature ; (car cell)
+ 'format)
+ '((name) " : " (value)))
+ char
+ logical-feature ; (car cell)
+ lang uri-char))
+ (princ
+ (format " "
- chise-wiki-edit-url
- (www-format-encode-string uri-char)
- (www-format-encode-string
- (www-uri-encode-feature-name
- (intern (format "%s*note" (car cell)))))))
- (princ
- (if (= level 1)
- "
\n"
- "\n"))
- )
+ chise-wiki-edit-url
+ (www-format-encode-string uri-char)
+ (www-format-encode-string
+ (www-uri-encode-feature-name
+ (intern (format "%s*note"
+ logical-feature ; (car cell)
+ ))))))
+ (princ
+ (if (= level 1)
+ "\n"
+ "\n"))
+ ))
(princ
(if (= level 1)
"\n"