"")))
)
-(defun www-display-object-desc (genre uri-object &optional lang level simple
+(defun www-display-object-desc (genre uri-object &optional uri-feature-name
+ lang level simple
uri-feature-name-to-edit editing-format)
(unless level
(setq level 0))
(let ((object (www-uri-decode-object genre uri-object))
- feature-name-to-edit
+ (est-eval-list-feature-items-limit est-eval-list-feature-items-limit)
+ feature-name-to-display feature-name-to-edit
base-name-to-edit metadata-name-to-edit
without-header
logical-feature chise-wiki-displayed-features
(www-format-feature-name '->subsumptive lang))))
(when (eq genre 'character)
(setq GlyphWiki-id (char-GlyphWiki-id object)))
+ (setq ret (www-format-encode-string
+ (est-format-object object 'readable)))
(princ (format "<h%d>%s%s</h%d>\n"
level
- (www-format-encode-string
- (est-format-object object 'readable))
+ (if uri-feature-name
+ (format "<a href=\"%s\">%s</a>"
+ (www-uri-make-object-url object uri-object)
+ ret)
+ ret)
(if GlyphWiki-id
(format
" <a href=\"http://glyphwiki.org/wiki/%s\"><img alt=\"%s\" src=\"http://glyphwiki.org/glyph/%s.50px.png\" /></a>"
(decode-uri-string uri-object 'utf-8-mcs-er))
'utf-8-mcs-er)))
(setq object-spec
- (if (eq genre 'character)
- (char-attribute-alist object)
- (concord-object-spec object)))
+ (cond
+ (uri-feature-name
+ (setq feature-name-to-display
+ (www-uri-decode-feature-name uri-feature-name))
+ (setq est-eval-list-feature-items-limit nil)
+ (list
+ (cons feature-name-to-display
+ (if (eq genre 'character)
+ (get-char-attribute object feature-name-to-display)
+ (concord-object-get object feature-name-to-display)))))
+ (t
+ (if (eq genre 'character)
+ (char-attribute-alist object)
+ (concord-object-spec object)))))
(when feature-name-to-edit
(unless (assq base-name-to-edit object-spec)
(setq object-spec (cons (cons base-name-to-edit nil)
(setq ret (car target))
(cond ((eq (car ret) 'char)
(www-display-object-desc
- 'character
- (cdr ret)
+ 'character (cdr ret) (cdr (assq 'feature target))
lang nil
(eq mode 'simple))
)
)
(t
(www-display-object-desc
- (car ret)
- (cdr ret)
+ (car ret) (cdr ret) (cdr (assq 'feature target))
lang nil
(eq mode 'simple))
))