ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Martin Kolarík" <martin@mii.cz>
Subject: XML in heads
Date: Sun, 12 Sep 2004 11:01:33 +0200	[thread overview]
Message-ID: <NHEGKLHCFGKJGPGBIEOMCEOFCAAA.martin@mii.cz> (raw)
In-Reply-To: <41440AE3.5090209@wxs.nl>

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><title>Chapter
<em>really</em> important</title></chapter> and a couple of XML parser
definitions for chapter, title and em. And now, if <chapter><title> 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

  reply	other threads:[~2004-09-12  9:01 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       ` Martin Kolarík [this message]
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

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=NHEGKLHCFGKJGPGBIEOMCEOFCAAA.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).