Commit graph

3045 commits

Author SHA1 Message Date
physikerwelt 47f530b355 Support for chemical formulae
* Add support for LaTeX package mhchem.
* Add hook <ce>
* Add format <math chem>

See bug description for the details.

Bug: T98306
Change-Id: I2ab80834edc5d071618bc52f133cfb2b7ece5016
2016-02-07 18:55:58 +00:00
Translation updater bot 30cb42eab6 Localisation updates from https://translatewiki.net.
Change-Id: Iaf8cd1d44b3ac6e764214003d45c9a78e3bb08de
2016-02-05 21:52:06 +01:00
Translation updater bot 6ef6159560 Localisation updates from https://translatewiki.net.
Change-Id: I782c67c3751a7568de1380af1fb82b402cd58039
2016-02-04 22:14:41 +01:00
Željko Filipin af6ccc9929 Update mediawiki_selenium Ruby gem to version 1.6.5
Bug: T125532
Change-Id: If387aff657cb37330695522466994bab9ca888f5
2016-02-03 17:27:36 +00:00
Ed Sanders 2b9bce4a0b makeSvgsAndCss: Add missing semi-colons to CSS, tweak symbol alignment formula
Sub-pixel alignment errors are unavoidable as the browser will rasterise
the SVG then round percentage offsets to the pixel grid.

Change-Id: I704db755d49be189db9670594e2ae2f193e6052d
2016-02-02 19:03:01 +00:00
Ed Sanders fd6f963504 makeSvgsAndCss: Increase max connections
This was set low to avoid issues with local servers, but the new default
server (wmflabs.org) can handle a higher value, and the script runs
much faster.

Change-Id: I69b06c59fc03c4c4b15619e8dff7bfc904dba96f
2016-02-02 12:49:32 +00:00
jenkins-bot 69b091480c Merge "Add option to adjust SVG baseline on math dialog buttons" 2016-02-01 19:05:06 +00:00
Thalia 2b9e3307ac Add option to adjust SVG baseline on math dialog buttons
If a symbol has "backgroundPosition" set to true, adjust
its vertical position in the button, according to the
vertical-align property on the SVG, by adding a
background-position property on its CSS rule.

Also set "backgroundPosition" to true for a number of
symbols and generate a new CSS file.

Bug: T123397
Change-Id: Ic9bbb65d2bedf38f569d8922599a2e3d2575f153
2016-02-01 18:07:13 +00:00
Translation updater bot 98e1d09fd3 Localisation updates from https://translatewiki.net.
Change-Id: Ia2e1cdafb1f81c9b1a255ce88032c9873b81f372
2016-01-30 22:48:25 +01:00
physikerwelt c77118d37d Reduce the number or requests sent to Restbase
Currently two post request and one get request is sent
for each formula.
This change gets rid of the second post request.

Change-Id: I805a2c0fa619c9143c38a0cc60e76c9480578ed3
2016-01-29 18:16:05 +01:00
Translation updater bot c024c544c3 Localisation updates from https://translatewiki.net.
Change-Id: Ie9519c0800fdce6456c776503b2f6d9bf8dfd987
2016-01-28 21:08:45 +01:00
Translation updater bot e6f9bead91 Localisation updates from https://translatewiki.net.
Change-Id: I461e8d80e57515f96c839909a62b4b96d437511f
2016-01-27 21:42:07 +01:00
Translation updater bot f95be4ba71 Localisation updates from https://translatewiki.net.
Change-Id: I3e7a9e692e2ac77423f9c6d0b92b5df60c932ff0
2016-01-25 22:30:33 +01:00
jenkins-bot 0ea59c1526 Merge "Clean up Wikibase related code" 2016-01-25 17:20:46 +00:00
Thiemo Mättig 8b8d91a771 Clean up Wikibase related code
This fixes some warnings in my PHPStorm, gets rid
of duplicate code, inlines constants that do not
make the code easier to read, and more.

Change-Id: I02f446491509043f5d3e51e26e932f76c9ecb6cf
2016-01-25 16:22:07 +00:00
jenkins-bot e736202170 Merge "Resize math dialog input to fit the available space" 2016-01-25 15:12:44 +00:00
jenkins-bot 9742440a7a Merge "Clarify math-visualeditor-symbol-group-root" 2016-01-24 15:00:13 +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
Thalia 150e658dc3 Correct \mathit button in math dialog
Change-Id: Ida4d82a9b859234e84a93ac34549076be9c42c46
2016-01-24 11:48:23 +00:00
Translation updater bot db43a0b809 Localisation updates from https://translatewiki.net.
Change-Id: Ie926c9c2be297b4f6626dbb1ea48eb4e6c06ae16
2016-01-23 22:26:56 +01:00
Thalia 79eeb24bc0 Resize math dialog input to fit the available space
Every time the math dialog is resized, calculate the
vertical space available to the input and resize the
input to fill this space.

