Commit graph

2907 commits

Author SHA1 Message Date
Amir E. Aharoni 056b6de1b2 Add Moritz Schubotz and Derk-Jan Hartman as authors
Change-Id: Ia091b88098777a953a9fa285d93641762d007379
2014-07-19 22:35:41 +00:00
physikerwelt 147ffa2307 Fix broken unit tests
Unit tests fail because the inner structure of the
SVG image that is gernerated by the Mathoid server
has changed.

Change-Id: I49d3116ee36b0a7a776df75656706d54bf04e961
2014-07-19 21:21:17 +00:00
Translation updater bot d8fe178c62 Localisation updates from https://translatewiki.net.
Change-Id: I5e39455bf70f5697dfb99f3a8e6dfabf417a343d
2014-07-18 21:28:44 +02:00
Ed Sanders 47a6bd2073 Fix rerendering in VE
this.$element is no longer a wrapper, so use .filter instead
of .find. Don't use domElements argument as this has already
been written to this.$element at this stage (will remove this
argument in VE core).

Change-Id: If24580102201e2b83b57c63d85335bd728a28784
2014-07-14 17:45:24 +00:00
Translation updater bot d8537132e0 Localisation updates from https://translatewiki.net.
Change-Id: I8aefbafb8183dd382ba19f43e18193eaaabdade2
2014-07-13 22:23:03 +02:00
Translation updater bot 5f5498e708 Localisation updates from https://translatewiki.net.
Change-Id: I33049fe93ac76c6bfa04ca752917b0f3fbad5510
2014-07-11 21:56:37 +02:00
jenkins-bot 4eebc40812 Merge "Fix MathDatabaseTest" 2014-07-11 01:37:18 +00:00
Translation updater bot 348d5aeb7f Localisation updates from https://translatewiki.net.
Change-Id: Ie742d9005ff8ac97dbf9462448b49aeb9ec655f5
2014-07-03 19:17:57 +00:00
Translation updater bot 0ccee1d94d Localisation updates from https://translatewiki.net.
Change-Id: Ie48ebdf9db3fd0d18788b3901e5ef49f7326910d
2014-07-02 19:53:25 +00:00
Frédéric Wang 382454a979 Update modules/ext.math.css
Currently, the PNG fallback is hidden in the MathML mode and the MathML & SVG
are respectively hidden and visible by default; the visibility of the
SVG/MathML output is only changed for Gecko. This does not work well for
IE < 9, which does not support SVG. This commit tries to improve the selection
of PNG, SVG or MathML according to the browser capatibility.

Change-Id: Ie9b0fdb66c51fbf6be98df092ce4de29fbba6068
2014-06-30 10:52:59 +00:00
physikerwelt (Moritz Schubotz) cac44883d3 Fix MathDatabaseTest
The test used an unnecessary call to
setupTestDB. This might have caused
that the unittest_math table was deleted
twice during the setup routine of the
unittest.

Bug: 67148
Change-Id: I4a414900c1c2d97b759ef1755e53e82c5c2e8e14
2014-06-30 10:52:03 +00:00
Amir E. Aharoni 877a0b447b Hide MathShowImage from Special:SpecialPages
This special page is not intented to be used interactively
and its title is not translatable, so it shouldn't be shown
on Special:SpecialPages.

Change-Id: Idc83ecc2924cf417d102d3d1b0fedffd5d393300
2014-06-28 11:59:55 +03:00
Cmcmahon 94ded6c7b9 Port browser test for Math extension from the /qa/browsertest repo
From an earlier discussion with physikerwelt.

This is one step toward retiring the /qa/browsertest repo
entirely.

Change-Id: I804f32d2a5a984c8eb0dfc50c8ab50a7f1035256
2014-06-27 22:31:56 +00:00
Translation updater bot 9f54b57689 Localisation updates from https://translatewiki.net.
Change-Id: Ie01c211d5004f645a64b93913a58c391b593789d
2014-06-26 19:32:21 +00:00
Translation updater bot e2934946de Localisation updates from https://translatewiki.net.
Change-Id: I3f92a1381f133ab90d9f061d599cb1549fe123d1
2014-06-24 20:00:16 +00:00
Translation updater bot 12b858fc7c Localisation updates from https://translatewiki.net.
Change-Id: I06a26608a8147c4bb0146c1b06626a0ea95556b4
2014-06-22 19:30:01 +00:00
Ed Sanders 7c08fc5b72 Migrate VE icon from VE extension
Removed from VE with Ic8074be2.

