From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106566 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?SmFuLUVyaWsgSMOkZ2dsw7Zm?= Newsgroups: gmane.comp.tex.context Subject: Re: Issue with rendering arrows in lmtx Date: Tue, 17 Mar 2020 20:43:23 +0100 Message-ID: <72F115ED-046C-4BD4-847C-A19BBEA60121@bahnhof.se> References: 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="===============1222041518265758669==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="74470"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 17 20:43:59 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 1jEI86-000JH5-PZ for gctc-ntg-context-518@m.gmane-mx.org; Tue, 17 Mar 2020 20:43:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A943182A0F; Tue, 17 Mar 2020 20:43:31 +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 U6PVAfmVJx0q; Tue, 17 Mar 2020 20:43:29 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 66900182A10; Tue, 17 Mar 2020 20:43:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 61F7D182A0E for ; Tue, 17 Mar 2020 20:43:28 +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 fRQtzFV3ifPa for ; Tue, 17 Mar 2020 20:43:27 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.80.101.70; helo=ste-pvt-msa1.bahnhof.se; envelope-from=janerik.hagglof@bahnhof.se; receiver= Original-Received: from ste-pvt-msa1.bahnhof.se (ste-pvt-msa1.bahnhof.se [213.80.101.70]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 285191829FC for ; Tue, 17 Mar 2020 20:43:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTP id 4147A3F7D5 for ; Tue, 17 Mar 2020 20:43:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Original-Received: from ste-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (ste-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19LHJn6tqviv for ; Tue, 17 Mar 2020 20:43:25 +0100 (CET) Original-Received: from [192.168.1.72] (h-248-232.A400.priv.bahnhof.se [85.24.248.232]) (Authenticated sender: mb287648) by ste-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 24B393F393 for ; Tue, 17 Mar 2020 20:43:25 +0100 (CET) In-Reply-To: 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:106566 Archived-At: --===============1222041518265758669== Content-Type: multipart/alternative; boundary="Apple-Mail=_68FD4D49-D95D-470F-9B66-B6BEBDFC2263" --Apple-Mail=_68FD4D49-D95D-470F-9B66-B6BEBDFC2263 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Ok, thanks for your advice. It seems that it is better to do framework = in MetaFun and use svg picture as a component instead of opposite. Best wishes to you all Janne > 17 mars 2020 kl. 16:58 skrev Taco Hoekwater : >=20 >=20 >=20 >> On 17 Mar 2020, at 15:51, Jan-Erik H=C3=A4ggl=C3=B6f = wrote: >>=20 >> Hi All! >>=20 >> When I invoke this command >>=20 >> \startMPcode=20 >> picture p ; p :=3D lmt_svg [ filename =3D"pil.svg" ]; >> draw p; >> \stopMPcode >>=20 >> I get weird results, the arrowhead points in wrong direction >=20 >=20 > That one is because lmt_svg does not properly consider the=20 >=20 >> orient=3D=E2=80=9Cauto" >=20 > in the marker definition. I played with setting it to actual angles, > and then the output is ok. >=20 >> and is very tiny compared to the size it was meant to have. >=20 > The path in the marker has its own transform, and that seems to be > ignored by lmt_svg. (I do not see how a scale of (-1.1,-1.1) would > make it that much bigger, but I know that manually altering the values=20= > does nothing, so I guess that must be it). >=20 > No solution, but I hope this helps Hans somewhat... >=20 > Best wishes, > Taco >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_68FD4D49-D95D-470F-9B66-B6BEBDFC2263 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Ok, = thanks for your advice. It seems that it is better to do framework in = MetaFun and use svg picture as a component instead of opposite.

Best wishes to you = all

Janne

17 mars 2020 kl. 16:58 skrev Taco Hoekwater <taco@elvenkind.com>:



On 17 = Mar 2020, at 15:51, Jan-Erik H=C3=A4ggl=C3=B6f <janerik.hagglof@bahnhof.se> wrote:

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


That one is because lmt_svg does = not properly consider the 

orient=3D=E2=80=9Cauto"

in the marker definition. I = played with setting it to actual angles,
and then the output is ok.

and is very tiny compared to the size = it was meant to have.

The path in the marker has its own transform, and that seems = to be
ignored by = lmt_svg. (I do not see how a scale of (-1.1,-1.1) would
make it that much bigger, but I = know that manually altering the values 
does nothing, so I guess that = must be it).

No solution, = but I hope this helps Hans somewhat...

Best wishes,
Taco

_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_68FD4D49-D95D-470F-9B66-B6BEBDFC2263-- --===============1222041518265758669== 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== --===============1222041518265758669==--