Commit graph

2682 commits

Author SHA1 Message Date
Translation updater bot 6e438c7d5e Localisation updates from https://translatewiki.net.
Change-Id: I5a099b41c54c9a9fdf565f1613d5a9c2e3115348
2023-10-10 08:52:33 +02:00
Moritz Schubotz (physikerwelt) 272f39ca2d
Fix integral command namings
* Remove \strokeint which was probably a typo and should be \strokedint
* Add \intBar command

Not done:
* Implement rendering of \intBar and \intbar, it would make sense to wait for
the mathoid reference rending here, which is just around the corner

Bug: T137787
Bug: T348373
Change-Id: I19d24fc23f59dda87c7c39a265f17efddb9fee8f
2023-10-09 15:02:46 +02:00
Stegmujo f4c91856bc
Refine skipped indices in MMLGenerationTexUtilTest
* adapts skipped indices to represent all supported cmds and macros

Bug: T340024
Change-Id: Ib01f02c3b73dac80ee9878c22549740d728bdf57
2023-10-06 14:02:43 +02:00
Translation updater bot a6158aa61b Localisation updates from https://translatewiki.net.
Change-Id: Ibff907632e59304526791c3f62b90549e6b428ff
2023-10-06 09:20:23 +02:00
jenkins-bot d5c48b8260 Merge "Render MathML for atop and choose" 2023-10-05 16:20:25 +00:00
jenkins-bot 383428b478 Merge "Render MathML for some letters used in mhchem" 2023-10-05 15:14:13 +00:00
jenkins-bot 8976f0b62b Merge "Use white-space:break-spaces where appropriate" 2023-10-05 14:47:51 +00:00
Stegmujo bbe6c3df8b Render MathML for atop and choose
Bug: T340024
Change-Id: I19f471645b569db49a64e5dd4c82cfdbac7dbe77
2023-10-05 14:39:04 +00:00
Stegmujo d3c636883a
Render MathML for some letters used in mhchem
* \Alpha  \Beta  \Chi  \Epsilon  \Eta  \Iota  \Kappa  \Mu  \Nu  \Omicron  \Rho  \Tau  \Zeta
* \ca

Bug: T340024
Change-Id: I0d9d8314644927ccae0794ae8459a3f3893fc24a
2023-10-05 16:08:13 +02:00
Stegmujo 7dfb557b92
Render MathML for harpoons and arrows for mhchem
* macros: longRightleftharpoons, longLeftrightharpoons,
  longleftrightarrows
* added tests for these

Bug: T340024
Change-Id: Ib8487f242766cef63f7cf8564f2033d9f332e0a8
2023-10-04 18:47:14 +02:00
Stegmujo 0c493bbbed Render MathML for tripledash for mhchem
* rendering textemdash for tripledash with unicode +2014

Bug: T340024
Change-Id: I2c68858063d7fe4e1d673522f6a2d58107fa3f7e
2023-10-04 13:04:17 +00:00
Stegmujo 372bf72acd Render MathML for mathchoice for mhchem
* defaults mathchoice to displaystyle
* adds several tests and introduces new Fun4 element for mathchoice in
  grammar

Bug: T340024
Change-Id: I37c8fd35303e3b8a00faad18a3a131a716c7bb47
2023-10-04 11:23:02 +00:00
jenkins-bot a801869ebb Merge "Add mhchem-tex macros to MMLGenerationTexUtilTest" 2023-10-04 11:05:14 +00:00
Stegmujo 759e6166f6
Add mhchem-tex macros to MMLGenerationTexUtilTest
* adds the recently implemented cases for mhchem specific tex to check full macro coverage
* fix a minor issue with tripledash

Change-Id: Id3033fab7b3c3432bed6e11f7b50f7ff8e3906ea
2023-10-04 10:57:12 +02:00
Ed Sanders c0f9269512 Use white-space:break-spaces where appropriate
Bug: T348006
Change-Id: Iac89f5c70ed6717a8ec662e85e68d9ccf9b7e5ad
2023-10-03 16:54:18 +01:00
Translation updater bot 407ec2d805 Localisation updates from https://translatewiki.net.
Change-Id: I6004ac65af03c2f0abe3a193897d30365b291fe8
2023-10-03 09:32:55 +02:00
jenkins-bot f15dd203ab Merge "Fix tilde spacing" 2023-09-29 11:48:36 +00:00
Stegmujo 414295cdc5
Fix tilde spacing
* tilde is rendered as non escaped mspace

