Commit graph

2596 commits

Author SHA1 Message Date
physikerwelt 3b7ea6413c Change default value for $wgMathLaTeXMLUrl
new LaTeXML instance.
Sponsored by https://www.xsede.org/

Cherry-Pick from Id92ef141c7921a82528b3ba4384e026322499312

Change-Id: Idd1de9da348d473acc6cea8d2d1a855f1f6b07fa
2014-05-09 11:06:39 +02:00
Frédéric Wang a586c80083 Revome useless MathJax files added in Ib7f2e4b8eb7250ea4fc24aac3cedf196211f38c2
These files were added in but the change was totally unrelated to the
AsciiMath issue mentioned there and moreover this commit bypassed review.
These entity references are useless for LaTeXML
(which does not generate entity names), for the client-side MathJax
(which does not use MathML input) and for mathoid (which uses
phantomjs=webkit and thus already parses the HTML5 entity names correctly).
Finally, these files are likely to disappear in future MathJax versions.
So let's remove these files until it is clear what the intention was.

Change-Id: Iee875632411b98d1e86d3bb10f69ae3797105de7
2014-05-08 08:47:04 +02:00
physikerwelt (Moritz Schubotz) 7c0a940a78 Add missing MathJax files
some files required for Mathoid were missing in the
modules/MahtJax folder

For example I15cb2d1cb0533a2fa0e21012198387501a3b42ea
requires AsciiMath and LaTeXML requires named entities

Change-Id: Ib7f2e4b8eb7250ea4fc24aac3cedf196211f38c2
2014-05-07 11:50:14 +00:00
physikerwelt bb9edf4f7a Catch misconfiguration of math default option
If the LocalSettings.php has invalid settings
for $wgDefaultUserOptions['math']
and $wgValidMathModes the user prefrences
pages displays an error. This commit
catches this error and selects the first
rendering option availible.

Bug: 64844
Change-Id: I1e3c468c0dc92378f7dc7b7d81fb4693e70f6b6f
2014-05-06 11:59:02 +00:00
Yuki Shira 7bcf886644 i18n: Fix MediaWiki.org URL
Change-Id: I64ecfaa967435df0f90014f1a362c43a0f7e4711
2014-05-05 14:30:43 +09:00
Translation updater bot bb6e0b0542 Localisation updates from https://translatewiki.net.
Change-Id: I2171f9f911f4d4faa47918329368dce3d7bd85d7
2014-05-03 20:00:49 +00:00
jenkins-bot 18bc9fd632 Merge "Convert VisualEditor Beta Feature to a normal (non-optional) plugin" 2014-04-30 20:53:34 +00:00
Translation updater bot bbcc40294c Localisation updates from https://translatewiki.net.
Change-Id: I74d16a0e727abe5bce019f7f9d911934921d5924
2014-04-30 20:42:19 +00:00
James D. Forrester 60411b9a9f Convert VisualEditor Beta Feature to a normal (non-optional) plugin
Change-Id: I0dd1c85ad92d7e42654e23b6237b30f8f4dfe0fa
2014-04-29 13:34:40 -07:00
jenkins-bot ffdb9c96b8 Merge "Add default value for user option mathJax" 2014-04-29 08:46:03 +00:00
Translation updater bot f0897599eb Localisation updates from https://translatewiki.net.
Change-Id: Ic518a5c58fb1b91d48e28ba69771f58ce8da5462
2014-04-28 20:14:06 +00:00
Translation updater bot 2236e244cb Update i18n shim
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.

Change-Id: Ib8069ac45f2db0436041287e4d4e5c6a684417f1
2014-04-22 13:30:23 +00:00
jenkins-bot e6a412132d Merge "Update for 126166 in VE Core" 2014-04-21 22:46:32 +00:00
Translation updater bot db69a32582 Localisation updates from https://translatewiki.net.
Change-Id: Ib3dc2ecebb5c201d91f08d2c180db34d0c987ccd
2014-04-21 20:23:46 +00:00
Moritz Schubotz (Physikerwelt) 75999d5aae Add default value for user option mathJax
Bug: 63915
Change-Id: I9aa0b1c9a3f09c412f14756ffd251957b7777a47
2014-04-21 09:30:13 +00:00
Translation updater bot 6781f30a80 Localisation updates from https://translatewiki.net.
Change-Id: If5447b7375384d4f4c5533744b3913c3246e79cd
2014-04-20 20:07:22 +00:00
Translation updater bot e676cb1c0e Localisation updates from https://translatewiki.net.
Change-Id: I683326a57bdaa60f53badf04bc8c70aaca37e43c
2014-04-18 19:35:56 +00:00
jenkins-bot 1bd6c8bbb8 Merge "Simplify VE inspector code by extending new MWLiveExtensionInspector" 2014-04-18 18:27:20 +00:00
James D. Forrester c12523f908 Simplify VE inspector code by extending new MWLiveExtensionInspector
All live preview logic has been moved to ve.ui.MWLiveExtensionInspector so
so this can be simplified down to just static configuration.