Bug: T123891
Depends-On: Ia2e094071f385628449f1935f0250cbeb75196f0
Change-Id: I3f3c915469f282a6e0459a7e4d10e19bee68b8db
2016-01-23 11:08:48 +00:00
Translation updater bot 004d8f5dca Localisation updates from https://translatewiki.net.
Change-Id: Ic45910f92a1ca24559b5c50f353408fb4f67ccbf
2016-01-21 21:55:00 +01:00
jenkins-bot 5a82c47d32 Merge "Add PLURAL in math-status-introduction" 2016-01-20 23:23:36 +00:00
Translation updater bot 89adc4e622 Localisation updates from https://translatewiki.net.
Change-Id: Iec9ba9826e6ebacae1ee76693205c1399f19c8c2
2016-01-20 21:07:26 +01:00
IoannisKydonis 9e10e9cc82 Add PLURAL in math-status-introduction
Thread:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Math-status-introduction/en

Change-Id: I3a41a446001cf35c3dc0cac4025ae8fc64a3c9e4
2016-01-20 18:40:00 +02:00
Translation updater bot ec57d1818b Localisation updates from https://translatewiki.net.
Change-Id: Ia8b2632adfa4f07d7f138688bdef166d96274951
2016-01-19 21:19:25 +01:00
Translation updater bot f8d46ad17e Localisation updates from https://translatewiki.net.
Change-Id: I7feca55f62d3a9dc75c1ad62725bb2e18327d939
2016-01-18 21:36:04 +01:00
Translation updater bot 0e16082e0b Localisation updates from https://translatewiki.net.
Change-Id: I38bc58400b2e0e0112acf5ebabc1b60dc7772bbc
2016-01-17 22:32:40 +01:00
jenkins-bot 802a44f244 Merge "Add license-name to extension.json" 2016-01-17 02:43:33 +00:00
aude d293620809 Add license-name to extension.json
Change-Id: Iadec5b3253b13b9163140ac8ef1e27f10718dbd2
2016-01-16 21:21:09 -05:00
Translation updater bot c8fb3ce499 Localisation updates from https://translatewiki.net.
Change-Id: I0ccc15dfe84581c01a8917756b1a764ed290bec7
2016-01-16 21:57:29 +01:00
Thiemo Mättig 5563cda43d Change TeX to LaTeX in all messages
Change-Id: I43257064bc1a29bc3c1a44d5413ed3e183ad933b
2016-01-15 23:17:27 +00:00
Translation updater bot 1269b762c3 Localisation updates from https://translatewiki.net.
Change-Id: Ib234cb292d3f9c497baddfe7a1b23b423f79cb6e
2016-01-14 22:24:03 +01: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
Thiemo Mättig f1ac24db06 More human readable name for the Wikibase type "math"
As requested by Lydia. Personally I do support this change.

Change-Id: Ia5b7a96322bb41d1d78d483f0606e3a310cd8387
2016-01-14 12:44:11 +01:00
Translation updater bot e4d6486368 Localisation updates from https://translatewiki.net.
Change-Id: If0bb3cc8a5f4c1634313a8e0b76bd8a254031d39
2016-01-13 23:29:26 +01:00
Thalia a3a76811d2 Use more generic host and port for updating the math menu
Change-Id: Iaa079b8037d3c73cfc8a283aa3f7c7926feb328b
2016-01-13 20:04:14 +00:00
Translation updater bot 7ee802744e Localisation updates from https://translatewiki.net.
Change-Id: I827c88a574a0cd0dcafac4bf04831ec5308310a4
2016-01-12 22:46:31 +01: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
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
jenkins-bot 6c61ce19fa Merge "Implement datatype 'Math' for Wikidata" 2016-01-12 12:14:59 +00:00
jenkins-bot dc074a849d Merge "Small corrections to the math dialog menu" 2016-01-11 22:38:23 +00: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
Translation updater bot 49496e7d22 Localisation updates from https://translatewiki.net.
Change-Id: I8c3be461faf969d241e411dab740bec9c7982768
2016-01-11 22:52:11 +01:00
Thalia f62b625c21 Small corrections to the math dialog menu
Remove some duplicated symbols and correct some typos

Change-Id: I41e98a7b80554f3332e9abff33b9d12701a5d855
2016-01-11 18:18:42 +00:00
Translation updater bot 3743094847 Localisation updates from https://translatewiki.net.
Change-Id: I8190028cf3a28db97384863e3de29342b78a9fc8
2016-01-10 23:12:19 +01:00
Translation updater bot b68c615d4a Localisation updates from https://translatewiki.net.
Change-Id: I5dcca0e7353a8f40a04bd8b1e6a8dff4a6769580
2016-01-08 22:18:54 +01:00