In MathML rendering mode custom javascript is executed
to check if the brower has MathPlayer installed. In addition
it's checked if the browser supports SVG rendering. This
functionality was broken in Wikidata, since the scripts were
loaded as styles and not as JS modules.
Change-Id: I5fd8eafc89e01c6ec10cf0f3b71e885ec3a4399c
Follows-up 946a18d1, which accidentally added a scripts module
to the styles queue (which is a no-op) and fcdfc316 which removes
it from the repo.
Fixes the following debug warning:
> Unexpected general module "ext.math.scripts" in styles queue.
Bug: T158376
Change-Id: I432e724d5f84887f4aecb56db607d189db12c329
Follows-up 946a18d1, which accidentally added a scripts module
to the styles queue (which is a no-op).
Fixes the following debug warning:
> Unexpected general module "ext.math.scripts" in styles queue.
Bug: T158376
Change-Id: Id026fbaa48cfab582b192bc0974ba7c6f01f37d0
1) Because enabling native MathML now requires special configuration steps
from the users, they can as well just check their math font setup. Hence we
remove the Web font fallback.
2) We then can actually just remove ext.math.desktop.css since no specific
style is necessary any more on desktop.
3) We also no longer need to add the Web font to the list of font-family on
the <math> element. We actually just remove the whole font-family rule so
that it is up to web engines developers & users to decide the best math font
to use (e.g. via the "Fonts for mathematics" option in the font preference
menu of Firefox).
Change-Id: I1818d288b0f28715a460e3163590e4d0374c42b4
Set to true per default.
In order to be able to switch it off in production
for a coordinated deployment.
Change-Id: I520b2ff1ae6dc3bad4b6067f0b673821d3c01cb4
This change implements all components to use the datatype 'Math' in Wikidata.
Because 'String 'is used as value type, only the Formatter and Validator are needed to be implemended.
The components are:
* hooks
* Formatter class
* Validator class
* Test cases
Bug: T67397
Change-Id: Ic64fd6c8560f48052e2db24ae1f013d48a82b5e9