Commit graph

2947 commits

Author SHA1 Message Date
Translation updater bot 549ed5806b
Localisation updates from https://translatewiki.net.
Change-Id: Id0bc4282652936e0fadddc0d21d0b0451fa26a2b
2024-07-15 09:24:20 +02:00
Translation updater bot 70dbf0636b
Localisation updates from https://translatewiki.net.
Change-Id: I2b5f4809651ed46ee8b61754aad93503fc970c39
2024-07-12 09:41:26 +02:00
jenkins-bot 7b99c85b3f Merge "Localisation updates from https://translatewiki.net." 2024-07-11 07:34:15 +00:00
Translation updater bot ce049efb95
Localisation updates from https://translatewiki.net.
Change-Id: I83dbf09ee45b46083e1828a5ea93534d7ac40c87
2024-07-11 09:31:01 +02:00
jenkins-bot ba51f899fe Merge "Abort test execution on unsuccessful rendering" 2024-07-11 07:26:31 +00:00
jenkins-bot eb1a4bc788 Merge "Remove unreachable grammar rules for 4 byte chars" 2024-07-11 07:23:02 +00:00
Translation updater bot 3ca4d7537a
Localisation updates from https://translatewiki.net.
Change-Id: Id120f6751d02d2a3f02e11cfce90b01aa94b6025
2024-07-09 09:44:31 +02:00
Translation updater bot 7dcbd429fc
Localisation updates from https://translatewiki.net.
Change-Id: I5b29fa1fc5fec74dcc34d951e5b00bd13ab1e2f2
2024-07-08 09:33:22 +02:00
physikerwelt 28df29d388 Remove unreachable grammar rules for 4 byte chars
When converting from JS to PHP the grammar rules for 4 byte UTF-8
chars were converted in a way that makes the code unreachable.

* Remove the unreachable code for now code

Bug: T319521
Change-Id: Icdb3c71bb738e8f55ce190daef0534794de35eec
2024-07-04 21:26:46 +00:00
physikerwelt a5b9cffb09
Abort test execution on unsuccessful rendering
The SpecialPage MathStatus tried to get the HTML output even if the rendering was not successful. This did lead to logged errors.

* Skip the rest of the tests if the rendering
is not successful.

Bug: T366293
Change-Id: Id7396fcdc1df96fa3c19e36b56068da4aba3d18f
2024-07-04 18:01:26 +02:00
Translation updater bot 4f82ce56de
Localisation updates from https://translatewiki.net.
Change-Id: I2680f3ba037623ab9dae3266f96b07f9eadc2b02
2024-07-03 09:26:47 +02:00
Translation updater bot 656421f9f5
Localisation updates from https://translatewiki.net.
Change-Id: I4077ad2d758f01a5c153f562cb3be0e0bdabf657
2024-07-01 09:25:41 +02:00
physikerwelt 8aee6acf24
Handle invalid cache keys on Special:MathShowImage
Special:MathShowImage takes a hash as an HTTP GET parameter. Show an error if the hash does not
exist.

Bug: T365112
Change-Id: I7d4a6602b8732b0b00cb9cba5800ba2b2fe5044f
2024-06-26 06:06:02 +02:00
Steph Toyofuku 17ac038ae4 Invert mathematical formulas in visual editor
Add the skin-invert class to latex symbols (insert chemical formula and
math formula dialogues) so that they appear legible in night mode.  This
is likely the only way we can accomplish this until mathml is fully
rolled out, at which I believe this will no longer be necessary

Bug: T366737
Change-Id: Ia0dfa4ab684f5205d109da7f9aefad927be70eb0
2024-06-25 14:30:30 -07:00
Translation updater bot e7b4cbd67b
Localisation updates from https://translatewiki.net.
Change-Id: Ia1d4accb9db05050d61656388210f58e1384b559
2024-06-25 09:30:32 +02:00
jenkins-bot 090c6c0b0b Merge "Enable restBaseless rendering" 2024-06-24 08:30:31 +00:00
Translation updater bot 8bf2bc6623
Localisation updates from https://translatewiki.net.
Change-Id: I8a54a181bca59ccfcea5667e23b3027a14c5eaee
2024-06-24 09:25:39 +02:00
Ed Sanders 16f8fdc161 build: Update linters
Change-Id: I3455051bbaebd19febaa61217c340826fed8f5c0
2024-06-21 16:21:11 +01:00
Moritz Schubotz (physikerwelt) a1f3d98115
Enable restBaseless rendering
Add MathSvgRenderer to configure if either restbase (default)
or mathoid will be used for SVG rendering.

