Commit graph

2700 commits

Author SHA1 Message Date
Stegmujo dbf15a72c6 Fix parsing functions for MMLGenerationTexVCUtilTest
* for "oint","ointctrclockwise", "varointclockwise."
* some ignored attributes added to similarity algorithm

Bug: T327392
Change-Id: Id4cf720bb2d2c8aeb524c2303bdf0d4be3547404
2023-02-08 14:30:46 +00:00
Stegmujo 5eba9b74a0
Optimize Test Parametrization
* For MMLGenTexVCUtilTest and the MMLComparator
* Also skip some inputs which are not supported

Bug: T327392
Change-Id: Ifac913e2b8e4c70c7222f769c0e7cf93e65de5b8
2023-02-06 17:13:38 +01:00
Stegmujo be8725c1d2
Add New TexUtil-Reference which also has Chem
* Update maintanance script with Chem-Fallback
* delete obsolete MML Lookup (was from mathjax-full)
* TexUtil-Ref is created without chem fallback

Bug: T327388
Change-Id: Id603d66feccf3716828c2aac57acac7d23131ddf
2023-02-06 16:30:25 +01:00
Stegmujo 17d9ade3f2 Insert MathML-Comparator features in MathML-Tests
Bug: T327393
Change-Id: I1d781587cf62d034493a06a4a9640d0dd14c8386
2023-02-03 14:58:52 +00:00
Stegmujo a1cddd7e0d Add MathML-Comparator algorithm for the automated tests
* Compares two MathML trees
* Calculates F-Score and Diffs

Bug: T885309
Change-Id: Iabdb5b12054e4c1ce6e2c756643bafd371da6fb0
2023-02-03 10:24:17 +00:00
Translation updater bot 095cec57c3 Localisation updates from https://translatewiki.net.
Change-Id: Ib5cd14c88de359ce5e9a25fb8d67874a84aa43e3
2023-02-01 09:18:20 +01:00
jenkins-bot ee1effd363 Merge "New lookups for tests enabling reference MathML" 2023-01-27 21:34:00 +00:00
jenkins-bot 7bcb1ba451 Merge "Add script to export json with Mathoid/latexml-MML reference" 2023-01-27 21:32:36 +00:00
Stegmujo 8d522c4022 New lookups for tests enabling reference MathML
* For the existing MMLGeneration...Tests, reference MathML has been generated
for mathoid and latexml within reference files in json.
* The creation of json files was done with JsonToMathML script
* The test-classes have been adapted a bit, so they can read the new reference files.
* MMLGenerationTexUtil test has export function for input
for maintenance-script for

Bug: T327388
Change-Id: I05a8c7bb5e37cf75faf09ec43e9ce2acc7bf2040
2023-01-27 20:52:10 +00:00
Stegmujo 5ea78bc306
Add script to export json with Mathoid/latexml-MML reference
Bug: T327388
Change-Id: I647f586b4710faccd6bab31be7bab5e6fa1056d4
2023-01-27 21:51:18 +01:00
Translation updater bot dc5cd77121 Localisation updates from https://translatewiki.net.
Change-Id: I78bf4374eeaef839f3d8cffd9c64c4a6ceb2f509
2023-01-27 08:36:33 +01:00
jenkins-bot 93cc7daa4a Merge "Add Full-Coverage Test TexVC-MMLGeneration for Mathoid-LateXML" 2023-01-26 12:31:10 +00:00
Stegmujo ada1d6e3db
Add Full-Coverage Test TexVC-MMLGeneration for Mathoid-LateXML
* Implemented multiple-column generation for the HTML-Generator
* Items can be skipped in test by defining index

