Commit Graph

11 Commits

Author SHA1 Message Date
Umherirrender 2bbb86b868 Improve some parameter docs
Change-Id: If7d52d77935b7dd6cddd583b9a6215735fa8b91e
2017-08-09 22:56:19 +02:00
jenkins-bot 7787f3454d Merge "Add PNG and MathPlayer fallback for Wikidata user" 2017-06-23 20:38:08 +00:00
Kunal Mehta fbd17b4fef build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.DuplicateReturn
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: I46c900a5652a6560d18be6cd67badc37ed7f8d97
2017-06-21 00:59:25 +00:00
Moritz Schubotz 464886c3cb Add PNG and MathPlayer fallback for Wikidata user
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
2017-05-26 18:15:31 +02:00
Moritz Schubotz 303e64c502 Remove math script from Wikibase client styles queue
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
2017-05-26 17:24:50 +02:00
Timo Tijhof fcdfc31611 Remove 'ext.math.scripts' from styles queue on wikidata
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
2017-02-17 14:56:48 -08:00
Frédéric Wang be7be3becb Remove woff fonts
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
2016-05-23 14:52:59 +00:00
physikerwelt 6699724d65 Convert all array() syntax to []
Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Change-Id: I1d2604e3f246ede58ff8245ba2b940f258d2d80c
2016-04-13 10:18:23 -04:00
physikerwelt 5f16307582 RDF Formatter for Math data type
Bug: T126349
Change-Id: I15fbeec282868b4267a3e3d15740f2c3ff37ea48
2016-02-12 20:38:27 +00:00
Marius Hoch d955be7eca Introduce a "MathEnableWikibaseDataType" config
Set to true per default.
In order to be able to switch it off in production
for a coordinated deployment.

Change-Id: I520b2ff1ae6dc3bad4b6067f0b673821d3c01cb4
2016-01-12 21:22:49 +01:00
lyrianos93 946a18d14c Implement datatype 'Math' for Wikidata
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
2016-01-11 22:29:29 +00:00