Change-Id: I2ee67c07ac98b5d27d1709b2a30d881fd0544a93
2024-06-20 19:11:29 +02:00
jenkins-bot 6cf801995a Merge "Fix cache key calculation" 2024-06-20 12:54:21 +00:00
Moritz Schubotz (physikerwelt) c53ca719eb
Fix cache key calculation
* Add missing prefix of cache key

Bug: T365112
Change-Id: I77b53c3fd84e9d36a7bc5530655e9274ac4d76d8
2024-06-20 13:44:20 +02:00
Translation updater bot f131e764d8
Localisation updates from https://translatewiki.net.
Change-Id: Iad99b396fddc820a335f8f447a4ebcbad6714be1
2024-06-19 09:22:35 +02:00
Translation updater bot 11021253f9
Localisation updates from https://translatewiki.net.
Change-Id: I30a262260e8ba0911817c0e3a0b5c713e7db8561
2024-06-17 09:31:45 +02:00
Moritz Schubotz (physikerwelt) 88b3575e74 Style refactor limits parsing
Change-Id: Ia1040a0e1c5283d334bea47ec35529902c4eb435
2024-06-16 17:45:07 +00:00
Translation updater bot 4d6a472040
Localisation updates from https://translatewiki.net.
Change-Id: I1c8dfd4c240512e7a71da5f1392c9b994cf6d82d
2024-06-13 09:28:37 +02:00
jenkins-bot a59aed9df7 Merge "Use spans for displaystyle fallback images" 2024-06-11 16:02:35 +00:00
Translation updater bot 221f5f787c Localisation updates from https://translatewiki.net.
Change-Id: Icbf6eac4dc0cd650a391decb0a69aba937d37fb2
2024-06-11 09:54:55 +02:00
Translation updater bot a8bf19aaf3 Localisation updates from https://translatewiki.net.
Change-Id: Id213e6572e575ee49f44f44280fceb0a7fed1c09
2024-06-10 09:55:43 +02:00
Umherirrender 049a747143 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: Ifcc9113bc1d2cf79d21871abe7652d7ed8dde20a
2024-06-09 18:48:28 +02:00
Moritz Schubotz (physikerwelt) b86ab8b4fa
Use spans for displaystyle fallback images
Previously, we were using div containers to SVG fallback images to
mimic the MathML  behaviour. This had unintended side
effects as reported in T182041.

This change uses span containers for both display and inline math
fallback images.

Bug: T182041
Change-Id: I1d563f9f3cba8a10af2665518be6c672de174333
2024-06-09 00:29:35 +02:00
Ed Sanders 008db7ad08 Update stylelint-config-wikimedia to 0.17.1
Change-Id: Ibb381be409fc34208078dd1e5c3b418465ea7692
2024-06-07 15:30:59 +01:00
Ed Sanders be3a23977a Convert more functions to arrow callbacks
Change-Id: I1701519c96731a84a3e8a16507944f3cf39d4e87
2024-06-07 15:27:20 +01:00
Ed Sanders 28dcf9e6eb Remove unnecessary local context variables
Change-Id: I662e6e5e11dbf814755792ff64dc51aac77b7d6d
2024-06-07 15:25:35 +01:00
Ed Sanders 39c15f76f9 build: Update eslint-config-wikimedia to 0.28.0 and autofix
Change-Id: I02045047af1f392ae6d6f08e422024b0e9386ccf
2024-06-07 15:24:08 +01:00
Translation updater bot cc7b93a447 Localisation updates from https://translatewiki.net.
Change-Id: I264a90e33410b7b68a30c6accdd10f8123f18731
2024-06-07 09:45:29 +02:00
jenkins-bot e4ece5aa8c Merge "Add MathJax rendering option" 2024-06-06 15:13:38 +00:00
Translation updater bot 8e351ef2c6 Localisation updates from https://translatewiki.net.
Change-Id: I04c2ea88e51334d18013211ffb43b5327eae37ee
2024-06-05 09:23:23 +02:00
Moritz Schubotz (physikerwelt) f534146597
Implement hline support for matrix
In MathML outer table boarders are represented with the
notation attribute of an menclose element. The inner
boarders are represented by the rowlines attribute
of the mtable element. The rowline element accepts
a space seperated list of row boarders. In LaTeX
the bottom line is represented by a new matrix row
that only contains \hline.