Bug: T327386
Change-Id: I13148d58246ddcc1f2e6dcd14fa5b4255a1fb8e7
2023-01-26 13:12:19 +01:00
Translation updater bot 6bd41043c2 Localisation updates from https://translatewiki.net.
Change-Id: I9ddd77955b4752b3d7e6a1662c9174726ffe3c6c
2023-01-24 08:49:07 +01:00
Translation updater bot 8f8dfde1f4 Localisation updates from https://translatewiki.net.
Change-Id: I1d4030078a9a5154baf97ad26c03638b4500fc59
2023-01-23 08:23:28 +01:00
Translation updater bot 8ca418578c Localisation updates from https://translatewiki.net.
Change-Id: Ida76d53c7b3c081709ff2b28269c98a1d77a0a40
2023-01-17 08:07:51 +01:00
Translation updater bot 800700b304 Localisation updates from https://translatewiki.net.
Change-Id: Icf13746abc8f5b1ef99f4746d17992f79ab232e3
2023-01-16 08:28:47 +01:00
Vaughn Walters a95a7b6bc2 selenium: Remove webdriverio npm package from the Math extension
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: I772e7680ba1235e896651fa15b25cd8bc976bde1
2023-01-13 11:51:48 -06:00
Translation updater bot 1c4e3fd6ca Localisation updates from https://translatewiki.net.
Change-Id: Ifb2b0cdecf8596dcd9b8fd995e66cd255683076e
2023-01-09 09:27:36 +01:00
Translation updater bot 46284be392 Localisation updates from https://translatewiki.net.
Change-Id: I36767fc885b2fce48b1d1d30ffefdc7ee9f0af4a
2023-01-06 08:55:29 +01:00
jenkins-bot 347dcbd3fe Merge "Fix significant typo in grammar" 2023-01-03 16:02:27 +00:00
jenkins-bot 6153004078 Merge "Improve security of MathML output" 2023-01-03 15:28:24 +00:00
Moritz Schubotz (physikerwelt) 7b425a5500
Improve security of MathML output
Avoid that user input is passed to the HTML output directly by using
HTML methods for tag generation. This also enables additional phan checks.

Change-Id: Iff584ac829c190e413a36331c53d6835a86bc0d5
2023-01-03 15:47:54 +01:00
Moritz Schubotz (physikerwelt) 0aecf2ab10
Expand texvcjs comparison test
* Currently the regression test only tests if all formulae that passed the test before still pass the test

* This change also compares the output

Change-Id: Ib667de2e7e512cf7d045e28a19c6a5f7d994dfc6
2022-12-30 19:53:31 +01:00
Moritz Schubotz (physikerwelt) 81fa5b0c97
Fix significant typo in grammar
* Uq and Dq was mixed
* Simplify regeneration of grammar for node developers
* Speed up npm test by ignoring local test json files

Change-Id: Iec273dcc967be46d3df52260fc56f1969667e497
2022-12-30 16:58:39 +01:00
jenkins-bot efc93cb5e9 Merge "Refactor LocalChecker" 2022-12-29 22:10:06 +00:00
jenkins-bot 72b571a7d6 Merge "Fix HTML testtable generation" 2022-12-29 21:53:03 +00:00
Moritz Schubotz (physikerwelt) 96c636e243
Refactor LocalChecker
* Do not throw arbitrary exception in constructor
* Remove custom fields

Change-Id: Ibb49f6a5e66649bab8b605e8785a868b74dbd7d0
2022-12-29 22:51:34 +01:00
Moritz Schubotz (physikerwelt) e4affc08ec
Fix HTML testtable generation
* Do not generate a new table for every case

Change-Id: I0352a30e66fc7c43ac18e5a09b5794bc50a9b98c
2022-12-29 11:03:29 +01:00
Translation updater bot 6f8369c7dd Localisation updates from https://translatewiki.net.
Change-Id: I01f7723fa82b07561b6ec8f1a2e80a432c801036
2022-12-29 10:01:54 +01:00
jenkins-bot 5ad3a47d0d Merge "Improve test coverage for nodes" 2022-12-28 20:45:52 +00:00
jenkins-bot 98aeec1201 Merge "Add tests for more TeX statements" 2022-12-28 19:40:11 +00:00
Moritz Schubotz (physikerwelt) b9e297c4ec Improve test coverage for nodes
* Use merror instead of plain strings for not implemented functions

