Page MenuHomePhabricator

Non-rendering of archaic Greek letters in Math when <text> elements in SVGs are used as background images
Closed, DuplicatePublic

Description

Formerly one could use \stigma and \koppa within mathematical notation in Wikipedia articles. Perhaps only one article used them, but it does rely on them. What appears now is just blank spaces. See the section titled "The numeral system and the appearance of the untranslated table" in the article titled "Ptolemy's table of chords". Look for stigma and koppa in both of the tables. Blank spaces appear where stigma and koppa should appear.

Event Timeline

Michael_Hardy raised the priority of this task from to Needs Triage.
Michael_Hardy updated the task description. (Show Details)
Michael_Hardy subscribed.

Please always provide a link to an example - I assume this is about https://en.wikipedia.org/wiki/Ptolemy%27s_table_of_chords#The_numeral_system_and_the_appearance_of_the_untranslated_table ?

Blank spaces appear where stigma and koppa should appear.

Not here. "Math" on https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering is set to
"MathML with SVG or PNG fallback". Please provide steps to reproduce.

I just looked at that page and \koppa and \stigma are working now. Was something done to fix them?

OK I now see that \koppa and \stigma work when I'm not logged in, but not when I am. On my preferences page under "Math" I've chosen "MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools)". I would not think that any choice of preferences should cause these letters not to be visible.

@Michael_Hardy you are right, that's a bug that needs to be fixed.

Physikerwelt set Security to None.
Physikerwelt moved this task from Inbox to Next-up on the Math board.

@Michael_Hardy which browsers are you experiencing this with?

Screenshot_2015-02-18_18.54.53.png (1×960 px, 132 KB)

Looks good to me in MathML mode.

@Physikerwelt you need to check on all browsers ;-) I can reproduce this on Chrome and Web/Epiphany.

I can't find it but there was a similar report earlier.

The problem seems to be a browser bug regarding <text> elements in SVGs used as background images. I.e., https://en.wikipedia.org/w/index.php?title=Special:MathShowImage&hash=201dbb2fde10937103359420fe8d8b84&mode=5 looks fine in Chrome and Web as a standalone image but in the page the koppa won't show.

Screenshot_2015-02-18_20.55.17.png (1×1 px, 220 KB)

The problem seems to stay even if the image is embedded using a normal img tag

Physikerwelt moved this task from Doing to Inbox on the Math board.
Aklapper renamed this task from Non-rendering of archaic Greek letters to Non-rendering of archaic Greek letters in Math when <text> elements in SVGs are used as background images.Feb 19 2015, 9:52 AM
Aklapper triaged this task as Low priority.

Here's an isolated version: http://jsbin.com/zufeziwofu/1/edit?html,output

Kudos to Firefox for getting it right. Now if only all browsers were like Firefox wrt to mathoid ;-)

This seems to be the corresponding Blink bug https://code.google.com/p/chromium/issues/detail?id=403375

Perhaps somebody from WMF could bump it?

This seems to be the corresponding Blink bug https://code.google.com/p/chromium/issues/detail?id=403375

Perhaps somebody from WMF could bump it?

Anybody can bump it. Just do it. It's not that WMF has some special powers or such, really. :)

This comment was removed by Pkra.

@Aklapper apologies for my grumpy comment. A morning without coffee :-(

@Pkra: Heh, no problem. Still you can add a comment to that upstream ticket as much as I can do. It's not that some "@wikimedia.org" address should suddenly change prioritization in Chromium. Arguments should.

I believe the Chrome/Blink issue was fixed a while ago. All but Safari render this correctly nowadays and for Safari this is a duplicate of T130967.