From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106562 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= Newsgroups: gmane.comp.tex.context Subject: Issue with rendering arrows in lmtx Date: Tue, 17 Mar 2020 15:51:37 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Content-Type: multipart/mixed; boundary="===============0995638898230739570==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="102526"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 17 15:52:28 2020 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 1jEDa0-000QWv-O3 for gctc-ntg-context-518@m.gmane-mx.org; Tue, 17 Mar 2020 15:52:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2EFD718296A; Tue, 17 Mar 2020 15:51:48 +0100 (CET) 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 OFfzCBEiXSOr; Tue, 17 Mar 2020 15:51:45 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F30F18298E; Tue, 17 Mar 2020 15:51:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0B9F318296A for ; Tue, 17 Mar 2020 15:51:44 +0100 (CET) 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 f8zyZf-tXExF for ; Tue, 17 Mar 2020 15:51:42 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=79.136.2.40; helo=pio-pvt-msa1.bahnhof.se; envelope-from=janerik.hagglof@bahnhof.se; receiver= Original-Received: from pio-pvt-msa1.bahnhof.se (pio-pvt-msa1.bahnhof.se [79.136.2.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 39C8A182940 for ; Tue, 17 Mar 2020 15:51:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 3F7B03F57C for ; Tue, 17 Mar 2020 15:51:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Original-Received: from pio-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nvTK90dWuiEe for ; Tue, 17 Mar 2020 15:51:38 +0100 (CET) Original-Received: from jan-eriks-air.orebro.se (unknown [194.103.203.145]) (Authenticated sender: mb287648) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 150773F313 for ; Tue, 17 Mar 2020 15:51:37 +0100 (CET) X-Mailer: Apple Mail (2.3608.60.0.2.5) 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:106562 Archived-At: --===============0995638898230739570== Content-Type: multipart/alternative; boundary="Apple-Mail=_4EF01C15-87B1-47B5-A1EF-68966F086F0D" --Apple-Mail=_4EF01C15-87B1-47B5-A1EF-68966F086F0D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi All! When I invoke this command \startMPcode=20 picture p ; p :=3D lmt_svg [ filename =3D"pil.svg" ]; draw p; \stopMPcode I get weird results, the arrowhead points in wrong direction and is very = tiny compared to the size it was meant to have. Here is the .svg code from the saved file (pil.svg) made in Inkscape = 0.92 for Mac OS image/svg+xml Is there som incompatibility issues with reading those files?=20 I=E2=80=99ve tested to open the file in SVGMaker and it renders correct = there. Regards Janne= --Apple-Mail=_4EF01C15-87B1-47B5-A1EF-68966F086F0D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = All!

When I invoke = this command

\startMPcode 
picture p ; p :=3D lmt_svg [ filename =3D"pil.svg" = ];
draw = p;
\stopMPcode

I get weird results, the arrowhead = points in wrong direction and is very tiny compared to the size it was = meant to have.

Here is the .svg code from the saved file (pil.svg) made in = Inkscape 0.92 for Mac OS