Change-Id: If20559e05f3b0c8921a28c623102b8f4788a3c94
2022-12-28 19:18:21 +00:00
jenkins-bot 1a30bbe04f Merge "Add commandline script for texvc" 2022-12-28 18:59:37 +00:00
Moritz Schubotz (physikerwelt) 52442e0ef1
Add commandline script for texvc
Change-Id: If817216fc804a14ce1f2f8dea5b15adde722a39e
2022-12-28 14:22:29 +01:00
Moritz Schubotz (physikerwelt) 469c698e47
Improve checking performance
* Report only on used packages if requested

Change-Id: I5b4fc6d7e571206f5b5d41d3bf268251ed1a8677
2022-12-28 13:34:23 +01:00
Stegmujo 6581889158
Add tests for more TeX statements
* These can be used for development purposes

Bug: T302628
Change-Id: I620b0a44b30b88a68f8f806b9c20ddabfe227573
2022-12-28 11:34:45 +01:00
jenkins-bot 00e7d44ec6 Merge "Use named data sets in AllTest" 2022-12-28 09:30:57 +00:00
Moritz Schubotz (physikerwelt) b0cacbc1a6
Use named data sets in AllTest
Change-Id: Ia8ceb06f2d2ec5a4f5935fb0d4b6e95e466ce002
2022-12-28 09:46:19 +01:00
Moritz Schubotz (physikerwelt) 70acbd7ea4
Fix missing curlies in chem nodes
* the php implementation had fewer curlies compared to the
  js implmenetation

* remove unused function name (could be replace get_class)

* Add testcase for declh

Change-Id: I8132604a659d7ddf98e1f73686b40ff0591229f3
2022-12-28 00:56:47 +01:00
Translation updater bot ff496f0de3 Localisation updates from https://translatewiki.net.
Change-Id: I6d8f535325268c23f93173c40200896ef9880994
2022-12-26 09:10:22 +01:00
Stegmujo 783797bb9a
Add test for basic MML Methods
Bug: T302628
Change-Id: Ib3d781a516e53392fb09a2c70b322805dcb43fcf
2022-12-23 22:46:59 +01:00
Stegmujo f8e25f5dce
Update visitor functions and add parsing methods (MMLGen)
Bug: T302628

Change-Id: I5374a831cf74a6eb3bf3165abe3ad0661ec07f5f
2022-12-23 20:02:00 +01:00
Stegmujo a692599224 Add mappings for MMLGen
Bug: T302628

Change-Id: I839b77d805820262bb96fea801f1f2c3f52b53d5
2022-12-23 15:29:33 +00:00
jenkins-bot 5db9b573f3 Merge "Update namespace references in MMLNodes" 2022-12-23 15:16:25 +00:00
Stegmujo bdcd599e97 Update namespace references in MMLNodes
* this is necessary for phan to have corresponding namespaces to project structure

Bug: T302628

Change-Id: Ic485136990698828c04739db48f69658264bfd25
2022-12-23 14:54:00 +00:00
Stegmujo c124f1ec26 Add utility classes for generating MathML
Bug: T302628

Change-Id: I90f0470a14f0adeaef94b90833b4bbc32a758a32
2022-12-23 14:42:18 +00:00
Stegmujo d3da9f2ce1
Add updated TexConstants and Lengths
* mostly this solves dependency references

Bug: T302628
Change-Id: Idee807304e283def14ea0eb00762793a8e52ae7e
2022-12-23 11:06:34 +01:00
Translation updater bot 4366d27660 Localisation updates from https://translatewiki.net.
Change-Id: I87bb201f6c5a1bd50e3cf3fab504414170372d86
2022-12-23 09:07:12 +01:00
jenkins-bot 3c6ad74002 Merge "Add MML nodes and basic constants for MML generation" 2022-12-21 12:48:24 +00:00