Texinfoから作成するHTMLファイルで、SVGをobject要素として記述
[YACASL2.git] / doc / texinfo.mk
index c75c261..bd3c4d4 100644 (file)
@@ -53,11 +53,13 @@ endif
 
 %.html: %.texi
        $(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $<
+       $(SED) -i '' -e 's%<img src="\([^"]*\)" alt="[^"]*">%<object type="image/svg+xml" data="\1"></object>%g' $@
 
 %_html: %.texi
        if test ! -e $@; then $(MKDIR) $@; fi
        $(CP) $(CSS) $@/
        $(MAKEINFO) -o $@ --html --css-ref=$(CSS) $<
+       $(SED) -i '' -e 's%<img src="\([^"]*\)" alt="[^"]*">%<object type="image/svg+xml" data="\1"></object>%g' $@
 
 %.html %_html: $(CSS)