From a8c2286026c1edd6b78046ad41afafba70deed41 Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Fri, 14 Jan 2022 17:35:29 +0900 Subject: [PATCH] (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. --- cwiki-view.el | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) 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 - "