Commit graph

3065 commits

Author SHA1 Message Date
jenkins-bot 188d13ca64 Merge "Squash literals in operatornames" 2024-10-16 12:18:09 +00:00
Željko Filipin 97126ba46f selenium: Replace Node.js Assert library with WebdriverIO Expect library
Assertions from Expect library are more readable that assertions from Assert library.

Bug: T325740
Change-Id: I62ccf128e21eb49cbdc97546c643887105bf2c64
2024-10-16 14:11:24 +02:00
jenkins-bot 3c4141423e Merge "Add missing apply after operatorname" 2024-10-16 11:32:32 +00:00
jenkins-bot b236403991 Merge "Use the same formatting for align as MathJax" 2024-10-16 08:56:42 +00:00
physikerwelt 87632766e0 Squash literals in operatornames
Chains of single letter mi elements are rendered with no
space but one mi element with multiple letters gets
space. For example, the operator log will be translated
to <mi>log</mi> rather than <mi>l</mi><mi>o</mi><mi>g</mi>
as done by wikitexvc.

* Squash literals into single element, iff they don't
contain commands

Following the implementation of the literal rendering
it seems that all literals with special behaviour have
a command.

Bug: T375861
Change-Id: I97adf5f5132180503cbeb59d32fdb8d45b08aaa7
2024-10-14 16:02:17 +00:00
physikerwelt 9a27d92c09 Add missing apply after operatorname
* Reapply the logic of \log rendering to \operatorname
* Deduplicate applyFunctionDetection

Note this still does not solve the rendering problem for
operator names with more than one letter as these generate
mrow elements with single letters. Those are not rendered
with space in FF.

Bug: T375861
Change-Id: I913d865b49d5894a63c8b9d244768f9bb1df4e28
2024-10-14 16:01:56 +00:00
physikerwelt 87f0315812
Use the same formatting for align as MathJax
* Copy the default mtable attributes from MathJax
* Adjust the test

Bug: T348791
Bug: T375317
Change-Id: I274577e320056c1ac3a1f74cbc61941184afd61e
2024-10-14 17:59:19 +02:00
physikerwelt ec44827976
Use munder instead of msub for large operators
* Add new class to identify what a (large) operator is
* Add some IDE hints about what methods exist in texutil
* Add tests for operators in display and block style

Bug: T375907
Change-Id: If734f194cd8fa30efaf6d8c8d89f85e3e1c96276
2024-10-13 21:13:56 +02:00
physikerwelt 602043027d
Implement basic column info parsing
* For each letter l c or r that is found in the
  column spec the respective mtable alignment
  information is passed
* if the align information is given externally
  the info will still be ignored

Bug: T376838
Change-Id: I3113f933502df2109b066959e4d001736dbae6e6
2024-10-13 00:55:57 +02:00
Translation updater bot 9321d6ffc7
Localisation updates from https://translatewiki.net.
Change-Id: Ie8ac1996868b8d94edf063686e0a3fb8c6cdd5e7
2024-10-08 09:43:50 +02:00
jenkins-bot 65f3e1bc95 Merge "Add \| to list of special operators" 2024-10-07 12:09:14 +00:00
jenkins-bot 73e1f3d229 Merge "Change appearance for \mathcal A in MathJax" 2024-10-07 12:09:12 +00:00
jenkins-bot 3f0692a9b9 Merge "Only use Munderover for displaystyle formulae" 2024-10-07 10:29:14 +00:00
physikerwelt fec6d16b14 Change appearance for \mathcal A in MathJax
Change the appearance of \mathcal A and similar letters
in MathJax rendering to better match the MathML rendering
as implemented by browsers.

Code generously developed by Davide P. Cervone.

Bug: T375932
Change-Id: Ieee933b9863c2747559769065da6b5369d304f53
2024-10-07 10:28:52 +00:00
jenkins-bot c53b191756 Merge "Improve parsing of \big et al." 2024-10-07 10:23:47 +00:00
Translation updater bot 2e3d86ee4d
Localisation updates from https://translatewiki.net.
Change-Id: I059aa3b35d4bddadb2bc1b9dca9bc9443ff840f1
2024-10-07 09:26:14 +02:00
physikerwelt ca10252923
Add \| to list of special operators
Bug: T376546
Change-Id: Ibf57c995c2381fea095600c31ce6432a1e8fd4fd
2024-10-05 23:00:34 +02:00
physikerwelt 1872a19a78
Improve parsing of \big et al.
Add stretchy=true to more constructs after consolidating
the W3C MathWG

