Commit graph

3045 commits

Author SHA1 Message Date
physikerwelt (Moritz Schubotz) ccc4114812 Fine grained options for wgMathDisableTeXFilter
Add new option to filter only new input.
Now the complete list of possible settings is:
MW_MATH_CHECK_ALWAYS  backwards compatible to false
MW_MATH_CHECK_NEVER   backwards compatible to true
MW_MATH_CHECK_NEW     new option

Change-Id: I455b41c8b8d918f4c34f6c115194d227a8394e0a
2014-10-10 18:27:04 +00:00
Frédéric Wang c3894c2c49 Display MathML when MathPlayer is installed
When MathPlayer is installed, we show the MathML instead of the SVG fallback.
This will in particular allow the sync highlighting feature of MathPlayer.
This also introduces a module ext.math.js that could be used to do some
Javascript postprocessing.

Bug: 71748
Change-Id: I438a20032c312d12321ca4c5686bcfd107656b37
2014-10-10 20:20:47 +02:00
GWicke b59a37640c Merge "Revert "Bug 70119: Strip style from SVG image"" 2014-10-10 01:01:27 +00:00
GWicke 579591f932 Revert "Bug 70119: Strip style from SVG image"
This is now handled in mathoid by https://gerrit.wikimedia.org/r/165948

This reverts commit 1b41241091.

Change-Id: Ia8bc6eb6daebc4d28135602f483492b878928565
2014-10-10 01:01:13 +00:00
jenkins-bot 457ff9d992 Merge "Modify the math font-family for native MathML" 2014-10-09 20:09:51 +00:00
Gabriel Wicke 1b41241091 Bug 70119: Strip style from SVG image
The style would set a margin both on the SVG & the surrounding img. We
transfer the styles to the image, so don't want them on the SVG. This avoids
applying margins twice, which led to clipping.

Change-Id: I89ab3f6727d978d64df6f97f30decf5cb9c0bc92
2014-10-09 12:54:02 -07:00
Frédéric Wang 050564646d Modify the math font-family for native MathML
- add "Cambria" to workaround a bug on Firefox Windows.
- remove obsolete local fonts (MathJax and STIXGeneral).

Change-Id: I06e757b029b8778b88bc6e75e20929e0c945e364
2014-10-09 21:09:10 +02:00
Gabriel Wicke b762bef909 Bug 71857: Strip position style in all math modes
Change-Id: Ib965e687ae4e7afe86f92b497ffcbc349950fecf
2014-10-09 18:37:48 +00:00
Gabriel Wicke b7bd5196f2 Fix style stripping by adding missing /g flag
Change-Id: I6cd4b853638010d60809cecc87499113bd189d4c
2014-10-09 11:09:57 -07:00
jenkins-bot 9774aceb4b Merge "Bug 71857: Strip positioning from SVG fallback image styles" 2014-10-09 16:23:23 +00:00
Gabriel Wicke fd7fcc6ada Remove PNG image fallback image references
- These images currently return server errors

- We don't really want to load PNG images for browsers that support MathML or
  SVG. 

Bug: 69702
Change-Id: Idd339623efd19a0726b43a6c4adc2fcd832511f6
2014-10-09 05:50:04 +00:00
Gabriel Wicke f2e9dbe70c Bug 71857: Strip positioning from SVG fallback image styles
Change-Id: Ie664b421ee40c3d278605bd03cb669509319d862
2014-10-09 00:49:39 +00:00
Gabriel Wicke 4c544f002b Disable failing latexml integration tests
Change-Id: Ib0ea79155f87f036464756b3d303048f8df84897
2014-10-08 17:45:24 -07:00
Translation updater bot 8f12ba9ecb Localisation updates from https://translatewiki.net.
Change-Id: Iaaf724bee822fe92c5fce74776138a434be3828b
2014-10-08 21:26:18 +02:00
Translation updater bot 89131d3945 Localisation updates from https://translatewiki.net.
Change-Id: Ib1368d9f0a8fafae32a0d1c02c32e0d589df3693
2014-10-07 21:00:21 +02:00
Translation updater bot 8c2cc389b5 Localisation updates from https://translatewiki.net.
Change-Id: Idd621add0a7b5e5adad78a520927c73ffe86252f
2014-10-05 22:13:47 +02:00
Frédéric Wang 9f6257c329 Improve the way mathematical formulas are exposed to screen readers.
- Mark the png and svg fallback as aria-hidden="true".
- For browsers without good enough MathML visual rendering, 
  hide the <math> tag in a way that still makes it accessible to 
  screen readers.

