logical-feature chise-wiki-displayed-features
parents
GlyphWiki-id HNG-card ret object-spec
- width height base-image x y w h)
+ width height image-cobj base-image x y w h)
(if (eq level 0)
(setq level 1
without-header nil)
(format "<img alt=\"%s\" src=\"%s\" />"
ret ret)))
)
+ ((and (eq genre 'glyph-image)
+ (setq image-cobj
+ (car (concord-object-get object '->image-resource))))
+ (if (and (setq ret (concord-object-get image-cobj '=location@iiif))
+ (setq base-image
+ (car (concord-object-get image-cobj '<-image-segment))))
+ (princ
+ (format "<a href=\"../image-resource/%s...$.zoom-xywh=%d,%d,%d,%d\"
+><img alt=\"%s\" src=\"%s\" /></a>"
+ (www-uri-encode-object base-image)
+ (concord-object-get image-cobj 'image-offset-x)
+ (concord-object-get image-cobj 'image-offset-y)
+ (concord-object-get image-cobj 'image-width)
+ (concord-object-get image-cobj 'image-height)
+ ret ret))
+ (setq ret (concord-object-get image-cobj '=location))
+ (princ (format "<img alt=\"%s\" src=\"%s\" />"
+ ret ret)))
+ )
((and (eq genre 'hng-card)
(setq ret (concord-object-get object '=hng-card))
(setq ret (symbol-name ret))