Bug: T315978
Change-Id: I33a751eb5ae62a45c7bc3941ff49f30fa436b00c
2023-09-29 12:19:28 +02:00
jenkins-bot 5dd7d8cba3 Merge "Fix alignments" 2023-09-28 17:13:32 +00:00
Stegmujo 6c43c7563c Fix escape spacing
* In test "\text{if}~n\ \text{is even} "

Bug: T315978
Change-Id: I839b7e912bc95abff1f589467c848fc8b2fb0fe6
2023-09-28 15:54:19 +00:00
Stegmujo 07f7942ac5 Fix alignments
*  "\ln c, \lg d = \log e, \log_{10} f" : c d etc should have be more extra space
* "\Pr j, \hom l, \lVert z \rVert, \arg z ": same as above, specifically for \hom
* fixes expected result in LocalCheckerTest

Bug: T315978
Change-Id: I842b45b2d20dc267d828dca2040a3500ce06f45d
2023-09-28 15:48:18 +00:00
thiemowmde b4290c1634 Make use of upstream assertStatusGood/Error and such
These small convenience methods produce much better debug output.

Change-Id: I80d6f406c1605ed68eca8ec576ff98e7251da518
2023-09-28 15:15:43 +00:00
jenkins-bot d50d3edaa8 Merge "build: Update linters" 2023-09-27 15:45:05 +00:00
Ed Sanders e1f5f5487f build: Update linters
Change-Id: I19e2482fa377342b15733f5ef0bebe18e3238cef
2023-09-27 16:07:55 +01:00
Stegmujo 093ecf7c0f
Fix bigcap and bigcup scripts not placed correctly
* All recognized macros are in category nullary macros, so this adds a
  rule
* In test "\bigcap_{i=_1}^n E_i"
* In test "\bigcup_{i=_1}^n E_i"

Bug: T315978
Change-Id: I09287879c1448e404473891985457349a62554a7
2023-09-27 14:17:53 +02:00
jenkins-bot 4d3f6adc8f Merge "Move error to merror tags" 2023-09-27 11:24:25 +00:00
Stegmujo cbd830a934
Move error to merror tags
Bug: T315978
Change-Id: I8e0515a168a5983c24dac8a64e7a2f7fd1805a8d
2023-09-27 12:48:26 +02:00
jenkins-bot 21d3cf0f8f Merge "Fix oint size" 2023-09-27 10:47:38 +00:00
Stegmujo 0728ed4bd1 Fix oint size
* In several tests with preceding oint
* Add explicit testcase

Bug: T315978
Change-Id: I87b31490ed18461fec0cf4ebd6a2c207235ee734
2023-09-27 09:39:50 +00:00
Stegmujo b3545c1994
Fix negation (not) for operatorname
* Test example in MathNativeTests: " "\not\operatorname{R}"
* fixed forwarding state in Fun1nb

Bug: T315978
Change-Id: Ia651b14ba16f39cc8cbc6b42e0598d959bf72989
2023-09-27 10:39:27 +02:00
Translation updater bot f055981220 Localisation updates from https://translatewiki.net.
Change-Id: Ibc863b521aa59543f351e36657f76899815ff9b4
2023-09-27 09:20:40 +02:00
Stegmujo ede31d01ed Fix k=1 should appear under sum in displaystyle
* In test MathNativeTests: "\sum_{k=1}^N k^2"
* also verify that textstyle variant works correctly

Bug: T315978
Change-Id: I8f6cd5ef1e4539616439542184cb7d9dc5cf2363
2023-09-26 16:07:20 +00:00
jenkins-bot 9450bb29f1 Merge "Fix MMLGenerationParserTest creating HTML file" 2023-09-26 16:05:10 +00:00
Stegmujo f85fda42da Fix MMLGenerationParserTest creating HTML file
* also fixes a warning in phan that there is a tainted parameter in args in BaseParsing
* this is to pass CI

