Enable SVG export of XFig figures for XHTML.

This commit is contained in:
Richard Heck 2016-07-31 00:28:37 -04:00
parent 0b8c6bbbf8
commit a45ffddb23
2 changed files with 7 additions and 0 deletions

View File

@ -927,6 +927,7 @@ def checkConverterEntries():
if fig2dev == "fig2dev": if fig2dev == "fig2dev":
addToRC(r'''\converter fig eps "fig2dev -L eps $$i $$o" "" addToRC(r'''\converter fig eps "fig2dev -L eps $$i $$o" ""
\converter fig ppm "fig2dev -L ppm $$i $$o" "" \converter fig ppm "fig2dev -L ppm $$i $$o" ""
\converter fig svg "fig2dev -L svg $$i $$o" ""
\converter fig png "fig2dev -L png $$i $$o" "" \converter fig png "fig2dev -L png $$i $$o" ""
\converter fig pdftex "python -tt $$s/scripts/fig2pdftex.py $$i $$o" "" \converter fig pdftex "python -tt $$s/scripts/fig2pdftex.py $$i $$o" ""
\converter fig pstex "python -tt $$s/scripts/fig2pstex.py $$i $$o" ""''') \converter fig pstex "python -tt $$s/scripts/fig2pstex.py $$i $$o" ""''')

View File

@ -258,6 +258,12 @@ Template XFig
ReferencedFile docbook "$$AbsPath$$Basename.eps" ReferencedFile docbook "$$AbsPath$$Basename.eps"
ReferencedFile docbook-xml "$$AbsPath$$Basename.eps" ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
FormatEnd FormatEnd
Format XHTML
Product "<img src=\"$$AbsOrRelPathMaster$$Basename.svg\" />"
UpdateFormat svg
UpdateResult "$$AbsPath$$Basename.svg"
ReferencedFile xhtml "$$AbsPath$$Basename.svg"
FormatEnd
TemplateEnd TemplateEnd