[NTG-context] Convert SVG to MetaPost

Hans Hagen j.hagen at xs4all.nl
Tue Aug 13 10:37:05 CEST 2019

On 8/12/2019 1:15 PM, Taco Hoekwater wrote:
> Hi,
>> On 12 Aug 2019, at 12:10, Jon Wong <jhannwong at gmail.com> 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.
indeed, and i actually did a partial converter a while ago just to see 
if it could be done but then decided to delay that till i really need it
(normally converting a svg to pdf is quite ok) .. i might pick it up on 
some cold winternight


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the ntg-context mailing list