From 8d3e1acc90a28a6cff90f18396a880ac06a05f37 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Mon, 29 Mar 2010 05:02:35 +0900 Subject: [PATCH] (www-display-char-desc): Display parents in the header. (www-display-feature-desc): Use `www-format-value' with default format instead of `www-xml-format-list' and `www-format-encode-string'. --- cwiki-view.el | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/cwiki-view.el b/cwiki-view.el index 911b190..72aeb42 100644 --- a/cwiki-view.el +++ b/cwiki-view.el @@ -9,7 +9,8 @@ (unless level (setq level 1)) (let ((char (www-uri-decode-char uri-char)) - logical-feature displayed-features) + logical-feature displayed-features + parents) (when (characterp char) (when (= (length uri-char) 1) (setq uri-char (www-uri-encode-char char))) @@ -22,15 +23,23 @@ (decode-uri-string uri-char 'utf-8-mcs-er)) 'utf-8-mcs-er)) (princ "\n")) + (dolist (feature (char-feature-property '$object 'additional-features)) + (mount-char-attribute-table + (char-feature-name-at-domain feature '$rev=latest))) + (when (setq parents (www-char-feature char '<-denotational)) + (princ (format "

%s %s

\n
\n" + (www-format-value-as-char-list parents) + (www-format-feature-name '->denotational lang)))) + (when (setq parents (www-char-feature char '<-subsumptive)) + (princ (format "

%s %s

\n
\n" + (www-format-value-as-char-list parents) + (www-format-feature-name '->subsumptive lang)))) (princ (format "%s\n" level (www-format-encode-string (char-to-string char)) level)) (if (> level 1) (princ "