(format "<img alt=\"%s\" src=\"%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 "<a href=\"https://viewer.hdic.jp/tsj2/%s\"
+>%s</a>"
+ 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
- "<img alt=\"SW-JIGUGE\\([45]\\)-\\([0-9][0-9][0-9]\\)\\([0-9][0-9]\\)"
- ret)
- (setq item-code (string-to-int (match-string 1 ret))
- page (string-to-int (match-string 2 ret))
- char-num (string-to-int (match-string 3 ret)))
+ ;; (setq ret (www-format-encode-string
+ ;; (est-format-object object 'readable)))
+ ;; (string-match
+ ;; "<img alt=\"SW-JIGUGE\\([45]\\)-\\([0-9][0-9][0-9]\\)\\([0-9][0-9]\\)"
+ ;; ret)
+ ;; (setq item-code (string-to-int (match-string 1 ret))
+ ;; page (string-to-int (match-string 2 ret))
+ ;; char-num (string-to-int (match-string 3 ret)))
+ (cond ((setq ret (or (encode-char object '=shuowen-jiguge)
+ (encode-char object '===shuowen-jiguge5)))
+ (setq item-code 5
+ page (/ ret 100)
+ char-num (% ret 100)))
+ ((setq ret (encode-char object '===shuowen-jiguge4))
+ (setq item-code 4
+ page (/ ret 100)
+ char-num (% ret 100))))
(setq glyph-image-id
(cond ((eq item-code 4)
(intern