From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
"Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: bizarre bug in xml
Date: Fri, 20 Nov 2020 22:52:54 +0100 [thread overview]
Message-ID: <cc8d60c6-a7be-4cbd-68c0-534c34cd4ef4@gmail.com> (raw)
In-Reply-To: <fd402cff-e100-d996-559b-b82d8bc1f4da@uni-bonn.de>
Thomas A. Schmitz schrieb am 20.11.2020 um 22:44:
>
> Hi all,
>
> this is the most bizarre bug I've ever seen in context. I would be
> grateful if others could try to replicate it. Test file:
>
> \startbuffer[test]
> <document>
> <hskip width="1em"/>Materiam vati da Venus alma tuo.
> </document>
> \stopbuffer
>
> \startxmlsetups xml:testsetups
> \xmlsetsetup{#1}{*}{-}
> \xmlsetsetup{#1}{document|
> hskip}{xml:*}
> \stopxmlsetups
>
> \xmlregistersetup{xml:testsetups}
>
> \startxmlsetups xml:document
> \xmlflush{#1}
> \stopxmlsetups
>
> \startxmlsetups xml:hskip
> \hskip\xmlatt{#1}{width}
\hskip\xmlatt{#1}{width}\relax
> The file compiles cleanly if I give the --luatex switch.
>
> Now for the bizarre part: if you delete the capital M of "Materiam" or
> replace it by any other capital letter, the file compiles. What's going
> on here?
Optional arguments (e.g. plus/minus values for \hskip) for commands are
handled different in LMTX but it was always recommended to add \relax
after the last value.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-11-20 21:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-20 21:44 Thomas A. Schmitz
2020-11-20 21:52 ` Wolfgang Schuster [this message]
2020-11-21 1:09 ` Pablo Rodriguez
2020-11-21 9:35 ` Hans Hagen
[not found] ` <b5a7ee4f-2f0e-c60b-ea39-0de4c0bfef79@uni-bonn.de>
2020-11-21 10:04 ` Wolfgang Schuster
2020-11-21 10:13 ` Thomas A. Schmitz
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=cc8d60c6-a7be-4cbd-68c0-534c34cd4ef4@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=thomas.schmitz@uni-bonn.de \
/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).