ronkok / Temml

TeX-to-MathML conversion library in JavaScript
https://temml.org/
MIT License
122 stars 11 forks source link

in subscript in `\widetilde` in MathML, `i` or `j` has no dot #21

Closed hbghlyj closed 3 months ago

hbghlyj commented 1 year ago

When converting TeX \widetilde{U_i} or \widehat{U_i} to MathML, i has no dot.

Font: Latin Modern / Asana / STIX TWO

Browser: Firefox/110.0 Bug 1779891

image

ronkok commented 1 year ago

Well, that's not good. I'll fix it, but it might take a day or two. In the meantime, you can use \widetilde{U}_i.

ronkok commented 1 year ago

On second look, there might not be much I can do about it. Temml is writing MathML with a dotted $i$, not a dot-less $\imath$. It's Firefox, not Temml, that is removing the dot. Chromium renders your example correctly.

I'll check to see if I can write a work-around, but I make no promises. I may have to write a bug report to Bugzilla, if one does not already exist.

ronkok commented 8 months ago

This issue is fixed by release 0.10.16.

ronkok commented 8 months ago

Oops, it turns out this issue still exists. I more convinced than before that there isn't much I can do about it.

hbghlyj commented 3 months ago

I read that

1069929 - Apply font features dtls dtls Dotless Forms This feature provides dotless forms for Math Alphanumeric characters, such as U+1D422 MATHEMATICAL BOLD SMALL I, U+1D423 MATHEMATICAL BOLD ...

Then I found that this Firefox-specific issue can be solved by adding the CSS rule

  font-feature-settings: "dtls" off;

image

ronkok commented 3 months ago

Good find!

I'm re-opening this issue. In the next release, I'll add that CSS rule to all the pre-written Temml CSS files.

ronkok commented 3 months ago

Fixed by release 0.10.24.