Commit graph

2907 commits

Author SHA1 Message Date
Bartosz Dziewoński 9207931f53 Simplify VE data modules using 'packageFiles'
We can now serve the JSON data almost directly (although, curiously,
we need a main file in the module that is JavaScript, not JSON),
and without using global state in the JS code.

Change-Id: I203b3e396b28f4b4ef49c3c0918a4025082308c4
2022-11-22 18:43:04 +01:00
jenkins-bot e3d54827cf Merge "Make use of ?: and ?? shortcut syntax where it makes sense" 2022-11-22 12:19:30 +00:00
thiemowmde 67906845ff Make use of ?: and ?? shortcut syntax where it makes sense
I hope this makes the code more readable.

Change-Id: Ie458551d26cd8c8cd6e1cc18789d93176230f0d4
2022-11-22 12:29:44 +01:00
Stegmujo 1b241d4aeb Change validate in MathValidator to php-based checking
Bug: T323554
Change-Id: I8e900e03794bf4eda0ff27381c2c8078234a0b2d
2022-11-22 11:17:20 +00:00
Translation updater bot 223b945b5d Localisation updates from https://translatewiki.net.
Change-Id: I62671b61d03d6b6735ff671c2db49453997acdf8
2022-11-22 08:34:03 +01:00
Moritz Schubotz (physikerwelt) 110656335f Remove PNG rendering mode
Removes functionality to
* select PNG rendering mode
* automated fallback to PNG images for SVG rendering
* PNG mode related class and tests

However, PNG images received from mathoid / restbase are still stored.

Bug: T311620
Change-Id: I595926027433182cc0396570bc3f1ce0cd2cafb3
2022-11-21 18:57:27 +00:00
Stegmujo db40ad2ac3 Add Service Initialization in Render
Bug: T312528

Change-Id: I88db7691cf7ac0a66d130b5472b41355a6c4abc2
2022-11-21 11:40:43 +00:00
jenkins-bot 4b6137bed4 Merge "Avoid try…catch where if…else will do when using LanguageFactory" 2022-11-21 08:57:13 +00:00
Bartosz Dziewoński 1b7a46ff4f Avoid try…catch where if…else will do when using LanguageFactory
Needed for I869af06896b9757af18488b916211c5a41a8c563, where I am
trying to change LanguageFactory in MediaWiki core not to use
MWException.

I truly feel mocked after working with this code. See if you can find
the two lines in this diff where the meaningful changes are.

Change-Id: Ifcb31dbb7113ce57526f06558cde2abedee317d7
2022-11-18 21:08:24 +01:00
Translation updater bot 7a65053816 Localisation updates from https://translatewiki.net.
Change-Id: I8cd8de308c84a3a8a2b64e49ffd5a3cb1d40a254
2022-11-17 08:27:23 +01:00
libraryupgrader 6d70e134b8 build: Updating grunt-stylelint to 0.18.0
Change-Id: I6dc890fdbcc30116c39cc4bf4130b7aa9457b1ae
2022-11-13 06:02:16 +00:00
d.savuljesku ef32effe35 Fix calling array function on stdClass
Bug: T322634
Change-Id: I8c7c7004128da9de6f266ebca43b9aa78802a2de
2022-11-08 14:59:03 +01:00
Translation updater bot e0e2d6da23 Localisation updates from https://translatewiki.net.
Change-Id: I274d82d84cc74979a6f85eccd0f27deffe787f18
2022-11-07 08:34:45 +01:00
Reedy 6081e9b01a DeclhTest: Fix string interpolation
Bug: T314096
Change-Id: I1c2a11c1481ca7d8e91e9c0468600ace9038e333
2022-11-04 18:08:02 -06:00
Translation updater bot 7b90132b49 Localisation updates from https://translatewiki.net.
Change-Id: I8e3b1426f1189228c20b3ba2c8949b71dabfc998
2022-11-04 09:03:15 +01:00
Translation updater bot 66e3b942d4 Localisation updates from https://translatewiki.net.
Change-Id: If54846e2a07cc46ab89ca6bfd2c8c62ff435c2a6
2022-11-03 08:24:56 +01:00
Translation updater bot 9e4de8215b Localisation updates from https://translatewiki.net.
Change-Id: I283b2bfc628beb9528aade8269c8bda5b069515d
2022-11-01 08:53:23 +01:00
Translation updater bot ff4ad7fff1 Localisation updates from https://translatewiki.net.
Change-Id: I1790ea47f382422a7e37054f057b904c66366da8
2022-10-31 09:46:08 +01:00
Translation updater bot 3486cc7181 Localisation updates from https://translatewiki.net.
Change-Id: I84d809c4d6b1890523d5b00d834b1fe09f2cf2b6
2022-10-26 08:19:35 +02:00
jenkins-bot 3dcdbbd95b Merge "Fix Perfomance Issues of TexUtil" 2022-10-25 18:10:09 +00:00
jenkins-bot ded8f70772 Merge "Activate chem and inline-tex type input in LocalChecker" 2022-10-25 17:50:31 +00:00
Stegmujo b5d3bca4b4 Fix Perfomance Issues of TexUtil
TexUtil gets instanciated and loads a json for each node in Literal and Fun1. This is not necessary since it takes much RAM and time to load the corresponding JSON from files.

