(www-display-object-desc): For each character object to represent HNG
authorMORIOKA Tomohiko <tomo.git@chise.org>
Wed, 5 Feb 2020 15:11:07 +0000 (00:11 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Fri, 13 Mar 2020 08:05:40 +0000 (17:05 +0900)
glyph-image, generate feature `sources@gallica' and display them if
the corresponding HNG-card object has feature `->glyph-image@gallica'.

cwiki-view.el

index 8b1cecb..5b1d63b 100644 (file)
@@ -422,10 +422,16 @@ size=\"30\" maxlength=\"30\" value=\"%s\">)</p>
                        '=id HNG-card-id
                        'hng-card)))
        (put-char-attribute object 'sources@HNG/card (list HNG-card-cobj))
-       (if (setq ret (concord-object-get
-                      HNG-card-cobj
-                      '->glyph-image@zinbun/takuhon))
-           (put-char-attribute object 'sources@zinbun/takuhon ret))
+       (cond ((setq ret (concord-object-get
+                         HNG-card-cobj
+                         '->glyph-image@zinbun/takuhon))
+              (put-char-attribute object 'sources@zinbun/takuhon ret)
+              )
+             ((setq ret (concord-object-get
+                         HNG-card-cobj
+                         '->glyph-image@gallica))
+              (put-char-attribute object 'sources@gallica ret)
+              ))
        )
       (setq object-spec
            (cond