From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16478 Path: main.gmane.org!not-for-mail From: =?UTF-8?Q?Martin_Kola=C5=99=C3=ADk?= Newsgroups: gmane.comp.tex.context Subject: RE: Floats and captions difficulties Date: Thu, 16 Sep 2004 13:24:36 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: References: <41494412.3090502@wxs.nl> Reply-To: martin@mii.cz, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0029_01C49BF0.833B62A0" X-Trace: sea.gmane.org 1095333903 31210 80.91.229.6 (16 Sep 2004 11:25:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2004 11:25:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 16 13:24:47 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 1C7uNb-0002f5-00 for ; Thu, 16 Sep 2004 13:24:47 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3815E127A9; Thu, 16 Sep 2004 13:24:46 +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 15692-01; Thu, 16 Sep 2004 13:24:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 304261278F; Thu, 16 Sep 2004 13:24:41 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2604D1278F for ; Thu, 16 Sep 2004 13:24:39 +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 15642-01 for ; Thu, 16 Sep 2004 13:24:37 +0200 (CEST) Original-Received: from belinda.mii.cz (unknown [212.27.214.13]) by ronja.ntg.nl (Postfix) with SMTP id 4A82D1278D for ; Thu, 16 Sep 2004 13:24:37 +0200 (CEST) Original-Received: (qmail 9958 invoked from network); 16 Sep 2004 11:24:36 -0000 Original-Received: from enceladus.mii.cz (HELO enceladus) (195.250.151.33) by belinda.mii.cz with SMTP; 16 Sep 2004 11:24:36 -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) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal In-Reply-To: <41494412.3090502@wxs.nl> 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 Xref: main.gmane.org gmane.comp.tex.context:16478 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16478 This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C49BF0.833B62A0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, there the files are, cutf.xml and cutf.tex, which defines about (about is not in x-contml). I created simple sample using cont-ml. See the second about in result = (PDF). I created PDF with: texexec --pdf --interface=3Dcz cutf.xml = --usemodule=3D"xtag-utf,x-contml,cutf" ----- I have more complicated DTD/XML and in this (moreover) described \char = xxx and space colapsing problem appears. Now I know more: I use in DTD form =
.........
so I must = store for later use. This I do using = \defineenvironmentsave[title] and the following \XMLflush{title}. The code for section is (simplified): \expanded{\chapter[\XMLop{label}]{\XMLflush{title}}} where \expanded (or another full expansion) is required. If \XMLflush is = not fully expanded, it appears in tui like "\XMLflush{title}" or = "\ifcsname..." (for partial expansion). So if I modify sent example to my DTD/XML I must expand titles fully and = into tui they come not as UTF but as \char xxx (in proper encoding). But = spaces go away. (And, of course XML parts in tui stays exactly the same = as in sent files). I feel it is on the edge of current ConTeXt/XML parser, but maybe there = is some way or trick I do not know :-) which solves this... Thank you very much, Martin -----Original Message----- From: Hans Hagen [mailto:pragma@wxs.nl] Sent: Thursday, September 16, 2004 9:43 AM To: martin@mii.cz; mailing list for ConTeXt users Subject: Re: [NTG-context] Floats and captions difficulties Martin =EF=BF=BD wrote: >Hi Hans, > >did you receive the mails about captions and tui/tuo UTF expansions and >reusing it in \about? I sent them on Sunday and as they are important = to me >I hava to ask again :-), > >thank you and have a nice day, > =20 > can you send me a small test file? Hans=20 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ------=_NextPart_000_0029_01C49BF0.833B62A0 Content-Type: text/xml; name="cutf.xml" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cutf.xml" =EF=BB=BF<?xml version=3D"1.0" encoding=3D"utf-8"?> <context:text> <context:chapter label=3D"chlblA">Prsk=C3=A1 <context:em>a = pr=C5=A1=C3=AD</context:em> dol=C5=AF konv=C3=AD</context:chapter> <context:about label=3D"chlblB"></context:about> <context:chapter label=3D"chlblB">=C5=BDlu=C5=A5ou=C4=8Dk=C3=BD = k=C5=AF=C5=88 =C3=BAp=C4=9Bl =C4=8F=C3=A1belsk=C3=A9 = =C3=B3dy</context:chapter> <context:about label=3D"chlblA"></context:about> </context:text> ------=_NextPart_000_0029_01C49BF0.833B62A0 Content-Type: application/octet-stream; name="cutf.tex" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cutf.tex" \defineXMLpickup [context:about] [label=3D] {\about} {[\XMLop{label}]}=0A= \endinput ------=_NextPart_000_0029_01C49BF0.833B62A0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ------=_NextPart_000_0029_01C49BF0.833B62A0--