Bug: T343636
Bug: T347320
Change-Id: I91328bf26e208bd4e0e939c4628def2f40e2f0b6
2023-09-26 15:26:30 +00:00
Translation updater bot 721b10c491 Localisation updates from https://translatewiki.net.
Change-Id: I6c91217176f5148d2e0b7ed65de5340fe949e23e
2023-09-26 08:44:15 +02:00
jenkins-bot df4404456a Merge "Add mw-invert class to <img> which generates text" 2023-09-23 09:00:19 +00:00
Stegmujo 5536b3f74a Fix underbrace
* In test MathNativeTests: "\underbrace{ a+b+\cdots+z }_{26}"
* Underbrace statement appear to right side

Bug: T315978
Change-Id: I3b1e1290ac07e7aa70ab5931d513984f011d3075
2023-09-21 14:57:40 +00:00
Ed Sanders 85a20f537d Add mw-invert class to <img> which generates text
Bug: T345281
Change-Id: I56740aec8ccfacf3bf287329f26a88329fb65c09
2023-09-21 14:36:11 +01:00
jenkins-bot 293d0914b1 Merge "Use string as return type of MMLutil::addPreOperator" 2023-09-21 11:52:43 +00:00
Moritz Schubotz (physikerwelt) c0d56f03fb
Use string as return type of MMLutil::addPreOperator
fixes https://sonarcloud.io/project/issues?resolved=false&sinceLeakPeriod=true&types=CODE_SMELL&id=mediawiki-extensions-Math&open=AYqio5RKOF_lKUTFMs1o&tab=code

Change-Id: I1b65e937e6d2ea0029d9157ce6b7f94fdc6bf1d6
2023-09-21 12:59:49 +02:00
Stegmujo 586d15b046 Fix Pilcrow size
* Pilcrow was very big, see test on MatTestNative page:
* " \amalg \P \S \% \dagger \ddagger \ldots \cdots "
* and add specific testcase

Bug : T315978

Change-Id: I3074f3782ef821e7f9813b79a570bbd51ead28db
2023-09-21 10:28:31 +00:00
Translation updater bot d109aec95e Localisation updates from https://translatewiki.net.
Change-Id: Iaaddf3f5b90061fad21770d716e6762610317bc1
2023-09-21 10:16:03 +02:00
Stegmujo 83db0738b3 Fix rendering of "<" and ">" in MathML
Bug: T346731

Change-Id: I1f163dad73481664a336f09bc5608aad6d0b5761
2023-09-19 10:32:09 +00:00
jenkins-bot 5ef83ce3b6 Merge "Render MathML for smash command from texified mhchem" 2023-09-19 09:14:00 +00:00
Stegmujo b28d3da95a
Render MathML for smash command from texified mhchem
Bug: T340024
Change-Id: Id9ca073b51656dce2f48cef6c94a2281fe269418
2023-09-19 10:27:28 +02:00
Translation updater bot af3afdb243 Localisation updates from https://translatewiki.net.
Change-Id: I18fe24382dd7b5c15ec586aece1e1ede9aed9158
2023-09-18 08:44:01 +02:00
Stegmujo 3c196ba389
Render MathML for tripledash and ..arrows cmds from texfified mhchem
* already these are as mhchem macros in mappings, tbd adapt

Bug: T340024
Change-Id: Ic604720c71de720b6959159cfd78d6b55fdf399d
2023-09-17 21:11:26 +02:00
Stegmujo ead9760e1f Render MathML for cmds: raise,lower,rlap,llap from texified mhchem
Bug: T340024

Change-Id: I9b3981c97b8158685ccc774f8435f7f1b36a42f2
2023-09-17 09:54:32 +00:00
Stegmujo cedca8b14e
Render MathML for mskip and mkern from texified mhchem
Bug: T340024

Change-Id: I2f9e0bbb98f33d6269009248861e4573dc9e6911
2023-09-17 10:16:39 +02:00
Stegmujo 237ef0df8c Create prototype of mhchemParser-PHP TexVC integration
* contains a draft of integrating mhchemParser as a preprocessor for texvc
* this contains also a draft of recognizing some additional statements
coming from mhchemParser

Bug: T340023
Change-Id: Icdfd0bfbfc04b0f1fe89837c2fcd184a77733b0e
2023-09-16 15:33:31 +00:00