http://www.w3.org/2000/svg";>
\stopbuffer
\starttext
\startTEXpage
\includesvgbuffer[gradient]
\stopTEXpage
\startMPpage
fill unitsquare xyscaled (200,100)
withshademethod "linear&qu
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
% dishonou
7.77 -18.4)"
> > gradientUnits="userSpaceOnUse"/> > offset="0"/> > stop-opacity="0"/> > transform="translate(-48.91 -90.879)"> > fill-opacity=".5" d="M48.769 90.936H164.64V206.96H48.769z"/> > cx="106.745" cy
\starttext
\placefigure{}{\includesvgbuffer[csvg][conversion=mp]}
\stoptext
% EOF
See attached a comparison of the PDF generated using ConTeXt and the
PNG file generated by exporting from Inkscape.
these gradients definitions get crazier by the day ... does inkscape
output a bitmap or vector
Hi there!
Any thoughts on implementing SVG gradients in MetaPost?
% SOF
\startbuffer[csvg]
http://www.w3.org/2000/svg";
xmlns:xlink="http://www.w3.org/1999/xlink"; viewBox="0 0 115.669
115.669">
\stopbuffer
\starttext
\placefigure{}{\includesvgbuffer[csvg][conversi
Using 2022.09.11 20:44, there appears to be a problem with rendering
some circular forms, such as:
% SOT
\startbuffer[circle]
\stopbuffer
\starttext
\placefigure{}{\includesvgbuffer[circle][conversion=mp]}
\stoptext
% EOT
In Inkscape, this renders as a full circle without any deformation
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
exp
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
\placefigu
xpr\dummyparameter\c!offset\relax
\egroup}
\permanent\tolerant\protected\def\includesvgbuffer[#1]#*[#2]%
{\hbox\bgroup % no \dontleavehmode
\getdummyparameters[\c!offset=\zeropoint,#2]%
\clf_includesvgbuffer{#1}\dimexpr\dummyparameter\c!offset\relax
\egroup}
\protect \popoverloadmo
isn't the issue.)
% SOF
\startbuffer[svg]
http://www.w3.org/2000/svg";
xmlns:svg="http://www.w3.org/2000/svg";>
16p13.3
\stopbuffer
\starttext
\placefigure[]{}{\includesvgbuffer[svg][conversion=mp]}
\stoptext
% EOF
This has nothing to do with SVG. Looki
id="tspan159594-1"
>x="-48.831322"
>y="15.60547"
>
>
> style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;font-family:Roboto;-inkscape-font-specification:'Roboto,
> Normal'
w3.org/2000/svg";>
16p13.3
\stopbuffer
\starttext
\placefigure[]{}{\includesvgbuffer[svg][conversion=mp]}
\stoptext
% EOF
___
If your question is of interest to others as well, please add an entry to the
Wiki!
rent 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]
>>
>&g
words, try this:
>
> \startbuffer[svg]
>
>style="stroke:rgb(0,0,0);;fill:none" />
>
> \stopbuffer
>
> \starttext
> \placefigure{}{\includesvgbuffer[svg][conversion=mp]}
> \stoptext
>
> If you get a black square, that's the bug.
]
\stopbuffer
\starttext
\placefigure{}{\includesvgbuffer[svg][conversion=mp]}
\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ßens wrote:
gt;
> \startbuffer[svg]
>
>style="stroke:rgb(0,0,0);;fill:none" />
>
> \stopbuffer
>
> \starttext
> \placefigure{}{\includesvgbuffer[svg][conversion=mp]}
> \stoptext
>
> Remove the extra semicolon to get the expected result:
>
>
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
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
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:
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
<http://www.w3.org/2000/svg>">
\stopbuffer
\starttext
\placefigure{}{\includesvgbuffer[svg][conversion=mp]}
\
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.
Actua
l:xhtml
\xmlsetsetup{\xmldocument}{body|img}{xml:*}
\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:img
\placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]}
\placefigure{}{\externalfigure[circle.svg][conversion=mp]}
\placefigure{}
}{xml:*}
\stopxmlsetups
\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:img
\placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]}
\placefigure{}{\externalfigure[circle.svg][conversion=mp]}
\placefigure{}{\includesvgbuffer[csvg][convers
On 10/28/2019 10:00 PM, Floris van Manen wrote:
On 28-10-2019 19:20, Hans Hagen wrote:
As a teaser ... it is also possible to embed svg code, as in:
\startbuffer[svgtest]
\stopbuffer
\startTEXpage
\includesvgbuffer[svgtest]
\stopTEXpage
\startTEXpage
ot;10" stroke-opacity="0.3"
> fill="red" fill-opacity="0.3"
> />
> cx="150" cy="50" r="40"
> stroke="green" stroke-width="10"
> fill="red"
> opacity="
Hi,
I uploaded a beta. In lmtx there is now a bit more advanced support for
svg. A preliminary manual is included that explains a few things.
As a teaser ... it is also possible to embed svg code, as in:
\startbuffer[svgtest]
\stopbuffer
\startTEXpage
\includesvgbuffer
26 matches
Mail list logo