Page MenuHomePhabricator

D’Alembert-Operator is not rendered correctly with native mathml
Open, Needs TriagePublicBUG REPORT

Description

I am using Ubuntu 24.04 with latest version of Chrome.

The Latex code <math>\square</math> is not rendered correctly with native mathml in chrome with the most fonts. It has the color grey, but it should be white with a black border.

image.png (298×684 px, 40 KB)

Event Timeline

Christian1985 renamed this task from D’Alembert-Operator is not rendered correctly to D’Alembert-Operator is not rendered correctly with native mathml.Dec 22 2024, 7:09 PM
Christian1985 updated the task description. (Show Details)

In Firefox I can not reproduce this bug.

I was also trying in the context of the original bug https://de.wikipedia.beta.wmflabs.org/wiki/Intbar#Sonderzeichen and could not reproduce it with Chromium 132 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Physikerwelt moved this task from Inbox to Needs clarification on the Math board.

Hello,

at the moment I am not able to login to https://de.wikipedia.beta.wmflabs.org/wiki/Intbar#Bf-Stil . Does anyone know why it is not able? After I can log in there again, I will test the bug again and provide further information.

Hello @Physikerwelt ,

I did some investigation into this bug.

I have set TeX Gyre DejaVu Math as my default font for math symbols in Chrome. If I use this font or one of the following fonts, the result of the D'Alembert operator looks like the picture:
Asana Math
IBM Plex Sans
KaTex_AMS
Katex_Math
Latin Modern Math
Norasi
PT Sans
Roboto
Space Grotesk
STIXSizeTwoSym
TeX Gyre Bonum Math
TeX Gyre DejaVu Math
TeX Gyre Termes Math
Ubuntu

If I use one of the following fonts, the D'Alembert operator looks normal:
Noto Sans Math
STIX
STIX Math
This list is significantly shorter, but I believe these are the default Chrome fonts.

I specifically chose the TeX Gyre DejaVu Math font because it displays math symbols larger, with this font I can use MathMl as default in Wikipedia.

Maybe this is also a bug that depends on the operating system? I have not tried all fonts on my system. With fonts that do not have Math in their name, the result often looks very broken.

image.png (1×1 px, 144 KB)