Last modified: 2014-11-17 20:30:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75367, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73367 - MathML: Using en dash as minus takes a parser error
MathML: Using en dash as minus takes a parser error
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
PC Windows 7
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-13 14:40 UTC by Juetho
Modified: 2014-11-17 20:30 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot showing the parser error (35.60 KB, image/jpeg)
2014-11-13 14:40 UTC, Juetho
Details

Description Juetho 2014-11-13 14:40:14 UTC
Created attachment 17114 [details]
screenshot showing the parser error

If a formula uses a hyphen as minus char, it is shown correctly. Replacing the hyphen by en-dash – U+2013 by Alt-0-1-5-0 – will take a parser error in some situations. Note: German typographical rules demand en-dash as minus char; a user should be able to write it within formulas in each case.

Example: screenshot (attachment) and de-Wikibooks:
https://de.wikibooks.org/w/index.php?title=Wikibooks:Spielwiese&oldid=722798

Environment: de-Wikibooks - user preferences: rendering with MathML and SVG/PNG - Windows 7 Home Premium SP1 with Firefox 33.1
Comment 1 physikerwelt 2014-11-14 05:10:43 UTC
I don't understand your poblem. In $\TeX$ you are supposed to use a normal - (https://en.wikipedia.org/wiki/Plus_and_minus_signs#Minus_sign) char. If that produces wrong rendering that must be fixed in display part and not in the input / parser part. So the input in the math tag is what you mean and not what you expect to see.
Comment 2 Peter Krautzberger 2014-11-17 08:35:00 UTC
To add to physikerwelt. 

The rendering issue probably stems from the old TeX backend that does not support Unicode well. 

Do you have any rendering issues in the new MathML/SVG option?

From a MathML point of view, the minus sign should be encoded as U+2212 (which mathoid would generate from a regular -, whereas en dash would be kept as U+2013 which is not ideal, e.g., for accessibility).
Comment 3 Juetho 2014-11-17 15:38:42 UTC
Danke, Peter, für diese Ergänzung. Tatsächlich wäre U+2212 das korrekte Zeichen und sollte von TeX korrekt verarbeitet werden. (Ich hatte primär U+2013 verwendet, weil es mit Alt-0-1-5-0 und in den deutschen Standard-Sonderzeichen bei den WMF-Projekten steht; aber da kann ich mich natürlich umgewöhnen.)

Sorry for writing in German: At the moment, the discussion isn't official, and each contributor seems to be a German.
Comment 4 Andre Klapper 2014-11-17 17:17:59 UTC
Not sure how+who to make some discussion "official" though and what means. :)
Comment 5 Juetho 2014-11-17 18:51:45 UTC
IMHO that means: The bug is marked as "invalid". If someone else confirms the problem and sets the status to "reopened", the discussion is "official" again. Juergen
Comment 6 Platonides 2014-11-17 19:04:12 UTC
Well, it seems sensible to support this. It's just doing a replacement of similar minus glyphs inside <math>. A task for google code-in? :)
Comment 7 Andre Klapper 2014-11-17 19:40:49 UTC
(In reply to Platonides from comment #6)
> A task for google code-in? :)

If there's a mentor available, please be my guest: https://www.mediawiki.org/wiki/Google_Code-in_2014#Mentors.27_corner    :)
Comment 8 Platonides 2014-11-17 20:30:05 UTC
Ok, I can mentor that...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links