Last modified: 2014-09-02 19:18:22 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 T59981, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57981 - Introduce a parameter to set which method should be selectable in user preferences
Introduce a parameter to set which method should be selectable in user prefer...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Unprioritized enhancement with 1 vote (vote)
: ---
Assigned To: physikerwelt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-04 14:59 UTC by [[kgh]]
Modified: 2014-09-02 19:18 UTC (History)
2 users (show)

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


Attachments

Description [[kgh]] 2013-12-04 14:59:58 UTC
It will be nice to have a parameter e.g. $wgMathRendering allowing to set which method to render formulas should be choosable in the user preferences. So far it is only possible to set a distinct method as default for users. However other choices are shown, even if they are eventually not set up.

Pragmatically this setting could default to 

$wgMathRendering = array(
    MW_MATH_PNG,
    MW_MATH_SOURCE
);
Comment 1 physikerwelt 2013-12-04 15:16:39 UTC
There are the variables
$wgMathUseTexvc, $wgMathUseMathML, $wgMathJax
to adjust the available methods.
Does that solve the problem
Comment 2 [[kgh]] 2013-12-04 15:52:51 UTC
Unfortunately they do not or I really missed something. Let me put it in other words: What do I have to set if I do not want one or both of the standardly displayed options to be shown on "Special:Preferences", i.e. "Always render PNG" and/or "Leave it as TeX (for text browsers)"? The parameters mentioned allow to manipulate the choice of just these three extra options, not of all of them. Currently I am dirtily patching "Math.hooks.php" to achieve this. Thus reopening.
Comment 3 physikerwelt 2013-12-05 10:07:46 UTC
You are right, you can not disable the plaintext mode.
Disabling the png mode is a feature of the next version that is currently reviewed.
https://gerrit.wikimedia.org/r/#/c/85801/
I agree with you that it would be preferred to replace those individual variables and make the $validModes variables MathRenderer::getRenderer global.
I'll put that to my todo list.
Comment 4 physikerwelt 2013-12-21 19:33:32 UTC
I added the feature to Math2.0
https://gerrit.wikimedia.org/r/#/c/85801/
Comment 5 Gerrit Notification Bot 2014-01-25 23:10:24 UTC
Change 109488 had a related patch set uploaded by Physikerwelt:
Introduce $wgMathValidModes to adjust the selectable math rendering modes in user preferences

https://gerrit.wikimedia.org/r/109488
Comment 6 Gerrit Notification Bot 2014-02-09 11:58:46 UTC
Change 109488 abandoned by Physikerwelt:
Introduce $wgMathValidModes to adjust the selectable math rendering modes in user preferences

Reason:
restructure changes

https://gerrit.wikimedia.org/r/109488
Comment 7 Gerrit Notification Bot 2014-02-09 12:03:09 UTC
Change 112327 had a related patch set uploaded by Physikerwelt:
Introduce $wgMathValidModes to adjust the selectable math rendering modes in user preferences

https://gerrit.wikimedia.org/r/112327
Comment 8 Gerrit Notification Bot 2014-04-08 10:44:47 UTC
Change 112327 abandoned by Physikerwelt:
Introduce $wgMathValidModes to adjust the selectable math rendering modes in user preferences

Reason:
the concept of the math_2_0_0 branch did not work

the master branch keep on chaning while math_2_0_0 is not noticed

https://gerrit.wikimedia.org/r/112327
Comment 9 Gerrit Notification Bot 2014-04-08 15:11:07 UTC
Change 110226 had a related patch set uploaded by Physikerwelt:
$wgMathValidModes and orthogonal MathJax enabler

https://gerrit.wikimedia.org/r/110226
Comment 10 Gerrit Notification Bot 2014-04-08 15:46:50 UTC
Change 110226 merged by jenkins-bot:
$wgMathValidModes and orthogonal MathJax enabler

https://gerrit.wikimedia.org/r/110226
Comment 11 [[kgh]] 2014-09-02 19:18:22 UTC
Heiya physikerwelt, thanks a ton for implementing this. I just successfully tested this on a MW 1.23 though the way to enable this has changed since revision 110226. A bit irritating is that this uses a checkbox instead of of radiobuttion but this should be another bug report.

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


Navigation
Links