On 9. May 2022, at 19:01, Heinrich Paeßens via ntg-context <ntg-context@ntg.nl> wrote:Yes, now I see, but isn’t there sth missing in the export from JFreeSVG, that were supposed to fill in between the semicolons? If not, why don’t you just post-process, if possible …___________________________________________________________________________________… sth like> gsed ’s/;;/;/g' in.svg > out.svg;-)On 9. May 2022, at 17:42, Thangalin <thangalin@gmail.com> wrote: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]
<svg>
<rect width="100" height="100"
style="stroke:rgb(0,0,0);;fill:none" />
</svg>
\stopbuffer
\starttext
\placefigure{}{\includesvgbuffer[svg][conversion=mp]}
\stoptextIf 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ßens <paessens@me.com> wrote:Hi thereI can compile your example without any tweaks, hence could not reproduce any error.cheersHeinrich———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
>———% !TEX program = lmtx
\starttext
\externalfigure[/Users/hp/filename.svg][conversion=mp]
\stoptext———On 9. May 2022, at 08:10, Thangalin via ntg-context <ntg-context@ntg.nl> wrote:___________________________________________________________________________________Here's a screenshot comparing ConTeXt's PDF output (left) with KeenWrite's preview for the same SVG document: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
___________________________________________________________________________________
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
___________________________________________________________________________________