From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46759 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Catcode tables Date: Tue, 13 Jan 2009 17:18:02 +0100 Message-ID: References: <33EE4AC4-1EB3-4E43-A4CA-23A581DAEFD6@gmail.com> <349E5862-6F1F-4BF8-A57E-9CDC73ABB064@gmail.com> <8672A1D7-2ACF-410F-A9D9-033F41A8C32E@gmail.com> <496B0FB7.5040805@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231863611 6243 80.91.229.12 (13 Jan 2009 16:20:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2009 16:20:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 13 17:21:22 2009 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 1LMm13-0001l6-Vt for gctc-ntg-context-518@m.gmane.org; Tue, 13 Jan 2009 17:21:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACB3A1FD59; Tue, 13 Jan 2009 17:20:03 +0100 (CET) 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 03872-01-2; Tue, 13 Jan 2009 17:18:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BC621FD3B; Tue, 13 Jan 2009 17:18:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7C961FD19 for ; Tue, 13 Jan 2009 17:18:50 +0100 (CET) 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 03872-01 for ; Tue, 13 Jan 2009 17:18:14 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 364D11FD59 for ; Tue, 13 Jan 2009 17:18:14 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0DGICgh032484 for ; Tue, 13 Jan 2009 17:18:12 +0100 Original-Received: by fg-out-1718.google.com with SMTP id 19so67589fgg.8 for ; Tue, 13 Jan 2009 08:18:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:to:in-reply-to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer:from; bh=WtcjJSXz/APosxnGBiii5H9zD+54PBj3uhizitx3dz0=; b=JnerbSJDVFFccdRn6vRUW1lUz18lMzCdxVICVeg1brYmBlGEdVzTQGtdzz/ajc5z4k IyhsKaK9+OytLK/x3L8N+t2U9QPLGbmwz/aaV7Esp4uWycquCwim06rs77O7A6noh+3J TSIGAGhLuFgQIrpGQbIlFLrAwIJR6ZhCXKGVE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer:from; b=GZ/3Kw1kNbvAiwdT01qeHTS/TeVEXnYjTU2TnAwDTKMMMhQGybZysacwFrgH5r/5mi yw5OZuGeTr54yQ7BjB2BHYa5SKRPydknMzqacj+FjwbGlSmYag6GgHUTmJg1z8dtyEkc DkFn8MkIZ0aY1qwWRe5p+8maMx9lzS58FmSH0= Original-Received: by 10.86.84.18 with SMTP id h18mr17692596fgb.69.1231863492550; Tue, 13 Jan 2009 08:18:12 -0800 (PST) Original-Received: from ?10.40.105.61? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id 4sm13792563fgg.44.2009.01.13.08.18.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jan 2009 08:18:07 -0800 (PST) In-Reply-To: <496B0FB7.5040805@elvenkind.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.159; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 164711392 - 9e2f1266d9a8 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46759 Archived-At: Am 12.01.2009 um 10:39 schrieb Taco Hoekwater: > The example text is flawed in itself: \newcatcodetable gives you an > empty table, and \startcatcodetable upgrades that to 'initex' level > itself. But initex *does not* set the catcodes of { and }. Nor > does it set the catcode of $, & and %, so the catcode assignments > that are needed are not there, and the ones that are there are > superfluous. > > \startcatcodetable \mycatcodetable > \catcode`\{ = 1 > \catcode`\} = 2 > \stopcatcodetable > > is enough. No in a real macro, here is a problem I posted a long time ago where I was now able to replace my low level catcodes changes with catcode tables, I hope this will help other users if they have the same problem. \unprotect \newcatcodetable \diacatcodes \startcatcodetable \diacatcodes \catcode`\^^M = 5 \catcode`\ = 10 \catcode`\\ = 0 \catcode`\{ = 1 \catcode`\} = 2 \catcode`\% = 11 \catcode`\! = 11 \catcode`\? = 11 \stopcatcodetable \def\????ax{@@@@ax} \def\setupaxis {\pushcatcodetable \setcatcodetable\diacatcodes \dodoubleargument\dosetupaxis} \def\dosetupaxis[#1][#2]% {\def\docommand##1{\getparameters[\????ax##1][#2]}% \popcatcodetable \processcommalist[#1]\docommand} \setupaxis [\c!x,\c!y] [\c!format=%d] \protect \starttext \getvalue{@@@@axxformat} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________