Commit graph

118 commits

Author SHA1 Message Date
physikerwelt 2b6735e407 Merge recent changes from master
conflicts:
	Math.alias.php
	Math.hooks.php
	MathMathML.php
	tests/MathLaTeXMLTest.php
	tests/MathMathMLTest.php
	tests/MathRendererTest.php

Change-Id: I0b3f2afaf0716755e9f5e51334290422c0bc459d
2015-02-25 14:42:10 -05:00
physikerwelt (Moritz Schubotz) 8d94d57d2d Move integration tests to a new special page
The integration tests depend on the presence of external servers
and the user settings.
First, people are bothered by  failing test due to problems with
those servers and second, administrators need to run phpunit tests
to verify the configuration settings.
Therefore, we move the integration tests to a special page.

Bug: T87389
Change-Id: If66f13fe7fa16868cd4b1d8f0e0a6e3d49448b27
2015-02-08 20:13:04 +01:00
Timo Tijhof dc12796ced Merge changes from master to debug
combine commits to avoid potential problems
with gerrit and jenkins

This is a combination of 30 commits.
ve.ce.MWMathNode: Remove reference to defunct ve.bind

Bug: 73627
Change-Id: I3dd6b520a24e5cecb272de8f9a4aa0ba231bee58

Localisation updates from https://translatewiki.net.

Change-Id: I6074394864ee7c61b416ae146c94c75d48f509af

Localisation updates from https://translatewiki.net.

Change-Id: I2fa13da30e606e1dfb1e13ae64fb125bf4bfadf6

Fix Mathoid integration test

A recent change in mathoid, i.e.
I8d3cec0ee8a8c9368b7dca89e1d5e0c5683f946c
removed the margins. This causes breaking unit tests.

Change-Id: I312d6226c6f24c84254b99ee6292564a421133c3

Localisation updates from https://translatewiki.net.

Change-Id: I053b90b6a583c411270c950ab6bc0d4e94db583f

Localisation updates from https://translatewiki.net.

Change-Id: Icc6d5d961ad97e19de3c4fbdb86e5aa9315998bb

Localisation updates from https://translatewiki.net.

Change-Id: I7b8faf72ba814154896cf5039e14d23f07509440

Localisation updates from https://translatewiki.net.

Change-Id: I83ca4e6eb8eef02e98ddc6f556d113942fa436df

Localisation updates from https://translatewiki.net.

Change-Id: Icb25e8b51409754130ce22c47474f644c087124e

Localisation updates from https://translatewiki.net.

Change-Id: I6dae3f8fc6723265bf47b721148d261b11828f33

Fix for fatal caused by static call to MathRenderer::getError

MathRenderer::getError() uses $this, so it should not be called statically.
MathInputCheckTexvc should instead call its convertTexvcError method, which
constructs a MathRenderer object so it can call its getError method.

This code is pretty awful. But this way it won't throw fatal errors all the time.

Change-Id: Ic438b307a3b464651363b4cc16698c7d4320b253

Add support for display and ID attributes to VisualEditor

Change-Id: Ie65ff26c9e214f74b0217238a3def2242505d4c2

Localisation updates from https://translatewiki.net.

Change-Id: I5f978989a57affa823632061300f5de7028b2ec0

Localisation updates from https://translatewiki.net.

Change-Id: I366383149cb56c90800e06f94aaa6c8895d2381c

Localisation updates from https://translatewiki.net.

Change-Id: I204cb407cfb417961da361b4eaa84af432e2bd29

Localisation updates from https://translatewiki.net.

Change-Id: Ib3f357a76752ce2cba8642a02ec4f5373ddabe52

Localisation updates from https://translatewiki.net.

Change-Id: Iec289070ab64e2014b4c7f371926c03466258e3c

Localisation updates from https://translatewiki.net.

Change-Id: Id297a13ca02524d9db16990b6cdd282b0b52fd73

Localisation updates from https://translatewiki.net.

