Commit graph

78 commits

Author SHA1 Message Date
Translation updater bot cebab4fc89
Localisation updates from https://translatewiki.net.
Change-Id: I202acac3d1b207f0618a4ac04d62686a101f2137
2024-10-01 09:37:55 +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
Reedy 702c6a1382 Cleanup SpecialMathWikibase WikibaseClient availability
If the Special Page is removed in onSpecialPage_initList, it
is not accessible, so the same logic that is duplicated in
SpecialMathWikibase is redundant.

Remove math-wikibase-special-error-no-wikibase, but leave
math-wikibase-special-error-header because it's used for another
error too.

Change-Id: I62d67a6f39591cc3c8d3b1af80380a6c758ff44f
2024-04-08 14:33:40 +00:00
Translation updater bot dfcb9d3524 Localisation updates from https://translatewiki.net.
Change-Id: I600ed0dff6fe8c003ce916a0065b633c71c7d5ab
2024-04-05 09:38:33 +02:00
Translation updater bot d33a4be7f0 Localisation updates from https://translatewiki.net.
Change-Id: Ifbf0ba58e04f15ae29811bb1a07701cecde100c8
2024-03-25 08:36:18 +01:00
Translation updater bot 33a5ca4cc1 Localisation updates from https://translatewiki.net.
Change-Id: I1d64e312c464ad35a590053783f1827f9224632e
2024-03-20 08:24:03 +01:00
Moritz Schubotz (physikerwelt) 8c4a60f08f Replace _s with -s in i18n math mode strings
Bug: T360176
Change-Id: Ibcadd60428d61afb34700455d4c2550f7e24cc43
2024-03-15 17:27:56 +00: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
Jon Robson b99c3800d0 Should be possible to disable the Math preview
Bug: T334261
Change-Id: I46e7641d22f4c17ba318a106a62518e4ca3e3c55
2024-01-11 18:53:09 +00:00
Translation updater bot d042bc6238 Localisation updates from https://translatewiki.net.
Change-Id: I0b3a99a42e612958059e904f558e6a3868db1296
2024-01-10 08:33:05 +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
Ed Sanders 01746a108c ve-mw: Remove unused i18n messages
Change-Id: Ibb1535e98aecc39656783471ad938000b1b32735
2024-01-02 16:32:27 +00:00
Translation updater bot 1ff7740fa9 Localisation updates from https://translatewiki.net.
Change-Id: I596eed801c5ca56fed19be1c215490e0b6a1c76a
2023-11-13 08:41:12 +01:00
Moritz Schubotz (physikerwelt) 88a4c8bc1d
Add minimal native MML mode
* Add minimal POC for native MathML rendering.
* (minor) convert string-based reference to MathConfig to proper access
  method.

Missing:
 *  Error handling
 *  Image fallbacks

Bug: T331047

Change-Id: I7e644c4688cca7fc9af0d54bdc260268c1f6b9df
2023-03-02 20:50:29 +01:00
Moritz Schubotz (physikerwelt) 110656335f Remove PNG rendering mode
Removes functionality to
* select PNG rendering mode
* automated fallback to PNG images for SVG rendering
* PNG mode related class and tests

However, PNG images received from mathoid / restbase are still stored.

Bug: T311620
Change-Id: I595926027433182cc0396570bc3f1ce0cd2cafb3
2022-11-21 18:57:27 +00:00
Fwolz 74bd7c4730 Add text field in VE to change QID
Makes it possilbe to change the QID of a formula in the visual editor
quick editor and in the dialog editor inside the options panel.

