Last modified: 2011-10-20 15:56:58 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 T26207, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24207 - Please set $wgDefaultUserOptions['math'] = 0; on hewiki
Please set $wgDefaultUserOptions['math'] = 0; on hewiki
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Low enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-01 09:02 UTC by sr
Modified: 2011-10-20 15:56 UTC (History)
8 users (show)

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


Attachments

Description sr 2010-07-01 09:02:07 UTC
In wikipedia, in My preferences->Appearance->Math
the default behavior is "HTML if very simple or else PNG"
we always need to trick the renderer into displaying as PNG by using a"\," inside the formula.
This could be avoided by changing the default to
"Always render PNG".
Please change the default behavior and save us the need to add a meaningless term to all formulas.

Setreset (English and Hebrew wikipedia)
Comment 1 p858snake 2010-07-01 09:03:37 UTC
Please show community consensus for this change to take place.
Comment 2 sr 2010-07-01 09:06:24 UTC
They told me to come here and ask why this is the behavior.
Comment 3 Conrad Irwin 2010-07-01 09:09:46 UTC
The reason it was initially chosen is in some ways using HTML is nicer, copy-paste works, as does text-selection and it's easy for blind people to read, saves (a little) bandwidth and resources etc.

The reason it's still like that is that there's no need to change it, and no burning desire to do so. It can be changed on a per-project basis if you can link to a demonstration of community consensus. Please feel free to reopen the bug with such a link.
Comment 4 sr 2010-07-05 17:10:27 UTC
Thank you for your reply, I have undergone a long discussion, and suddenly the font was changed to a serif, and it seems that currently the HTML rendering is quite adequate. We have also changed locally (on Hebrew wikipedia) the size and spacing of the font so that it is quite nice.
Comment 5 sr 2010-07-12 16:47:47 UTC
Hello again, I thought it was resolved, but it was not. It all depends on the fonts installed. The HTML font is Serif, which is not included in all OS/browsers, so the result is strongly system dependent.

Therefore I have reached a consensus on the hebre wikipedia, please see
http://he.wikipedia.org/wiki/%D7%95%D7%A7:%D7%9E#Voting_for_the_proposal_to_render_equations_as_PNG_as_default

this is a vote in the hebrew wikipedia village pump. 
Thank you,
Setreset
Comment 6 Bawolff (Brian Wolff) 2010-07-16 20:54:52 UTC
I have no idea if this is something that should be done, but they have community consensus so I'm moving to right component and adding the shell keyword.
Comment 7 Sam Reed (reedy) 2011-07-17 20:11:03 UTC
From what I can see (looking at maths as an extension), there doesn't seem to be a way to set the default maths preference...

Needs checking in with brion

-shell for now (till it's actually actionable)
Comment 8 p858snake 2011-07-19 00:22:08 UTC
cc'ing brion.
Comment 9 Brion Vibber 2011-07-19 00:32:53 UTC
I'd recommend removing the preferences entirely.

* "HTML if simple" and "if possible" produce *horrible* ugly output that nobody likes, so people use hacks to force PNG rendering. Why not just render to PNG?
* "MathML" mode is even *MORE* limited than "HTML if simple", making it entirely useless.
* nobody even knows what "Recommended for modern browsers" means, but it seems to be somewhere in that "occasionally crappy HTML, usually PNG" continuum.

So we're left with only two sane choices:

* Always render PNG
* Leave it as TeX (for text browsers)

Text browsers will show the alt text on the images, which is... the TeX code. So even this isn't actually needed for its stated purpose.

It's conceivable that a few folks really honestly prefer to see the latex source (should at least do a quick stat check to see if anybody uses it on purpose), but I wouldn't mind removing that either.
Comment 10 wikimedia.x.0x 2011-09-23 16:42:53 UTC
(In reply to comment #9)
> * Leave it as TeX (for text browsers)
> 
> Text browsers will show the alt text on the images, which is... the TeX code.
> So even this isn't actually needed for its stated purpose.
> 
> It's conceivable that a few folks really honestly prefer to see the latex
> source (should at least do a quick stat check to see if anybody uses it on
> purpose), but I wouldn't mind removing that either.

Not only for text browsers:
http://en.wikipedia.org/wiki/User:Nageh/mathJax
Comment 11 Tomer A. 2011-10-10 14:56:07 UTC
Bump. What should we do to make this happen?
Comment 12 Helder 2011-10-10 21:12:20 UTC
You may want to look on bug 31406, which is related.
Best regards
Comment 13 Tomer A. 2011-10-11 17:32:33 UTC
It is related but not the same. 

The guys in he.wiki asked to change the rendering of math formulas (which I assume to be a change in a flag by someone with shell access) over a year ago.

I'm glad that we're moving to something new which is probably better equipped than what we have but until that happens somewhere on the unknown horizon we would appreciate it very much if you could change the rendering method for us. Once all wikis switch to MathJax we'll be happy to move with them.
Comment 14 Bawolff (Brian Wolff) 2011-10-11 23:23:30 UTC
> Once all wikis switch to MathJax we'll be happy to move with them.

Are there even any (concrete) plans to do this. If there are, they are probably a long way off.

----
but back to this bug.

What needs to be done from a developer side:
$wgDefaultUserOptions['math'] = 0; // Always PNG is option 0

What needs to be done from the perspective of the people wanting this (english and hebrew wikipedias based on comment 0):
You need to have a community discussion/vote/etc to show that there is community consensus to make the change. Once you do that, and if the result is in your favour, please add a link to the discussion to this bug.
Comment 15 Tomer A. 2011-10-12 08:33:13 UTC
We already did that on he.wiki. Here's the link to the discussion: http://he.wikipedia.org/wiki/%D7%A9%D7%99%D7%97%D7%AA_%D7%A2%D7%96%D7%A8%D7%94:%D7%A0%D7%95%D7%A1%D7%97%D7%90%D7%95%D7%AA#Voting_for_the_proposal_to_render_equations_as_PNG_as_default

The discussion itself happened on the village pump but was later archived to a page about formulas.
Comment 16 Sam Reed (reedy) 2011-10-20 04:07:42 UTC
Done
Comment 17 Tomer A. 2011-10-20 15:56:58 UTC
Thanks

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


Navigation
Links