https://github.com/w3c/mathml-core/issues/261

Bug: T375960
Change-Id: Ie472d5a3be2dda8b4c50b0c5d091d735577e11d9
2024-10-02 00:15:36 +02:00
physikerwelt 2e10b67773
Only use Munderover for displaystyle formulae
Use msubsup for inline formulae.

Bug: T375349
Change-Id: I8a33d63b79893bfe054cfca2213d7c4091658803
2024-10-01 22:27:51 +02:00
Translation updater bot cebab4fc89
Localisation updates from https://translatewiki.net.
Change-Id: I202acac3d1b207f0618a4ac04d62686a101f2137
2024-10-01 09:37:55 +02:00
Translation updater bot fffacc1bbe
Localisation updates from https://translatewiki.net.
Change-Id: I54f37f3bde27467ff759b366df8da73929c30b89
2024-09-30 09:21:26 +02:00
physikerwelt 0e9d89b03c
Fix: Add missing latex length units
Reorder according to
http://latexref.xyz/Units-of-length.html

Bug: T375295
Change-Id: Iab54bcd3f91e0e473c34869418a1e587c2518c0c
2024-09-27 14:00:44 +02:00
jenkins-bot a35b1bf38b Merge "Workaround for WebKit XSLT issue" 2024-09-25 09:28:29 +00:00
physikerwelt 3249a59141 Workaround for WebKit XSLT issue
Use workaround from MathJax to handle problem
 with the XSLT parser in WebKit (and Blink).

Upstream Bug: https://github.com/mathjax/MathJax/issues/3030

This workaround will be included in the MathJax
 4 release and no longer be required when we
 upgrade to MathJax 4.

Bug: T375241
Change-Id: I9ebc1062093a3b56dbf0478e23d8c0064a57fafb
2024-09-22 19:46:25 +00:00
physikerwelt ff1536d1f9
Ignore length specifications after linebreaks
In LaTeX line breaks in matrix elements
have an optional argument that controls
the vertical spacing between the current
and the next line. For example,

{\begin{aligned}a\\[6pt] b\end{aligned}}

generates a 6pt space.

This was never implemented and ignored by
mathoid.
The native MathML implementation is unaware
of the optional argument and just prints it
to the next line.

* This commit ignores the input on the grammar
side.

Bug: T375295
Change-Id: I08996129beca9ad852d23f28d7136c982707aea1
2024-09-22 20:22:52 +02:00
jenkins-bot 5489d8d693 Merge "Simplify parsing of mediawiki_function_names" 2024-09-22 12:56:15 +00:00
physikerwelt 051ab0a6f5
Fix: Use align information in matrix constructs
Pass the align information was given in the function call.

Bug: T375317
Change-Id: Ic187c2f95ad0c98724016e6eda10a1e7c9ff4888
2024-09-22 00:04:46 +02:00
physikerwelt c9f7d9131f
Simplify parsing of mediawiki_function_names
Just convert mediawiki_function_names to the respective \operatorname construct.

Bug: T375274
Change-Id: Ie374524dbdf6a753063172fb88e6f60e91b9212e
2024-09-21 00:57:23 +02:00
physikerwelt db81c96062
Fix heuristic that adds bold-italic
As indicated in the comment the code intents
to add "additional italic mathvariant
when bold already". However, effectively it
always added an additional -italic when
any mathvariant was given.

* Only add '-italic' if mathvariant is 'bold'

Bug: T375244
Change-Id: Iafb375753a98ff41c3d076819288345a9e2efb0c
2024-09-20 08:59:27 +02:00
Umherirrender ebecba2ab9 Pass function name to HttpRequestFactory::create
Change-Id: Ic8e7aa35aea9164b4a9ae44549550d49b062361e
2024-09-19 23:20:16 +02:00
Umherirrender 9a0dccd41f specials: Get global via IContextSource::getConfig
Change-Id: I8fd45a5bf8f17e3025a80dc899a80375d7624ae8
2024-09-17 22:07:39 +02:00
jenkins-bot 3652e8697e Merge "Make native MathML rendering default" 2024-09-17 10:46:54 +00:00
physikerwelt 8cce9d88c1
Make native MathML rendering default
* Add native to default valid modes.
* Remove old Mathoid mode from the default valid modes.
* Set native as the default choice, replacing Mathoid.
* Adjust fallback mechanism.

