From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114891 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thangalin via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: SVG style ignored after double semicolon Date: Mon, 9 May 2022 08:42:26 -0700 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5159921335415422212==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thangalin , mailing list for ConTeXt users To: =?UTF-8?Q?Heinrich_Pae=C3=9Fens?= Original-X-From: ntg-context-bounces@ntg.nl Mon May 09 17:48:27 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 1no5cY-0009qb-1A for gctc-ntg-context-518@m.gmane-mx.org; Mon, 09 May 2022 17:48:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DDBE936075B; Mon, 9 May 2022 17:42:44 +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 lbiVzv1C-PeY; Mon, 9 May 2022 17:42:43 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 18B26360728; Mon, 9 May 2022 17:42:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A167D360728 for ; Mon, 9 May 2022 17:42:41 +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 hdfvodgTuOnq for ; Mon, 9 May 2022 17:42:40 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.178; helo=mail-lj1-f178.google.com; envelope-from=thangalin@gmail.com; receiver= Original-Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 338DE360720 for ; Mon, 9 May 2022 17:42:40 +0200 (CEST) Original-Received: by mail-lj1-f178.google.com with SMTP id g16so17576434lja.3 for ; Mon, 09 May 2022 08:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p9r3qINLfD0ImbPCm8XM/b9xhccEFYT5Iz+ThKo5Hsc=; b=KBnWRauPbi5JAhdLYBNxph4l6z6aQ8Qm93a1YgudrngQrXKt1kDq/dREPVHq+Bd+UQ jbTj9GMyND2DvWTX+tTpQQVrYJSzvPktu8qckkexoOwOzqlRGgr+VMXl229P9/ZPr3pR XnxUK52b67L57ox9ytgQE2xg0NxSq46Js5+ogamgqWPhqwmkAuzyx4WI9rKNiJNYIPqB C9sp02pFrzU0g9POWZSBVZohWGN69St4rp3xDIlQLIMAfs2epjpR9LEz2eQQU2cuWef9 q1D2VRQP6MjZL8iRFfVDEbKx7+8vHVrHa2meucM59JxMKyjcn8aBBlssCTQUgK+MCcNg DVsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p9r3qINLfD0ImbPCm8XM/b9xhccEFYT5Iz+ThKo5Hsc=; b=hGE2XbemFnEynR7WoGDe/sFAsi2BvqrqFIH73iSZJ7z7jTS/+lazJbUP7Lg0JtPmVs IMvJXNg11KzZCkQe12Kx+QZ9E+mGIMWU9/ztAGdrgigxw5yysMUE8uL2E1f4wzKGSP05 MYN+fFSSlhGVFNjSb3nFXHfxZhlyvkjw+qqfT4X+7foJGQQ4u6ocp6LWCpdPpLziGyIC goOWLWc05OwoUHH+enPl9YChnccUPg7K+V8zZrdDmkBxF/syumuzjiciqhCg3OLWL9xA dYDXiFGREnE1KYuubf5VcoM4SgBRy/no5r2FnuabnkrKjfp2AFkVWB+YNSwL8yG6wIqB iZ+A== X-Gm-Message-State: AOAM530mNkZmhAUEhoRyP/SX3dPax3ICpK8rh9imKPirlXunNZDwWKEY 7f0CAAo75AtGx28ZD0rME7y6YWWu6Tst//Y38iU= X-Google-Smtp-Source: ABdhPJy4LJ8AZtcCYZvWwQGq+O1fKEDwi452c50fROgyN81ZKyV+BJXzZRW1s3i2rzpL/duGlyIedEJU99rOm1O1hkQ= X-Received: by 2002:a2e:b171:0:b0:250:8403:ed31 with SMTP id a17-20020a2eb171000000b002508403ed31mr11000948ljm.495.1652110957456; Mon, 09 May 2022 08:42:37 -0700 (PDT) In-Reply-To: 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:114891 Archived-At: --===============5159921335415422212== Content-Type: multipart/alternative; boundary="000000000000bfb1fd05de960eb3" --000000000000bfb1fd05de960eb3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Heinrich, Use the SVG I provided. R and Renjin use two different SVG generators. Renjin uses JFreeSVG when exporting as SVG. As you pointed out, there are no issues with R because it will export an SVG file without any double semicolons. In other words, try this: \startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=3Dmp]} \stoptext If you get a black square, that's the bug. If you get a white square, then there's something different about our environment setups. Cheers! On Mon, May 9, 2022 at 1:55 AM Heinrich Pae=C3=9Fens wrot= e: > Hi there > > I can compile your example without any tweaks, hence could not reproduce > any error. > > cheers > Heinrich > > =E2=80=94=E2=80=94=E2=80=94 > > R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics" > Copyright (C) 2022 The R Foundation for Statistical Computing > Platform: x86_64-apple-darwin17.0 (64-bit) > > [R.app GUI 1.78 (8075) x86_64-apple-darwin17.0] > > > svg("/Users/hp/filename.svg"); > > plot(rnorm(200)); > > dev.off() > null device > 1 > > > > =E2=80=94=E2=80=94=E2=80=94 > > % !TEX program =3D lmtx > > \starttext > \externalfigure[/Users/hp/filename.svg][conversion=3Dmp] > \stoptext > > =E2=80=94=E2=80=94=E2=80=94 > > > > > On 9. May 2022, at 08:10, Thangalin via ntg-context > wrote: > > Here's a screenshot comparing ConTeXt's PDF output (left) with KeenWrite'= s > preview for the same SVG document: > > https://i.ibb.co/68nqwrg/render-r-plot.png > > I've filed a bug against Renjin's SVG exporter. > > Any guidance on how to fix this is greatly appreciated. > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > > > --000000000000bfb1fd05de960eb3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Heinrich,