Depends on I708c4cb012be in VE-MW.

Change-Id: I24b4788e97411eec18161709ca5d47c87d3f64da
2014-04-17 17:55:37 -07:00
Translation updater bot dae7817085 Localisation updates from https://translatewiki.net.
Change-Id: I423b238fcf36981088a6532432dac75ef9968d05
2014-04-17 18:59:19 +00:00
Translation updater bot f2d546555c Localisation updates from https://translatewiki.net.
Change-Id: I2c2e73882865153c9084291c4dcf58ce668599b4
2014-04-16 17:01:30 +00:00
Translation updater bot 5275d2707f Localisation updates from https://translatewiki.net.
Change-Id: Ibff511a5fbf3e80b50025bfebcd42e26ea3b7678
2014-04-16 15:41:53 +00:00
jenkins-bot 49eb59a43b Merge "Update VE implementation to use model-only inpsectors" 2014-04-15 23:25:08 +00:00
Trevor Parscal bd8aca6e5d Update for 126166 in VE Core
Change-Id: Ie5d4dbbc8ae301017f8ae047fb492368b965f980
2014-04-15 16:22:03 -07:00
Translation updater bot f928e769d9 Localisation updates from https://translatewiki.net.
Change-Id: I65a74e4a20c261eacff3b1e472e2f063d59d3abf
2014-04-15 20:07:45 +00:00
Ed Sanders 3032c22480 Update VE implementation to use model-only inpsectors
As we can't access the view node we have to use stagin transactions
to apply changes to the real document node.

In all cases we can now bypass the parent teardown method as the
model has already been updated.

Depends on If1250402f266 being pulled through to the VE extension.

Bug: 63785
Change-Id: Ic42db8531a5119e8454fb26c80565cef656d3a80
2014-04-14 18:52:09 -07:00
Translation updater bot 7fae9077b7 Localisation updates from https://translatewiki.net.
Change-Id: I573a29b590b95b2eb5e2e3738c57f66db79b1c25
2014-04-14 19:44:20 +00:00
Translation updater bot 037fa13724 Localisation updates from https://translatewiki.net.
Change-Id: I2974b27760f7f860c75ba51778fa68904c4b696c
2014-04-13 19:15:48 +00:00
Translation updater bot 5a7be570f7 Localisation updates from https://translatewiki.net.
Change-Id: If3d641b10c1dbfbff30848a4502e51e3af0e36ce
2014-04-11 19:48:17 +00:00
Translation updater bot 06543df56a Localisation updates from https://translatewiki.net.
Change-Id: I341f165d1104b548f910e9d8d7647d344ea2c4bd
2014-04-10 20:29:57 +00:00
jenkins-bot ea1de6ea86 Merge "Remove zh-[cn|tw] in favour of zh-han[s|t]" 2014-04-10 14:45:59 +00:00
Siebrand Mazeland e45ca6a38b Remove zh-[cn|tw] in favour of zh-han[s|t]
Change-Id: I882982456389f6b3d48e1add6c94737df7aa89d9
2014-04-10 12:38:35 +02:00
Trevor Parscal 01f3f8ee67 Update tool to use a command
Bug: 63541
Change-Id: Iaeaf183dc2d906364d1dc69270bcf06c24ba833a
2014-04-09 22:56:42 +00:00
Translation updater bot 3d7582a741 Localisation updates from https://translatewiki.net.
Change-Id: I0d55459ea08b387954e1a5bb56e828a1798304b2
2014-04-09 19:39:04 +00:00
Translation updater bot 6d5cf252d8 Localisation updates from https://translatewiki.net.
Change-Id: I847469e26a890bc4771ed6a7ad8aaa7e02a94158
2014-04-08 20:05:24 +00:00
Moritz Schubotz (Physikerwelt) 3a36b25ee3 Fix: Allow <div /> as valid Math output
Some simple math tags such as the rendering result of
$\mathcal{ABC}$
are converted to an HTML-div tag by LaTeXML if inline-mode
is used. This change
* makes the $wgMathDefaultLaTeXMLSetting easier to read
* improves the XML validation of the LaTeXML output.

Change-Id: I807dbfa3a45930deec8eb5615133be9a39f3f101
2014-04-08 16:13:28 +00:00
Moritz Schubotz (Physikerwelt) 58f913ecb0 $wgMathValidModes and orthogonal MathJax enabler
To adjust the selectable math rendering modes in user preferences $wgMathValidModes
is introduced.