This change discover \hline elements in matrix cells
and then determines if it is in the first or last line.
When it is in the last line, the line is removed to avoid
an empty <mtr /> in the output.

Bug: T366417
Change-Id: I196e0d14a183a63696363f9e3006cf65571dc56c
2024-06-03 19:15:43 +02:00
jenkins-bot 0c3c709b51 Merge "Clean matrix arguments" 2024-06-03 10:28:18 +00:00
Moritz Schubotz (physikerwelt) 5fa3d6bfe5 Clean matrix arguments
Originally the parse tree was a binary tree, from that
time matrix element were put into that data structure.
This was partially undone, but not full which leads to some artifacts
in matrix cells.

One of the problem is that due to the binary parse
tree structure the postprocessing did not correctly
identfy \limits.

This change changes reduces nesting from matrix, and regards
matrix instances as two-dimensional TexArrays.

Bug: T362344
Change-Id: I66a31a09f204709a51d6b5c9ecefc083f7ee2d6d
2024-06-03 09:25:15 +00:00
Moritz Schubotz (physikerwelt) 4da2778a29 LaTeXML: Remove SVG fallback images
Removes Fallback images for LaTeXML rendering

Change-Id: Id158de53b3f68f85fe55a3f7ace9abdc55c21160
2024-06-03 07:06:24 +00:00
Novem Linguae 3bb26a3873 JSDoc: convert @cfg to @param
Bug: T138401
Change-Id: I105b962a46347d7d7d3f0f219b53fbdbf67b5cc2
2024-05-29 15:47:54 +00:00
jenkins-bot 024cdbb00f Merge "Make TexArray iterable" 2024-05-27 13:18:29 +00:00
jenkins-bot 3144795c42 Merge "Extend BaseParsing test coverage" 2024-05-27 07:56:44 +00:00
Moritz Schubotz (physikerwelt) 9c13fd1ccd
Make TexArray iterable
TexArray is an array of tex nodes. To improve
readability and type hinting we make TexArray
iterable.

Change-Id: I5b9b2ca63400400bc399c08445ff911f8e20a0d1
2024-05-27 09:54:44 +02:00
Translation updater bot 29e2c0e465 Localisation updates from https://translatewiki.net.
Change-Id: Iea9c3e9dccca05e928b1ab67248ab23de47ba189
2024-05-27 09:29:24 +02:00
Moritz Schubotz (physikerwelt) c0ac8ee0e7
Extend BaseParsing test coverage
Change-Id: I4e8ff663e1516bcdeb6133bb12391ad48b056367
2024-05-26 22:37:07 +02:00
Moritz Schubotz (physikerwelt) 277663b822 Add MathJax rendering option
When collecting user feedback regarding the native
rendering option on the German Wikipedia (T346795)
it became apparent that some power users aim for bigger
and bolder fonts and a more LaTeX-like layout.
MathML, however, aims to format math as an integral part
of the text with uniform fonts and spacing.

To match both user needs, this patch adds a new rendering
option that uses client-side MathJax (without a need for
restbase or mathoid).

* Adjust MathJax`s loader to be compatible with the mw loader
* Add new rendering mode
* Copy MathJax source to resource module as foreign repo

Bug: T354136
Change-Id: I1ecf9c77fefc3b0f717107d81979276023f6cb84
2024-05-24 03:30:05 +00:00
Moritz Schubotz (physikerwelt) 1befc6373d Reduce usage of lst2arr in chem context
Remove useless calls to lst2arr in chem macros

Bug: T362344
Change-Id: I05c8f525a02b10d31bf8f07638d966c0f5f33f63
2024-05-22 20:43:27 +00:00
Moritz Schubotz (physikerwelt) 6c160285fb
Reduce usage of lst2arr helper
Remove call from FUN_ARopt as the inner
expression of class expr_nosqc is of TexArray
and no unwrapping is needed.

* might reduce the number of extra curly brackets

Bug: T362344
Change-Id: If5e700e0e17c646669a0b52552e51a8b3d0b7617
2024-05-22 22:40:18 +02:00