Page MenuHomePhabricator

Vertical alignment of pipes with superscripts wrong in mathml mode
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
SalixAlba
Oct 6 2024, 6:30 AM
Referenced Files
F57594779: image.png
Oct 7 2024, 1:15 PM
F57591879: image.png
Oct 6 2024, 7:32 AM
F57591877: image.png
Oct 6 2024, 7:32 AM
F57591873: image.png
Oct 6 2024, 7:32 AM
F57591826: image.png
Oct 6 2024, 6:30 AM
F57591811: image.png
Oct 6 2024, 6:30 AM
F57591813: image.png
Oct 6 2024, 6:30 AM
F57591823: image.png
Oct 6 2024, 6:30 AM

Description

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

  • set math rendering mode to mathml
  • Enter the fomula q(v)=|v|^2 or q(v)=\|v\|^2 or q(v)=\|v\|_A

What happens?:

Rendered as

image.png (82×137 px, 2 KB)
first 2 cases

image.png (66×145 px, 2 KB)

Subscript case

What should have happened instead?:

In SVG mode

image.png (79×157 px, 3 KB)

image.png (80×171 px, 3 KB)

image.png (83×248 px, 4 KB)

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

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

Event Timeline

Let us wait until the other fixes are merged. With the fix to the \|, it renders as

image.png (466×260 px, 14 KB)

I think the space should be balanced before and after v. With the same patch in MathJax mode, this renders as

image.png (513×320 px, 20 KB)

When using left and right, it looks much better without MathJax

image.png (146×353 px, 13 KB)

I think the spacing problem is related to the discussion mi vs mo in a third open ticket

image.png (141×451 px, 16 KB)
from https://en.wikipedia.beta.wmflabs.org/wiki/Help:T376558 looks good now (at least in terms of sub/superscripts).