From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114876 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thangalin via ntg-context Newsgroups: gmane.comp.tex.context Subject: SVG style ignored after double semicolon Date: Sun, 8 May 2022 01:33:15 -0700 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6607944305174152147==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7465"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thangalin To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 08 10:34:08 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nncMh-0001g9-Tx for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 May 2022 10:34:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D3633606A4; Sun, 8 May 2022 10:33:33 +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 Vez8bBw-hSbg; Sun, 8 May 2022 10:33:30 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CE0693606A5; Sun, 8 May 2022 10:33:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1C75D3606A5 for ; Sun, 8 May 2022 10:33:29 +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 nDAf7Z66Z4Ti for ; Sun, 8 May 2022 10:33:28 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.43; helo=mail-lf1-f43.google.com; envelope-from=thangalin@gmail.com; receiver= Original-Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 2E7B63606A4 for ; Sun, 8 May 2022 10:33:27 +0200 (CEST) Original-Received: by mail-lf1-f43.google.com with SMTP id bu29so19190596lfb.0 for ; Sun, 08 May 2022 01:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=pLHlpouXPfNeBf7frisU23EiE8aoVuj8kcVsI9JvR98=; b=YYHCraeL9J2O+bMDTkoEHHjyz5vdsK4NENexgyPzQf9g2L+oNnvpU/MJysBt2uMZu1 elRq62AmstT9e0f3NiN3VcNMv6/o/lI6yQLzkXYURWV6vweMt9jYaBFp9Kxzkwonh+KG zR59ULE3GOb0CvRyWVmwP1QUYRzo+vKfzfW6MwBGrzF2LwlHyGdiBwbkQIbihES07qQh NiThzzpEXVGhkNViYbrUctbZnO3/HwKtoj5saTAcko9ujqRo1Onck4Sjmx/e+B2OLIj1 yFyWadIbqBGr6FdH4IhhtrzTolGAZ5d+bDRt91Soni9+Xb3Vr7u+0Dc+CJ3thatTPAiL ywRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pLHlpouXPfNeBf7frisU23EiE8aoVuj8kcVsI9JvR98=; b=wZaiulE8CYzB7SJfGTTEcypzaff+4o3buSen939KDUTlD5y47J3O+jyaQx3cBqJTvG TPswNL/HtwyTffRJteah9Nuuw6QHZZNpPDW5Y1tl6X+KJ8U0dnmi2kP+qs9qUd+QMkZk 7ZKdeD7r8fvx5NRI/dD4Y5FDYOjEl8pIlST1yvwV5Re3BfVA9zpLXphOBzO7eTUdZ85O pIACNmDnTMcj07AwfR4aLbu7MVH9hiqqpV3U4X/ppoQHGWLNwKMVOniOMSFCGBSCrge2 NbbXCj3RCtJ3TYGf7IC6gs2JArc4Gt0eGlFglh4LKgMAhk+iA4oUvLYUqKq0Un9Exlfg Y9DQ== X-Gm-Message-State: AOAM531ZjzrW2WSPHfI7lBG2xHQhzk0vx6WCajufiNqFq2Vi9Ur47qQX wu4AKp+z6EKxLnG+rODnO2/rjEMnah21Qj5A4aHoSIqc12s= X-Google-Smtp-Source: ABdhPJys2HMIjd67ESGLVhTrs89K5IDT8qNmJKD641kNO8DynePYxRaJBg8iMSKBdUIHb/0xa8MSsEhTXsZFuZ3hBXA= X-Received: by 2002:ac2:5607:0:b0:472:20d:e62e with SMTP id v7-20020ac25607000000b00472020de62emr8917864lfd.3.1651998806906; Sun, 08 May 2022 01:33:26 -0700 (PDT) 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.io gmane.comp.tex.context:114876 Archived-At: --===============6607944305174152147== Content-Type: multipart/alternative; boundary="0000000000000e1b0e05de7bf29e" --0000000000000e1b0e05de7bf29e Content-Type: text/plain; charset="UTF-8" Hey hey, The following produces a filled square, rather than an empty one: \startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext Remove the extra semicolon to get the expected result: It appears that a style immediately following two semicolons is ignored. The SVG was generated using the following R code: svg("filename.svg"); plot(rnorm(200)); dev.off() Arguably, R's SVG routines could be a bit tighter. Can the MP SVG parser code be relaxed to skip "empty" semicolons? $ context --version mtx-context | current version: 2022.05.02 16:19 Much appreciated. --0000000000000e1b0e05de7bf29e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey hey,

The following produ= ces a filled square, rather than an empty one:

\startbuffer[svg]
<svg>
=C2=A0 <rect width=3D"100"= ; height=3D"100"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 style=3D"str= oke:rgb(0,0,0);;fill:none" />
</svg>
\stopbuffer
\starttext
=C2=A0 \placefigure{}{\includesvgbuffer[svg][conversion=3Dmp= ]}
\stoptext

Remove the extra semicolon to get = the expected result:

<svg>
=C2=A0 <= ;rect width=3D"100" height=3D"100"
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 style=3D"stroke:rgb(0,0,0);fill:none" />
</sv= g>

It appears that a style immediately following two semic= olons is ignored.

The SVG was generated using the = following R code:

svg("filename.svg");
plot(rnorm(200));
dev.off()

Arg= uably, R's SVG routines could be a bit tighter. Can the MP SVG parser c= ode be relaxed to skip "empty" semicolons?

$ context --version
mtx-context =C2=A0 =C2=A0 | curren= t version: 2022.05.02 16:19

Much appreciated.
<= /div>
--0000000000000e1b0e05de7bf29e-- --===============6607944305174152147== 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== --===============6607944305174152147==--