Change-Id: I1b86d72690b5907ef438d69cf067da6dcc1891b2

Localisation updates from https://translatewiki.net.

Change-Id: Ib4eb016b1602d94a73c5e355f0ae4a744083b0c3

Localisation updates from https://translatewiki.net.

Change-Id: I6b0398be5ec8ba5bfc71c987f80973bf2bb8afe3

Localisation updates from https://translatewiki.net.

Change-Id: Ie485a03f09f1534071d18abf64bbfa446cdee754

Localisation updates from https://translatewiki.net.

Change-Id: I2445b8fbf1b35f437d6dba99d9fe081833ab5089

Localisation updates from https://translatewiki.net.

Change-Id: If1f94c16fd20feef3403e326d58526eeb17c6a86

Localisation updates from https://translatewiki.net.

Change-Id: I74dcb97bbb16bfc6e0700ed90fcf9705f7bdecf8

Localisation updates from https://translatewiki.net.

Change-Id: I0ac3c68f796cde959629d63079d212473ad5a729

Localisation updates from https://translatewiki.net.

Change-Id: I35f1687b4f4e7030a91bdc8aba3c04bbf71f55a4

Localisation updates from https://translatewiki.net.

Change-Id: I64dfcdedea5ed345f730fe7080c8b511fe21dc49

Localisation updates from https://translatewiki.net.

Change-Id: Ib5c89c89ba2091f7784cc1c1237150ec55741fd7

MWException -> Exception

Change-Id: I18da1baeb70387b96e30811a049185a264dec26d

Update MathParser tests

In the most recent version of ubuntu14 the outputhash of the
png images for some math objects has changed.
However, the rendered images seem to look ok.

Bug: T86309
Change-Id: I52dbdefdcfa19c10f1d9d1a43369aabe8bfd92bf

Correct wrong variable name

Change-Id: Iecfa0bfa5861e077d98f7bf06af0e98cda56220b

Remove unused global

Change-Id: I8f5f77015de266f5a5b751fd7cfe424784eb3864

Update LaTeXML test

* The LaTeXML server was updated. In the new version unneccary id's
  have been removed.

Change-Id: I25927912f1500ebfe6d61505c0e06ae2c24d6f6a

Update license headers

Change-Id: Ia38926b253e53a2cef5dfab623353e1dd79ad613

Make main code input area monospaced

A monospaced font is more suitable for writing LaTeX.

Change-Id: I1a6c7bbbe3618f43808be15eab1579de8b2ad59f

Whitespace fixes

Change-Id: Id22a4bfdc1b8c4074f6d7e6f21e8dbc2824d856e

Localisation updates from https://translatewiki.net.

Change-Id: I01c4bbe241c0842027b030ee912b8e481c90f625

Localisation updates from https://translatewiki.net.

Change-Id: Ie012febb53ee642520e71f18285d5b9e4133e224

Improve Math test generation

* Use the wikitext parser and not regexp to extract math
  tags from the page.
* Extract the attributes from the math tags as well

In a follow up a pseudo attribute in the math tag could
be introduced to provide a bug description.

Change-Id: I0dec18d4e3f87e7b58b097b2a08c4897ceaf29ac

Remove unused XML namespace

Bug: T87142
Change-Id: I1c900584aeafbeb5848a3300904710ee312d6223

Add type hinting for newFromMd5 constructor

Bug: T87142
Change-Id: I2989ff42e48e802c1eed1877f0f2ac9316b5fd21

Remove duplicate entry from .gitignore

Change-Id: I78c7e9b630c6e96a2f125f20461ff9e720754ec4

MathRenderer, SpecialMathShowImage: Correct phpdoc

Change-Id: Ibce076dfb6bd3676e288cf2d762ebcb55606246d

MathMathML, MathTexvc: Improve PhpDoc

Change-Id: I84af65e15bdae81f69f0444afdd9ffa5fe9fc326

Minor clean up, optimisations and documentation corrections

