<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Jan 2023 at 09:49, Lutz Haseloff <<a href="mailto:lutz.haseloff@toppkieker.info">lutz.haseloff@toppkieker.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Luigi,</p>
<p>your hint, only to use the "positive quadrant" led me to this
ugly workaround until mpost's svg output is debugged:</p>
<p>def korrektur =<br>
z1 = llcorner currentpicture ;<br>
numeric dw, dh ;<br>
if x1 < 0: dw := abs x1; else: dw := 0 fi ;<br>
if y1 < 0: dh := abs y1; else: dh := 0 fi ;<br>
currentpicture := currentpicture shifted (dw,dh) ;<br>
enddef ;<br>
outputformat := "svg";<br>
outputtemplate := "%j-%c-corrected.%{outputformat}";<br>
for i = 17 upto 23 :<br>
beginfig(i)<br>
fill fullcircle scaled i withcolor red ;<br>
korrektur ;<br>
endfig ;<br>
endfor ;<br>
end</p>
<p>(seems to work so far...)</p></div></blockquote><div>Ah ok, but I was talking about source/texk/web2c/mplibdir/svgout.w, wher you can read the </div><div>@ We often need to print a pair of coordinates.<br><br>Because of bugs in svg rendering software,<br></div><div>:</div><div>text. I think we can use double instead of integer for dx and dy (I will commit the patch this evening).</div><div><br></div><div>--</div><div>luigi</div><div><br></div></div></div>