Page MenuHomePhabricator

Native MathMl - Prime not rendered correctly
Open, MediumPublicBUG REPORT

Assigned To
None
Authored By
Christian1985
Feb 8 2025, 8:55 PM
Referenced Files
F58671604: Screenshot 2025-03-08 at 08.41.27.png
Mar 8 2025, 7:42 AM
F58671592: Screenshot 2025-03-08 at 08.41.17.png
Mar 8 2025, 7:42 AM
F58671223: Screenshot 2025-03-08 at 08.35.48.png
Mar 8 2025, 7:42 AM
F58671128: Screenshot 2025-03-08 at 08.33.01.png
Mar 8 2025, 7:42 AM
F58639526: image.png
Mar 7 2025, 1:19 PM
F58638270: Screenshot 2025-03-07 at 12.54.26.png
Mar 7 2025, 12:06 PM
F58378750: image.png
Feb 8 2025, 8:55 PM

Description

Steps to replicate the issue (include links if applicable):

I am using Ubuntu 24.04 and the Chrome browser. The Latex code <math forcemathmode=native>f'</math> and the code <math forcemathmode=native>f^\prime</math> is not rendered corectly. The prime symbol is to small and too far away from the letter.

What should have happened instead?:
The prime symbol should be larger and closer to the letter.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.44.0-alpha (e6ce029)
18:07, 8. Feb. 2025

Other information (browser name/version, screenshots, etc.):

image.png (323×769 px, 31 KB)

Event Timeline

Reedy updated the task description. (Show Details)

Todo:

Codepen can be used to create examples

https://codepen.io/physikerwelt/pen/dyxYrNv

Also https://en.wikipedia.beta.wmflabs.org/wiki/T385948 can be created to create specific samples

Todo:

Codepen can be used to create examples

https://codepen.io/physikerwelt/pen/dyxYrNv

Also https://en.wikipedia.beta.wmflabs.org/wiki/T385948 can be created to create specific samples

For me they look fine in:

Chrom Version 134.0.6998.45 (Official Build) (arm64)
macOS 15.3.1

Screenshot 2025-03-07 at 12.54.26.png (374×666 px, 23 KB)

Hello @HamidRahkooy ,

in your screenshot, the prime symbol looks exactly like in my screenshot. However, I am not convinced that this is correct. In my opinion, the prime symbol should start a good bit further down. The prime symbol should start at the crossbar of the f and only reach to the top of the f. Especially with letters like 'a' or 'm', you don't see any spatial relationship between the prime symbol and the letter.

You can also see in the following screenshot that <math forcemathmode=“native”>a''</math> is rendered differently than <math forcemathmode=“native”> a^{\prime \prime}</math>. In server-side rendering, the code is rendered in the same way.

image.png (417×346 px, 26 KB)

For me it looks like that with Firefox

Screenshot 2025-03-08 at 08.33.01.png (552×816 px, 59 KB)

vs Chrome

Screenshot 2025-03-08 at 08.35.48.png (340×798 px, 44 KB)

which makes it really hard to read.

https://temml.org uses a special font for that particular char

Screenshot 2025-03-08 at 08.41.17.png (452×1 px, 34 KB)

vs

Screenshot 2025-03-08 at 08.41.27.png (452×1 px, 34 KB)