
Hello, thera were some problems concerning accented characters in math (mathml) a while ago (as far as I remember they were solved). But some tiny bugs apparently remained there. Minimal example: $\cases{&\ccaron}$ Mojca

Mojca Miklavec wrote:
is there a problem in the ec vector? compare: \ccaron $\cases{&\ccaron \fontname\font}$ \quad $\cases{&\tf\ccaron \fontname\font}$ \setupencoding[default=texnansi] \definetypeface[xxx][rm][serif][modern][default][encoding=texnansi] \definetypeface[xxx][mm][math] [modern][default][encoding=texnansi] \setupbodyfont[xxx,12pt] \ccaron $\cases{&\ccaron \fontname\font}$ \quad $\cases{&\tf\ccaron \fontname\font}$ \stoptext

Hans Hagen wrote:
Not exactly a problem. The texnansi ones work thanks to the (semi-)coincidence that the accent-part of the font encoding is identical to Knuthian encoding, and that simply doesn't work for less knuthian encodings like ec, where this is not the case. Perhaps you have to introduce a macro like \buildmathaccent ... Taco

Taco Hoekwater wrote:
this seems to work, the problem is that there is no \everyfam \starttext \def\enableencodinginmath {\appendtoks \everyhbox{\mr\everyhbox\emptytoks}% \everyvbox{\mr\everyvbox\emptytoks}% \to \everymath} \enableencodinginmath $\cases{& \ccaron}$ $x=\hbox{\ccaron$x=\hbox{\ccaron}$}$ \stoptext

I can't (don't know how to) mix into the discussion any more, but I would like to thank you for investigating the problem. Thanks, Mojca
participants (3)
-
Hans Hagen
-
Mojca Miklavec
-
Taco Hoekwater