Commit graph

764 commits

Author SHA1 Message Date
jenkins-bot b6b70ae3fa Merge "Separating MediaWiki specific files from MathJax module" 2014-08-29 19:33:19 +00:00
Translation updater bot 3a37b9c63f Localisation updates from https://translatewiki.net.
Change-Id: I3ada6896b720b4220d9d585ab5a47e4656c069ec
2014-08-29 21:20:24 +02:00
Frédéric Wang 639d8a766f Separating MediaWiki specific files from MathJax module
This commit separates the files wiki2jax.js and texvc.js from the
MathJax modules. This allows for MathJax updates without affecting
MediaWiki files. It also defines the MediaWiki path configuration,
although this will really only be usable in MathJax 2.4. Finally,
it fixes jshint errors in texvc.js and wiki2jax.js

Moved texvc.js and wiki2jax.js to extensions/Math/modules/mediawiki-extensions directory

Change-Id:  I97d68c0555bc9fbdd6bf42912aa249d57b3d9359
2014-08-29 21:03:41 +02:00
Translation updater bot 84829af1eb Localisation updates from https://translatewiki.net.
Change-Id: Ia2f73dd62de33acb7235e2de93f3ea457dfd9d7e
2014-08-28 22:29:42 +02:00
Frédéric Wang cf2ba92c09 Merge "Prevent Special:MathShowImage from showing bad content" 2014-08-28 18:03:55 +00:00
physikerwelt c3d44210c4 Prevent Special:MathShowImage from showing bad content
This commit prohibits that the special-page MathShowImages
tries to display information that are not enabled via
config.

A typical example is that the Specialpage tries to
render PNG images for IE<9 even though texvc was not
set up. This was reported as

Bug: 69693
Change-Id: Ifc5888152aa02c973eab959e963085f24a7b2a83
2014-08-28 13:58:11 -04:00
physikerwelt db3026d5e1 Error reporting for Mathoid
Currently the error reporting in MathML mode is
misleading.

The old error message suggested that the MathML
produced is not well formed.
This change displays the actual error
message occurred during the conversion process.

Change-Id: I6a8201107f9280f0cba97509f19b97d8e248c99f
2014-08-28 13:16:35 -04:00
Translation updater bot ab537f2680 Localisation updates from https://translatewiki.net.
Change-Id: Idde81e8b7723ad7df69fd77155586bb3a6aa9de8
2014-08-27 21:25:28 +02:00
Cmcmahon c31fe814be QA: update to fix deprecated API token call
Change-Id: I8654964a86c1154a6c7b14fc46235da5738a0985
2014-08-27 16:28:40 +00:00
Translation updater bot 24903de630 Localisation updates from https://translatewiki.net.
Change-Id: I9876b3c98aa5da41f9b756c8208e428810b4f1e0
2014-08-26 21:49:49 +02:00
Frédéric Wang 403b238e1c Indicate that a PNG fallback can also be used for the MathML mode
The fallback image for the MathML mode is in SVG format, except for Internet
Explorer < 9 for which PNG is used instead. This commit makes the label of the
MathML mode sligthly more accurate, by mentioning that PNG may be used.

Change-Id: I77c8a8dcb7d2f111f029e1cd5b6f3442640be57e
2014-08-26 20:11:43 +02:00
physikerwelt 05c437d89a MathML in default style
In the default style MathML was rendered as inline and
not as display-style which was consistent to the current
behaviour of the PNG rendering.

By using the 'inline-TeX' rendering type the
display rendering is done independent of the rendering
of the surrounding block layout.

Change-Id: I87e669d5dc71d6937d4cc987d306b3c4648773c4
2014-08-25 20:09:14 +00:00
Frédéric Wang bfa7f5112f Remove the "best for most browsers" comment for the MathJax mode.
This is a subjective comment that was not true for everybody (trade-off
between speed & quality). Moreover, this is now an orthogonal option to enable
MathJax client-side rather than a separate rendering mode per se, so it is
confusing to compare it against the other modes. The "recommended" mode in the
future is likely to become MathML + SVG fallback (which instead uses MathJax
server-side) ; but it's probably best to keep neutral regarding the user's
preferences.