<?xml = version=3D"1.0" encoding=3D"UTF-8" standalone=3D"no"?>
<svg
   = xmlns:cc=3D"http://creativecommons.org/ns#"
   = xmlns:svg=3D"http://www.w3.org/2000/svg"
   = xmlns:inkscape=3D"http://www.inkscape.org/namespaces/inkscape"
   = inkscape:version=3D"1.0beta2 (2b71d25, 2019-12-03)"
   = id=3D"svg8"
   version=3D"1.1"
   viewBox=3D"0 0 462.85062 = 100.67344"
   height=3D"100.67344mm"
   = width=3D"462.85062mm"
   sodipodi:docname=3D"pil.svg">
  = <defs
     id=3D"defs2">
    <marker
   =     inkscape:stockid=3D"Arrow2Lend"
       = orient=3D"auto"
       refY=3D"0"
   =     refX=3D"0"
       id=3D"Arrow2Lend"
   =     style=3D"overflow:visible"
       = inkscape:isstock=3D"true">
      <path
   =       id=3D"path853"
         = style=3D"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stro= ke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
   =       d=3D"M 8.7185878,4.0337352 -2.2072895,0.01601326 = 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 = -6e-7,8.035443 z"
         = transform=3D"matrix(-1.1,0,0,-1.1,-1.1,0)"
         = inkscape:connector-curvature=3D"0" />
    </marker>
    = <marker
       = inkscape:stockid=3D"Arrow1Send"
       orient=3D"auto"
   =     refY=3D"0"
       refX=3D"0"
   =     id=3D"Arrow1Send"
       = style=3D"overflow:visible"
       = inkscape:isstock=3D"true">
      <path
   =       id=3D"path847"
         d=3D"M 0,0 5,-5 = -12.5,0 5,5 Z"
         = style=3D"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stro= ke-width:1pt;stroke-opacity:1"
         = transform=3D"matrix(-0.2,0,0,-0.2,-1.2,0)"
         = inkscape:connector-curvature=3D"0" />
    </marker>
    = <marker
       = inkscape:stockid=3D"Arrow1Mstart"
       orient=3D"auto"
   =     refY=3D"0"
       refX=3D"0"
   =     id=3D"Arrow1Mstart"
       = style=3D"overflow:visible"
       = inkscape:isstock=3D"true">
      <path
   =       id=3D"path838"
         d=3D"M 0,0 5,-5 = -12.5,0 5,5 Z"
         = style=3D"fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stro= ke-width:1pt;stroke-opacity:1"
         = transform=3D"matrix(0.4,0,0,0.4,4,0)"
         = inkscape:connector-curvature=3D"0" />
    </marker>
  = </defs>
  <sodipodi:namedview
     showgrid=3D"false"
   =   inkscape:document-rotation=3D"0"
     = inkscape:current-layer=3D"layer1"
     = inkscape:document-units=3D"px"
     = inkscape:cy=3D"-33.787703"
     inkscape:cx=3D"722.89047"
   =   inkscape:zoom=3D"0.35"
     = inkscape:pageshadow=3D"2"
     inkscape:pageopacity=3D"0.0"
   =   borderopacity=3D"1.0"
     bordercolor=3D"#666666"
   =   pagecolor=3D"#ffffff"
     id=3D"base"
   =   inkscape:window-width=3D"1440"
     = inkscape:window-height=3D"804"
     inkscape:window-x=3D"0"
   =   inkscape:window-y=3D"23"
     inkscape:window-maximized=3D"0" = />
  = <metadata
     id=3D"metadata5">
    = <rdf:RDF>
      <cc:Work
         = rdf:about=3D"">
        = <dc:format>image/svg+xml</dc:format>
    =     <dc:type
           rdf:resource=3D"http://purl.org/dc/dcmitype/StillImage" />
    =     <dc:title></dc:title>
      = </cc:Work>
    </rdf:RDF>
  </metadata>
  = <g
   =   id=3D"layer1"
     inkscape:groupmode=3D"layer"
   =   inkscape:label=3D"Lager 1"
     = transform=3D"translate(141.37191,110.50081)">
    = <path
       = style=3D"fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:3.565;str= oke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharra= y:none;stroke-opacity:1;marker-end:url(#Arrow2Lend)"
   =     d=3D"m -141.36309,-96.761905 458.10714,2.267858"
   =     id=3D"path830"
       = inkscape:connector-curvature=3D"0" />
  </g>
</svg>


Is = there som incompatibility issues with reading those = files? 

I=E2=80=99ve tested to open the file in SVGMaker and it = renders correct there.

Regards

Janne
= --Apple-Mail=_4EF01C15-87B1-47B5-A1EF-68966F086F0D-- --===============0995638898230739570== 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== --===============0995638898230739570==--