Commit graph

2847 commits

Author SHA1 Message Date
Moritz Schubotz (physikerwelt) f5b83c720c
Pass font options in underOver
Following the same argument as for accents,
font options should also be passed in underOver
constructs.

* Pass options
* Add test
* In I6924d712db6852f99d7896b1f11cfbd22851d757
  curly learned to encapsulate its output in a
  mrow. Thus, the if-clause is no longer needed.

Bug: T352609
Change-Id: I6dd3303d9b5ef9ae32ad33c91a4cc1bbdad46109
2024-01-29 17:11:10 +01:00
zoranzoki21 1445eddb14 .phpcs.xml: Fix line indentation
Change-Id: Ic36d8ca5d2a5d133487960f659411375de6147d5
2024-01-29 10:03:20 +00:00
jenkins-bot 90264e311b Merge "Human-readable errors on Special:MathStatus" 2024-01-29 09:31:32 +00:00
jenkins-bot 5b53b2c32e Merge "Simplify tests on Special:MathStatus" 2024-01-29 09:29:41 +00:00
jenkins-bot 901d7fe7e6 Merge "Pass font options in accents" 2024-01-29 09:25:18 +00:00
Translation updater bot 4d5b15f6d8 Localisation updates from https://translatewiki.net.
Change-Id: I326610803b2464d05751ed4f2d8ad76904327902
2024-01-28 16:07:23 +01:00
Moritz Schubotz (physikerwelt) 4cf8462110
Human-readable errors on Special:MathStatus
Errors were thrown for custom tests on
Special:MathStatus which was disturbing.

* Use human-readable error messages instead
* Note that the source rendering mode has no check
  method.

Bug: T355389
Change-Id: Id1cacf47dd5441758b7ad8dba3434a01b655a673
2024-01-27 22:57:12 +01:00
Moritz Schubotz (physikerwelt) 181cf1cd09 Simplify tests on Special:MathStatus
The hash was changed so even more tests were failing.
* Remove exact match tests; only search for
significant features instead.

Bug: T355390
Change-Id: I65b731395ee096040a0d78c7054f768352c27fb1
2024-01-27 21:38:25 +00:00
Moritz Schubotz (physikerwelt) d270a9aa80
Pass font options in accents
Accents such as \widetilde did not pass
their font options to their child element.

* Pass options
* Add test
* In I6924d712db6852f99d7896b1f11cfbd22851d757
  curly learned to encapsulate its output in a
  mrow. Thus, the if-clause is no longer needed.

Bug: T352609
Change-Id: I81ecda09d017c73a4593ae36c630426229c7559f
2024-01-27 18:12:03 +01:00
jenkins-bot 722bb0f778 Merge "Add over_operators group" 2024-01-26 16:19:28 +00:00
jenkins-bot 219b243a74 Merge "Add mrows to curlies" 2024-01-25 12:05:42 +00:00
Moritz Schubotz (physikerwelt) f89f0a0f02 Add mrows to curlies
Add mrows to things grouped in curlies.
This removes browser warnings of
too many elements for example in
the case of sub or superscripts.

Bug: T352697
Change-Id: I6924d712db6852f99d7896b1f11cfbd22851d757
2024-01-25 09:59:06 +00:00
Moritz Schubotz (physikerwelt) 57dbaeda39
Add over_operators group
instead of testing if an operator starts
with the letter \o we keep an explicit
dictonary of operators which should
be rendered using mover instead of
msub.

Bug: T352699
Change-Id: I916acf2f71d747a31a882fecfccac832436ea991
2024-01-24 16:49:29 +01:00
Translation updater bot 45279fa678 Localisation updates from https://translatewiki.net.
Change-Id: Id3f6c302d79deba3545ec28712f6abfadada86aa
2024-01-19 09:17:25 +01:00
Translation updater bot da0283873b Localisation updates from https://translatewiki.net.
Change-Id: I75c14f0f3ca3116dc96565006bee835450ede583
2024-01-18 09:26:26 +01:00
ni1313 fbe057dc55 Add test for \overarc
Manually add test for \overarc to TexUtil-Ref.json

