From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83932 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost label direction prefix Date: Sat, 24 Aug 2013 14:31:42 +0200 Message-ID: <20130824123142.GQ18239@homerow> References: <20130823094203.GG18239@homerow> <52175A31.5050601@wxs.nl> <20130823131450.GI18239@homerow> <5217FE32.7070909@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0189761026==" X-Trace: ger.gmane.org 1377347518 25891 80.91.229.3 (24 Aug 2013 12:31:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Aug 2013 12:31:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 24 14:32:02 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VDD0b-0007Hy-TI for gctc-ntg-context-518@m.gmane.org; Sat, 24 Aug 2013 14:32:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 411B41022C; Sat, 24 Aug 2013 14:30:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qKqO8MblR3zV; Sat, 24 Aug 2013 14:30:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B317C101F6; Sat, 24 Aug 2013 14:30:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE840101F6 for ; Sat, 24 Aug 2013 14:30:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QidNbKKfp55c for ; Sat, 24 Aug 2013 14:30:35 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 0116D101F2 for ; Sat, 24 Aug 2013 14:30:34 +0200 (CEST) Original-Received: from forward8l.mail.yandex.net (forward8l.mail.yandex.net [IPv6:2a02:6b8:0:1819::8]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7OCVkBD001517 for ; Sat, 24 Aug 2013 14:31:47 +0200 Original-Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward8l.mail.yandex.net (Yandex) with ESMTP id 829691A40EB2 for ; Sat, 24 Aug 2013 16:31:45 +0400 (MSK) Original-Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id 4242B7E07C6 for ; Sat, 24 Aug 2013 16:31:45 +0400 (MSK) Original-Received: from unknown (unknown [83.68.239.193]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTP id cNsMdd7JWs-ViBOWwtb; Sat, 24 Aug 2013 16:31:44 +0400 Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <5217FE32.7070909@wxs.nl> X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB8CFCB65D4F08C27 User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a02:6b8:0:1819::8; country=RU X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WKgAvKJ9 - 50f8f8759b5b - 20130824 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83932 Archived-At: --===============0189761026== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q8a9NmTVi5AMeZ2v" Content-Disposition: inline --Q8a9NmTVi5AMeZ2v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013=E2=80=9308=E2=80=9324 Hans Hagen wrote: > startplaincompatibity ; >=20 > label("first", origin); >=20 > pair laboff.foo ; laboff.foo :=3D (.5,-1) ; > labxf.foo :=3D labyf.foo :=3D 1 ; >=20 > label.foo("second", origin); >=20 > stopplaincompatibity ; Brilliant! Thanks a lot. A few things: 1) Can you replace def useplainlabels =3D let label =3D plain_label ; let thelabel =3D plain_thelabel ; enddef ; with def useplainlabels =3D def label =3D plain_label enddef ; def thelabel =3D plain_thelabel enddef ; enddef ; The minimal example works with your version, but the old MetaPost code does not. The def variant works fine with both. 2) Replace startplaincompatibity =E2=86=92 startplaincompatibility stopplaincompatibity =E2=86=92 stopplaincompatibility 3) This one is truly optional and just a suggestion for a better interface. Although it's nice to have the grouping in start-stopplaincompatibility, it's not required here, since the entire MetaPost instance runs in plain compatibility mode. It would be nice to either have a non-grouped command: def plaincompatibility =3D scantokens plain_compatibity_data ; enddef ; Or maybe even a higher-level switch: \defineMPinstance [fun-with-old-MP] [metafun] [compatibility=3Dplain] %% default* | plain > As I wouldn't be surprised if there were more differences we need > to handle. We will find out if things break. Marco --Q8a9NmTVi5AMeZ2v Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQEcBAEBAgAGBQJSGKeuAAoJEPGqVaNSn0iKoTsH/1mxKn7ELLnkJZyib0WcgRb+ rbCGNTtnu/AKocBkKOQqSrTUzAcMLHJI6NgfkWN4VicwcfJT4JVBHTA3Wy3lEGZt P6Z4zRLzOsZ7kZUWKjv8wU9GQdXnog8uoUDZ1ffiCjVn6m2cJtCozvsDadU0NohX Xchi/FOnNUZwWkHrM5pZKoG9Pybc9AAiH7Eu04mTAOAtA+xhShNzf+my4iXxAHo9 7iOAFPCDps4vc9QBfa77CnyY2AtsWyYLO0NnRXoEL2I3MsKLaGzq3TmTcerojBfq RZELs5AlEQsLyT60CsJuhyOA54+eg0OhYC0ZHFebgSwF5vd+/4tbob2AxgldDMM= =vAGR -----END PGP SIGNATURE----- --Q8a9NmTVi5AMeZ2v-- --===============0189761026== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0189761026==--