Commit graph

3081 commits

Author SHA1 Message Date
jenkins-bot 5056fb98a0 Merge "Update node modules" 2024-12-16 17:31:44 +00:00
physikerwelt f8fbd50b96 Update node modules
* Remove  Needless disable for
  "plugin/no-unsupported-browser-features" node

Change-Id: I947184fc10c00bfc1cfbc5bc9981353796664284
2024-12-16 13:05:07 +00:00
physikerwelt 5713e1966e Fix rendering of underOver
We recently changed the internal treatment of macros
 to include the `\` in the macro names.
The respective code checked if the macro name had the letter 'o'
 at position 0. Now, this is position 1.

* Check for the entire start of over
* Output an error if the macro name does not star with under
  or over
* Remove dead code

Bug: T382196
Change-Id: I8eefd41e27319c8dbb05900ef2581ce4d548d4fe
2024-12-16 12:06:45 +00:00
Translation updater bot 8d01edba5a
Localisation updates from https://translatewiki.net.
Change-Id: Icfea5c075be12682872a57bd3368bc657602ed28
2024-12-11 08:25:16 +01:00
Translation updater bot e957d437a0
Localisation updates from https://translatewiki.net.
Change-Id: Ia7c65f17b7db1d934299c8846a8d1e91d8d573c1
2024-12-06 08:17:29 +01:00
Translation updater bot c72e0f8a1a
Localisation updates from https://translatewiki.net.
Change-Id: Id9c47c1b08cc370e0ad34cc6f9335eb079171262
2024-12-05 08:21:06 +01:00
jenkins-bot 90faa5ef0c Merge "Replace uses of deprecated ParserOutput::getText()" 2024-12-04 03:38:52 +00:00
FrederikHennecke1 2df0c85400 Fix for Math Popup not working in newer version of Popup-Extension
The preview for math formula has stopped working since `7a9e8fd6221515b48f45ba29d3f102eb899f1e33` from ticket `T380079` from the Extension:Popup
Added the `href` attribute to the Math node.
The value must be a complete Uri to a local page with a title.
The value is taking from `node.baseURI`.

Bug: T381310
Bug: T380079
Change-Id: I70204f2d816b5bef19568758d7256847773b08b3
2024-12-03 01:35:25 +00:00
FrederikHennecke1 b66e28b237 Fix for Preview has wrong location in MathML mode
The previewin MathML mode was always at the left side of the website.
Added values for `node.offsetWidth` and `node.offsetHeight`.
Values are taken from `node.getBoundingClientRect()`.
Cleaned up if-clause(node.dataset.title) as it is not needed anymore.
In-lined IsValidId funtion as there was only one remaining reference.

Bug: T381311
Change-Id: Ied17aaaaf9156e2712ed6c7d6d6f08ecccc12286
2024-12-02 22:31:20 +01:00
Isabelle Hurbain-Palatin ace0b1412f Replace uses of deprecated ParserOutput::getText()
Bug: T293512
Change-Id: I966b0bcac5b5a9ae09f8243dd1fcee2e7c731515
2024-12-01 17:24:17 +01:00
jenkins-bot 500b9bcefc Merge "Fix Preview not working with MathML rendering" 2024-11-30 07:06:59 +00:00
FrederikHennecke1 68345654da Fix Preview not working with MathML rendering
The Extension:Popup preview was only working in SVG mode.
Added a new selector for the preview in MathML mode while keeping the old one working.
The selector for the preview in MathML works via the href attribute.

Bug: T381046
Change-Id: I81b5c3f2eabaf738de231868089ed80f0f19db6b
2024-11-30 01:17:33 +01:00
physikerwelt 0781935316
Fix: Don't render ' inside LR structures
$\left(a\right)'$ produced rendered MathML output that
looked like $\left(a'\right)'$.

* Remove the deriv (') state when rendering the element
within the brackets.

Bug: T381102
Change-Id: Id7f192c1f6b7bf4109e735e393e2546e5a39efd7
2024-11-29 01:13:15 +01:00
physikerwelt d50764230c
Fix: handling of oint et al
In I94887f6ccb45072180a318776ae96aead8658a18 oint macros were
 not taken into account.

Add \ to respective oint macros.

Bug: T380184
Change-Id: Iebcf81f4983442ead8665df47d65899a16a6f422
2024-11-26 00:41:38 +01:00
physikerwelt 4743a5fe24
Fix: handling of AMS macros
In I94887f6ccb45072180a318776ae96aead8658a18 some ams macros were
 not taken into account.

Add \ to respective AMS macros.

Bug: T380184
Change-Id: I7c59569fb7242f4f6123047003de6cc86ce868ea
2024-11-26 00:34:12 +01:00
physikerwelt eb3fe78fc5
Fix: handling of named operators
In I94887f6ccb45072180a318776ae96aead8658a18 named operators that render
 as their tex command e.g. \gcd -> gcd, were not taken into account.

Remove additional \ in operator names.

Bug: T380184
Change-Id: If21cbd091cc9437715b10e3e6e7ffc86d6436010
2024-11-26 00:20:47 +01:00
physikerwelt cfe15c59b1
Fix: handling of array
In I94887f6ccb45072180a318776ae96aead8658a18 the array environment was missed.

Add the array environment in the same as matrix was added.

Bug: T380184
Change-Id: I92111829e7e93bc5abd40e01b6c036bbc01ee8a5
2024-11-25 23:24:25 +01:00
physikerwelt 4014491c39
Fix: handling of nullary macros
In I94887f6ccb45072180a318776ae96aead8658a18 nullary macros
such as $\AA$ were missed.

Instead of adding a backslash (cf. patch set 1) we move the
functionality to texutil.

Bug: T380184
Change-Id: Ie9947b48f03dac03612a5c33bce92bf00df70aa3
2024-11-25 23:21:03 +01:00
physikerwelt 0458ea160e Parse row height specification in multiline environments
* Transform structure rich information on LaTeX length
 specifications introduced in I08996129beca9ad852d23f28d7136c982707aea1
 into new TexNode class
* Adjust rows, i.e., arrays to hold length information
* Add tests

Bug: T380654
Change-Id: I1aff53c7a5782c1333ed4c16639dfc660802931c
2024-11-25 14:22:15 +00:00
physikerwelt c89f8ad142 Add space after operatorname to extended tests
* in Ie374524dbdf6a753063172fb88e6f60e91b9212e parsing
  of operatorname was simplified. However, in this
  process a space after operatorname was introduced.
* This adjusts the reference files pointing to the
  latest release on zendo
https://doi.org/10.5281/zenodo.14209690

Bug: T375274
Change-Id: I29a797cdf16088d704c343dd66cc7bfafc519cd9
2024-11-25 12:29:38 +00:00
physikerwelt b758ae9d70 Extend MathML test coverage
Render all formulae from Wikipedia and make sure no errors
(that end up as wikimedia production errors in logstash)
are thrown.
Check that no merror tags are generated for the manual page
that intends to cover the full spectrum.
Currently, some merror tags are generated, which we ignore
for this commit.

Change-Id: Ifecbd8a1b0afabaa2f818e9241add92a9508bae9
2024-11-25 10:43:13 +00:00
jenkins-bot 0f8dcc02ae Merge "Move cancel callbacks to texutil" 2024-11-25 09:09:30 +00:00
jenkins-bot 0e1c367ac4 Merge "Add tests for AmsMappings" 2024-11-25 09:00:07 +00:00
physikerwelt e0acf58460
Move cancel callbacks to texutil
Currently, information regarding individual LaTeX
macros is distributed in various files. This is the
first to attempt to collect declarative information
regarding tex macros in the texutil.json file.
As a proof of concept we start with only the cancel
macros.

* Adjust texutil tests so that whitespaces are allowed
  in the payload

Change-Id: Iba2dfd5293ad96d8d8e4e2f555c8df9d1ae4d6ca
2024-11-22 21:43:31 +01:00
jenkins-bot d9572611a3 Merge "Add tests for BaseMappings" 2024-11-22 06:42:32 +00:00
jenkins-bot ee4e4ec5de Merge "Remove unused environment" 2024-11-22 06:42:32 +00:00
physikerwelt 6a46f2813c
Add tests for AmsMappings
Change-Id: Ia4fbba3cda087b17587a953a6c01c6fae2fe2b64
2024-11-21 23:01:09 +01:00
physikerwelt d68c302b71
Add tests for BaseMappings
Change-Id: I017815230c2709ef5933256ba430b5284022637f
2024-11-21 22:37:45 +01:00
physikerwelt 6d5ddff353
Remove unused environment
Change-Id: I8c94d04c58356afac901de5ed207f110f1b753f7
2024-11-21 17:26:14 +01:00
jenkins-bot 92ce5e257f Merge "WIP add \ when needed" 2024-11-21 07:53:21 +00:00
physikerwelt 62506236ec
WIP add \ when needed
Change-Id: I94887f6ccb45072180a318776ae96aead8658a18
2024-11-21 08:01:26 +01:00
Translation updater bot d1ff859f02
Localisation updates from https://translatewiki.net.
Change-Id: I6482ff7afa28701d3aa43150c523680b6dd92d52
2024-11-19 08:18:14 +01:00
jenkins-bot 44243ad466 Merge "Overwrite spacing for divide" 2024-11-14 09:13:21 +00:00
jenkins-bot fb4e72d64c Merge "Treat ! as operator" 2024-11-14 09:13:19 +00:00
jenkins-bot 0bfd22b57b Merge "Don't stretch delimiters and operators when used as literals" 2024-11-14 09:11:45 +00:00
Translation updater bot 8cded7d7fa
Localisation updates from https://translatewiki.net.
Change-Id: I476d81c4cd7a0c35ab17465612bc681e46550dc2
2024-11-11 08:23:15 +01:00
jenkins-bot 5fbcff7819 Merge "Treat colon as operator" 2024-11-10 21:43:02 +00:00
physikerwelt 758f9c987a
Overwrite spacing for divide
This overwrite should be removed once this is the
default in all browsers.

Bug: T375337
Change-Id: I5ab133f0368ed6eef94b0a87281bb9129fca406c
2024-11-10 16:45:23 +01:00
physikerwelt 5cde747b49
Treat ! as operator
Bug: T375935
Change-Id: Iec8e69d28fa3cc32b2c2e87f81707b9fd7af5576
2024-11-09 08:05:22 +01:00
physikerwelt aee95695b8
Don't stretch delimiters and operators when used as literals
* Adjust tests

Bug: T375959
Change-Id: I02de8244b73c4b98a1467011a0035df059917c13
2024-11-09 08:04:24 +01:00
physikerwelt fcb667f733
Treat colon as operator
Bug: T375974
Change-Id: Ia553e77a04edfee12fa0f236375d67a88eefee67
2024-11-09 06:33:07 +01:00
jenkins-bot a7f8306d18 Merge "Remove menclose in cancel rendering" 2024-11-08 07:27:47 +00:00
physikerwelt cc0a214f56
Remove menclose in cancel rendering
Chrome and similar browsers do not support the
menclose tag. This change introduces a css polyfill
suggested in

https://github.com/w3c/mathml-core/issues/245#issuecomment-2410676518

but keeps the mencose rendering since FF does not
support the polyfill

https://bugzilla.mozilla.org/show_bug.cgi?id=1929800

Bug: T376829
Change-Id: I860e2f2f9bf9eef8eeba35b0999ec50175fdfc4b
2024-11-08 07:58:08 +01:00
jenkins-bot f60ea98236 Merge "Treat \operatorname as a valid operator for limits" 2024-11-08 05:19:01 +00:00
jenkins-bot 0e0d5ff1f7 Merge "Ignore misplaced limits commands" 2024-11-08 05:06:17 +00:00
physikerwelt 775fec5450
Treat \operatorname as a valid operator for limits
* Extend logic for checking for valid operators
* Add tests

Bug: T365170
Change-Id: I4d3762e3258c78ac5fae8b923f12aabcd2175f3d
2024-11-06 23:04:13 +01:00
physikerwelt b058d88bf9 Ignore misplaced limits commands
Instead of rendering \limits or \nolimits when those
commands are misplaced the commands are ignored.

TeX does it the same way, but issues a warning in addition.
Issuing the warning will be taken care of in a follow-up commit.

Bug: T365170
Change-Id: Ic1c28be2a5669183c3dd5d15577a35a1b5a76971
2024-11-06 20:21:29 +00:00
Translation updater bot 4ce41fa717
Localisation updates from https://translatewiki.net.
Change-Id: I56f74ad53b729f7e3657104eb7de7ebd59915a14
2024-11-06 08:23:12 +01:00
physikerwelt 18df3d31a1
Add npm fix script
Change-Id: Iebd8d41d36a3a05d6ff9e07248716ce1ad19668d
2024-11-05 15:12:59 +01:00
Translation updater bot 28648ef9c9
Localisation updates from https://translatewiki.net.
Change-Id: Ibbb4c60dafbb7f2134de1a5ddb7265fe86ff89aa
2024-11-05 08:33:06 +01:00