Commit graph

2812 commits

Author SHA1 Message Date
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
jenkins-bot 87c2cb4ab1 Merge "Add support for chemical formulae in VisualEditor" 2017-02-21 23:42:46 +00:00
jenkins-bot 5dada7096d Merge "Remove 'ext.math.scripts' from styles queue on wikidata" 2017-02-21 08:20:24 +00: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
jenkins-bot 74be597efb Merge "build: Bump stylelint and make pass" 2017-02-18 00:13:01 +00:00
James D. Forrester 6a6c68b387 build: Bump stylelint and make pass
grunt-stylelint              0.6.0  →   0.7.0
 stylelint-config-wikimedia   0.3.0  →   0.4.1

Change-Id: Id87b8df04d415e1f1058a4042a31408236402037
2017-02-17 15:30:18 -08: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
Translation updater bot 09d7aa6db3 Localisation updates from https://translatewiki.net.
Change-Id: Iec8ce31e1ae6fc57d82c313f8159e86bc4dc38f6
2017-02-15 22:31:33 +01:00
James D. Forrester 4a06cdf728 Follow-up 75db3ed9: Also fall back to symbol.insert in MWMathPage
Bug: T157751
Change-Id: Ia0d40c70f52f41eb07dcbe121437379419b861b3
2017-02-09 17:47:27 -08:00
Ed Sanders 75db3ed9fe Math symbols: Remove 'tex' when identical to 'insert'
Change-Id: I3e9abc923eb686a60b9ae5359d8b823acc863f31
2017-02-09 19:22:47 +00:00
Translation updater bot d9ac1fad43 Localisation updates from https://translatewiki.net.
Change-Id: I4bc64f2774b9c4f527b1158fb2c8faf3a869783c
2017-02-06 22:40:09 +01:00
Brad Jorsch 1c3dd4fb0d Replace use of &$this
Use of &$this doesn't work in PHP 7.1. For callbacks to methods like
array_map() it's completely unnecessary, while for hooks we still need
to pass a reference and so we need to copy $this into a local variable.

Bug: T153505
Change-Id: Ib31f3bbffdd6b25ad9a21498294644e4dde33bd1
2017-01-31 22:54:07 -05:00
Translation updater bot 0677292659 Localisation updates from https://translatewiki.net.
Change-Id: Ib6937cccf5e345cb1889280e35047cd0cd74d318
2017-01-30 22:36:32 +01:00
Translation updater bot 1a21f0b509 Localisation updates from https://translatewiki.net.
Change-Id: I22bbbf8babff372d83b4003d9c292e255d080dd2
2017-01-27 14:44:16 +01:00
jenkins-bot b968932701 Merge "build: Re-use MessageDirs in banana conf" 2017-01-24 08:03:56 +00:00
Ed Sanders 40f5a212ab build: Re-use MessageDirs in banana conf
Change-Id: I9cc8593d38154dd092f576443ea3a5c2302d7cd7
2017-01-23 13:48:34 +00:00
Darian Anthony Patrick a16c563459 Skip shell invocation on large input
Add a sanity check to the math extension that skips shelling out to
texvc if the input is insanely large.

Bug: T129506
Change-Id: I2c7b6561464bddb4c3eab9230fa8168b24adaa37
2017-01-20 15:09:56 -08:00
jenkins-bot cb190d507d Merge "Add scrollbars to displaystyle formulae" 2017-01-17 18:51:13 +00:00
Amire80 48a5a0a7e8 Split ve.ui.MWMathPage.css from ve.ui.MWMathDialog.css
There are separate JS files for them, so the CSS should be separate, too.

This is a part of the refactoring that is required for bug T153365.

Change-Id: Iadbe5eeccff25ed1d184658945a4eb52e465d863
2017-01-11 19:44:31 -08:00
jenkins-bot f8ceb1d495 Merge "Add word list to math dialog for autocompletion" 2017-01-11 23:57:20 +00:00
jenkins-bot ca22dee516 Merge "Create chemistry icon for upcoming VE chemistry support" 2017-01-11 23:33:27 +00:00
Thalia 06f6af78dc Add word list to math dialog for autocompletion
Bug: T155107
Change-Id: I57bbf9d9a75810cd06b9ba43a173f9bf4a74c9fc
2017-01-11 14:44:16 -08:00
Ed Sanders edd166cfa3 Create chemistry icon for upcoming VE chemistry support
Bug: T153365
Change-Id: Ieaf5708932cfc91de6c293fd752dd64b8a73c73d
2017-01-11 14:28:31 -08:00
Moritz Schubotz 63082595d9 Change chemistry tag name from ce to chem
<ce> will still work, but it's deprecated.

Bug: T153606
Change-Id: Idef1078b188f2b945c9e1f8f66096779cc37133f
2017-01-11 11:55:01 -08:00
Moritz Schubotz c877e564fc Add scrollbars to displaystyle formulae
Add mwe-math-element class attribute to the outermost element
holding mathematical expressions. Add a css rule that adds a
scrollbar to the element in case it's a div, which is the case
for displaystyle formulae.

Note, there will be no scroll bar if long formulae are not
explicitly marked up das displaystyle formulae.ƒ

Bug: T134281
Change-Id: Iba462601bb15f8667d1284282ba4f6c2020a02b9
2017-01-11 10:49:40 -08:00
Translation updater bot f5778bafd2 Localisation updates from https://translatewiki.net.
Change-Id: If94ed000794117f38b672f27e3f41212b547c6f2
2017-01-05 23:46:34 +01:00
jenkins-bot 7b3494ede4 Merge "Revert "Add class mwe-math-element to math elements"" 2017-01-04 00:12:02 +00:00
Physikerwelt 797c8ddfc9 Revert "Add class mwe-math-element to math elements"
This reverts commit e674d7e73b.
That commit does not help to solve T134281.
It adds a CSS class name which is configurable
by a global variable to various math elements, which is confusing.