Bug: T321599

Change-Id: I91855ebc4437f075302ae13d367ca4902cc0f3ba
2022-10-25 17:44:02 +00:00
Stegmujo c74ced3716
Activate chem and inline-tex type input in LocalChecker
Bug: T321262

Change-Id: Ib8e55290cc77cdc07274e7f1dbd27d20db0f3227
2022-10-25 18:35:54 +02:00
jenkins-bot 8ef681c6be Merge "Fixing Parser for All Wiki and Chem Tests" 2022-10-25 15:43:08 +00:00
Stegmujo d2bd2f4554
Add Tests and Downloader for Chem Input Types
Bug: T321262

Change-Id: I4e0af8ab0eaa02829dffb7ff5fccc4564ed5c1ba
2022-10-25 16:55:58 +02:00
Stegmujo caf3a1e26b
Add All Wikipedia Tests and Fixes
These tests are skipped in CI, but are ran locally.
Contains also preliminary fixes to make the assertions not crash
locally and a shellscript for downloading the json-file with tests locally.

Bug: T315223

Change-Id: If5da7e2a29d9179eabecbb4707ed244f5d445d39
2022-10-25 15:32:53 +02:00
Stegmujo 2d56f19e3c Fixing Parser for All Wiki and Chem Tests
This is required to run these tests.

Change-Id: I9e12b2f4cf6dc7d96cd51f408d8aa8d71b224ab3
2022-10-25 12:06:58 +00:00
Translation updater bot 551bc174c9 Localisation updates from https://translatewiki.net.
Change-Id: I3f4808d94e1d2067b397de8f8e49106458ca393a
2022-10-24 08:23:10 +02:00
Stegmujo c27f7edef9 Add Integration for the TexVC-PHP check to Math
Bug: T312528

Change-Id: I0eda7d4213a5f703ab7ae7887aa364af9e576dbe
2022-10-20 16:39:19 +00:00
Stegmujo 8333e2541a Create Tests for Parser and TexVC
Parser.php is excluded from linting steps.

Bug: T312528

Change-Id: I372832bb9ea212f9bc06947d0ef192f270dc54c2
2022-10-19 17:25:20 +00:00
Stegmujo ba47c32e1d
Add Node and Util fixes for Parser.php
For development history of this changeset see:
Id96a4b1b55e3959aab81f4ba436c5ac125f2a1bb

Bug: T312528

Change-Id: I61cfdbd63f8d50b072ada05927a134686fdd53d3
2022-10-19 16:33:15 +02:00
Translation updater bot 49b5c36cfe Localisation updates from https://translatewiki.net.
Change-Id: I1f7e56481c18aa0578dc7d3de4c70343e938086b
2022-10-19 08:20:17 +02:00
Stegmujo e091c77593 Add TexVC with Check functionality
Bug: T312528

