Commit graph

562 commits

Author SHA1 Message Date
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
Roan Kattouw 91ac23377f Make VE math inspector title not be null
Forgot to update this for the deferMsg refactor.

Bug: 63083
Change-Id: Ib401c36d656344b74f2358e3e32870186e54e351
2014-03-25 11:35:22 -07:00
Translation updater bot 736cd7b059 Localisation updates from https://translatewiki.net.
Change-Id: I3cb3e4889a146dec117460d80ae5892aa90cae40
2014-03-24 22:21:30 +00:00
Translation updater bot 3b967c48a0 Localisation updates from https://translatewiki.net.
Change-Id: I665aedb985798a51d7e31c7a540e19467cbd28bc
2014-03-23 20:29:54 +00:00
Translation updater bot d46998a247 Localisation updates from https://translatewiki.net.
Change-Id: I33fc4e07f62e75300558bac6aba95c524c418ca4
2014-03-22 20:49:35 +00:00
Translation updater bot b5cb7c0de0 Localisation updates from https://translatewiki.net.
Change-Id: I6d685434ea42d35e5b66116e7a3fe95b0b89ceef
2014-03-21 20:46:37 +00:00
Translation updater bot d81662cde0 Localisation updates from https://translatewiki.net.
Change-Id: I128ecc06ec6847ff1ab1329d8c27bbbe663f769d
2014-03-20 20:30:20 +00:00
Moritz Schubotz (Physikerwelt) 0b6ed3ce2f Improvement of LaTeXML integration tests
* use setMwGlobals to set the globals

Change-Id: I253c75f93fe6fa098b1b6f462129148782db2fa7
2014-03-20 15:51:00 +00:00
Roan Kattouw e7be4f5ba7 Minor fixes for VE Math code
* Update MWMathInspectorTool for deferMsg refactor
* Update ce.MWMathNode to add primaryCommandName

Change-Id: I344e3ef498c504d07b1f42954ab44b82ed3c0a50
2014-03-19 19:31:41 -07:00
Roan Kattouw fcf045f832 Add VisualEditor support
Moved from the VisualEditor extension, where it was removed in Iab0c56246626de1e0f

Change-Id: I8e582ee6deadc2750d30b49f0c6de31ed9c16a50
2014-03-20 01:29:25 +00:00
Translation updater bot 3ebddd2cbb Localisation updates from https://translatewiki.net.
Change-Id: Ifafeb90f725ff5bac8c25aa4b351b9be83c43dc0
2014-03-19 20:43:14 +00:00
Translation updater bot 80a94c8973 Localisation updates from https://translatewiki.net.
Change-Id: I182f1ad0bf191c4ff57725b94901ccbefa4addc2
2014-03-17 21:19:46 +00:00
Translation updater bot 4391cd94f7 Localisation updates from https://translatewiki.net.
Change-Id: Iab95fed59c70c5b91c752e9435106d1b770779d8
2014-03-15 20:08:59 +00:00
addshore 80bf30ca45 Split up some long lines in tests
Change-Id: I45be8ea1b9a9a974614354c0199e3107a5cdc23e
2014-03-11 23:32:33 +00:00
Translation updater bot 6db9b0e6fe Localisation updates from https://translatewiki.net.
Change-Id: Ib19ce59d60301d6cd5ce2cc444bebcc47b64f298
2014-03-11 20:44:34 +00:00
physikerwelt 94b035b26a Coverage tests for the Math extension
* Include generated tests for a better test coverage
of the Math extension.
* Compiles texvc in testsuite (if required)
* Test generator now included
* Replaces the old parser tests
* Fixes whitspace issues

Bug: 61090
Change-Id: Iff7eeb5ee72137492c3f6659e4d4d106e5715586
2014-03-11 15:35:07 +00:00
Translation updater bot 02477fa877 Localisation updates from https://translatewiki.net.
Change-Id: If549c38d39349164a3fa1c74f552c03436916b65
2014-03-09 20:32:13 +00:00