Commit graph

2807 commits

Author SHA1 Message Date
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
Željko Filipin 4365c86547 Added Rakefile
This is needed for our continuous integration.

Bug: T117993
Change-Id: Id4eb201c688b5b357524dc27bfa12aeb3ce02854
2015-11-09 17:50:54 +01:00
Translation updater bot 451fb11e8d Localisation updates from https://translatewiki.net.
Change-Id: Ibec28b1013a0949bf5836b467d573ffa0cb4c2bd
2015-11-05 21:43:56 +01:00
jenkins-bot fabdb488b5 Merge "VE: Register sequence with CommandHelp" 2015-11-05 15:36:46 +00:00
Ed Sanders 17168f573b VE: Register sequence with CommandHelp
Depends on I65e2bfc2 in VE-MW

Change-Id: I8f71b1b242cb5c273c6d4a16bdfef6bf1e0adb55
2015-11-05 10:12:38 +00:00
physikerwelt 6b30663057 Move Math specific CSS from core to extension
Bug: T110492
Change-Id: I3775980916de12aef23bac85c38a6f92253aa479
2015-11-03 18:49:19 +00:00
physikerwelt 2548c12e49 Use normal line-height for math elements
* With the current settings for example the distance between
  matrix rows is too large.

Bug: T106890
Change-Id: Iffa2534f7d39e9faf41ab11124c9b9ff571988d2
2015-11-03 19:30:23 +01:00
Translation updater bot 7700840b35 Localisation updates from https://translatewiki.net.
Change-Id: If7f4322d6d0aba43ea40241fc5b63d2a67e71fea
2015-10-31 21:06:02 +01:00
Translation updater bot f5769154d6 Localisation updates from https://translatewiki.net.
Change-Id: I07e3b631979bad6b2dd18a0afeaa56541369e49f
2015-10-30 21:48:56 +01:00
Thalia f4a9297a70 Use new error element
Depends on I5839ba62fe in VE-MW

Bug: T114754
Change-Id: Iedd632af8743a53aa96b736ca5ef5af40c28bc7a
2015-10-29 22:08:31 +00:00