Change-Id: I33cdb6204b4abc44398ecedd65f7d9251e73e9b0
2014-06-21 14:52:16 +00:00
Translation updater bot 9d0a38c42d Localisation updates from https://translatewiki.net.
Change-Id: Ie51b4f2e76cb750f915c9e989217eed342603336
2014-06-20 19:49:08 +00:00
Translation updater bot f37bf4d351 Localisation updates from https://translatewiki.net.
Change-Id: I580c95aae3073516ce8df5965a75e060769aa7f6
2014-06-18 19:55:36 +00:00
jenkins-bot 9f78cf77a3 Merge "Remove display:inline-block highlight hacks for math nodes" 2014-06-18 19:10:06 +00:00
Translation updater bot 6d31298389 Localisation updates from https://translatewiki.net.
Change-Id: I218b3413e44a941e8c0cfd980f99d5438faa3dc7
2014-06-16 19:51:40 +00:00
Ed Sanders e0a7cdf26d Remove display:inline-block highlight hacks for math nodes
With getClientRects these are no longer necessary.

Depends on I09f1c0850 in VE core.

Change-Id: I2c4c1809a92c6d2cbf6769782f7595a508d823ea
2014-06-16 14:48:29 +01:00
Translation updater bot c8b0634d2d Localisation updates from https://translatewiki.net.
Change-Id: I638f79feaa2eab29803f9f9307499cea613b6479
2014-06-15 19:52:32 +00:00
Translation updater bot f57f0a4881 Localisation updates from https://translatewiki.net.
Change-Id: Ifd58677752a1681b07a36163b3f418da696fd633
2014-06-14 19:16:55 +00:00
Translation updater bot e89cac20aa Localisation updates from https://translatewiki.net.
Change-Id: I8b4eb9062c5de970402f080efd62d4327c567d4e
2014-06-13 20:49:53 +00:00
Ed Sanders 1678136fe3 Add in CSS file missing from RL module
Change-Id: I5311157b2a443c285a4125b1e457936030da3c4b
2014-06-13 20:27:21 +00:00
Translation updater bot 8fe1de94d6 Localisation updates from https://translatewiki.net.
Change-Id: I1925890c764c9775b0f3e85fa12fb9b24c6e7fad
2014-06-12 21:38:06 +00:00
Translation updater bot 0ec25a168c Localisation updates from https://translatewiki.net.
Change-Id: Id53c7bbd9b582b059227f31e06fd496c49636505
2014-06-11 20:38:06 +00:00
physikerwelt (Moritz Schubotz) 8ee7ef089e Add description for MathML rendering option
Change-Id: I14538fd879f52a6090414f215175917c1bcdeded
2014-06-11 16:57:36 +00:00
Frédéric Wang a3015f6e79 Hide redundant output in the MathML mode.
In the MathML mode, the SVG is always visible and for Gecko the MathML
output is visible too. This commit modifies ext.math.css to hide redundant
output for a given mathematical formula.

Change-Id: I5d48ec4f2a40246567b201e82444e61d408cb3b5
2014-06-11 14:16:57 +02:00
physikerwelt (Moritz Schubotz) cbbf5453d1 Enable MathML rendering mode
This change allows to registered users
to test the new MathML rendering mode.
Invalid settings for math rendering mode
will default to MathMathML.

Change-Id: I75f24cb762609d6728247e3758fcc18f2ebfc6e6
2014-06-11 13:21:34 +02:00
physikerwelt (Moritz Schubotz) 04ce4a02c7 Add options to the math tag
* id: Allows to name equations
  and deep link to equations
* forcemathmode: Allows to override the user defined rendering mode.
  This feature is useful for help pages and discussions about rendering.
* type: support for MathML and asciimath input
  required for MediaWiki instances that want to
  incorporate MathML sources like for instance pubmed

Change-Id: I615c7f1a5762e9e662937b70953fb873309d4c07
2014-06-10 20:19:12 +02:00
physikerwelt (Moritz Schubotz) d928de94e5 Add alternative constructor
Adds a new constructor that allows
to create a new instance of the MathRenderer
based on an inputhash.

This method is required for the Specialpage
and the MathSearch extension.

Change-Id: I618b0fa7dcfdf8a7c740991c19ae0d70e71f19ba
2014-06-10 13:14:56 +02:00
Frédéric Wang 27aee07cb0 Fonts for native MathML
This sets the default font-family on <math> elements so that we try to use
OpenType MATH fonts that are likely to be installed or fallback to WOFF and
obsolete mathematical fonts.

