Commit graph

1116 commits

Author SHA1 Message Date
Antoine Musso 0cebe64840 browser test: fix logic to find edit action
The simple math test failed to find the edit link on a non existent
page. It was looking for the text 'Create source' from Vector which is
now simply 'Create'.

Change the PageObject selector to use a CSS selector, more robust to
text changes.

Change-Id: Ifcbd07da8e343b5697fcff6af6ffac90ff4d6420
2015-12-14 21:24:13 +01:00
Translation updater bot 3256537366 Localisation updates from https://translatewiki.net.
Change-Id: I8f5979a8f45366cb571e09c83ff55e14e94fb4c4
2015-12-13 22:19:55 +01:00
jenkins-bot 301e049171 Merge "Make math usable without RESTbase" 2015-12-12 19:38:16 +00:00
Translation updater bot 961944c3e3 Localisation updates from https://translatewiki.net.
Change-Id: I7c440db349eb95e3415aeed9f8aaeb8438d69d97
2015-12-11 23:51:38 +01:00
physikerwelt 1ec767791b Make math usable without RESTbase
* Do not contact RESTbase in texvc rendering mode and
  use the well established tex checking that is already build
  into texvc.
* Do not use RESTbase in LaTeXML mode.

Background:
In I1982612e8c6a356e3dbdf447724ac82e5968cc77 RESTbased replaced
texvccheck that was a derivate of texvc designed for people
that wanted to use secure MathML rendering using mathoid.
The integration of mathoid to restbase made this feature obsolete.
However, texvccheck was not only used to check the latex input
that was sent to mathoid, but also the string which was sent to texvc.
Since texvc has already build in tex checking this is not
required and does not improve security.
Finally, users updating from old versions of the math extension
(prior to 2014) that do not have textexvccheck installed,
do not need to compile the texvccheck binary after this change.

PS5: Also treats the case where VisualEditor is not installed.

Bug: T121173
Change-Id: I1bd076b09206869b5ed75280d22e1b36bfb8d8ad
2015-12-11 22:04:12 +01:00
Ed Sanders 0f2fd944af Begining -> beginning
Change-Id: I91974126a3ea13e12c2a935d9d24e97e92b6df7e
2015-12-11 18:37:10 +00:00
James D. Forrester 830fbbf071 MathRestbaseInterface: Only read properties we know exist
Horrible hack but will stop the bleeding, I imagine.

Bug: T121165
Change-Id: Ie81cc78e02771bee8ff2d6d492d6a3308bf6cd40
2015-12-10 15:18:22 -08:00
Translation updater bot b56535f005 Localisation updates from https://translatewiki.net.
Change-Id: I5d1d1af2738b542d6fdb3d2be3754e6aadacefb5
2015-12-10 22:56:12 +01:00
jenkins-bot 41b1913136 Merge "Bump version to 3.0.0" 2015-12-10 15:32:38 +00:00
Translation updater bot cd1bc8a92c Localisation updates from https://translatewiki.net.
Change-Id: I00ff58b35f0f522c6a5aa989d4c82a3f73173e0f
2015-12-09 21:41:39 +01:00
physikerwelt cfdec7e814 Do not cache MathML results in database
* Currently the Math extension stores the rendering result from restbase
  in the database.
* This creates unnecessary write operations on the database

Change-Id: I5f07474fbf8017e39e94ac2b17676db1c3e92e72
2015-12-09 14:18:03 +00:00
paladox 19db7ea163 Bump version to 3.0.0
Requires https://gerrit.wikimedia.org/r/#/c/226998/

Bug: T99369
Bug: T106414
Change-Id: I82c4eda7b73fddf8a08694b339335659e6ad2506
2015-12-08 23:13:30 +00:00
Thalia 4087a1cec0 Focus the math dialog input after the symbols promise has returned
Bug: T119778
Change-Id: Ia5afe667241543addbda95d4d284b8af63f693a1
2015-12-08 13:26:34 +00:00
Translation updater bot 76cd36c4a0 Localisation updates from https://translatewiki.net.
Change-Id: I108d1b1274232b8cc9d0ac44403ad5c378622dd1
2015-12-06 21:44:18 +01:00
Translation updater bot df17765491 Localisation updates from https://translatewiki.net.
Change-Id: Ide5d71350ec3a3f63565ea3f125343213b34eb05
2015-12-05 23:12:15 +01:00
physikerwelt 0f8f9cff93 Use Restbase rendering in MathML mode
* For tex input, the only form of Math input that
  is accepted on WMF wikis, we retrieve MathML and SVG
  image from Restbase without using the database cache.

