From: MORIOKA Tomohiko Date: Fri, 14 Jan 2022 08:35:29 +0000 (+0900) Subject: (www-display-object-desc): X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a8c2286026c1edd6b78046ad41afafba70deed41;p=chise%2Fest.git (www-display-object-desc): - Add code to link HDIC Viewer from HDIC-TSJ characters. - New implementation to add clickable image of clipped source image for `=shuowen-jiguge', `===shuowen-jiguge5' and `===shuowen-jiguge4' characters. --- diff --git a/cwiki-view.el b/cwiki-view.el index ba15468..f3830a0 100644 --- a/cwiki-view.el +++ b/cwiki-view.el @@ -302,18 +302,39 @@ li { margin: 0 0 0 2em; } (format "\"%s\"" ret ret))) ) + ((and (eq genre 'character) + (setq ret (or (encode-char object '=chise-hdic-tsj) + (encode-char object '===chise-hdic-tsj))) + (setq ret (decode-char '===chise-hdic-tsj ret)) + (setq ret (get-char-attribute ret '=hdic-tsj-entry-id))) + (princ + (format "%s" + ret + (www-format-encode-string + (est-format-object object 'readable)))) + ) ((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 - "