without-header
logical-feature chise-wiki-displayed-features
parents
- GlyphWiki-id HNG-card ret object-spec
+ GlyphWiki-id HNG-card HNG-card-id HNG-card-cobj ret object-spec
width height image-cobj base-image x y w h)
(if (eq level 0)
(setq level 1
(t
(setq ret (www-format-encode-string
(est-format-object object 'readable)))
- (setq HNG-card
- (if (string-match
- "<img alt=\"HNG\\([0-9]+\\)-\\([0-9]+\\)[a-z]?\"" ret)
- (format "hng-card/rep.id=%d-%d"
- (string-to-int (match-string 1 ret))
- (string-to-int (match-string 2 ret)))))
+ (when (string-match
+ "<img alt=\"HNG\\([0-9]+\\)-\\([0-9]+\\)[a-z]?\"" ret)
+ (setq HNG-card-id
+ (intern
+ (format "%d-%d"
+ (string-to-int (match-string 1 ret))
+ (string-to-int (match-string 2 ret)))))
+ (setq HNG-card
+ (format "hng-card/rep.id=%s" HNG-card-id)))
(princ
(format "<h%d>%s%s</h%d>\n"
level
genre genre
(decode-uri-string uri-object 'utf-8-mcs-er))
'utf-8-mcs-er)))
+ (when (and HNG-card-id
+ (eq genre 'character)
+ (setq HNG-card-cobj
+ (concord-decode-object
+ '=id HNG-card-id
+ 'hng-card)))
+ (put-char-attribute object 'sources@HNG/card (list HNG-card-cobj))
+ (if (setq ret (concord-object-get
+ HNG-card-cobj
+ '->glyph-image@zinbun/takuhon))
+ (put-char-attribute object 'sources@zinbun/takuhon ret))
+ )
(setq object-spec
(cond
(uri-feature-name