ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Martin Kolařík" <martin@mii.cz>
Subject: RE: Floats and captions difficulties
Date: Thu, 16 Sep 2004 13:24:36 +0200	[thread overview]
Message-ID: <JNELIANMELGLDDCPLLHCMEKGCCAA.martin@mii.cz> (raw)
In-Reply-To: <41494412.3090502@wxs.nl>

[-- Attachment #1: Type: text/plain, Size: 2250 bytes --]

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=cz cutf.xml --usemodule="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 <section><entry>...</entry><title>...</title>...</section> so I must <title> 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 � 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,
>  
>
can you send me a small test file?

Hans 

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cutf.xml --]
[-- Type: text/xml; name="cutf.xml", Size: 384 bytes --]

<?xml version="1.0" encoding="utf-8"?>

<context:text>

<context:chapter label="chlblA">Prská <context:em>a prší</context:em> dolů konví</context:chapter>

<context:about label="chlblB"></context:about>

<context:chapter label="chlblB">Žluťoučký kůň úpěl ďábelské ódy</context:chapter>

<context:about label="chlblA"></context:about>

</context:text>

[-- Attachment #3: cutf.tex --]
[-- Type: application/octet-stream, Size: 83 bytes --]

\defineXMLpickup [context:about] [label=] {\about} {[\XMLop{label}]}


\endinput

[-- Attachment #4: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

      reply	other threads:[~2004-09-16 11:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 15:15 Help with LaTeX -> ConTeXt & book typesetting Ulrich Dirr
2004-09-10 20:38 ` Hans Hagen Outside
2004-09-11  7:22   ` Ulrich Dirr
2004-09-12  8:37     ` Hans Hagen Outside
2004-09-12  9:01       ` XML in heads Martin Kolarík
2004-09-12  9:17         ` XML in heads -- correction Martin Kolarík
2004-09-12 17:13       ` Help with LaTeX -> ConTeXt & book typesetting Ulrich Dirr
2004-09-13 18:28       ` struts in \quotation{..} (was: Help with LaTeX -> ConTeXt & book typesetting) Patrick Gundlach
2004-09-14  5:13         ` Ulrich Dirr
2004-09-14  9:46           ` Hans Hagen
2004-09-14  9:52         ` struts in \quotation{..} Hans Hagen
2004-09-14 10:21           ` Patrick Gundlach
2004-09-14 16:25             ` Hans Hagen
2004-09-14 16:58               ` Patrick Gundlach
2004-09-15  8:17                 ` Hans Hagen
2004-09-27 12:08                   ` Christopher Creutzig
2004-09-12  6:20   ` Floats and captions difficulties Martin Kolarík
2004-09-12  8:00     ` Floats and captions difficulties -- correction Martin Kolarík
2004-09-15 18:43     ` Floats and captions difficulties Martin Kolarík
2004-09-16  7:43       ` Hans Hagen
2004-09-16 11:24         ` Martin Kolařík [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JNELIANMELGLDDCPLLHCMEKGCCAA.martin@mii.cz \
    --to=martin@mii.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).