* Handle-error-first approach for consistent function body
  termination at the root with the main intend, and less indention.

* __DIR__ instead of dirname( __FILE__ )

* Single quotes.

* Correct pickHost documentation: wgMathMathMLUrl is not an array,
  and is not used in this method, that's at a different level
  of abstraction (via the constructor).

* White spacing.

* require_once is not a function.

Change-Id: Id4bec8415893245e2569a39ab5406a0820238ae4

Add dependency on mediawiki.toolbar

Follows-up Ibcda91bbb164b0.

ext.math.editbutton.enabler uses mw.toolbar. The toolbar interface
used to be part of mediawiki.action.edit but is now in its own module.

Bug: T86235
Change-Id: I37a0b8e84a9bd6a0de0386d5b9924bbbbbd7249c

Localisation updates from https://translatewiki.net.

Change-Id: I14cfdb2153121a9cbcd40345398dc84d3b17518f

Fix rendering issues in MathML mode

Force display:none on a hidden MathML rendering to avoid generating
focusable node highlights.
Move adding of class to setup to ensure it persists after render.

Bug: T87007
Change-Id: I5fc21afa61ccc07e9d2126846cf29ee898182a7c

Localisation updates from https://translatewiki.net.

Change-Id: I2cfa5bae2a6864548816934483cd2276e1071865

Localisation updates from https://translatewiki.net.

Change-Id: I7eb73bd36e5cd4461647bf05166fd2fd2fcbee07

Localisation updates from https://translatewiki.net.

Change-Id: I174400c5a3dad8f6bf8d03b7c738d5068682ceb3
2015-02-08 19:45:07 +01:00
Translation updater bot d3a43b5227 Localisation updates from https://translatewiki.net.
Change-Id: Ib88edd172c107a7e4f1f6b9402987e119bb52942
2014-11-17 22:28:02 +01:00
Ed Sanders f26cf2cbbd Sort i18n messages, and fix grammar
Use singular in "VisualEditor formula editing".

