Page MenuHomePhabricator

\mathcal uses incorrect font in Client side MathJax modes
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
SalixAlba
Sep 27 2024, 8:16 PM
Referenced Files
F57594738: image.png
Oct 7 2024, 12:47 PM
F57573090: image.png
Sep 30 2024, 6:48 PM
F57563349: image.png
Sep 27 2024, 9:22 PM
F57563221: image.png
Sep 27 2024, 8:16 PM
F57563063: image.png
Sep 27 2024, 8:16 PM
F57563043: image.png
Sep 27 2024, 8:16 PM
F57563040: image.png
Sep 27 2024, 8:16 PM

Description

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

  • Set math mode to Client side MathJax
  • Set math font to Cambria-math
  • Enter the formulas

<math>\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}</math>
<math>\mathcal{abcdefghijklmnopqrstuvwxyz}</math>

What happens?:

Rendered as

Client side MathJax

image.png (83×900 px, 25 KB)

What should have happened instead?:

In SVG mode

image.png (124×701 px, 24 KB)

MathML

image.png (119×585 px, 21 KB)

In LaTeX \mathcal

image.png (106×593 px, 16 KB)

is distinguished from \mathscr

image.png (69×772 px, 13 KB)

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

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

Browser Chrome 129.

Related Objects

StatusSubtypeAssignedTask
OpenBUG REPORTNone
ResolvedBUG REPORTPhysikerwelt

Event Timeline

SalixAlba renamed this task from \mathcal uses incorrect font in MathML and Client side MathJax modes to \mathcal uses incorrect font in Client side MathJax modes.Sep 27 2024, 9:22 PM
SalixAlba updated the task description. (Show Details)
Physikerwelt changed the task status from Open to In Progress.Sep 28 2024, 9:03 AM
Physikerwelt triaged this task as Medium priority.

According to the upstream report, this is the expected behavior. Please reopen if I misread the answer.

A solution was suggested upstream

Works locally

image.png (52×466 px, 11 KB)
. Submitting patch.

Change #1076822 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Change appearance for \mathcal A in MathJax

https://gerrit.wikimedia.org/r/1076822

@SalixAlba, does the screenshot look like what you wanted to achieve?

Change #1076822 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Change appearance for \mathcal A in MathJax

https://gerrit.wikimedia.org/r/1076822