Change-Id: I5c6ff7c95cded4f06f6bfdef43dbe190e42a2968
2014-08-24 14:29:03 +02:00
Translation updater bot a92d929004 Localisation updates from https://translatewiki.net.
Change-Id: Ieaaeec74f04a9a69bb0506dddc2465421114ec38
2014-08-23 21:56:46 +02:00
jenkins-bot f3e4077c4a Merge "Ignore local browsertest files" 2014-08-22 16:31:15 +00:00
Translation updater bot c4891f03e7 Merge "Localisation updates from https://translatewiki.net." 2014-08-20 20:44:21 +00:00
Translation updater bot 999b62a246 Localisation updates from https://translatewiki.net.
Change-Id: I295d2d4665bbe7962cfd012a990538d8a7b1dbd8
2014-08-20 22:28:22 +02:00
jenkins-bot 7145c366d7 Merge "Revert "Added a hook for modifications to MathJax"" 2014-08-19 21:00:44 +00:00
Physikerwelt 7f6db28dd6 Revert "Added a hook for modifications to MathJax"
This reverts commit 0a8fbac418.

Change-Id: If4442d07e4d82e1f45211bb2b331221c62fadbb8
2014-08-19 19:13:35 +00:00
jenkins-bot 6468a67468 Merge "Added a hook for modifications to MathJax" 2014-08-19 15:11:35 +00:00
Translation updater bot 0a8fbac418 Added a hook for modifications to MathJax
The signal 'ext.math.mathjax.customize' is added to the
mathJax.Init function. Extensions can call this signal for
modifications to MathJax.

Change-Id: Ia2bae50cd1fcd15d4775d7b9666679c477060659
2014-08-19 11:07:57 -04:00
Siebrand Mazeland 084718af14 Remove obsolete no.json
Change-Id: I004531f7f7c045201a95a6d8009e39e839a1ed14
2014-08-18 12:30:27 +02:00
jenkins-bot 2ffa9d4dab Merge "Use public instead of var in classes" 2014-08-17 21:17:45 +00:00
addshore a47620df7e Use public instead of var in classes
Change-Id: Id7d5c9e609e20d7b1d5ef68101770f57d6f183c6
2014-08-17 22:09:06 +01:00
Translation updater bot e8e4a85aa3 Localisation updates from https://translatewiki.net.
Change-Id: I41241b6329972d365eb1718a97fc15367fc54e50
2014-08-17 23:06:16 +02:00
Physikerwelt 2d25a6ae1a Ignore local browsertest files
Change-Id: If4573c4ca0feb80a35a008133e55e91e82b68651
2014-08-14 14:50:46 +00:00
Translation updater bot 3a30349981 Localisation updates from https://translatewiki.net.
Change-Id: I1eb53a8cc381d3a21e193eed50d8ca0b82f92f1b
2014-08-12 21:37:03 +02:00
Translation updater bot 42200f36a2 Localisation updates from https://translatewiki.net.
Change-Id: Idadef6fafc7886e9a5b2b388409d7f946f95199f
2014-08-09 19:57:45 +02:00
Translation updater bot 39af5a5408 Localisation updates from https://translatewiki.net.
Change-Id: I57575c449a547898e36b80fc2686d67b95057300
2014-08-05 21:57:23 +02:00
Translation updater bot 28b5fd3da9 Localisation updates from https://translatewiki.net.
Change-Id: Ib2693caac4befe553c42838eb12a87d9c19492ce
2014-08-03 22:10:02 +02:00
Translation updater bot 76bf8d981b Localisation updates from https://translatewiki.net.
Change-Id: Ie980830fc9de85299d85db3b07359f3093b9a842
2014-08-02 22:23:07 +02:00
Frédéric Wang 57facce780 Merge "Improve PNG fallback" 2014-08-01 14:14:44 +00:00
physikerwelt 6cb52f9190 Add SVG generation for LaTeXML
Currently SVGs are generated only in
MathML mode but not in LaTeXML mode.
Since LaTeXML can benefit from the
SVGs as well this change introduces
the functionality to generate SVG
images from LaTeXML MathML input.

Generating SVG images for LaTeXML is an essential
part of Math 2.0. It enables to include LaTeXMLs Content
MathML and provides fallback
images for visitors with MathML disabled browsers.

Change-Id: If13a8b0825bf12dbfe4920ddb7ad552df9bc095f
2014-08-01 03:33:08 +02:00
physikerwelt 27ce24e736 Improve PNG fallback
The PNG fallback for old IE versions worked
only if the PNG image was already stored in the
database.
This change enables the Specialpage that displays
the PNG images to create new PNG images and to
show them directly.

To test this commit you need an old IE version
(IE<9). If you don't have access you can use
an online service such as http://netrenderer.com.

