From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26752 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?Q?Martin_Kola=F8=EDk?= Newsgroups: gmane.comp.tex.context Subject: Re: Problem with encoding, XML and writetolist... Date: Mon, 3 Apr 2006 16:41:40 +0200 Message-ID: References: <6faad9f00604030725i5b2d5689o5e9f5b06d53b2c3c@mail.gmail.com> Reply-To: martin.kolarik@email.cz, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1144075333 29119 80.91.229.2 (3 Apr 2006 14:42:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Apr 2006 14:42:13 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 03 16:42:10 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FQQFd-0000MH-1W for gctc-ntg-context-518@m.gmane.org; Mon, 03 Apr 2006 16:41:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3D53B127A8; Mon, 3 Apr 2006 16:41:51 +0200 (CEST) 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 18829-03; Mon, 3 Apr 2006 16:41:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC322127A1; Mon, 3 Apr 2006 16:41:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 175EE127A1 for ; Mon, 3 Apr 2006 16:41:43 +0200 (CEST) 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 18760-05-3 for ; Mon, 3 Apr 2006 16:41:41 +0200 (CEST) Original-Received: from mail.mii.cz (217-112-164-99.cust.avonet.cz [217.112.164.99]) by ronja.ntg.nl (Postfix) with SMTP id BF5B712793 for ; Mon, 3 Apr 2006 16:41:41 +0200 (CEST) Original-Received: (qmail 8884 invoked from network); 3 Apr 2006 14:41:41 -0000 Original-Received: from planets.mii.cz (HELO enceladus) (217.115.241.30) by belinda.mii.cz with SMTP; 3 Apr 2006 14:41:41 -0000 Original-To: "mailing list for ConTeXt users" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <6faad9f00604030725i5b2d5689o5e9f5b06d53b2c3c@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:26752 Archived-At: OK, expansion is not encoding, but expansion in this place here is not a problem (I suppose). The section head is good, but the TOC entry not. So the inner expansion (or conversion or detokenization or so) around writetolist is probably affected by something, what now I cannot handle. And what is strange -- Hans did not reproduce the behaviour (as he wrote), so I am asking a trying to find the problem on my side (or lucky thougth :-)... Thank for your ideas and help, Martin -----Original Message----- From: ntg-context-bounces@ntg.nl [mailto:ntg-context-bounces@ntg.nl]On Behalf Of Mojca Miklavec Sent: Monday, April 03, 2006 4:25 PM To: martin.kolarik@email.cz; mailing list for ConTeXt users Subject: Re: [NTG-context] Problem with encoding, XML and writetolist... On 2/28/06, Martin Kola=F8=EDk wrote: > Hi all, > > I have problem with chars encoding now; I have updated ConTeXt sometimes in > January; before the time I was using old (year) version. In this > prehistorical version the problem was not present. > > What is the stuff? The following code generates content with titles without > spaces -- accented characters are replaced with \char XXX variant, so during > reading TUI line TeX gobbles a space after XXX as a part of syntax > rule. > > Can I do something? With encoding? With XML? Encoding has "nothing" to do with it. I don't really understand the \[un]expanded commands in TeX, but this part could theoretically be problematic: {\expanded {\section{\XMLflush{title}}}} Consider the following (encoding-independent) minimal example, just in case that this can help any of the gurus to understand the problem: \defineXMLenvironment [chapter] {\defineXMLsave[title]} {\expanded {\section{\XMLflush{title}}}} \starttext \startbuffer $a+b$ \stopbuffer \processXMLbuffer \placecontent[criterium=3Dall] \stoptext The entry in TOC is different from the title (one is in math mode and the other one writen with dollars - literally). Mojca > Thank you very much, have a nice day, Martin > > Code: > > \defineXMLenvironment > [chapter] > {\defineXMLsave[title]} > {\expanded > {\chapter\XMLflush{title}}} > > \starttext > > \startbuffer > > > Ahoj=E1 hoj=E8 kuna > > > \stopbuffer > > \processXMLbuffer > > \completecontent[criterium=3Dall] > > \stoptext _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context