From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36069 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Possible bug in core-tab? Date: Thu, 16 Aug 2007 11:54:24 -0400 (EDT) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187279695 23659 80.91.229.12 (16 Aug 2007 15:54:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 15:54:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 16 17:54:52 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1ILhgO-0002GF-De for gctc-ntg-context-518@m.gmane.org; Thu, 16 Aug 2007 17:54:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B142E202F0; Thu, 16 Aug 2007 17:54:46 +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 09577-02-4; Thu, 16 Aug 2007 17:54:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A77DB20243; Thu, 16 Aug 2007 17:54:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C40A20243 for ; Thu, 16 Aug 2007 17:54:32 +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 09577-02-3 for ; Thu, 16 Aug 2007 17:54:28 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 732711FB8E for ; Thu, 16 Aug 2007 17:54:28 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (adsl-68-79-90-81.dsl.sfldmi.ameritech.net [68.79.90.81]) BY hackers.mr.itd.umich.edu ID 46C47331.DC073.13548 ; 16 Aug 2007 11:54:26 -0400 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36069 Archived-At: Hi Hans, || does not work with tables, and until now I thought that this was a limitation of tables. But upon reading core-tab, it appears that you make a lot of effort to make sure that || works correctly, but it does not. I think that this is due to a mistake in the definition of pushouterbarandquote. Currently it is defined as \gdef\pushouterbarandquote {\ifForgetTableBarAndQuote \let|\letterbar \let"\letterdoublequote \ifnum\catcode`\|=\@@active \let\outertablebar |\else\let\outertablebar \relax\fi \ifnum\catcode`\"=\@@active \let\outertablequote"\else\let\outertablequote\relax\fi \fi} Shouldn't it be the other way round? That is first save the current meaning of | and ", and then redefine it. So, \bgroup \catcode`\|=\@@active \catcode`\"=\@@active \gdef\pushouterbarandquote {\ifForgetTableBarAndQuote \ifnum\catcode`\|=\@@active \let\outertablebar |\else\let\outertablebar \relax\fi \ifnum\catcode`\"=\@@active \let\outertablequote"\else\let\outertablequote\relax\fi \let|\letterbar \let"\letterdoublequote \fi} \egroup This makes sure that || works correctly. The redefinition of " and | was added last November. http://foundry.supelec.fr/plugins/scmsvn/viewcvs.php/tex/context/base/core-tab.tex?root=contextrev&r1=168&r2=173 Aditya ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________