From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104764 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Convert SVG to MetaPost Date: Mon, 12 Aug 2019 13:30:24 +0200 Message-ID: References: <6F2FF2F9-C4B9-4113-B5D1-5DAACBB51614@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7924180928733201255==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="116190"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 12 13:30:58 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hx8XR-000U83-Pv for gctc-ntg-context-518@m.gmane.org; Mon, 12 Aug 2019 13:30:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFEB0153464; Mon, 12 Aug 2019 13:30:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id houJYsJf34zF; Mon, 12 Aug 2019 13:30:38 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 22A46153466; Mon, 12 Aug 2019 13:30:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 93DEE153464 for ; Mon, 12 Aug 2019 13:30:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DNWkxRuOthJ0 for ; Mon, 12 Aug 2019 13:30:36 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.182; helo=mail-lj1-f182.google.com; envelope-from=luigi.scarso@gmail.com; receiver= Original-Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id AB7E015345F for ; Mon, 12 Aug 2019 13:30:36 +0200 (CEST) Original-Received: by mail-lj1-f182.google.com with SMTP id e27so2806004ljb.7 for ; Mon, 12 Aug 2019 04:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=checa0Lp7uIi1CbaftEIINs3Xh3rnto51YvuocQyqAE=; b=gbQz3yMyNBOzMxdt3ejmYvQvgbzha6bxLa1EP2C45Xo03/WXG4EWa0IdIT1OpMgxus 80phEm8CrY5rUa/NNszhChe46MnH7mJ4khOs71Bexvdht+Df5JH8/MinYick5exEBOr6 DNBqywVqfph6sQ7exriJCUQmbjzX68okLcg37/Xi7HyLokk/KnrR8gQT2EoD2abo764o kem2C8wis2ylVSoo0DlXiSAo9J2ABx1kUTtioraWYdAreJlokRFavqwgaxkxWaSkvU3g Mv4tJ7vkSPQf5SvKIFFW5nZfDOWeQ1efjdDaaZUAy5tSFTnC8/4rxgNBx9mBDjZ2PM11 PlQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=checa0Lp7uIi1CbaftEIINs3Xh3rnto51YvuocQyqAE=; b=lIuS2VenQ3iOBnIBrQFdNSePO9ikHeQtGWq+1o0007S8IpOy+sXuGX3Yj6YrBAmk83 WFLL3Cpqw3GChcVIfXAPaCf5c7wvU126Z4KsHdqhESrGKoehRdFvlp2NwbknrED+eOTc YOGHQFgXuJ2L0YiAa7m01BN4FLDv5Eb1r+1aQ4khyhio6MTjvJZ5qWaYTXs5sgY5jhBn iRpan9mWQFroAi9YxrEfq5xwPndsh+V8MzfidDUpi5d6HVECmuQYKkrVXFY4H7I5Ju8q Y+/dxTrPtM3MD2EI9s2wGOVExL1tEKPXcd+VfBs7DwJQ3Sx4j3dodbsmCXne02D3908+ GivQ== X-Gm-Message-State: APjAAAUIrnBVxeKNgIMhnt/3SFcuEiZsUq6TmhrLw43yzYXBizgAwFNr 6ShsMmIAey9ufVdyUnNkJmMjg7qm1GnHUBhSHSer5q9M X-Google-Smtp-Source: APXvYqwnhcbcwlEDzZae/Fikw0pBWH7S0XpoiHD+nt/A1IX5IMUBKblYbJDc2rf4uNo1+JWwJpaWEbIbFk9u5V+SlWI= X-Received: by 2002:a2e:9d9a:: with SMTP id c26mr5070809ljj.56.1565609435591; Mon, 12 Aug 2019 04:30:35 -0700 (PDT) In-Reply-To: <6F2FF2F9-C4B9-4113-B5D1-5DAACBB51614@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:104764 Archived-At: --===============7924180928733201255== Content-Type: multipart/alternative; boundary="00000000000043f7eb058fe9dacd" --00000000000043f7eb058fe9dacd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 12, 2019 at 12:11 PM 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=E2=80=99t like to allow shell access to Te= X. > > 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 P= DF > (via Inkscape). > > you can check pstoedit http://www.calvina.de/pstoedit/pstoedit.htm it can convert postscript to metapost. So svg->pdf->ps->mp seems to be possible. Of course, I am not sure if it fits in your workflow. --=20 luigi --00000000000043f7eb058fe9dacd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Aug 12, 2019 at 12:11 PM Jon = Wong <jhannwong@gmail.com>= wrote:
Hi all,<= br>
Is it possible to convert SVG to MetaPost?

Currently, I have Bash scripts in my workflow to invoke Inkscape (convertin= g SVG to PDF). I don=E2=80=99t like to allow shell access to TeX.

If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files in= stead of SVG files. That will do away with having to convert SVG into PDF (= via Inkscape).


you can check pstoed= it=C2=A0

it can convert postscript to metapost.
So svg->pdf= ->ps->mp seems to be possible.
Of course, I am not sure if = it fits in=C2=A0 your workflow.

--
luigi
--00000000000043f7eb058fe9dacd-- --===============7924180928733201255== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7924180928733201255==--