![](https://secure.gravatar.com/avatar/0ed499139c984ed1c5c6312376a707e5.jpg?s=120&d=mm&r=g)
I said:
Interestingly, if I forget about unicode and use é 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 é 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 é, 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ón niños volúmenes</mtext></mrow><mrow><mtext>sí interé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.
![](https://secure.gravatar.com/avatar/c70ed1ea051c2bf21a8085c2f54dd441.jpg?s=120&d=mm&r=g)
I gave the original snippit a test.
The mail was in latin1, so I had to convert the file to utf8.
Once I did that texexec and dvips processed it w/o error.
The resulting postscript had the correct accent.
The relevant chunk of the postscript is:
%%Page: 1 1
TeXDict begin 1 0 bop 1738 77 a Fa(1)-9 563 y(Maths)33
b(with)g(accen)m(ts:)1622 773 y(in)m(ter)m(\023)-46 b(es)p
eop end
%%Trailer
Where you can see that the acute (\023) was overlapped
on the suceeding e, rather than using a precomposed é.
This is on a gentoo linux¹ box w/ tetex-3.0.
-JimC
¹ Have to add that now that gentoo has bsd and osx support. :)
--
James H. Cloos, Jr.
participants (2)
-
Duncan Hothersall
-
James Cloos