From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24449 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: textbackground > bug Date: Sun, 18 Dec 2005 20:11:24 +0100 Message-ID: <1C77CEA4-57FC-49BA-9EFD-FF6687DB5E04@science.uva.nl> References: <43A53CB1.30001@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134933275 4284 80.91.229.2 (18 Dec 2005 19:14:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Dec 2005 19:14:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 18 20:14:31 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 1Eo3yk-0006K3-WA for gctc-ntg-context-518@m.gmane.org; Sun, 18 Dec 2005 20:13:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 942A112821; Sun, 18 Dec 2005 20:13:54 +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 18746-09; Sun, 18 Dec 2005 20:13:54 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C4B34127CE; Sun, 18 Dec 2005 20:11:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC914127CE for ; Sun, 18 Dec 2005 20:11:51 +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 18474-04-7 for ; Sun, 18 Dec 2005 20:11:50 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with ESMTP id D3066127BC for ; Sun, 18 Dec 2005 20:11:50 +0100 (CET) Original-Received: from 118-242.uva.surfnetthuis.nl [145.98.118.242] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id jBIJBlq08987; Sun, 18 Dec 2005 20:11:48 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: <43A53CB1.30001@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new 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:24449 Archived-At: On Dec 18, 2005, at 11:40, Taco Hoekwater wrote: > 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} > OK, this macro stops the break into sourcecode. However, backgrounding is not failsafe yet. Still now and then the background wraps back on the previous page when the start falls at the beginning of a page. But this helps, so thanks. yours sincerely, dr. H. van der Meer