* $wgUseLaTeXML becomes unnecessary use $wgMathValidModes[] = MW_MATH_LATEXML;
  to enable the LaTeXML rendering mode
* add $wgMathValidModes[] = MW_MATH_MATHJAX; to enable MathJax

Currently, MathJax is bound to the MW_MATH_SOURCE rendering mode.
This change makes the base mode user configurable.
That means before MathJax is loaded the png fallback image could
be displayed.

ATTENTION: This change modifies global variables as follows:
* MW_MATH_MATHJAX is deprecated.

Bug: 57981
Change-Id: Ibf705cb66754d04e4c7eafd1e98608b25d7dbb94
2014-04-08 15:29:42 +00:00
Derk-Jan Hartman ec4b89854d Fix trailing commas in MathJax wiki2jax
This breaks MathJax in IE7

Change-Id: I998cb98e688ef3e075d9d08012331f5e55e30b83
2014-04-08 17:25:55 +02:00
jenkins-bot 90d7783e8e Merge "remove armourMath and wgContLang (bug 60799)" 2014-04-08 11:16:23 +00:00
Frédéric Wang b9353836c5 Add mathchoice.js to the 'TeX' module
mathchoice.js is necessary for the \mod command. This patch includes it
in the TeX module, so that it is included by ResourceLoader.

Bug: 63621
Change-Id: I624358baee04d396207e87ab81b47718573ea3b3
2014-04-07 22:34:01 +00:00
jenkins-bot c782b62261 Merge "Add dependency for math edit button" 2014-04-07 21:26:50 +00:00
Translation updater bot f77990e2d7 Localisation updates from https://translatewiki.net.
Change-Id: Id88b3ed13aed3202252501eda922b085f9221aee
2014-04-07 20:35:26 +00:00
Derk-Jan Hartman 13df3c9b0c MathJax: Listen for wikipage.content hook
This brings us one step closer to solving the JS rendering bug. The
remaining issue is how to know that the enabler script needs to be
loaded.

Bug: 36060
Change-Id: I9cbd032afaf90a735c92f055c2bf82766e9acbe0
2014-04-07 18:04:02 +02:00
physikerwelt fcd542c2c5 remove armourMath and wgContLang (bug 60799)
* armourMath is no longer needed

Bug: 60799

Change-Id: I1134d34d403b527821a1f7ccd370e78cf6197d71
(cherry picked from commit 2c555baf4f)
2014-04-07 15:02:18 +00:00
Derk-Jan Hartman 23f94d5b6a Add dependency for math edit button
Declare that ext.math.editbutton.enabler depends on
mediawiki.action.edit.

Follow up to: I3d126c1c252c27fa65ab8fb42ffab66a2d99cfa8
Bug: 60471
Change-Id: Ibcda91bbb164b0b896d4c3f5f7c2c6ea6658468e
2014-04-07 13:15:02 +00:00
Derk-Jan Hartman c787eb34e7 Move betafeatures images into the images dir.
It's not really nice to have this lying around in the root of the
extension. Even if it's for beta, better to use a proper subdir, so the
directory is somewhat 'readable'

Change-Id: Ib6e6b27b2169626a4f9028fa0f772bbdab16a40c
2014-04-07 14:41:09 +02:00
Derk-Jan Hartman e1343c3f87 Fix globals in strict mode
I didn't really intend to make this strict yet, but since I did,
better make it work

Follow up to: I679246089ec485678088ff08f3a46d8b74a262c5
Change-Id: Ic6180b3188d46ce92e0547b0fbb6c333906c49f6
2014-04-07 12:31:34 +02:00
jenkins-bot ea48a4442f Merge "Editbutton for math" 2014-04-07 09:33:56 +00:00
Moritz Schubotz 9f7a1e51c4 Editbutton for math
Move the code that creates the Editbutton for math from core,
where it is removed in Ib17aa47c7d647e1ed293541adbdd1aa77e25e59e.

Imported button image from:
ssh://gerrit.wikimedia.org:29418/mediawiki/core.git/skins/common/button_math.png

We don't need to vary the icon per language, because there is not a
single language that has a non default icon.

Bug: 60471
Change-Id: I3d126c1c252c27fa65ab8fb42ffab66a2d99cfa8
2014-04-07 09:26:16 +00:00
Derk-Jan Hartman 28efa34ffd Convert MathJax enabler script to tabs
Per our coding conventions:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript

Change-Id: I679246089ec485678088ff08f3a46d8b74a262c5
2014-04-07 11:05:08 +02:00