From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24427 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: textbackground > bug Date: Sun, 18 Dec 2005 11:40:49 +0100 Message-ID: <43A53CB1.30001@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134902683 22260 80.91.229.2 (18 Dec 2005 10:44:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Dec 2005 10:44:43 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 18 11:44:41 2005 Return-path: 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 1Enw1E-00017r-Ru for gctc-ntg-context-518@m.gmane.org; Sun, 18 Dec 2005 11:43:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77100127DD; Sun, 18 Dec 2005 11:43:56 +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 13762-02; Sun, 18 Dec 2005 11:43:55 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2C3412811; Sun, 18 Dec 2005 11:40:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2B4312811 for ; Sun, 18 Dec 2005 11:40:13 +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 13634-03 for ; Sun, 18 Dec 2005 11:40:13 +0100 (CET) Original-Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by ronja.ntg.nl (Postfix) with ESMTP id 102C8127DD for ; Sun, 18 Dec 2005 11:40:12 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:46101 helo=[192.168.1.3]) by post-22.mail.nl.demon.net with esmtp (Exim 4.51) id 1Envxb-0009OW-OK for ntg-context@ntg.nl; Sun, 18 Dec 2005 10:40:12 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24427 Archived-At: Hans van der Meer wrote: > Therefore I suspect it has something to do with the output routine > where \s is taken as the next macro. > A simpe experiment (\def\s{something}) shows that indeed a macro \s is > executed. > Is someone here messing up the catcode's of the letters? Yes, the \startJAVA command :-) The problem is that context is loading the pdfr-ec resource file (Glyph -> Unicode mapping) while the prettytype catcodes are in effect, and it does not properly switch back to "non-verbatim" catcodes. I am not quite sure what the best way is to fix this, but I've redefined that loading macro in my preamble, like so, and it seems to work as a temporary workaround: \def\dododoincludepdffontresource#1% encoding {\bgroup \def\currentencoding{#1}% \doifvaluesomething\pdffontfileresource {\uncatcodeallcharacters % new \catcode`\[=12 % new* \catcode`\]=12 % new* \setnaturalcatcodes % new \startreadingfile \readsysfile{pdfr-\getvalue\pdffontfileresource} \donothing\donothing \stopreadingfile \letgvalue\pdffontfileresource\empty}% \egroup}