From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86513 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: (MkVI) Regression in named parameters, TL2013 to current Date: Fri, 28 Feb 2014 18:45:17 -0500 Message-ID: <53111F8D.7090705@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1393631130 22691 80.91.229.3 (28 Feb 2014 23:45:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2014 23:45:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 01 00:45:40 2014 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 1WJX7Y-0004cl-Jx for gctc-ntg-context-518@m.gmane.org; Sat, 01 Mar 2014 00:45:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BF8F101F3; Sat, 1 Mar 2014 00:45:35 +0100 (CET) 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 EQWxEvbrOd4o; Sat, 1 Mar 2014 00:45:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 636CF101E9; Sat, 1 Mar 2014 00:45:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03451101E9 for ; Sat, 1 Mar 2014 00:45:32 +0100 (CET) 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 RNfKrPF9arEm for ; Sat, 1 Mar 2014 00:45:30 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id DBDED101E8 for ; Sat, 1 Mar 2014 00:45:20 +0100 (CET) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1SNjJhN006959 for ; Sat, 1 Mar 2014 00:45:20 +0100 Original-Received: from [192.168.9.157] (pool-173-56-235-45.nycmny.fios.verizon.net [173.56.235.45]) by mailbackend.panix.com (Postfix) with ESMTP id 9B23735589 for ; Fri, 28 Feb 2014 18:45:18 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=NY; city=Richmond Hill; postalcode=11418; latitude=40.7005; longitude=-73.8345; metrocode=501; areacode=718; http://maps.google.com/maps?q=40.7005,-73.8345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLvXJj9S - 4bdbc37d9172 - 20140301 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:86513 Archived-At: % macros=3Dmkvi \setupwhitespace[small] \def\=E4<^>?z{=C4<^>?} \def\Named[#PARAMETERNAME]{=A6#PARAMETERNAME=A6} \def\Numbered[#1]{=A6#1=A6} \starttext \subject{Regression between TL2013 and current beta} There does appear to have been some change or regression in the definition of allowed characters in parameter names between the versions of TL2013 ({\tt ConTeXt ver: 2013.05.28 00:36 MKIV current fmt: 2013.12.11}) and the current standalone beta ({\tt ConTeXt ver: 2014.02.14 17:07 MKIV beta fmt:2014.2.14}) The definition \type{\def\Named[#PARAMETERNAME]{=A6#PARAMETERNAME=A6}} (using BROKEN BAR, U00A6) is processed without error and gives an acceptable result under TL2013. Under the current beta it fails. When warnings are skipped in the current beta, the generated PDF shows that the trailing BROKEN BAR appears to be treated as a part of the parameter name: \Named[value]. With numbered parameters (\type{\def\Numbered[#1]{=A6#1=A6}}), all is well in both versions: \Numbered[value]. This issue makes it difficult to convert macros that use delimiters (for example, \type{\def\ABC#1=D7#2=A6{#1\ #2}}) to Mark VI syntax, and difficult to create such macros under Mark VI. \subject{What is allowed \=E4<^>?z} What characters are acceptable in Mark VI parameter names? What characters are acceptable in Mark IV and Mark VI macro names? The wiki states: \quotation{Mark VI is identical to Mark IV in every respect, except that when you define a new macro you can give parameters names instead of numbers.} Other than that, there is no guidance. Experimentation shows that many more characters are allowed in \CONTEXT{} identifiers than are generally allowed with other \TeX{} engines. The definition providing the last part of the subject of this section, \type{\def\=E4<^>?z{=C4<^>?}}, presents no problems. (That definition fails in Lua\TeX, \pdfTeX, and \XeTeX. I have never used Mark II, and do not have Ruby installed to enable a test.) -\hbox{}-~\crlf Rik Kabel \stoptext ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________