Change-Id: Ie4cb651939a59bf4446cd3e5327522d100eac5bf
2022-06-01 12:27:43 +02:00
Translation updater bot c04849e590 Localisation updates from https://translatewiki.net.
Change-Id: I6c1d54ad3d860fcd4f1f763e6e8975004d80811d
2022-02-11 08:41:55 +01:00
Translation updater bot 98e5916d6e Localisation updates from https://translatewiki.net.
Change-Id: I375f3730fcb7d1fbbbb61761872268bf0599591d
2021-07-12 08:06:38 +02:00
Translation updater bot b4c5632d96 Localisation updates from https://translatewiki.net.
Change-Id: I81a7075ee5c56442d08f1419621189c3ad5122f4
2020-12-28 10:39:07 +01:00
MarcoAurelio be3a3f427f i18n: Fix typo 'occured'
Bug: T201491
Change-Id: Idcaa4c1b42f62e2f001a336b4a1fbc7cba46b47f
2020-09-10 18:08:54 +01:00
Translation updater bot bc7fde9cff Localisation updates from https://translatewiki.net.
Change-Id: I99b7d85486c9a2bb4ca4914e8b06fdcb68e2d86b
2020-04-07 08:44:30 +02:00
Moritz Schubotz (physikerwelt) 9dad688f44 Add tracking category for pages that use a deprecated LaTeX syntax
Discussions in the Wikimedia Math Community show that there is consensus
to deprecate the use of MediaWiki specific LaTeX macros that conflict
with LaTeX macros from commonly used packages.
In this change, we show the deprecation warnings generated by mathoid.

Bug: T197842
Change-Id: I24dbb446665fdc227d0e7342fdbf8829b4c1bda4
2020-03-30 21:56:58 +02:00
Translation updater bot ddf28b2025 Localisation updates from https://translatewiki.net.
Change-Id: Ib3d18916bb4661602ecf1657b5548f605a053fd5
2019-11-29 09:30:13 +01:00
Amir Aharoni 67108480b3 Move API messages to a separate file
Bug: T189982
Change-Id: I3155ef30739ec343c011c57525757de8ab3fe35a
2019-11-25 17:51:19 +01:00
Translation updater bot e171f4075d Localisation updates from https://translatewiki.net.
Change-Id: I43e6c34c5907e80f637f85d41ebe502e0d373d98
2019-11-18 09:23:58 +01:00
Moritz Schubotz (physikerwelt) 4a7bc3ee31 Add special page and API endpoint that show information from math Wikibase items
Add a special page and an API endpoint to fetch data from Wikibase
items with a given qID. The special page summarizes information from
Wikibase. The API endpoint allows to request the information
directly. Both, the API endpoint and the special page, fetch the data
from a new helper class for consistency.

Bug: T208758
Bug: T229939
Change-Id: Idd22057a88312bf1a1cb5546d0a6edca5678d80d
2019-11-14 23:42:35 +09:00
Moritz Schubotz (physikerwelt) 0a4773e7de
Remove unused i18n messages
Bug: T210948
Change-Id: Ie758e1a47b347a56a03b240f01904d994eb18fc6
2018-12-02 17:59:37 +01:00
jenkins-bot 817ada2cf1 Merge "Add tracking category for deprecated mhchem syntax" 2018-11-09 12:19:12 +00:00
James D. Forrester 428f5a847b Drop support for MediaWiki core's removed "2006 wikitext editor"
Change-Id: I59bad8faee3f0f998344f985eb675087533d3d8f
2018-11-06 17:19:43 -08:00
Moritz Schubotz (physikerwelt) a865a8565a
Add tracking category for deprecated mhchem syntax
Gets warning information from restbase and adds tracking categories
for deprecated chemical syntax.
Refactor mechanism to add tracking categories, and avoiding rechecking
already checked formulae.

Depends on: Ieca66f45ae7685d61eece1624bd7ff65ccad2eaa
Change-Id: I10e78ab79015dc1331f645c60b25bbbd237e23fe
2018-10-27 20:38:02 +02:00
Translation updater bot c3c7ce3152 Localisation updates from https://translatewiki.net.
Change-Id: I9245eb1952e3290c28f50aa59278cd39f0251d43
2017-12-10 22:33:18 +01:00
Translation updater bot 4e338cb959 Localisation updates from https://translatewiki.net.
Change-Id: Id8e28d65133f1e8218d7206f7c7bf1cdbab0340a
2017-08-19 09:04:19 +02:00
Umherirrender fc2d573028 Add config for tracking category math-tracking-category-render-error
The tracking category was added with
If7537ed9117fb736a09f4396b7d55d774ce9674f