Use the SVG I p= rovided. R and Renjin use two different SVG generators. Renjin uses JFreeSV= G when exporting as SVG. As you pointed out, there are no issues with R bec= ause it will export an SVG file without any double semicolons.
In other words, try this:

\startb= uffer[svg]
<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" />
</svg>
\stopbuffer

\startt= ext
=C2=A0 \placefigure{}{\includesvgbuffer[svg][conversion=3Dmp]}
\s= toptext

If you get a black square, that's the = bug. If you get a white square, then there's something different about = our environment setups.

Cheers!
=

On Mon, May 9, 2022 at 1:55 AM Heinrich Pae=C3=9Fens <paessens@me.com> wrote:
Hi there

I can compile your example without an= y tweaks, hence could not reproduce any error.

che= ers
Heinrich

=E2=80=94=E2=80=94=E2=80=94

R version 4.2.0 (= 2022-04-22) -- "Vigorous Calisthenics"
Copyright (C) 2022 The = R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0= (64-bit)

[R.app GUI 1.78 (8075) x86_64-apple-darwin17.0]

>= ; svg("/Users/hp/filename.svg");
> plot(rnorm(200));
>= ; dev.off()
null device=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1=C2= =A0
>=C2=A0

=E2=80=94=E2=80=94=E2=80=94

% !TEX program =3D lmtx

\starttext
=C2=A0= =C2=A0\externalfigure[/Users/hp/filename.svg][conversion=3Dmp]
\stoptext=

=E2=80=94=E2=80=94=E2=80=94




On 9. May 2022, at 08:10, Thangalin via ntg-co= ntext <ntg-conte= xt@ntg.nl> wrote:

Here's a s= creenshot comparing ConTeXt's PDF output (left) with KeenWrite's pr= eview for the same SVG document:


I've filed a b= ug against Renjin's SVG exporter.

Any guid= ance on how to fix this is greatly appreciated.

___________________________________________________________________________= ________
If your question is of interest to others as well, please add a= n entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/li= stinfo/ntg-context
webpage =C2=A0: http://www.pragma-ade.nl / http://context.aanhet.net
archive = =C2=A0: https://bitbucket.org/phg/context-mirror/commits/
wiki = =C2=A0=C2=A0=C2=A0=C2=A0: http://contextgarden.net
_____________________________________= ______________________________________________
=
--000000000000bfb1fd05de960eb3-- --===============5159921335415422212== 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== --===============5159921335415422212==--