From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83924 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost label direction prefix Date: Sat, 24 Aug 2013 02:28:34 +0200 Message-ID: <5217FE32.7070909@wxs.nl> References: <20130823094203.GG18239@homerow> <52175A31.5050601@wxs.nl> <20130823131450.GI18239@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1377304146 4861 80.91.229.3 (24 Aug 2013 00:29:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Aug 2013 00:29:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 24 02:29:10 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 1VD1j1-0002zO-9M for gctc-ntg-context-518@m.gmane.org; Sat, 24 Aug 2013 02:29:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D887E1021D; Sat, 24 Aug 2013 02:27:54 +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 SPsehVzzF+Us; Sat, 24 Aug 2013 02:27:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D397610225; Sat, 24 Aug 2013 02:27:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8270810225 for ; Sat, 24 Aug 2013 02:27:51 +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 tekfCGn4WORO for ; Sat, 24 Aug 2013 02:27:50 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 895761021D for ; Sat, 24 Aug 2013 02:27:50 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7O0T0Fd008317 for ; Sat, 24 Aug 2013 02:29:01 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 2656-1713362 for ; Sat, 24 Aug 2013 02:29:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <20130823131450.GI18239@homerow> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Kgot0Jo - 4ade833a4161 - 20130824 (trained as not-spam) 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:83924 Archived-At: On 8/23/2013 3:14 PM, Marco Patzer wrote: > On 2013=9608=9623 Hans Hagen wrote: > >>> Is this prefix required? It breaks old code and required a branch in >>> every new project. And I don't really see a reason for this >>> incompatibility. Here is an example defining a new direction =93foo=94: >> >> The MpIV code has namespace protection. Why run traditional in MkIV? >> >> >>> \starttext >>> \startMPcode >>> label("first", origin); >>> >>> %% MkIV >>> %% pair mfun_laboff.foo ; mfun_laboff.foo :=3D (.5,-1) ; >>> %% mfun_labxf.foo :=3D mfun_labyf.foo :=3D 1 ; >>> >>> %% MkII >>> pair laboff.foo ; laboff.foo :=3D (.5,-1) ; >>> labxf.foo :=3D labyf.foo :=3D 1 ; >>> >>> label.foo("second", origin); >>> \stopMPcode >>> \stoptext >> >> I wasn't aware of users defining extra ones. I'll add this: > > Probably not many users will tinker with custom label directions, > but MetaPost package authors do. Some packages like piechartmp=B9 > internally use laboff.foo and the mpfun_ prefix breaks those > packages. They work in traditional MetaPost, plain TeX, LaTeX and > ConTeXt MkII, but since mplib uses the mpfun_ prefix, those packages > are broken in MkIV. that kind of tinkering can also result in overloading context 'extensions' >> [=85] >> installlabel.foo ( 0, 1, 1, (.5,-1) ) ; > > This does not fix the problem since it only *defines* the correct > variant, it doesn't help *using* those values. If the label values > are being changed in the package one still has to branch out to > support both variants. And even if there was an abstraction > assisting to *use* the laboff values, all MetaPost packages > tinkering with laboff would need to be adjusted. I can't imagine > that to happen. Here's what the piechartmp package is doing, for > instance: I'll provide: \starttext \startMPcode startplaincompatibity ; label("first", origin); pair laboff.foo ; laboff.foo :=3D (.5,-1) ; labxf.foo :=3D labyf.foo :=3D 1 ; label.foo("second", origin); stopplaincompatibity ; \stopMPcode \stoptext As I wouldn't be surprised if there were more differences we need to = handle. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________