From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46571 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Catcode tables Date: Tue, 30 Dec 2008 00:19:37 +0100 Message-ID: <349E5862-6F1F-4BF8-A57E-9CDC73ABB064@gmail.com> References: <33EE4AC4-1EB3-4E43-A4CA-23A581DAEFD6@gmail.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"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230592893 15954 80.91.229.12 (29 Dec 2008 23:21:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2008 23:21:33 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 30 00:22:39 2008 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 1LHRRW-0008F9-TO for gctc-ntg-context-518@m.gmane.org; Tue, 30 Dec 2008 00:22:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 567871FD5A; Tue, 30 Dec 2008 00:21:23 +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 18541-01-2; Tue, 30 Dec 2008 00:20:24 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B0681FCC6; Tue, 30 Dec 2008 00:20:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8FFD1FCC6 for ; Tue, 30 Dec 2008 00:20:22 +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 17831-02-3 for ; Tue, 30 Dec 2008 00:19:39 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by ronja.ntg.nl (Postfix) with ESMTP id A860C1FC07 for ; Tue, 30 Dec 2008 00:19:39 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id l26so1756768fgb.8 for ; Mon, 29 Dec 2008 15:19:39 -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=6QeTMzI/MZnO9U0hiLOz7CyrGX5oA0qLt+sjOs/aDsQ=; b=NUaaT6debP3lvdm6th6DSlwK8DWoFd8JNePAHHhFn5RW15cL4v1w0yXTAyWFyVbUKd FE3UEBbuombiMvVx2IkjBnINV4rSyLUE4lK3TKLnoeBKiKDH3zNwCiBg2OCWSxQMEcrR sVLycA7UlNXmqsh1JW/Ckm7ZUW0CZTYI5zvWY= 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=X6Ij7f0mu4E+7D/SBMaSH4P6xeCH/xy3N4f4KGLXJw2J4ENaBtxBJbH4rqAyAg8gl5 TDc3Hurycgep/08/eBq5iFBnqCK9C6NPMVbv38cNQsao4CJYS4w1z4TK/0mM1xPyEOtJ kM03QJHBMW6cH2m5SOSxLGGjWJQcNNmR0nNUk= Original-Received: by 10.86.86.12 with SMTP id j12mr8389119fgb.33.1230592779504; Mon, 29 Dec 2008 15:19:39 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B295891.dip.t-dialin.net [91.41.88.145]) by mx.google.com with ESMTPS id 4sm4711095fge.25.2008.12.29.15.19.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Dec 2008 15:19:38 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) 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:46571 Archived-At: Am 29.12.2008 um 23:03 schrieb Aditya Mahajan: >> can you fix the catcode related macros in syst-cat.mkiv, the macros >> did not work because a few macros are not define like >> \savecatcodetable >> and a few other are only defined in the MkII part like \catcodetable. > > Aren't \savecatcodetable and \catcodetable luatex primitives? You're right, this helped me to find the problematic parts in the MkII and MkIV macros. I was able to make a working example where I commented the problematic parts. I hope this helps Hans to fix it and thank you for the hint. \startmode[mkiv] \long\def\startcatcodetable#1#2\stopcatcodetable {\bgroup %\catcodetable\scratchcatcodetable \the\setdefaultcatcodes #2% \savecatcodetable#1\relax \egroup} \stopmode \startmode[mkii] \def\catcodetable#1% {\mathchardef\currentcatcodetable#1% %\the\setdefaultlowercatcodes %\ifrecatcodeuppercharacters\the\setdefaultuppercatcodes\fi \the\csname @@cct:\number#1\endcsname} \stopmode \newcatcodetable \mycatcodetable \startcatcodetable \mycatcodetable \catcode`\$ = 12 \catcode`\& = 12 \catcode`\% = 12 \stopcatcodetable \def\normaltext {\pushcatcodetable \setcatcodetable\mycatcodetable \donormaltext} \def\donormaltext#1% {#1% \popcatcodetable} \starttext \normaltext{Procter & Gamble's stock climbed to $2, a 10% gain.} \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 ___________________________________________________________________________________