Bug: T354057
Change-Id: I249c89f9f7a2f336268393f61d428fbc09ee82f2
2024-01-17 16:29:36 +00:00
jenkins-bot 4696c6febb Merge "Remove namedspaces length values in MathML" 2024-01-17 11:19:10 +00:00
Translation updater bot a5fb417591 Localisation updates from https://translatewiki.net.
Change-Id: Iee7c21a180bacfcc64b47efe1de4608f3e91bcd8
2024-01-17 08:37:30 +01:00
Jon Harald Søby b6cb7ff1ec Use message for help page name instead of enwiki-internal shortcut
Change "wp:MATH" to instead use another message, and define a help
page name for math formulae in that other message.

Change-Id: I3fa1e9f4442887915709a2fec671f1ebdb1fc300
2024-01-16 21:33:15 +00:00
jenkins-bot fd0603f628 Merge "Remove explicit DB access" 2024-01-15 10:08:12 +00:00
Translation updater bot ba5a6e1078 Localisation updates from https://translatewiki.net.
Change-Id: Id8e4767d5268b552f8e36ca2494beba3fae89d21
2024-01-15 08:24:54 +01:00
James D. Forrester a479de3bde extension.json: Drop 'es6' flag, always true since MediaWiki 1.41
Change-Id: Ic1310ae35e47e1527a16bd7b604dd48c612437a5
2024-01-12 19:03:10 -05:00
Translation updater bot d0e7a71b87 Localisation updates from https://translatewiki.net.
Change-Id: I3bf171c98a150a1dcf93be49d2a92a1fc1917ca2
2024-01-12 09:00:41 +01:00
Jon Robson b99c3800d0 Should be possible to disable the Math preview
Bug: T334261
Change-Id: I46e7641d22f4c17ba318a106a62518e4ca3e3c55
2024-01-11 18:53:09 +00:00
Moritz Schubotz (physikerwelt) 9236575a1a Remove explicit DB access
* Uses BagOfStuff caching instead of custom-made DB cache
* By configuring the BagOfStuff cache in a way that
  it writes to the database no performance implications are expected
* For WMF-use this should have no effect since restbase
  is used to cache stuff
* Replaces Ib2c216f54e6817ee2c3be0355ba72bd4769ba6ea

Bug: T349442
Change-Id: I1ce8ad9cf4c1a9ae71f447e4e067b39ee2601640
2024-01-11 15:57:02 +00:00
Translation updater bot 7f8a359a84 Localisation updates from https://translatewiki.net.
Change-Id: Ibff097460f954d1e877d83e23d50d3d958c2f46d
2024-01-11 10:05:05 +01:00
Translation updater bot d042bc6238 Localisation updates from https://translatewiki.net.
Change-Id: I0b3a99a42e612958059e904f558e6a3868db1296
2024-01-10 08:33:05 +01:00
Amir E. Aharoni 907e29ebb2 Improvements for math-form-type-* messages
* Add keys to comments for greppability
  (see https://www.mediawiki.org/wiki/Help:System_message#Using_messages
)
* Add <code> for good display of TeX code.

Change-Id: If306c2473accd34ff13c0282e2a8b1b64b6c1657
2024-01-09 10:46:17 -05:00
jenkins-bot 449baafc3c Merge "Special:MathStatus Add form for custom input" 2024-01-09 09:40:48 +00:00
Translation updater bot e05f352c94 Localisation updates from https://translatewiki.net.
Change-Id: Ia22ca9e107f8b7a9eff9ab89abe39bc7def53f7b
2024-01-09 08:59:57 +01:00
jenkins-bot 3a2011c3b7 Merge "Fix missing argument passing in DQ and FQ" 2024-01-06 21:43:41 +00:00
jenkins-bot 6ca717d31d Merge "Improve operator recognition heuristic" 2024-01-06 21:24:06 +00:00
Umherirrender b97ef597e0 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I8fad94b215664fb77acf8cd8140232271d2c2837
2024-01-06 16:30:26 +01:00
Moritz Schubotz (physikerwelt) 6db2a4c87e
Special:MathStatus Add form for custom input
Allow running tests with custom user input.

Bug: T351368
Change-Id: I148ac88513906042dc1aebe7a637180333d32016
2024-01-06 10:41:01 +01:00
Umherirrender c197e1f3ec TexNode: Replace get_class without argument
Deprecated in php8.3

