ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Duncan Hothersall <dh@capdm.com>
Subject: Re: Accents in MathML
Date: Thu, 26 May 2005 16:06:01 +0100	[thread overview]
Message-ID: <4295E5D9.3040603@capdm.com> (raw)
In-Reply-To: <20050526100002.E69D8127D0@ronja.ntg.nl>

I said:

> Interestingly, if I forget about unicode and use &eacute; instead of é,
> then no matter what I put in the preamble I get the e with a guillemot
> superimposed. So whatever is mapping é incorrectly seems also to be
> mapping &eacute; incorrectly.

Further testing suggests that my problem is this:

Between \startXMLdata and \stopXMLdata, where MathML is being parsed
directly by ConTeXt, I get the wrong results for accented characters
within <mtext> elements. For example, I get an e character with a
guillemot superimposed on top when I want an e with an acute accent. It
doesn't seem to matter whether the markup is unicode é, the entity
&eacute;, or the command \eacute.

Similar problems happen with other accents I have tried. In the case of
  ñ the accent is almost right but comes out too big (looks like the
maths version of the accent?).

The following is my local test file, using unicode and comparing running
text to <mtext> in MathML:

--
\mainlanguage[es]\enableregime[utf]\useencoding[uc]
\usemodule[mathml]\setupoutput[pdftex]
\starttext
Situación niños volúmenes sí interés:
\startXMLdata <formula><math><mfrac><mrow><mtext>Situación niños
volúmenes</mtext></mrow><mrow><mtext>sí
interés</mtext></mrow></mfrac></math></formula>\stopXMLdata
\stoptext
--

The following is a non-unicode test file that will process on Live and
exhibits the same errors in the MathML accent rendering. It uses entity
references instead of unicode in the MathML, but because they map to the
same thing the output is the same:

--
\mainlanguage[es]\enableregime[utf]\useencoding[uc]
\usemodule[mathml]\setupoutput[pdftex]
\starttext
\startXMLdata <formula><math><mfrac><mrow><mtext>Situaci&oacute;n
ni&ntilde;os vol&uacute;menes</mtext></mrow><mrow><mtext>s&iacute;
inter&eacute;s</mtext></mrow></mfrac></math></formula>\stopXMLdata
\stoptext
--

I have a feeling I have made this more complex than it needed to be, but
can anyone shed light on how to fix it?

Thanks,

Duncan

PS Apologies for the nonsense Spanish content - it's just random words
with accents.

       reply	other threads:[~2005-05-26 15:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050526100002.E69D8127D0@ronja.ntg.nl>
2005-05-26 15:06 ` Duncan Hothersall [this message]
2005-05-28 13:33   ` James Cloos
     [not found] <20050525200648.85433127E2@ronja.ntg.nl>
2005-05-26  9:58 ` Duncan Hothersall
2005-05-25 11:20 Duncan Hothersall
2005-05-25 12:43 ` Hans Hagen

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=4295E5D9.3040603@capdm.com \
    --to=dh@capdm.com \
    --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).