Bug: 65532
Change-Id: Id4517a3ce5eab4acdf2264712ba132b972120042
2014-06-10 11:07:10 +00:00
physikerwelt (Moritz Schubotz) 034d1d4fa7 fix: typo in MathMathML:setAllowedRootElements
Change-Id: I282b248e3b271b8de7a9dd0c41e7496204a17463
2014-06-10 11:57:24 +02:00
physikerwelt 65642489ae Separate render and getHtml
Currently the method render always returns
a html string that can be a string that
represents the correct result or a rendered
error message.
This change splits rendering and
fetching of the HTML output.
This simplifies the logic of the rendering
and caching mechanism.
Now the render method returns a boolean that
indicates if the rendering was sucessful or
not.

Step 2/2

Warning: Errors in this change might affect
caching logic and squid caches.

Change-Id: I00502b84212ed70cdf63bd69916a35afbd6fdbc1
2014-06-09 23:21:44 +02:00
Translation updater bot 12e87b6289 Localisation updates from https://translatewiki.net.
Change-Id: I47902c624957e6eac57ad2c8f049ad147a918bc8
2014-06-09 20:31:13 +00:00
Translation updater bot b0eb5d4922 Localisation updates from https://translatewiki.net.
Change-Id: I4c014fae34277b7afc9dc6d968a24f7585d715ce
2014-06-08 19:57:13 +00:00
jenkins-bot 09359385b4 Merge "Use new MWInlineExtensionNode and DM node construction" 2014-06-07 03:47:54 +00:00
Translation updater bot fed0d7079d Localisation updates from https://translatewiki.net.
Change-Id: Ieb659b85fd12d071423de837ffe4ff8b7e67c468
2014-06-06 21:47:03 +00:00
Frédéric Wang 644513651f Merge "Add getHtmlOutput method" 2014-06-06 20:24:01 +00:00
physikerwelt c390f6479a Add getHtmlOutput method
Currently the method render always returns
a html string that can be a string that
represents the correct result or a rendered
error message.
This change adds a mechanism that allows
to fetch the HTML output.
In a followup commit the rendering function
is changed to return a boolean value rather
than the rendering result.
This will simplify the error handling and caching.

Change-Id: I80760493e391911c41eb69d75a93c6a34db8852e
2014-06-06 21:52:35 +02:00
physikerwelt (Moritz Schubotz) 8bc23cafb4 SpecialPage for MathImages
Add new special page that displays
math images. (Either SVG- or PNG-Images)

Change-Id: I6065b474b8197232fcb4e79ae17bb08d9bef3ac4
2014-06-06 17:18:30 +02:00
Translation updater bot 9a645d96df Localisation updates from https://translatewiki.net.
Change-Id: I6d5d1665f48eee50f0c8a0e7fa89ec4933e711f6
2014-06-05 20:46:08 +00:00
jenkins-bot b71cedd915 Merge "Introduce variables required for mathoid" 2014-06-05 09:39:33 +00:00
physikerwelt (Moritz Schubotz) 1bb3bfa3b5 Introduce variables required for mathoid
This change prepares the reactivation of the
MathML rendering mode. It adds configuration
variables for
* the mathoid server url
* the mathoid server timeout
* the debug mode.

Change-Id: I8a2bb9076e571d7769787aac3e863f65637ce553
2014-06-05 09:36:01 +00:00
physikerwelt (Moritz Schubotz) 52656990b4 MathMathML
The LaTeXML class contains some code that is
not specific to LaTeXML but to MathML.
This code can be shared between LaTeXML and Mathoid.
This change introduces a new class called MathMathML
and moves the shared code from the LaTeXML class to this
new class.

Bug: 65973
Change-Id: I50517ba83f9a0d2aa8e237f062f18e4319ddbac8
2014-06-05 09:06:33 +00:00
Translation updater bot ed018d04b6 Localisation updates from https://translatewiki.net.
Change-Id: I54aa43cf3e535f5f6d81ea2bbc3b4f09a8b348af
2014-06-04 19:53:54 +00:00
physikerwelt 4ca287b43a Improve MathML error handling
This change improves the error handling for MathML.

* Make MathHooks::getMathNames public
* Allow to use the same error messages for LaTeXML and Mathoid
* unify the string delimiter in error messages to "

Change-Id: I6568e6a3c98cb008f45f887d42e446daafe0ed3c
2014-06-04 07:38:48 +00:00
Ed Sanders 03f09e4e26 Use new MWInlineExtensionNode and DM node construction
Depends on I0ddcabeb and I8d4f37b6 in core.

Change-Id: I7d5e1174c4f8a49d926b287b8dd109e3148cf95b
2014-06-03 19:24:30 +01:00