Change-Id: I5d7e58ffc7426d0a26bde7b26726ecc5b68e5a4c
2024-01-05 20:02:00 +01:00
Translation updater bot 78e45e9ee1 Localisation updates from https://translatewiki.net.
Change-Id: Iac30eea94fbbc34654f409c35e2ca5b5c87407fd
2024-01-03 08:34:49 +01:00
Moritz Schubotz (physikerwelt) a512710cf0
Improve operator recognition heuristic
In TeX display math mode \sum_a^b is rendered as
munderover, however \alpha_a^b is redndered as
msubsup.

This changes improves the heuristics to differentiate
between munderover operators such as sum prod and
other macros such as alpha, beta ...

Bug: T352697
Change-Id: I5a993e379791edeb3623171265e5be2651ee1359
2024-01-03 00:17:47 +01:00
Moritz Schubotz (physikerwelt) d25acea9c7
Fix missing argument passing in DQ and FQ
When rendering subscripts font arguments such as upright
font were not passed to the child nodes.

This changes passes the parameters.

Bug: T353340
Change-Id: I487bb01afa0d64c809affc4b8a466337d71a1c76
2024-01-02 20:36:49 +01:00
Ed Sanders 01746a108c ve-mw: Remove unused i18n messages
Change-Id: Ibb1535e98aecc39656783471ad938000b1b32735
2024-01-02 16:32:27 +00:00
Translation updater bot f0b066ec55 Localisation updates from https://translatewiki.net.
Change-Id: Id8f89172c5412505c67e116ee43b535c33ffe83d
2024-01-02 10:16:42 +01:00
Moritz Schubotz (physikerwelt) bb945b6744 Remove namedspaces length values in MathML
* Replace thickmathspace => 0.2777777777777778em at one place
 * Remove unused MathJax JS code that uses those constants

Bug: T320910
Change-Id: I0945ff5328454f9342769caa48fadf35030149f8
2023-12-31 14:48:43 +00:00
Stegmujo 4b30c9701a Add Intent to WikiTexVC
* make intent annotations possible in TeX math items
* introduce a new command to annotate as well as node and translation
* Adds a parser expression grammar to validate intent attributes for
* it basically adds the previous, now abandoned changeset: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Math/+/949964

Bug: T327098

Change-Id: I21adfac4c3580e238f059721fdf0c1566cb4e857
2023-12-21 14:28:18 +00:00
Translation updater bot 74cd160e78 Localisation updates from https://translatewiki.net.
Change-Id: I53a6d279df598498663b5039b21323fc21d08d90
2023-12-18 18:18:05 +01:00
ni1313 72c2792001 add support for \overarc
Implement \overarc in the same style as \overbrace using UTF-8
symbol 23DC

Bug: T32215
Change-Id: I710c14ce28df12e5d9b9f76674d368ca807b2c3a
2023-12-18 14:43:20 +00:00
Stegmujo c27bc62ee7
Add export function for RTED
* for evaluation
* formats to bracket format as used in RTED java application

Change-Id: Ia85b7fdac55a9acfbc48e266a189e733634752f9
2023-12-07 17:27:19 +01:00
Stegmujo 3d0dfe1e43
Fix mathcal in chrome
* map to unicode chars

Bug: T352536
Change-Id: Iab04043df5cc04484d348b0c896a50c94ef79c16
2023-12-01 21:08:31 +01:00
Stegmujo 001e11bd7a
Fix double-struck letters in chrome
* map to literals to corresponding unicode characters when a double-struck state is recognized

Bug: T352196
Change-Id: I9b9e1d87c10858789751cd14f23d2feea3b928dd
2023-12-01 15:16:41 +01:00
Stegmujo c8fe00bd59
Fix closing bracket size too big
* fixes a glitch that attributes are not merged in closing tags

Bug: T351907
Change-Id: I1cc52c7726b12e12aea6cb56849721ae14229245
2023-11-30 15:58:22 +01:00
jenkins-bot 7d1d07948b Merge "Update UserOptionsLookup's FQN" 2023-11-30 14:15:05 +00:00
jenkins-bot b5e0d80740 Merge "Remove confusing version information" 2023-11-30 12:55:22 +00:00