Bug: T173371
Change-Id: I6cdcfa0ece8e2b2644106bc219b538702b0bb2d8
2017-08-16 16:35:40 +00:00
Amire80 4784fbad35 Remove MathJax messages from en.json
Bug: T165475
Change-Id: I60a63c68552d3a9333c8a099c8893179739149ba
2017-05-16 14:03:59 +03:00
Translation updater bot 753e578a45 Localisation updates from https://translatewiki.net.
Change-Id: Iadf87c3e8477c40495956a9119dbca9253ccf321
2017-04-29 23:15:36 +02:00
Translation updater bot e9da713987 Localisation updates from https://translatewiki.net.
Change-Id: I684f5109a64132996e226e55da96bb23c8aadf16
2017-04-19 23:04:04 +02:00
jenkins-bot 30eece41c5 Merge "Correct "operators" message in chemSymbols.json" 2017-02-23 19:53:24 +00:00
Amire80 8674fdd47b Correct "operators" message in chemSymbols.json
Follow up to
I4452ceca55197fda5f1e1293a5741c6f5fb7c245

Change-Id: I061180179da83a7ad1229999ed97a783777bcfed
2017-02-23 19:34:54 +00:00
Translation updater bot e8af257c7e Localisation updates from https://translatewiki.net.
Change-Id: I0b6c118013cb8daaaebbc2f3b25ffb23e5a12f6b
2017-02-22 22:38:41 +01:00
Amire80 848d762e24 Add support for chemical formulae in VisualEditor
The chemical and mathematical formula inspectors and dialogs
have a lot of similar functionality, and the common parts are
now moved to the common MWLatex class.

MWMath* classes now inherit from MWLatex*, and so do
the new MWChem* classes.

Bug: T153365
Change-Id: I4452ceca55197fda5f1e1293a5741c6f5fb7c245
2017-02-19 18:36:26 +00:00
Translation updater bot 2aea08e1b0 Localisation updates from https://translatewiki.net.
Change-Id: I42fa804fda548769d1c97a900b712c090eb4c755
2016-07-09 22:53:32 +02:00
Moritz Schubotz 14ec229cf9 Add tracking category for math errors
Bug: T134872
Change-Id: I6d0bce34aacfba27bedda23f6395001dae9c6568
2016-06-06 12:06:22 +00:00
IoannisKydonis 785842d486 Clarify math-visualeditor-symbol-group-root
Thread:
https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Math-visualeditor-symbol-group-root/en

Change-Id: Ia05240001617b37786c88c2b77782c38a473ec1c
2016-01-24 16:23:17 +02:00
Thiemo Mättig d292ac5247 Fix qqq descriptions for Wikibase messages
Change-Id: I022de2d48b794c069ec479a15c2e5b86f2ea8d43
2016-01-14 16:56:45 +01:00
physikerwelt 2bc0cc0cc2 Add missing documentation
Fixes: Ia5b7a96322bb41d1d78d483f0606e3a310cd8387

Change-Id: I7ebe010bc2740f7d446c7a54c87f0227a920a145
2016-01-14 12:37:14 +00:00
Translation updater bot 7ee802744e Localisation updates from https://translatewiki.net.
Change-Id: I827c88a574a0cd0dcafac4bf04831ec5308310a4
2016-01-12 22:46:31 +01:00
Thiemo Mättig (WMDE) 9625dbc8e5 Revert "Fixup: Datatype has prefix PT"
This reverts commit 0add158294.

See \Wikibase\Lib\DataTypeDefinitions::getValueTypes. The
prefix is not part of the message key. If it is, this is a
bug and should be fixed.

Change-Id: I214d71a8f1c8de751e464924f75d0458e29f2514
2016-01-12 15:23:29 +00:00
physikerwelt 0add158294 Fixup: Datatype has prefix PT
Change-Id: Ic16ca72f570633a6d008e335d9e82b5bea1d94d8
2016-01-12 15:48:12 +01:00
physikerwelt 5d4fdaf852 Add i18n description for datatype math
Change-Id: I499beb33141d0a9c124db0ac11428544c766adc2
2016-01-12 14:43:24 +01:00
Thalia 5fe280c3cf Allow users to choose math inspector or math dialog
The context item for math nodes now has two edit buttons,
one for the inspector (edit inline) and one for the dialog
(edit). Creating a new math node automatically opens the
dialog.

Bug: T120382
Change-Id: Icd3ec75262fcc5e0cbc304051c651278b0d8b01c
2016-01-04 08:20:16 +00:00