Hi,
On 12 Aug 2019, at 12:10, Jon Wong
wrote: Hi all,
Is it possible to convert SVG to MetaPost?
Currently, I have Bash scripts in my workflow to invoke Inkscape (converting SVG to PDF). I don’t like to allow shell access to TeX.
If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files instead of SVG files. That will do away with having to convert SVG into PDF (via Inkscape).
SVG (and Inkscape) can do many graphical things that metapost can not do, so I think that would be a bad idea even if there was a tool that could do the conversion for some subset of SVG. That said, SVG is just an XML format, so it should be possible to process simple SVG using ConTeXt’s built-in xml parser (with suitable processing environments, of course). How much work that would entail and whether it is feasible depends on the actual SVG graphics. Best wishes, Taco