From 4755ad70494ea2e7e8849a5982861ef5cc4bb659 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Fri, 14 Dec 2018 19:34:06 +0900 Subject: [PATCH] (www-display-object-desc): Add code to clickable image of clipped source image for SW-JIGUGE[45]-ddddd character objects. --- cwiki-view.el | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/cwiki-view.el b/cwiki-view.el index e868df9..6d48331 100644 --- a/cwiki-view.el +++ b/cwiki-view.el @@ -69,6 +69,7 @@ size=\"64\" maxlength=\"256\" value=\"%s\"> logical-feature chise-wiki-displayed-features parents GlyphWiki-id HNG-card HNG-card-id HNG-card-cobj ret object-spec + item-code page char-num glyph-image-id width height image-cobj base-image x y w h) (if (eq level 0) (setq level 1 @@ -277,9 +278,34 @@ li { margin: 0 0 0 2em; } (format "\"%s\"" ret ret))) ) - ((and (eq genre 'glyph-image) - (setq image-cobj - (car (concord-object-get object '->image-resource)))) + ((or (and (eq genre 'glyph-image) + (setq image-cobj + (car (concord-object-get object '->image-resource)))) + (and (eq genre 'character) + (setq ret (www-format-encode-string + (est-format-object object 'readable))) + (string-match + "\"SW-JIGUGE\\([45]\\)-\\([0-9][0-9][0-9]\\)\\([0-9][0-9]\\)"image-resource))) + )) (if (and (setq ret (concord-object-get image-cobj '=location@iiif)) (setq base-image (car (concord-object-get image-cobj '<-image-segment)))) -- 1.7.10.4