From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39553 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: processing xml in mkiv Date: Mon, 17 Mar 2008 14:04:26 +0100 Message-ID: <47DE6C5A.8000701@elvenkind.com> References: <332CF356-5BD2-469A-969E-7F2B3A61B7F4@uni-bonn.de> <20080316120425.bcb38147.schuster.wolfgang@googlemail.com> <20080316135106.75223e86.schuster.wolfgang@googlemail.com> <47DD5607.1020804@wxs.nl> <1841CE4B-DC45-4A6C-B20F-BBC6B6610267@uni-bonn.de> 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: ger.gmane.org 1205759184 26312 80.91.229.12 (17 Mar 2008 13:06:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2008 13:06:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 17 14:06:53 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 1JbF2c-0003VP-0u for gctc-ntg-context-518@m.gmane.org; Mon, 17 Mar 2008 14:06:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 865251FBFB; Mon, 17 Mar 2008 14:05:38 +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 07967-09-17; Mon, 17 Mar 2008 14:05:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E50CB1FC06; Mon, 17 Mar 2008 14:05:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7347B1FC06 for ; Mon, 17 Mar 2008 14:05: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 07967-09-16 for ; Mon, 17 Mar 2008 14:04:27 +0100 (CET) Original-Received: from tullamore.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id 3607C1FBC5 for ; Mon, 17 Mar 2008 14:04:27 +0100 (CET) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by tullamore.elvenkind.com (Postfix) with ESMTP id 0911A305028C for ; Mon, 17 Mar 2008 14:04:27 +0100 (CET) User-Agent: Thunderbird 2.0.0.0 (X11/20070522) In-Reply-To: <1841CE4B-DC45-4A6C-B20F-BBC6B6610267@uni-bonn.de> 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:39553 Archived-At: Thomas A. Schmitz wrote: > On Mar 16, 2008, at 6:16 PM, Hans Hagen wrote: > >> indeed ther eis something weird, but it may as well be something in >> lautex itself, so taco has to look into it too >> >> what happens is: >> >> \def\processXMLfilegrouped#1{{\enableXML\processfile{#1}\relax >> \ifmmode\else\par\fi}} >> >> it looks like the new catcode regime lags one line behind here > > Glad to know it wasn't just me being stupid... So I will continue to > try my hand at the new mkiv mechanism. It is a bug in luatex, but not an easy one to fix. The simplest workaround (for now) is to patch core-job.lua. Best wishes, Taco --- core-job.lua~ 2008-02-13 12:01:06.000000000 +0100 +++ core-job.lua 2008-03-17 14:02:12.000000000 +0100 @@ -64,7 +64,7 @@ function commands.processfile(name,maxreadlevel) name = find_file(name,maxreadlevel) if name ~= "" then - tex.sprint(tex.ctxcatcodes,string.format("\\input %s\\relax",name)) + tex.print(tex.ctxcatcodes,string.format("\\input %s\\relax",name)) end end ___________________________________________________________________________________ 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 ___________________________________________________________________________________