Bug: T373705
Change-Id: Ie6412623577e3f954c1302417d1b1b667f88863e
2024-09-17 11:21:03 +02:00
Translation updater bot f42c424d46
Localisation updates from https://translatewiki.net.
Change-Id: I70dac4d95ca527757b494b8c76636d570290a6cc
2024-09-16 09:27:14 +02:00
Translation updater bot de9c3f05d9
Localisation updates from https://translatewiki.net.
Change-Id: I9eea6ac552e5a67b6385a528942bf7c7f10c243c
2024-09-09 09:22:45 +02:00
Translation updater bot fec77a981f
Localisation updates from https://translatewiki.net.
Change-Id: Ic565a5ad37cf5a49a709219a80a60d8a058ce409
2024-09-02 09:21:03 +02:00
jenkins-bot 35cccd5528 Merge "Make use of actual @dataProviders in tests" 2024-09-02 06:58:13 +00:00
jenkins-bot 8fb503be7d Merge "Add missing documentation to class properties" 2024-09-02 06:58:12 +00:00
thiemowmde cd4ce78d31 Make use of actual @dataProviders in tests
Instead of manually crafted $this->testCase properties.

Also make use of the dedicated PHPUnit feature to mark as test as
passed. While assertTrue( true ) is a very common hack it can be
confusing.

Change-Id: Ic071bf561929c2a79537111bee18631865f91366
2024-08-31 11:49:04 +00:00
Umherirrender 419ce56d27 Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation and to remove the exclusion of the
sniff.
The activated sniff avoids that new code is missing doc-typehints or
real-typehints.

Change-Id: Id7fcfd086cdbb3f040091e1d1a81472e7a524091
2024-08-31 11:48:46 +00:00
Željko Filipin d35c815517 selenium: Delete unneeded @wdio/dot-reporter npm package
As far as I can see, the package was introduced by mistake in 951dec1.

CI works just fine when the package is removed.

Bug: T280331
Change-Id: I17330cb7786df0739a18c482360a56d733a67f41
2024-08-30 17:43:47 +02:00
jenkins-bot 7574e7acc0 Merge "tests: Remove unused class properties from AllText" 2024-08-28 10:14:13 +00:00
Translation updater bot 1d749ccf09
Localisation updates from https://translatewiki.net.
Change-Id: I70668e5169b4ea074f118e47d49780fa07900541
2024-08-28 09:39:02 +02:00
physikerwelt 89e45815e8
Fix selenium tests
Update test to find MathML element instead of image.

This is required since the default in labs in now MathML.

Bug: T372872
Change-Id: I4e9500effaca9cef704f06ec003a0e01bdcfb3f1
2024-08-27 13:28:46 +02:00
Translation updater bot 22c58675be
Localisation updates from https://translatewiki.net.
Change-Id: Icad04307597ebba1f7d8ad70aeadae948e7289ef
2024-08-27 09:48:07 +02:00
Umherirrender 3e37c4e5a0 tests: Remove unused class properties from AllText
Change-Id: Id1864671a653777d6957593eddf65398eaad183b
2024-08-25 14:19:37 +02:00
libraryupgrader e09a1672f0 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I1c0cef6e3e954b003c95ce3b94481f4f6cb75ed6
2024-08-25 05:08:50 +00:00
Translation updater bot f2ab79f5ef
Localisation updates from https://translatewiki.net.
Change-Id: I481676fd314fb16e1d61af11d12105f02efc72e9
2024-08-23 09:46:30 +02:00
James D. Forrester 8e5a74e876 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Iddc3516611d4cb3517ed5f386662883e55fcfb68
2024-08-22 17:40:54 -04:00
Translation updater bot fc66f84faf
Localisation updates from https://translatewiki.net.
Change-Id: I1702bccdf952ba693894118c15cfa81e568a24ec
2024-08-19 09:23:58 +02:00