Bug: 66537
Change-Id: I7ecf07a4da669d927e11265fd497a813786c6410
2014-10-05 17:48:41 +00:00
Translation updater bot ccd0819ffc Localisation updates from https://translatewiki.net.
Change-Id: If9aeddc029d63385ed21faebcfacee8b0eb2685f
2014-09-25 23:06:02 +02:00
Translation updater bot a19de888a3 Localisation updates from https://translatewiki.net.
Change-Id: Iaf6e4b13da5d2b5b7a31e65e7378dbe144325dc4
2014-09-19 22:05:56 +02:00
physikerwelt 21c89c22b1 tests: Add missing parent::tearDown() call
Follows-up 6a0af8f3b4.

Change-Id: I9418205479053c4129b6a9b888e38150799edcc5
2014-09-16 00:50:30 +00:00
Translation updater bot ac7ff979fb Localisation updates from https://translatewiki.net.
Change-Id: I2370ff821eafdbf379695ac4f1048c6c7e16683e
2014-09-15 02:06:09 +02:00
Translation updater bot b28c67ef03 Localisation updates from https://translatewiki.net.
Change-Id: I1c53b858b22d1ff67c220c2596943cafe281f082
2014-09-11 23:58:09 +02:00
Translation updater bot 3adca3ab15 Localisation updates from https://translatewiki.net.
Change-Id: I628f0f52678e8a0a92db28e3aab6f13a707c532d
2014-09-10 23:40:36 +02:00
jenkins-bot dfdf55b9ce Merge "Avoid unnecessary database reads" 2014-09-10 17:42:33 +00:00
Translation updater bot 20e86c0924 Localisation updates from https://translatewiki.net.
Change-Id: I0866f9ce618ea78f9cc6e01f90b43981142b0d94
2014-09-08 21:35:45 +02:00
physikerwelt (Moritz Schubotz) 4459c5c452 Avoid unnecessary database reads
Use the cached function isInDatabase rather than readFromDatabase to
 avoid unnecessary read operations on the database.

 Currently, readFromDatabase is usually called only once during instance
 livetime. But after I455b41c8b8d918f4c34f6c115194d227a8394e0a has bben
 merged chances are that it's called twice.

Change-Id: I6434195ad1d323a578a8fdca1b4555e11ab30a15
2014-09-06 02:34:30 +00:00
Translation updater bot 8841fd70b4 Localisation updates from https://translatewiki.net.
Change-Id: I8522fc288fdc50439b245f01703270d247d663d0
2014-09-05 22:47:00 +02:00
Translation updater bot 2d8bc118ef Localisation updates from https://translatewiki.net.
Change-Id: Ic85710e8635fde1d030b96f8598bddb679224fe1
2014-09-03 22:21:03 +02:00
Translation updater bot 2be8f3424b Localisation updates from https://translatewiki.net.
Change-Id: I1828e8b79cab06587b487bcca1d010b374d8647d
2014-09-01 22:36:09 +02:00
Translation updater bot 24db4b41c6 Localisation updates from https://translatewiki.net.
Change-Id: Ib3820171a49f007a4fefa0f0208f928202359e2b
2014-08-31 21:56:19 +02:00
Translation updater bot eba2cf10ba Localisation updates from https://translatewiki.net.
Change-Id: I2986253e969c879b9d1ba07b9558b12dcd0fe110
2014-08-30 22:39:21 +02:00
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