Commit graph

2916 commits

Author SHA1 Message Date
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
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