From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31167 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: table: code doesn't work any more with recent beta Date: Mon, 2 Oct 2006 19:07:23 +0200 Message-ID: <20061002190723.2586989e.schuster.wolfgang@googlemail.com> References: <6faad9f00610011317l75039ab9ve2f8704e6b2af445@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159808975 6274 80.91.229.2 (2 Oct 2006 17:09:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Oct 2006 17:09:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 02 19:09:34 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GURGk-0000c3-89 for gctc-ntg-context-518@m.gmane.org; Mon, 02 Oct 2006 19:07:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 80E0F1FDFF; Mon, 2 Oct 2006 19:07:53 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14719-05-7; Mon, 2 Oct 2006 19:07:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7AAD81FDE7; Mon, 2 Oct 2006 19:07:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 217CA1FDE7 for ; Mon, 2 Oct 2006 19:07:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14719-05-6 for ; Mon, 2 Oct 2006 19:07:33 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by ronja.ntg.nl (Postfix) with SMTP id 9A8D71FDDF for ; Mon, 2 Oct 2006 19:07:32 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id e2so526846ugf for ; Mon, 02 Oct 2006 10:07:32 -0700 (PDT) Original-Received: by 10.66.216.6 with SMTP id o6mr2823726ugg; Mon, 02 Oct 2006 10:07:32 -0700 (PDT) Original-Received: from unknown ( [89.51.237.106]) by mx.gmail.com with ESMTP id 53sm4662778ugd.2006.10.02.10.07.30; Mon, 02 Oct 2006 10:07:31 -0700 (PDT) Original-To: ntg-context@ntg.nl In-Reply-To: X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.6.10; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31167 Archived-At: On Sun, 01 Oct 2006 22:42:03 +0100 Sanjoy Mahajan wrote: > I'd seen a similar problem but didn't manage to catch it before it > slithered away. But I'm pretty sure it used to work (perhaps with an > August 06 release). > > Starting from your example, the following was the smallest file I > could find showing the same problem (using the latest beta): > > \def\room{\starttable[|r|l|]} > \starttext > \room > \NC a \NC b \NC\MR > \stoptable > \stoptext > > I think it's related to the argument processing in \starttable because > this works: > > \def\room{\starttable} > \starttext > \room[|r|l|] > \NC a \NC b \NC\MR > \stoptable > \stoptext > > -Sanjoy > The arguments seems to be procesed as a argument for discretionaries. The following works but it is no real solution for the problem. \unprotect %\beginETEX \detokenize \def\installdiscretionaries#1#2#3% {\setevalue{\strippedcsname\mathmodediscretionary\string#1} {\detokenize{#1}}% \setvalue {\strippedcsname\textmodediscretionary \string#1}{#3}% \catcode`#1=\@@active \scratchcounter=\the\uccode`~ \uccode`~=`#1 \uppercase{\unexpanded\def~{\discretionarycommand~}}% \uccode`~=\scratchcounter} %\endETEX \installdiscretionaries || \compoundhyphen \protect \def\room#1{\starttable[ s0 |r|l|]#1\stoptable} \def\student#1#2{\NC#1\NC#2\NC\MR} \starttext \room{ \student{A}{B} \student{C}{D} } \stoptext Wolfgang