Change-Id: Iea5f231e0cea1221dc717b3409b36c0baf11bb24
2017-01-03 23:57:46 +00:00
Translation updater bot b1f72b3aec Localisation updates from https://translatewiki.net.
Change-Id: Id5a8cdd18b66519b866fc5579b1e482ec5933b95
2017-01-01 10:02:31 +01:00
Translation updater bot 28f19f6af5 Localisation updates from https://translatewiki.net.
Change-Id: I0385e599eb32cb19d2031f642086662950992de5
2016-12-28 10:47:25 +01:00
jenkins-bot d1cdb84e20 Merge "Remove broken test script texvccheck/test.pl" 2016-12-26 00:05:16 +00:00
jenkins-bot 922149ac83 Merge "Remove unused Makefile variable "DIRS"" 2016-12-25 14:28:38 +00:00
Tim Landscheidt 352abc726f Do not ignore all .mli files in texvccheck
The pattern "*.mli" was incorrectly added to texvccheck/.gitignore by
4c9dc2f08e with the comment "Compiled
source".  As with d9a7da14f1, .mli files
define the interfaces for the corresponding .ml module and thus should
not be ignored.

The only exception to this is parser.mli which is generated by the
ocamlyacc from the parser.mly definition, so this change only ignores
those files.

Change-Id: I263df70e58fb14a7228c32d5c985ff7f1b841891
2016-12-25 13:39:20 +00:00
Tim Landscheidt a98ebf457c Remove unused Makefile variable "DIRS"
Change-Id: I72eb49e2c0c1bd3afd0e3f76bb596fa87d10dc2b
2016-12-25 13:35:16 +00:00
jenkins-bot 5939ee17fa Merge "Fix "make texvccheck" in top-level Makefile" 2016-12-25 13:24:11 +00:00
Tim Landscheidt ed740e7946 Remove broken test script texvccheck/test.pl
The script has a syntax error, the program tex2svg is not contained in
this repository, "texvc" should probably be "texvccheck", and the
result of this invocation is thrown away, thus always outputting
"bad".

Change-Id: I9ca0324d58f81dbb9e1bfb31e677fc877172675f
2016-12-25 13:17:42 +00:00
Tim Landscheidt 698f2c9fec Fix "make texvccheck" in top-level Makefile
As texvccheck is a directory, make always considered the target
texvccheck to be up-to-date, thus never invocating make in the
subdirectory itself.  This change marks texvccheck as a .PHONY target,
causing make to compile texvccheck in the subdirectory.

Change-Id: Ib758965c1eb53e1f7221e304fc808dc68136a219
2016-12-25 12:45:09 +00:00
Tim Landscheidt d9a7da14f1 Do not ignore .mli files
The pattern "*.mli" was incorrectly added to math/.gitignore by
159708754c with the comment "Compiled
source".  Actually, .mli files define the interfaces for the
corresponding .ml module.  They are manually created and maintained,
akin to .h files in C, and thus changes to them should not be ignored.

Change-Id: I1eee6b46f8f81a7a0085901f602eb7a1f4ae6fd4
2016-12-25 11:53:20 +00:00
jenkins-bot 513372bae2 Merge "Add class mwe-math-element to math elements" 2016-12-21 23:17:39 +00:00
tameeshb e674d7e73b Add class mwe-math-element to math elements
This is the fix for the bug that makes the whole page scroll when long 
equations are present in the wiki article.

Bug: T134281
Change-Id: I29f8df027384098cd0923bcfa23a914c8d887bba
2016-12-21 23:03:18 +00:00
Translation updater bot 7bf462f184 Localisation updates from https://translatewiki.net.
Change-Id: I657c2528dd7b08520ae59f3614b014bf5634a4a0
2016-12-19 22:46:32 +01:00
IvanFon b4eb57f164 Updated maintenance scripts to use $this->requireExtension()
Added $this->requireExtension() in maintenance/MathGenerateTests.php

Bug: T152139

Change-Id: I79670c9102e1ea97390edc4c8408d269f3967547
2016-12-17 15:23:58 -05:00
Translation updater bot 3b12174946 Localisation updates from https://translatewiki.net.
Change-Id: I40b5f4605f3cd1b7640ecf8cc4ad502856c7d33d
2016-12-15 23:17:26 +01:00
Translation updater bot dd1d513837 Localisation updates from https://translatewiki.net.
Change-Id: I0b2d5968722454f5f739f83923c9bbde0bfda85e
2016-12-12 22:31:34 +01:00
Translation updater bot e56ce0efcf Localisation updates from https://translatewiki.net.
Change-Id: If8eed32db4e65dece80a9cffd88390a921b50a87
2016-12-06 22:44:59 +01:00
Translation updater bot 1ab560fdb1 Localisation updates from https://translatewiki.net.
Change-Id: I416ebc326868452dbc4ed4fa8bf93bf05c5d6a85
2016-12-05 22:49:56 +01:00
Ed Sanders a182a9d332 Fix primary command name
Primary command name is used by double click and enter.
Make this launch the default edit action 'mathDialog'.

Change-Id: Ie7a87914a55ecc87769c4a1aa029b36966b83a04
2016-11-30 12:39:59 +00:00
Translation updater bot 7be2c2a314 Localisation updates from https://translatewiki.net.
Change-Id: I6f2800f72f843b348e27bbaaf05fc494f6f35551
2016-11-27 22:29:50 +01:00
Translation updater bot 81ad806ab0 Localisation updates from https://translatewiki.net.
Change-Id: I0706577bf1df18c1486025673c0da2650c0181b3
2016-11-24 22:20:39 +01:00