Commit graph

2928 commits

Author SHA1 Message Date
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
Moritz Schubotz (Physikerwelt) c5b0b15d8f Fix MathJax centers equations
* Removes the MathJax heuristics that decides
  if equations are centered or left-aligned.
* Introduces the attribute display to specify
  if the math element is rendered in inline,
  display, or inline-displaystyle.
* add css rules for display / inline math images

Bug: 61051
Change-Id: Iba69903f781f0cb1606b8ddcffb90fb86c9b229b
2014-04-06 21:58:30 +00:00
Derk-Jan Hartman 24f2ed2c5e Add the TeX color extension back
The color and the cancel extension was not RL'ified in the update
to MathJax 2.3

Followup to: I9471b1baf41d2bcc4fdc64a26e7d806e92b9b17f
Bug: 63574

Change-Id: I816db6b66ef48a90e7424372783c69ffe8343957
2014-04-05 18:01:15 +02:00
Derk-Jan Hartman eda0726fd4 Reset the fontstack of mathjax back to defaults
I suspect we retained this of the import of Nageh's option, it was
never really a conscious decision. This makes is to so that locally
installed fonts are preferred over the Tex webfont.

Bug: 63016
Change-Id: I6876f4969314b2feea01ecfef29f98dcd5f1056a
2014-04-05 11:52:34 +02:00
Translation updater bot 9b2015229e Localisation updates from https://translatewiki.net.
Change-Id: Ia4f621c925637f146aa9e8341587744d2e9e4944
2014-04-04 20:23:37 +00:00
Translation updater bot b70d13dd59 Localisation updates from https://translatewiki.net.
Change-Id: I70f8880dd364db4154186acefe580c05d408d1be
2014-04-03 19:45:07 +00:00
Translation updater bot 1ee1196dd9 Localisation updates from https://translatewiki.net.
Change-Id: I45696dd752efc2f4c2c1775827adfd8b197d5179
2014-04-02 19:13:56 +00:00
Translation updater bot 03a8a4d6cc Localisation updates from https://translatewiki.net.
Change-Id: I960e7721a7603e84303c2ba928428c22cf0b0263
2014-04-01 19:47:38 +00:00
jenkins-bot ca3c5a58a2 Merge "Consistency tweaks: Add <code> around executable name" 2014-04-01 13:10:29 +00:00
Raimond Spekking dbc67b3685 Consistency tweaks: Add <code> around executable name
Spotted by Siebrand
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Math_notexvccheck/en

While I am on it: Always use https for mediawiki.org

Change-Id: I227540a4cc5529c9db44dbbfda617f9b81db7274
2014-04-01 15:07:51 +02:00
Ed Sanders 31df8ff3a8 Emit rerender on math node if Tex image is not present
This happens with then empty tag is rendered.

Bug: 63093
Change-Id: I5cf731cedda134d2542946da82997bddf58b00b5
2014-03-31 16:07:59 -07:00
Translation updater bot a8625fd0ed Localisation updates from https://translatewiki.net.
Change-Id: I7d6e76220798027ea3f4506ee3c3362dd96d28a8
2014-03-30 20:12:54 +00:00
Translation updater bot 44bb90cd43 Localisation updates from https://translatewiki.net.
Change-Id: I6369679d078024a8915a4beacfee50598025c604
2014-03-29 21:16:41 +00:00
Translation updater bot cf00bd2cd0 Localisation updates from https://translatewiki.net.
Change-Id: Ibe8e362c45893b0472da5c947c3576097ad49778
2014-03-28 19:30:23 +00:00
Siebrand Mazeland 5cbbd0c807 Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: Ifcaf0e8516cd92587fc5e51a580a53f4158cdb6e
2014-03-28 11:06:06 +01:00
Translation updater bot 88d3368c23 Localisation updates from https://translatewiki.net.
Change-Id: I3b96991d6f0316c4fd5918e908411976752800c8
2014-03-27 20:31:17 +00:00
Translation updater bot 2380d912c0 Localisation updates from https://translatewiki.net.
Change-Id: Ia5d372fe272eb3d973162ecee9988d362f20c17c
2014-03-26 20:40:40 +00:00
Translation updater bot 37aab2ac82 Localisation updates from https://translatewiki.net.
Change-Id: I3f07d2caf53d3f8e23f889e36994c1c665fcfe77
2014-03-25 20:51:58 +00:00
jenkins-bot 4e362af041 Merge "Make VE math inspector title not be null" 2014-03-25 19:11:26 +00:00