Commit graph

992 commits

Author SHA1 Message Date
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
physikerwelt (Moritz Schubotz) c7197bee19 Add separate database table for LaTeXML (step 5)
Currently the PNG and the LaTeXML rendering mode
use a common table in the database. If both rendering
modes are allowed in a wiki simultaneously this causes
problems, because the fields are continuously overwritten.

This is patch changes the logic of the rendering
engine to use the specific database.
The caching logic is now simpler to understand.
A entry is written to the database if the changed field
of the MathRenderer class is true. Is is triggered by the
setters of the database relevant fields.


Bug: 65522
Change-Id: Ief9de889b9292b21c9d1529a8b1797f38196edad
2014-05-31 10:34:21 +00:00
physikerwelt 410416101f Add separate database table for LaTeXML (step 4)
Currently the PNG and the LaTeXML rendering mode
use a common table in the database. If both rendering
modes are allowed in a wiki simultaneously this causes
problems, because the fields are continuously overwritten.

In this change the MathRenderer class fields are updated
and new setters and getters are introduced.

Bug: 65522
Change-Id: I09ba07c5ed6b16d65cffe4da238d138a6cafd795
2014-05-28 09:06:43 +00:00
Frédéric Wang 423d80ef35 Merge "Add separate database table for LaTeXML (step 3)" 2014-05-27 15:49:42 +00:00
physikerwelt 3cbb5225e3 Add separate database tables for Mathoid
Add the tables needed for Mathoid.

Bug: 65793
Change-Id: Ia8dcb11234dffb7bce67f9ca0e7ebf1279fd7620
2014-05-27 06:53:50 +00:00
physikerwelt bf33d51320 Add separate database table for LaTeXML (step 3)
Currently the PNG and the LaTeXML rendering mode
use a common table in the database. If both rendering
modes are allowed in a wiki simultaneously this causes
problems, because the fields are continuously overwritten.

This change adds the method getMathTableName that will
allow renderers to access their specific table in the
database.

Change-Id: I8b11ffd0a39fadd7d3c8de1e94e74ff5f490430d
2014-05-27 05:33:20 +00:00
Translation updater bot 1de09cd270 Localisation updates from https://translatewiki.net.
Change-Id: I57739330bd8f875efbdffa5c39d2631a59ec6fc8
2014-05-26 20:11:41 +00:00
physikerwelt 972cee0f98 Add separate database table for LaTeXML (step 2)
Currently the PNG and the LaTeXML rendering mode
use a common table in the database. If both rendering
modes are allowed in a wiki simultaneously this causes
problems, because the fields are continuously overwritten.

This change creates the new database table defined in step 1.

Bug: 65522
Change-Id: I5f125d36b83776ca6f75ff014dc9095d0a737a35
2014-05-21 17:23:42 +00:00
physikerwelt ed570661de Improve mathtable
* Add primary key to mathtable
* Unify naming of database files

Bug: 65525
Change-Id: I4f4d31c281257014734e9e3a8d7f1506855ea6d9
2014-05-21 08:48:34 +00:00
jenkins-bot 86617af1db Merge "Change default value for $wgMathLaTeXMLUrl" 2014-05-20 11:37:55 +00:00
physikerwelt d93fdf9141 Add separate database table for LaTeXML (step 1)
Currently the PNG and the LaTeXML rendering mode
use a common table in the database. If both rendering
modes are allowed in a wiki simultaneously this causes
problems, because the fields are continuously overwritten.

This change adds a new table for the LaTeXML rendering mode
to the database.

Bug: 65522
Change-Id: If5b887e908f22248789d478c34b03ea3c7da393a
2014-05-20 09:40:40 +00:00
Translation updater bot bfcb091940 Localisation updates from https://translatewiki.net.
Change-Id: I3a33b0306f5f354690d2521d3c648741627cd41a
2014-05-16 19:59:44 +00:00
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