Change-Id: I88e03d757c5b18615fdcc2978bb5447a01f11b61
2014-11-17 10:50:54 +00:00
Translation updater bot 6764c5ac78 Localisation updates from https://translatewiki.net.
Change-Id: Iea9e70f22f62abeb70b71b160271a5719caaf51d
2014-11-15 23:14:58 +01:00
Translation updater bot 7cf4779be3 Localisation updates from https://translatewiki.net.
Change-Id: I29a980cc5df4bc889c28f5ab797e3e8c1daf4326
2014-11-14 22:24:34 +01:00
Translation updater bot eff23768a5 Localisation updates from https://translatewiki.net.
Change-Id: Idb2c83bd7654c28065b59312508baa5e4ac848bc
2014-11-13 23:09:32 +01:00
Translation updater bot 746c858285 Localisation updates from https://translatewiki.net.
Change-Id: I610c788369758be559369d26727a3841f818dd63
2014-11-05 21:44:44 +01:00
Translation updater bot 9d51333328 Localisation updates from https://translatewiki.net.
Change-Id: I8e706c424e8d2839d391b8258c487dfc55a086b2
2014-11-04 23:29:17 +01:00
Translation updater bot 27ff45433d Localisation updates from https://translatewiki.net.
Change-Id: Ic3895aea46587d7f4f073564e15bd15ddc843cf3
2014-11-01 22:38:51 +01:00
Translation updater bot aa818c2fc8 Localisation updates from https://translatewiki.net.
Change-Id: Id754011542ebcf35f7d5de223fa3ed60dedd96ca
2014-10-31 21:45:59 +01:00
Translation updater bot 82363ffde9 Localisation updates from https://translatewiki.net.
Change-Id: Ia4e1cf85839804d6a054f8ba145659fb70bb82d8
2014-10-30 23:30:03 +01:00
Translation updater bot 5e216605bc Localisation updates from https://translatewiki.net.
Change-Id: Ief310ef37f8389acf8ab81edaffb33a77007c9a6
2014-10-29 22:06:17 +01:00
Translation updater bot 8c7d9c9fea Localisation updates from https://translatewiki.net.
Change-Id: Iaccf7bbdd70124cbcb5067ab1ea50d7546e656fe
2014-10-28 15:17:11 +01:00
Translation updater bot 19207b7182 Localisation updates from https://translatewiki.net.
Change-Id: Ia7037485336ce1d897cc9d7a58ebfe7ba8ce05f0
2014-10-27 20:14:08 +01:00
Translation updater bot 3ec998de53 Localisation updates from https://translatewiki.net.
Change-Id: I574acf58977197ea6249f1843798cbfefda78125
2014-10-26 21:09:50 +01:00
Amir E. Aharoni 51e1d2b7b9 Improve wording of preferences
Change-Id: Ieaea40b3337db885d7dc4245467f4879a8650441
2014-10-25 17:43:09 +03:00
Translation updater bot bc0db79039 Localisation updates from https://translatewiki.net.
Change-Id: Ibe19f66c953e47974935a353a3a188e61d508919
2014-10-23 23:25:07 +02:00
Translation updater bot 586befcd20 Localisation updates from https://translatewiki.net.
Change-Id: I64fdcd4b610d58bfb9451246fc5835e9746c6f14
2014-10-21 23:01:08 +02:00
Translation updater bot 12450117ae Localisation updates from https://translatewiki.net.
Change-Id: Id9aca0e554e88d12047f608c117615b4f872ba2f
2014-10-20 22:26:08 +02:00
Translation updater bot 22ab9302a8 Localisation updates from https://translatewiki.net.
Change-Id: Iae95112256911401de6c3d5b5c2823e35514732f
2014-10-19 22:07:51 +02:00
Translation updater bot 2ebf1bd8f7 Localisation updates from https://translatewiki.net.
Change-Id: I3069bb1c16d852620fe8e824d96835a9fbedb751
2014-10-17 21:16:04 +02:00
Translation updater bot 014c11d1bb Localisation updates from https://translatewiki.net.
Change-Id: I4f11e42c14711cf05a99ef10edc5641ec963fc86
2014-10-16 23:05:02 +02:00
Translation updater bot d1a69594c2 Localisation updates from https://translatewiki.net.
Change-Id: I2ee4fea9163cfcdbe9491db402e08abb7b75fbae
2014-10-15 22:06:58 +02:00
Translation updater bot d3e21a1044 Localisation updates from https://translatewiki.net.
Change-Id: Idfb438a17ff33fb6255b77e4144610ca95221d0e
2014-10-14 23:01:41 +02:00
Translation updater bot be90a7f4dc Localisation updates from https://translatewiki.net.
Change-Id: I0450d88fd0c79263821297f16763c116d1bdb623
2014-10-13 21:53:44 +02:00
Gabriel Wicke c61b8becac Use radio buttons only for math mode selection
While the combination of all redering modes, might
be useful for some power users it will confuse the
average user and makes bug reporting harder.

Therefore, source rendering on the server side is
used when MathJax is enabled on the client side.

Change-Id: I05a20d7c2298115dbf0429db6c107e8132cc15ff
2014-10-13 09:42:37 +02: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
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
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
Translation updater bot 20e86c0924 Localisation updates from https://translatewiki.net.
Change-Id: I0866f9ce618ea78f9cc6e01f90b43981142b0d94
2014-09-08 21:35:45 +02: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
Translation updater bot 3a37b9c63f Localisation updates from https://translatewiki.net.
Change-Id: I3ada6896b720b4220d9d585ab5a47e4656c069ec
2014-08-29 21:20:24 +02:00
Translation updater bot 84829af1eb Localisation updates from https://translatewiki.net.
Change-Id: Ia2f73dd62de33acb7235e2de93f3ea457dfd9d7e
2014-08-28 22:29:42 +02: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
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
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