Change-Id: Ib66a4603e3c1869d5c197b72b46b098d0df15e34
2022-10-18 17:57:19 +00:00
jenkins-bot 740c07e869 Merge "Add Grammar and Parser Functionalities" 2022-10-18 14:35:59 +00:00
Stegmujo ad701733ec Add Grammar and Parser Functionalities
For development history of this changeset see:
Id96a4b1b55e3959aab81f4ba436c5ac125f2a1bb

Bug: T312528

Change-Id: I0e64a3fc4b4556bc4ea6271bd6b778ed2930ab1a
2022-10-18 14:16:45 +00:00
Stegmujo d4b9edc87e Add Builder for creating Parser.php
This is the first commit in a series of commits that convert texvcjs to PHP (called TexVC-PHP).
Please refer to the Gerrit history of this commit, which includes early versions of a full TexVC-PHP grammar, tests, and related files.

Bug: T312528
Change-Id: Id96a4b1b55e3959aab81f4ba436c5ac125f2a1bb
2022-10-18 13:39:10 +00:00
Translation updater bot 1469c6a8ac Localisation updates from https://translatewiki.net.
Change-Id: I528e5e33d820ee526b244d858fb14ad0d3e8c144
2022-10-10 10:20:32 +02:00
libraryupgrader 049deca5d7 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: I8b7a32686e4ead725539c449a58d58c86e58783c
2022-10-09 12:08:11 +00:00
libraryupgrader c82e9291d3 build: Updating npm dependencies
* grunt-banana-checker: 0.9.0 → 0.10.0
* api-testing: ^1.4.2 → 1.5.0
* grunt: 1.5.2 → 1.5.3

Change-Id: I3939631b1cc2423625ce2dadda0b396bb1e6d748
2022-10-07 00:10:44 +00:00
Translation updater bot 4818177f27 Localisation updates from https://translatewiki.net.
Change-Id: Ic7aca03f7af4ebe89a4f8487dd9c2ab8147c361e
2022-10-03 09:46:00 +02:00
jenkins-bot 4fde31757c Merge "Improve use of gadgets for LatexDialog" 2022-09-30 17:29:05 +00:00
Fwolz 409cc54217 Improve use of gadgets for LatexDialog
Add a mw.hook to enable gadget for T316816 reacting on opening the LatexDialog and
assign classes to ooui components to enable browser-JS manipulation.

Change-Id: Ib004c3e8b0926a0bd5febfaf4910bb4d9ed6bc58
2022-09-30 18:47:23 +02:00
Translation updater bot ac17e8a14a Localisation updates from https://translatewiki.net.
Change-Id: Id84cd0ac53e3ba9ef4bbca02f24f99c75aab826b
2022-09-30 08:54:21 +02:00
Translation updater bot 788dc4ab35 Localisation updates from https://translatewiki.net.
Change-Id: I2b04f1acda65b610ee48ae816049b08b6892b6c4
2022-09-28 08:22:03 +02:00
Translation updater bot 8c2b03fdc5 Localisation updates from https://translatewiki.net.
Change-Id: I708f162b948695eb660ed1b60735e6247a576361
2022-09-27 08:32:25 +02:00
Translation updater bot ea5e5a8a8a Localisation updates from https://translatewiki.net.
Change-Id: Ib620d3a1577eb5f6b1d0210d16740e896fb6207b
2022-09-26 08:15:42 +02:00
Translation updater bot 5ee263d9fd Localisation updates from https://translatewiki.net.
Change-Id: Ic4eb6f9d255418cc7b1ed7320beabc34efb63ecb
2022-09-23 08:29:33 +02:00
Translation updater bot b087767471 Localisation updates from https://translatewiki.net.
Change-Id: I4f6a67758663f2ded3ed289a8ef3827d23d60d44
2022-09-15 09:55:14 +02:00
Translation updater bot 405d81ee7c Localisation updates from https://translatewiki.net.
Change-Id: Idcec9eac265e2cb0063302c940160bb54006306a
2022-09-08 09:59:32 +02:00
Ed Sanders fe5b350c89 Add \neg to "Logic" section
Bug: T317065
Change-Id: I261768fdddebcf0dd8776b69286edd1b541f0c5b
2022-09-07 00:40:01 +01:00