Change-Id: Ief1b6345c17db41f92684e00233d57240e97599f
2015-12-04 17:27:40 +00:00
Translation updater bot 29eac96bfd Localisation updates from https://translatewiki.net.
Change-Id: I6b64ffd3e2c40369c7c173a93d63d5e271c806ab
2015-12-03 23:15:34 +01:00
jenkins-bot 2b5a4fa98a Merge "Make math dialog menu content scrollable" 2015-12-03 21:34:13 +00:00
Thalia 3f193f6745 Make math dialog menu content scrollable
Also make input widget height respond to its contents. These two
changes address the problems of overlapping when the screen
height is limited.

Bug: T119900
Change-Id: Ie21c141673a9343d05da05cdbd2eaa96efff0a58
2015-12-03 16:25:00 +00:00
physikerwelt 897afa480b Use RestBase to check input tex rather than texvccheck
* This will increase the performance of tex rendering for all
 rendering modes since no shell access is required anymore.

 Merge with caution. If the connection to restbase fails, rendering
 of new formulae will be completely disabled i.e. broken.

Change-Id: I1982612e8c6a356e3dbdf447724ac82e5968cc77
2015-12-03 09:03:43 +00:00
physikerwelt f63eaeac23 Restbase based texvc input check
This change only connects the restbase and the mathinput interfaces
but does not change any functionality.

Change-Id: I3a23e5008c26c5f14ad842dcb5d22906a8aff33c
2015-12-03 08:56:47 +00:00
physikerwelt c66a85f143 Fix error in checking logic
Tex validation should be skipped if checking is disabled.
Consequently if 'disable tex filter' is set to 'never' it's a double
negation and tex should always be checked.
If 'disable tex filter' is set to always, never check tex.

Change-Id: Ic6fda8016838eae03a0ed36e3d8d4f35423ba8b1
2015-12-03 08:30:24 +01:00
Translation updater bot 9452a58563 Localisation updates from https://translatewiki.net.
Change-Id: Ifc986dc880ca1f1072db76dd1361cb6ebf925862
2015-12-02 21:57:32 +01:00
physikerwelt 6ef2e56439 Add Restbase interface
* Add a simple interface to Restbase that currently
  does not do anything.

Change-Id: I4c2ef329b3954fd35276a5e270d0dc3fcacabf7b
2015-12-01 21:10:09 +00:00
Translation updater bot b292ba512e Localisation updates from https://translatewiki.net.
Change-Id: I057358e6dfb437438f7c99f8ad6b114c60f6ff07
2015-12-01 21:34:09 +01:00
Translation updater bot 75a35f5662 Localisation updates from https://translatewiki.net.
Change-Id: I04664a035b84d1c025cda02f094260223d64cc7d
2015-11-30 21:34:45 +01:00
Translation updater bot 40a4507a25 Localisation updates from https://translatewiki.net.
Change-Id: Ic75e2af58da23caaa3a732c9493eb0a0d57f1344
2015-11-28 21:46:32 +01:00
physikerwelt fb3848e4bc Add phpcbf script to fix whitespace problems
Change-Id: Id5ae6b541ae71d64050beb3d5e601e9bf179dd6e
2015-11-27 23:59:27 +00:00
Translation updater bot f4e593e8cc Localisation updates from https://translatewiki.net.
Change-Id: I7837adf0e157bfbb52a895971929ccbbdc3291da
2015-11-27 22:45:47 +01:00
Translation updater bot 652f8e300f Localisation updates from https://translatewiki.net.
Change-Id: Icad4257dafeef11dd52cef0997799d5b41953068
2015-11-26 22:02:06 +01:00
jenkins-bot a56ee3ee1b Merge "Focus input and move cursor to end when MathDialog opens" 2015-11-25 22:50:27 +00:00
Thalia dfbce3f5ce Focus input and move cursor to end when MathDialog opens
Change-Id: Ie963913723b8c5f8ffb32701477627387c77eb85
2015-11-25 14:43:41 -08:00
jenkins-bot 7940965bf1 Merge "Ensure the formula preview in MathDialog is vertically centered" 2015-11-25 22:31:04 +00:00
jenkins-bot 66b4bccdfa Merge "Modify updateMwData in MathDialog to update display and id attributes" 2015-11-25 22:30:52 +00:00
Thalia bd36680d21 Ensure the formula preview in MathDialog is vertically centered
The formula preview is not centered when the display attribute
is set to block. Correct this by enforcing display: inline-block
when the math image is inside the preview element.

