[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
Hi Hans, I've been using the SVG->MP converter and I've found a few bugs. Most of the bugs are with "weird" SVG input, but I have no control over the input, and the metadata on most of the files shows that it was exported from Adobe Illustrator which is (unfortunately) quite popular. I've tested

Re: [NTG-context] SVG ViewBox figure battle

2023-05-20 Thread Max Chernoff via ntg-context
Hi, > Any ideas on how to force that setting without modifying grph-con.lua? This seems to work: \startluacode function figures.converters.svg.pdf(oldname, newname) figures.programs.inkscape.runner { format = "filename", resolution = "600", crop

Re: [NTG-context] SVG ViewBox figure battle

2023-05-20 Thread Thangalin via ntg-context
Hi again, I changed tex/texmf-context/tex/context/base/mkiv/grph-con.lua to replace "" with "--export-area-page" in the inkscapecrop function: local function inkscapecrop(specification) return (specification and specification.crop == v_yes) and "--export-area-drawing" or

[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
Hi there! The following document contains SVG. Save the SVG as "problem.svg" and run the document through LMTX version 2023.05.08 17:39: % SOF \startbuffer[csvg] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonours viewbox

[NTG-context] SVG path conversion misalignment

2022-09-11 Thread Thangalin via ntg-context
Hi there, % SOT \startbuffer[dna] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[dna][conversion=mp]} \stoptext % EOT In the PDF that's generated, the curve of the gray semi-circle is malformed with respect to the blackground. It's like there's a small chip. The expected result is

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
Here's the formal rule: https://www.w3.org/TR/SVG11/coords.html#TransformAttribute rotate( [ ]), which specifies a rotation by degrees about a given point. If optional parameters and are not supplied, the rotation is about the origin of the current user coordinate system. The operation

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
On 6/29/2022 8:48 PM, Thangalin wrote: To me, it looks like the text, after a rotational transform, is being written to the baseline rather than (cap height + descender height) / 2, which seems to be a MetaPost conversion issue? There's another, possibly related issue, which I'll provide in a

[NTG-context] SVG text clipping issue

2022-06-29 Thread Thangalin via ntg-context
Text that's tight against its viewbox gets clipped: https://i.ibb.co/BGQVzzx/text-clipped.png Here's the code: % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
Thanks for checking this. Unfortunately, introducing \hbox didn't work; the text is still off-center with respect to the vertical line: https://i.ibb.co/hYGfdgZ/text-align.png For comparison, the SVG file loaded into Inkscape appears similar to: https://i.ibb.co/KF3PBkw/inkscape-alignment.png

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
On 6/29/2022 4:35 AM, Aditya Mahajan via ntg-context wrote: On Mon, 27 Jun 2022, Thangalin via ntg-context wrote: In the following example, the line and text should be aligned to the middle when LMTX converts the SVG figure using MP. (Note that you may have to install Roboto, but the font

Re: [NTG-context] SVG text alignment issue

2022-06-28 Thread Thangalin via ntg-context
Thanks Aditya, I tried your suggestion, but the result is the same. Here's the XML setup for all images in the document: \startxmlsetups xml:img \starttexcode \placefloat[here,force]{}{% \hbox{\externalfigure[\xmlatt{#1}{src}][conversion=mp]} } \stoptexcode \stopxmlsetups

Re: [NTG-context] SVG text alignment issue

2022-06-28 Thread Aditya Mahajan via ntg-context
On Mon, 27 Jun 2022, Thangalin via ntg-context wrote: > In the following example, the line and text should be aligned to the > middle when LMTX converts the SVG figure using MP. (Note that you may have > to install Roboto, but the font isn't the issue.) > > % SOF > \startbuffer[svg] >

[NTG-context] SVG text alignment issue

2022-06-28 Thread Thangalin via ntg-context
In the following example, the line and text should be aligned to the middle when LMTX converts the SVG figure using MP. (Note that you may have to install Roboto, but the font isn't the issue.) % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;>

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
That's another good idea Heinrich. I certainly could invoke another application to sanitize the SVG, but that brings with it a number of additional problems: Does the user have it installed properly? Is it cross-platform? Additionally, the typesetting code (in Java) would have to be updated to

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
ok, let’s get smarter. how about sanitizing the svg-file from JFreeSVG with svgo or svgcleaner or nano or else? And as a side effect you’d have the file optimized, ie. a smaller size (lossless I suppose) … and are you sure that the ;;-issue is the only bug? After sanitizing you’ll never know

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
> gsed ’s/;;/;/g' in.svg > out.svg If a user has an SVG text element where ";;" goes into the document, then that'd make for an awfully awkward user experience and obscure bug to fix. For example: plot(rnorm(5), xlab=";;") Meaning, the document must be loaded, parsed, and all style/class

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
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 wrote: > > Hi

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
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]

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
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 ComputingPlatform: x86_64-apple-darwin17.0 (64-bit)[R.app GUI 1.78 (8075)

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
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.

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
Hi again, In tex/texmf-context/tex/context/base/mkxl/mlib-svg.lmt the following regex appears a few times (line 1502, 1556, and 1570): gmatch(VAR,"%s*([^:]+):%s*([^;]+);?") It may be helpful to first normalize the string by appending a semicolon to the end, allowing for: for w in (VAR ..

[NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
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

Re: [NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, I found a minimal example. Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context: > in a minimal example > > \starttext > \externalfigure[test.svg][conversion=mp] > \stoptext > > renders fine. > > I my real world project white background is rendered black. > > Any

[NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, in a minimal example \starttext \externalfigure[test.svg][conversion=mp] \stoptext renders fine. I my real world project white background is rendered black. Any hints where I can start to debug? juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays:

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp]

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
Fixing your svg. View attachments. El lun, 18 oct 2021 a las 10:15, Jason Ross via ntg-context (< ntg-context@ntg.nl>) escribió: > The following MWE fails to render the text in the attached SVG properly: > > > \starttext > \externalfigure[test.svg][conversion=mp] > \stoptext > > > The axis

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Hans Hagen via ntg-context
On 10/18/2021 5:15 PM, Jason Ross via ntg-context wrote: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib.

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Hans Hagen via ntg-context
On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Here it's wrong. See attachment. Massimiliano Il 18/10/21 18:30, Hans Hagen via ntg-context ha scritto: On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly:

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Hans Hagen via ntg-context
On 10/18/2021 6:06 PM, mf via ntg-context wrote: Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
In my tests, this conversion works internally with linux. On windows it fails and stops at l.63 \ registerctxluafile {data-bin} {} % before data-tex ? El lun, 18 oct 2021 a las 10:49, Jason Ross () escribió: > > > On 10/18/21 8:38 AM, Luis Montgomery wrote: >

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread mf via ntg-context
Il 18/10/21 17:15, Jason Ross via ntg-context ha scritto: The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib.

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Jason Ross via ntg-context
On 10/18/21 8:38 AM, Luis Montgomery wrote: > Check that your Inkscape is working properly. > > That proble NOT appear on my machine... > > Best, > > L. Montgomery (Sorry Luis, I forgot to cc mailing list) Per https://wiki.contextgarden.net/Command/externalfigure, in LMTX the conversion is

Re: [NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Luis Montgomery via ntg-context
Check that your Inkscape is working properly. That proble NOT appear on my machine... Best, L. Montgomery El lun., 18 de octubre de 2021 10:15, Jason Ross via ntg-context < ntg-context@ntg.nl> escribió: > The following MWE fails to render the text in the attached SVG properly: > > >

[NTG-context] SVG not rendering correctly with LMTX and conversion=mp

2021-10-18 Thread Jason Ross via ntg-context
The following MWE fails to render the text in the attached SVG properly: \starttext \externalfigure[test.svg][conversion=mp] \stoptext The axis labels, tick labels, and title are all incorrect. This file was generated with Matplotlib.

[NTG-context] SVG transparent stroke shown

2021-05-06 Thread Thangalin
Hi again! % SOF\startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: No border around the outer white box, border around the inner green box. Actual: Border around both boxes. Version: 2021.05.06 Additional details: The

Re: [NTG-context] SVG stroked path colours

2021-04-15 Thread Hans Hagen
On 4/15/2021 4:20 AM, Thangalin wrote: A regression? probably side effect of opacity check ... i'll fix it but no upload today Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27

[NTG-context] SVG stroked path colours

2021-04-14 Thread Thangalin
A regression? % SOF \startbuffer[svg] http://www.w3.org/2000/svg; width="179" height="126" viewBox="0 0 134 94"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Green box, black outline. Actual: Green box, no outline. I believe the

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Hans Hagen
On 4/3/2021 9:46 PM, Thangalin wrote: A bug report exists for the -inkscape-font-specification issue: https://bugs.launchpad.net/inkscape/+bug/1324809 I've migrated it, so hopefully it'll get some traction:

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
A bug report exists for the -inkscape-font-specification issue: https://bugs.launchpad.net/inkscape/+bug/1324809 I've migrated it, so hopefully it'll get some traction: https://gitlab.com/inkscape/inbox/-/issues/4704 It'd be nice to support that particular extension; however, the reason for

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Hans Hagen
On 4/3/2021 8:10 PM, Thangalin wrote: Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg "> \stopbuffer \starttext   \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF

[NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg;> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Black circle, no border, comment lines ignored. Actual: Empty

Re: [NTG-context] SVG images inside XML setups

2021-03-09 Thread Thangalin
Thanks, Hans. The image is now rendered. Here's a picture of the output from ConTeXt (left) and the expected output using Apache Batik: https://i.ibb.co/zPqfhjK/metapost-svg.png Would a copy of the SVG file be useful for unit testing? Thanks again. > I probably need to add that wrapper in a

Re: [NTG-context] SVG images inside XML setups

2021-03-09 Thread Hans Hagen
On 3/9/2021 7:29 AM, Thangalin wrote: Here's a fairly minimal example showing an issue, using ConTeXt LMTX. Save the following as "main.tex": % SOF \startbuffer[document] \stopbuffer \startbuffer[csvg] http://www.w3.org/2000/svg;> \stopbuffer \startxmlsetups xml:xhtml

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
Here's a fairly minimal example showing an issue, using ConTeXt LMTX. Save the following as "main.tex": % SOF \startbuffer[document] \stopbuffer \startbuffer[csvg] http://www.w3.org/2000/svg;> \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{body|img}{xml:*} \stopxmlsetups

Re: [NTG-context] SVG fonts not working properly

2021-02-06 Thread Jairo A. del Rio
Ah, sorry. I'll try again. Jairo El sáb., 6 de feb. de 2021 3:45 p. m., Hans Hagen escribió: > On 2/6/2021 3:08 AM, Jairo A. del Rio wrote: > > svg=fixdepth breaks, with or without the patch. > > > > fatal lua error: > > > > > > run callback [6]: [string > >

Re: [NTG-context] SVG fonts not working properly

2021-02-06 Thread Hans Hagen
On 2/6/2021 3:08 AM, Jairo A. del Rio wrote: svg=fixdepth breaks, with or without the patch. fatal lua error: run callback [6]: [string "/home/coragyps/lmtx/tex/texmf-context/tex/con..."]:1587: attempt to perform arithmetic on a nil value (field 'depth') did you remake the format?

Re: [NTG-context] SVG fonts not working properly

2021-02-05 Thread Jairo A. del Rio
svg=fixdepth breaks, with or without the patch. fatal lua error: run callback [6]: [string "/home/coragyps/lmtx/tex/texmf-context/tex/con..."]:1587: attempt to perform arithmetic on a nil value (field 'depth') stack traceback: [string "/home/coragyps/lmtx/tex/texmf-context/tex/con..."]:1587:

Re: [NTG-context] SVG fonts not working properly

2021-02-05 Thread Hans Hagen
On 2/5/2021 6:29 PM, Jairo A. del Rio wrote: The following examples doesn't work as expected: \definefontfeature[emojis][default,color:svg][script=latn,language=dflt] \definefont[gilbert][file:Gilbert-ColorBoldPreview5*emojis @ 13bp] \starttext {\gilbert abcdefghijklmnpqrstuvwxyz}

[NTG-context] SVG fonts not working properly

2021-02-05 Thread Jairo A. del Rio
The following examples doesn't work as expected: \definefontfeature[emojis][default,color:svg][script=latn,language=dflt] \definefont[gilbert][file:Gilbert-ColorBoldPreview5*emojis @ 13bp] \starttext {\gilbert abcdefghijklmnpqrstuvwxyz} \stoptext Letters are displayed correctly, but

[NTG-context] SVG with \externalfigure and http:// handler

2013-04-11 Thread Marco Patzer
Hi, Including local SVG graphics works, so does including remote PNGs. Remote SVGs are not displayed, however. Example: \starttext \externalfigure[http://www.gnu.org/graphics/gnu2.svg] \stoptext Is this not supported or am I missing a required option? Marco signature.asc Description:

Re: [NTG-context] SVG?

2012-07-29 Thread luigi scarso
On Sat, Jul 28, 2012 at 6:33 PM, Bill Meahan wmeaha...@gmail.com wrote: Do recent versions of MKIV (specifically, the one in TeXLive 2012) support SVG graphics directly or is it still necessary to convert to PDF as in the wiki example? I've created a couple of items in Inkscape and can save

Re: [NTG-context] SVG?

2012-07-29 Thread Bill Meahan
On 07/29/2012 04:25 AM, luigi scarso wrote: On Sat, Jul 28, 2012 at 6:33 PM, Bill Meahan wmeaha...@gmail.com mailto:wmeaha...@gmail.com wrote: No, mkiv still uses inkscape. Some time ago I've seen rsvg I've also tried a kind of native support with a lua binding for librsvg, but the rsvg

[NTG-context] SVG?

2012-07-28 Thread Bill Meahan
Do recent versions of MKIV (specifically, the one in TeXLive 2012) support SVG graphics directly or is it still necessary to convert to PDF as in the wiki example? I've created a couple of items in Inkscape and can save them to PDF directly without the automatic background conversion but

Re: [NTG-context] SVG?

2012-07-28 Thread Peter Münster
On Sat, Jul 28 2012, Bill Meahan wrote: Do recent versions of MKIV (specifically, the one in TeXLive 2012) support SVG - http://wiki.contextgarden.net/Humour#Can_you_run_it_for_me.3F ;) -- Peter ___ If

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread Wolfgang Schuster
Am 26.01.2011 um 02:49 schrieb Anand Raj: Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img \externalfigure[\xmlatt{#1}{src}] \stopxmlsetups Does it work in a normal document? \starttext \externalfigure[figure.svg] \stoptext Wolfgang

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread Anand Raj
yes. works fine for jpg images. On Wed, Jan 26, 2011 at 5:27 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.01.2011 um 02:49 schrieb Anand Raj: Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread luigi scarso
On Wed, Jan 26, 2011 at 10:27 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.01.2011 um 02:49 schrieb Anand Raj: Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img         \externalfigure[\xmlatt{#1}{src}] \stopxmlsetups Does it work in a

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread luigi scarso
On Wed, Jan 26, 2011 at 10:27 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.01.2011 um 02:49 schrieb Anand Raj: Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img         \externalfigure[\xmlatt{#1}{src}] \stopxmlsetups Does it work in a

Re: [NTG-context] SVG is not rendered in the new beta

2011-01-26 Thread Wolfgang Schuster
Am 26.01.2011 um 10:39 schrieb Anand Raj: yes. works fine for jpg images. But does it also work with svg-images? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] SVG is not rendered in the new beta

2011-01-25 Thread Anand Raj
Hi, svg images are not rendered in the new beta. \startxmlsetups xml:img \externalfigure[\xmlatt{#1}{src}] \stopxmlsetups Thanks Anand ___ If your question is of interest to others as well, please add an

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-05 Thread Taco Hoekwater
Matija Šuklje wrote: Dne nedelja 4. aprila 2010 ob 23:23:10 je Mojca Miklavec napisal(a): Start with http://www.tug.org/docs/metapost/mpman.pdf and maybe the metafun manual. Thanks yet again :] The metafun manual is easier to read than the 'real' mpman.pdf which assume some of knowledge

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-05 Thread Hans Hagen
On 4-4-2010 7:29, Matija Šuklje wrote: Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name

[NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Is there a SVG to MetaPost/MetaFun converter available? I want to get this quite simple logo to converted from SVG into a ConTeXt- native vector graphic. Cheers, Matija P.S. Too bad SVG is not ConTeXt-native (yet?) -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp:

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Peter Wüsten
I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name (m_k_v_i_your SVG filename.pdf) in the same directory as the SVG-file. If you would still love to convert your

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name (m_k_v_i_your SVG filename.pdf) in the same

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Mojca Miklavec
On Sun, Apr 4, 2010 at 19:29, Matija Šuklje wrote: Dne nedelja 4. aprila 2010 ob 19:23:18 je Peter Wüsten napisal(a): I just tried using an SVG image directly in MkIV, and it worked like a breeze. Apparently ConTeXt converts the image to PDF on the fly as I found a PDF-file with a similar name

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Dne nedelja 4. aprila 2010 ob 22:36:07 je Mojca Miklavec napisal(a): I don't know of any waterproof way to convert from SVG to metapost (all you can do is to convert it to PDF and use that PDF logo), but here's an approximation of your logo in metapost (the legs are wider - you'll need to fix

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Wolfgang Schuster
Am 04.04.10 23:12, schrieb Matija Šuklje: BTW, is there a special command I'm missing to turn on the colours in ConTeXt? \setupcolors[state=start] Wolfgang ___ If your question is of interest to others as

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Dne nedelja 4. aprila 2010 ob 23:16:26 je Wolfgang Schuster napisal(a): Am 04.04.10 23:12, schrieb Matija Šuklje: BTW, is there a special command I'm missing to turn on the colours in ConTeXt? \setupcolors[state=start] /me is ashamed ...I found it the minute you sent the e-mail. Cheers,

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Mojca Miklavec
On Sun, Apr 4, 2010 at 23:12, Matija Šuklje wrote: I'll dig through the manuals to figure out what that codeblock actually does and try to fix it. Start with http://www.tug.org/docs/metapost/mpman.pdf and maybe the metafun manual. Mojca

Re: [NTG-context] SVG 2 MetaPost/MetaFun

2010-04-04 Thread Matija Šuklje
Dne nedelja 4. aprila 2010 ob 23:23:10 je Mojca Miklavec napisal(a): Start with http://www.tug.org/docs/metapost/mpman.pdf and maybe the metafun manual. Thanks yet again :] Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suk...@gabbler.org

Re: [NTG-context] svg - png conversion

2010-02-09 Thread Hans Hagen
On 8-2-2010 14:40, Peter Münster wrote: Hello, How can I convert svg to png on the fly? I've created a file test.rlx: ?xml version='1.0 standalone='yes'? rl:manipulators rl:manipulator name='png' suffix='svg' rl:oldrl:value name='path'//rl:value name='file'

[NTG-context] svg - png conversion

2010-02-08 Thread Peter Münster
Hello, How can I convert svg to png on the fly? I've created a file test.rlx: ?xml version='1.0 standalone='yes'? rl:manipulators rl:manipulator name='png' suffix='svg' rl:oldrl:value name='path'//rl:value name='file' method='nosuffix'/.png/rl:old rl:newrl:value

Re: [NTG-context] svg - png conversion

2010-02-08 Thread Hans Hagen
On 8-2-2010 14:40, Peter Münster wrote: Hello, \setupexternalfigures[conversion=png] \starttext \externalfigure[./myfile.svg] \stoptext i need to think a bit about it we do have a automatic svg - pdf converter so what we need is some way to force a specific kind of conversion (i need to

Re: [NTG-context] SVG support

2007-12-20 Thread Hans Hagen
Zeus Gómez Marmolejo wrote: resultpipe = --without-gui --export-pdf=\#{outfilename}\ 2#{logfile} the windows version performs rather random with pdf output, probably some internal messing around with quoting, it renders it useless Hans

Re: [NTG-context] SVG support

2007-12-08 Thread Zeus Gómez Marmolejo
I have version: [EMAIL PROTECTED] ~ $ inkscape --version Inkscape 0.45.1 (Jul 26 2007) [EMAIL PROTECTED] ~ $ You should consider doing it that way if it works. The PDF final size for the conversion is the same but the quality is much better. Now all my final year project documentation is all

Re: [NTG-context] SVG support

2007-12-06 Thread Hans Hagen
Zeus Gómez Marmolejo wrote: I've done some tests with rlxtools and I've found that the conversion from SVG to PDF is done really bad now. It passes through PS (with the inkscape command line) and then the ghostscript is executed to produce the PDF. But I've found a better way to do

Re: [NTG-context] SVG support

2007-12-05 Thread Zeus Gómez Marmolejo
It works!! And can be scaled nicely... Thank you very much!! The other thing I've tried is to move my figures to a subdirectory called "figs/". Following the wiki instructions, in the preamble I write: \setupexternalfigures[conversion=pdf,directory={./figs}] \starttext

Re: [NTG-context] SVG support

2007-12-05 Thread Zeus Gómez Marmolejo
I've done some tests with "rlxtools" and I've found that the conversion from SVG to PDF is done really bad now. It passes through PS (with the inkscape command line) and then the ghostscript is executed to produce the PDF. But I've found a better way to do it. I've modified the file

[NTG-context] SVG support

2007-12-04 Thread Zeus Gómez Marmolejo
Hi all, I'm working with Inkscape and I would like to embed some figures directly in vector format. How do I do that?? I'm trying this: \externalfigure[system][type=svg][scale=1000] But a dummy image appears. Is there any svg support in context?! Regards, Zeus.

Re: [NTG-context] SVG support

2007-12-04 Thread Hans Hagen
Zeus Gómez Marmolejo wrote: Hi all, I'm working with Inkscape and I would like to embed some figures directly in vector format. How do I do that?? I'm trying this: \externalfigure[system][type=svg][scale=1000] But a dummy image appears. Is there any svg support in context?!

Re: [NTG-context] SVG support

2007-12-04 Thread zs
If you can live without gradients and blur efects, direct PDF export works pretty well (inkscape-0.45.1). ZS On Tue, 04 Dec 2007 15:13:24 +0100 Zeus Gómez Marmolejo [EMAIL PROTECTED] wrote: Hi all, I'm working with Inkscape and I would like to embed some figures directly in vector

Re: [NTG-context] SVG support

2007-12-04 Thread Mojca Miklavec
On Dec 4, 2007 3:13 PM, Zeus Gómez Marmolejo wrote: Hi all, I'm working with Inkscape and I would like to embed some figures directly in vector format. How do I do that?? I'm trying this: \externalfigure[system][type=svg][scale=1000] But a dummy image appears. Is there any svg support in

[NTG-context] SVG images

2006-01-26 Thread Ville Voipio
I would need to embed some SVG images into a ConTeXt document. I have done some research on the topic, and the seemingly trivial task seems all but impossible. I found a few solutions, but none of them fits my needs: - I want to have my vector images in vector format (i.e., no

Re: [NTG-context] SVG images

2006-01-26 Thread Tobias Hilbricht
Am Donnerstag, 26. Januar 2006 13:05 schrieb Ville Voipio: I would need to embed some SVG images - I want to have my vector images in vector format (i.e., no Inkscape-to-PNG) - alpha-channel transparency is used in the images, and it should be present in the PDF file, as well (i.e., no

Re: [NTG-context] SVG images

2006-01-26 Thread pclouds
Cairo (www.cairographics.org) plus a librsvg development version (librsvg.sourceforge.net) seem be able to produce pdf from svg but i haven't tried it yet. You also need a bit of code. On 1/26/06, Ville Voipio [EMAIL PROTECTED] wrote: I would need to embed some SVG images into a ConTeXt

Re: [NTG-context] SVG images

2006-01-26 Thread Ville Voipio
Skencil http://www.skencil.org can open and save SVG and exports to PDF via reportlab. As I have not worked with transparency yet I do not know if that works all the way from SVG to PDF. Could you post me a little sample image to run it through Skencil? All right. I sent some files to

Re: [NTG-context] SVG images

2006-01-26 Thread Hans Hagen
Ville Voipio wrote: I would need to embed some SVG images into a ConTeXt document. I have done some research on the topic, and the seemingly trivial task seems all but impossible. I found a few solutions, but none of them fits my needs: - I want to have my vector images in vector format

Re: [NTG-context] SVG images

2006-01-26 Thread Tobias Hilbricht
Am Donnerstag, 26. Januar 2006 14:07 schrieb Ville Voipio: Scribus did it almost correctly. Scribus seems to have some problem with alpha channel gradients, but the problem looks like a problem with some color correction/conversion, not a real SVG/PDF issue. Hello Ville, for the first test of

Re: [NTG-context] SVG support (was: Tutorial)

2005-04-12 Thread Henning Hraban Ramm
Am 12.04.2005 um 00:07 schrieb Hans Hagen: Because i want to post a new context zip with svg support Big news in a half sentence! What does SVG support mean in ConTeXt / this context? Translation of SVG to MetaPost? Which SVG level/standard? Grüßlis vom Hraban! --- http://www.fiee.net/texnique/

Re: [NTG-context] SVG support

2005-04-12 Thread Hans Hagen
Henning Hraban Ramm wrote: Am 12.04.2005 um 00:07 schrieb Hans Hagen: Because i want to post a new context zip with svg support Big news in a half sentence! What does SVG support mean in ConTeXt / this context? Translation of SVG to MetaPost? Which SVG level/standard? i've implemented a mechanism

Re: [NTG-context] SVG again

2004-12-23 Thread Hans Hagen
Micha Morawski wrote: So I hope, it is not very difficult to include this possibilities into Context. Am I right? no; actually i have it someplace on my machine, but since svg support was rather bugged in acrobat 6 the code never made it into the distribution; i'll have a look at it Hans

Re: [NTG-context] SVG again

2004-12-23 Thread Hans Hagen
Micha Morawski wrote: PDF supports SVG graphic starting from version 5 of Acrobat (according adobe) I would like to obtain effects similar to http://www.learnsvg.com/pdf/chapter09_svg.pdf So I hope, it is not very difficult to include this possibilities into Context. Am I right? do you know an

[NTG-context] SVG again

2004-12-22 Thread Micha Morawski
PDF supports SVG graphic starting from version 5 of Acrobat (according adobe) I would like to obtain effects similar to http://www.learnsvg.com/pdf/chapter09_svg.pdf So I hope, it is not very difficult to include this possibilities into Context. Am I right? Michal Morawski