Change-Id: I74163da94e2d7a2f07d78bfe0f5ce134564ba97f
2014-07-30 19:00:57 +00:00
Translation updater bot 272e6869ed Localisation updates from https://translatewiki.net.
Change-Id: I7441dc541879fb12f69f6cc69daa5d3c4eabeeb8
2014-07-27 22:21:04 +02:00
jenkins-bot ce0c5c6cc4 Merge "Add missing period" 2014-07-27 18:21:23 +00:00
physikerwelt (Moritz Schubotz) 5cd5f7b49d Add missing period
See
https://gerrit.wikimedia.org/r/#/c/135817/6/i18n/en.json

Change-Id: Ib36c2b00ad7639d6fbd6a1bec940457d3526319c
2014-07-27 20:18:00 +02:00
physikerwelt (Moritz Schubotz) 77069f6e5f Add width and height to SVG image
Beginning from Mathoid 0.2.5 the specification
of a height and width attribute of the image will be required.
This patch gets those information from the SVG and copies
them to the img tag.

See also
Bug: 20202
Bug: 68295
Change-Id: I93e26a9f538acf21aea1501144bb1dd886ae0410
2014-07-26 15:31:08 +02:00
Max Semenik 130c3f44f1 @group Math where it's missing
Change-Id: If8ec86c4b70d7d78d30cab6f9529af1cd0c2ea52
2014-07-25 15:09:30 -07:00
Frédéric Wang 28b4e4d692 Merge "Fix: id-attribute" 2014-07-25 21:55:39 +00:00
Translation updater bot 01c7597a6a Localisation updates from https://translatewiki.net.
Change-Id: I51a128f1833949a54eef8bc60910907a6394f277
2014-07-25 23:05:17 +02:00
Frédéric Wang f590974c25 Add default display options
In some cases for example if the vagrant role
mobilefrontend is enabled the stylesheets are not
processed on mobile devices.
Without a default setting for the display attribute
all elements are displayed at the same time.

Change-Id: Ic0e95effaf0b413ec4c5878e1cfd5c269daa44c3
2014-07-25 17:19:30 +00:00
physikerwelt f2dff6574b Fix: id-attribute
Id attribute was read wrong place

Change-Id: I6f2671a322f637a1d8e0c88833ce4456d188829b
2014-07-25 17:18:45 +00:00
physikerwelt (Moritz Schubotz) bc519c22f4 Move @namespace css style to top
According to PHPStrom the @namespace css
element must be before normal css rules

Change-Id: I43eb10e976446bf846856f9c4f462a5be034062f
2014-07-25 13:00:13 -04:00
C. Scott Ananian 5cc82325c2 Sanitize filesystem paths before emitting ParserTests.data.
Change-Id: Ic348aa040d3b0e64716a51f5681ef289842118f0
2014-07-24 17:55:02 -04:00
Translation updater bot 247314382f Localisation updates from https://translatewiki.net.
Change-Id: Id66c733994c30606de671d57064f23122397dde6
2014-07-23 22:51:07 +02:00
physikerwelt (Moritz Schubotz) 68f9e96240 Add new MathHook
* Adds a new hook that is called after the rendering
  this is required to keep the MathIndex up to date
  for the MathSearch extension.
* The hook can be used for special modifications of
  the output format.

Change-Id: I7b45b4398c10ffe75f481a82c149ba4f66820338
2014-07-23 16:09:21 +00:00
C. Scott Ananian 0c3f9d69fe Bug fix for \varcoppa in texvccheck
A backslash was missing from the translation of `\varcoppa`.

Change-Id: Ic987f1a67ac73395d7ee16e7f8bcd38a6bad6e11
2014-07-23 16:06:48 +00:00
C. Scott Ananian a25078ff9d Remove unused empty production for litsq_zq in texvccheck
It is impossible to take the empty alternative for this production,
since any input which matches `litsq_aq` would instead match `lit_aq`
if the empty alternative is used.  In addition, there is no action
clause for the empty alternative, so it wouldn't typecheck if the
empty alternative was possible.

This has no effect on the generated parser, but clarifies the grammar
(and makes ports easier!).

Change-Id: I32c85d2c74ab047b4b52401248d5dc7fc3201705
2014-07-23 16:06:13 +00:00
C. Scott Ananian b7069ade90 Fix comment in texvccheck.ml
Change-Id: I8fae697e073d3807896223dba880a2058732e778
2014-07-23 15:55:32 +00:00