(let ((object (www-uri-decode-object genre uri-object))
(feature-name (www-uri-decode-feature-name uri-feature-name))
base-name metadata-name
+ parents
object-spec str)
- (when (characterp object)
+ (when object
(princ
- (format "<head>
-<title>CHISE-wiki character: %s</title>
+ (encode-coding-string
+ (format "<head>
+<title>EsT %s = %s</title>
</head>\n"
- (encode-coding-string
- (decode-uri-string uri-object 'utf-8-mcs-er)
- 'utf-8-mcs-er)))
+ genre
+ (decode-uri-string uri-object 'utf-8-mcs-er))
+ 'utf-8-mcs-er))
(princ "<body>\n")
+ (when (eq genre 'character)
+ (dolist (feature (char-feature-property '$object 'additional-features))
+ (mount-char-attribute-table
+ (char-feature-name-at-domain feature '$rev=latest))))
+ (when (setq parents (www-get-feature-value object '<-denotational))
+ (princ (format "<p>%s %s</p>\n<hr>\n"
+ (www-format-value-as-char-list parents)
+ (www-format-feature-name '->denotational lang))))
+ (when (setq parents (www-get-feature-value object '<-subsumptive))
+ (princ (format "<p>%s %s</p>\n<hr>\n"
+ (www-format-value-as-char-list parents)
+ (www-format-feature-name '->subsumptive lang))))
(princ
(format "<h1>%s</h1>\n"
- (www-format-encode-string (char-to-string object))))
+ (www-format-encode-string (est-format-object object))))
(princ "<form action=\"set.cgi\" method=\"GET\">\n")
(princ
(encode-coding-string
- (format "<p>(char : <input type=\"text\" name=\"char\"
+ (format "<p>(%s : <input type=\"text\" name=\"%s\"
size=\"30\" maxlength=\"30\" value=\"%s\">)</p>
"
+ genre genre
(decode-uri-string uri-object 'utf-8-mcs-er))
'utf-8-mcs-er))
- (setq object-spec (char-attribute-alist object))
+ (setq object-spec
+ (if (eq genre 'character)
+ (char-attribute-alist object)
+ (concord-object-spec object)))
(if (string-match "\\*" (setq str (symbol-name feature-name)))
(setq base-name (intern (substring str 0 (match-beginning 0)))
metadata-name (intern (substring str (match-end 0))))
(defun www-edit-display-feature-desc (uri-feature-name
uri-property-name
- &optional lang uri-object)
+ &optional lang
+ object-genre uri-object)
(let ((feature-name (www-uri-decode-feature-name uri-feature-name))
(property-name (www-uri-decode-feature-name uri-property-name))
name@lang)
(decode-uri-string (cdr (assq 'property target))
'utf-8-mcs-er)
lang
- (cdr (assq 'char target))
- ;; (decode-uri-string (cdr (assq 'char target))
- ;; 'utf-8-mcs-er)
- )
+ (car (nth 3 target))
+ (cdr (nth 3 target))
+ ;; (cdr (assq 'char target))
+ )
)
(t
(www-edit-display-object-desc