Bug: T119670
Change-Id: I77d9b213a31d3005212c8c11874112ddb64aa74a
2015-11-25 14:22:49 -08:00
Thalia a48a216171 Modify updateMwData in MathDialog to update display and id attributes
Also populate the options form with pre-existing values and add event
handlers.

Bug: T119663
Change-Id: I32fbecdb9b204fa33e309662f1f670942968fee7
2015-11-25 14:22:21 -08:00
jenkins-bot 87fe603227 Merge "Set autocomplete options for math dialog input" 2015-11-25 03:50:48 +00:00
Thalia 959d0d7b3a Set autocomplete options for math dialog input
Depends on I57db44c876c in ve-mw

Bug: T119549
Change-Id: I80193b7b662336c65b81556eb000f3895cddf49f
2015-11-24 18:54:48 -08:00
jenkins-bot d78e662f71 Merge "Make math dialog with clickable list of formula fragments" 2015-11-25 02:22:50 +00:00
Thalia 6e73aaf86c Make math dialog with clickable list of formula fragments
The main components are:
- a menu of formula fragment buttons
- an ace editor text input into which LaTeX commands are
inserted on clicking the buttons
- a preview of the formula

The deviations from the draft design (full-width menu,
smaller buttons, dialog is 'larger' instead of 'large')
are so that more buttons can be seen at once.

Depends on Ia0f46da2d4 in ve-mw
Depends on Ib75fb7b087 in ve-mw
Depends on I758f90abb9 in ve-mw
Depends on Ibcd941d938 in CodeEditor
Depends on Ie814f59086 in oojs-ui
Depends on If540670bf2 in oojs-ui
Depends on I5f70f133b7 in ve core

Bug: T114163
Bug: T118617
Bug: T118618
Change-Id: I96d4b72f2e49ad3f43a2e5c71f0d348fdfb35503
2015-11-23 16:30:38 -08:00
Translation updater bot bac8ae799e Localisation updates from https://translatewiki.net.
Change-Id: I874cdd9a3d3881aebfca10b47e513a6844bd9b5e
2015-11-23 22:33:29 +01:00
Translation updater bot 95977c0493 Localisation updates from https://translatewiki.net.
Change-Id: I72d1c1c99a6f2e66b15e0dd254058278f25d3486
2015-11-22 20:44:42 +01:00
Ed Sanders e4719c56a7 SVG/CSS generator: Ignore duplicates and 'notWorking' buttons
Change-Id: I5f0c9fc62a1e434576550e142d6b25f329e63e7f
2015-11-20 18:03:06 -08:00
Ed Sanders cbc847222e SVG/CSS generator: Make faster by skipping already-fetched icons
Also keep the CSS file in alphabetical order so additions make
for clean diffs. (The async built file had a pseudo-random order)

Change-Id: Iad76ef36c90f42ba3232f135b05465408f42b2ba
2015-11-20 17:32:03 -08:00
Translation updater bot e21af5702e Localisation updates from https://translatewiki.net.
Change-Id: I6f0b856646b5bfbc76768093854e6f5820dcb83c
2015-11-20 22:56:22 +01:00
Translation updater bot b453c4def0 Localisation updates from https://translatewiki.net.
Change-Id: I7947cb8f000ca8cdb4644f10e735362f8729da8c
2015-11-19 21:37:39 +01:00
Ed Sanders a682d9677f VE: Correct name of script in header
Change-Id: I4a76d72dcb22a5ebeb02f6c0b6946c1ef4744185
2015-11-18 20:16:13 -08:00
Thalia eac71ab60f Add tool to create SVG files of LaTeX symbols
Also produces a CSS file for the symbol buttons, using the
SVG filenames. Gets the list of symbols from symbols.json.

Bug: T118660
Change-Id: Iaa792418d870a7e266b6455ef037994e31278278
2015-11-19 04:11:59 +00:00
Translation updater bot 1c239d233a Localisation updates from https://translatewiki.net.
Change-Id: Ia3aa6899ea810a6cbc9ae68bf2b0c4a2df04c89b
2015-11-16 22:16:13 +01:00
physikerwelt 8ca6554adf Resolve problems on SpecialPage:MathStatus
* Update reference SVG image
* Store image in file to simplify review

Bug: T113708
Change-Id: Ie727148dff7896bde1068f6efc643b430536991f
2015-11-10 12:55:19 +00:00