From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16409 Path: main.gmane.org!not-for-mail From: "Martin Kolarík" Newsgroups: gmane.comp.tex.context Subject: XML in heads Date: Sun, 12 Sep 2004 11:01:33 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: References: <41440AE3.5090209@wxs.nl> Reply-To: martin@mii.cz, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094979711 21499 80.91.229.6 (12 Sep 2004 09:01:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2004 09:01:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 12 11:01:37 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C6QEq-0004wf-00 for ; Sun, 12 Sep 2004 11:01:36 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FFA612789; Sun, 12 Sep 2004 11:01:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18289-07; Sun, 12 Sep 2004 11:01:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDB0F12784; Sun, 12 Sep 2004 11:01:34 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A06D12784 for ; Sun, 12 Sep 2004 11:01:34 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18432-03 for ; Sun, 12 Sep 2004 11:01:34 +0200 (CEST) Original-Received: from ns2.avonet.cz (unknown [217.112.162.42]) by ronja.ntg.nl (Postfix) with ESMTP id 10BEF12783 for ; Sun, 12 Sep 2004 11:01:34 +0200 (CEST) Original-Received: from europe (kolarik.avonet.cz [217.112.166.172]) by ns2.avonet.cz with SMTP id i8C91Xcg010016 for ; Sun, 12 Sep 2004 11:01:33 +0200 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: <41440AE3.5090209@wxs.nl> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char ED hex) in message header 'From' From: "Martin Kolar\355k" \n ^ Xref: main.gmane.org gmane.comp.tex.context:16409 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16409 Hi Hans, I do not how to correctly process heads containing some XML tags. AFAIK XML macros are mostly defined with \unxepand, maybe there something could be done? What is the problem -- assume XML like Chapter <em>really</em> important and a couple of XML parser definitions for chapter, title and em. And now, if expands e.g. into \chapter{\XMLflush{title}}, the ConTeXt write out into *.tui file line: c \listentry{chapter}{1}{}{Chapter <em>really<em/> important}{1::0:0:0:0:0:0:0::1}{1} so the <em> stays unexpanded. Using tui file record back (in \placecontent, for example) results to string "Chapter <em>really<em/> important" as it is of course not passed through XML engine. What to do to get chapter title in tui expanded? BTW -- another problem with tui/tuo I described before some time (and nobody answered me :-( -- UTF encoded XML string are written into tui in form of expanded UTF characters (like \char 253) and backward usage of this strings leads to loss of spaces at the end of words. This is bad too. Have a nice day and thank you, Martin