Commit graph

707 commits

Author SHA1 Message Date
physikerwelt (Moritz Schubotz) 1ecf95a3d4 Exports the MathCache table
This is required for testing of texvcjs.

Change-Id: Ib602aba8f73fc18e30ebf0efc609c8fbb2d122ef
2014-11-20 17:24:19 +00:00
physikerwelt (Moritz Schubotz) 3ffa1dbc11 LaTeXML: prevent automatic rerendering of SVG
MathMathML::renderingRequired called the getSvg
function in MathLaTeXML that caused an automatic
rerendering of the SVG image if it was not cached.
That this rendering is triggered from the function
renderingRequired is contra intutive and should be
avoided.

Change-Id: Ifa14f50193a05b3058624a18974c56897fcec09e
2014-11-19 05:34:50 +00:00
physikerwelt (Moritz Schubotz) a66845ab07 Add debuging functionality
Write debug log to database if $wgMathDebug is enabled.

Change-Id: I7ddd297b3ab0e3ec8b46faf55a466fc2ae6f5a9a
2014-11-18 17:54:55 +00:00
physikerwelt (Moritz Schubotz) 54ad7facb0 Add logging table
* Adds a database table to store log entries in the database
* Creates the mathlog table if the mathdebug mode is enabled
* Replaces dirname( __FILE__ ) -> __DIR__

Change-Id: I7935f33e04a1c9d7d4f1dbbc600e840f07c19dad
2014-11-18 17:48:37 +00:00
physikerwelt (Moritz Schubotz) d9522b6049 Increase size of the math_mathml in the mathlatexml table
The type text allows text with maximum length of 64k only. Since the
MathML generated by LaTeXML is quite verbose this is too small for
some equations used at Wikipedia.

Bug: 73090
Change-Id: Id09ec6201f68efe63a439f6e85a53876d5c1e521
2014-11-18 12:42:27 +01:00
Translation updater bot d3a43b5227 Localisation updates from https://translatewiki.net.
Change-Id: Ib88edd172c107a7e4f1f6b9402987e119bb52942
2014-11-17 22:28:02 +01:00
Ed Sanders f26cf2cbbd Sort i18n messages, and fix grammar
Use singular in "VisualEditor formula editing".

Change-Id: I88e03d757c5b18615fdcc2978bb5447a01f11b61
2014-11-17 10:50:54 +00:00
Translation updater bot 6764c5ac78 Localisation updates from https://translatewiki.net.
Change-Id: Iea9e70f22f62abeb70b71b160271a5719caaf51d
2014-11-15 23:14:58 +01:00
Translation updater bot 7cf4779be3 Localisation updates from https://translatewiki.net.
Change-Id: I29a980cc5df4bc889c28f5ab797e3e8c1daf4326
2014-11-14 22:24:34 +01:00
Translation updater bot eff23768a5 Localisation updates from https://translatewiki.net.
Change-Id: Idb2c83bd7654c28065b59312508baa5e4ac848bc
2014-11-13 23:09:32 +01:00
Cmcmahon df94d04ba3 QA: update Ruby gems
Change-Id: Iea3356aef3ea4267a513031a2e6218b7cd3eddff
2014-11-07 08:53:58 -07:00
Translation updater bot 746c858285 Localisation updates from https://translatewiki.net.
Change-Id: I610c788369758be559369d26727a3841f818dd63
2014-11-05 21:44:44 +01:00
Translation updater bot ba386a7307 Merge "Localisation updates from https://translatewiki.net." 2014-11-04 22:44:06 +00:00
Translation updater bot 9d51333328 Localisation updates from https://translatewiki.net.
Change-Id: I8e706c424e8d2839d391b8258c487dfc55a086b2
2014-11-04 23:29:17 +01:00
Ed Sanders 575e8407e6 VisualEditor: Add selection restriction to command
Depends on I88f3d04 in VE.

Change-Id: I33006574d86daa6ed2568b631a62e063c9f98542
2014-11-04 22:12:59 +00:00
physikerwelt (Moritz Schubotz) 9141a9e5ed Remove Undesired spaces after math expressions
The linebreak after the math fallback image caused
the additional space.

Bug: 72806
Change-Id: Id7117f84ddb4cbe2eb4d6b8abeecf38b4f7e3c6d
2014-11-03 01:10:43 +01:00
Translation updater bot 27ff45433d Localisation updates from https://translatewiki.net.
Change-Id: Ic3895aea46587d7f4f073564e15bd15ddc843cf3
2014-11-01 22:38:51 +01:00
Translation updater bot aa818c2fc8 Localisation updates from https://translatewiki.net.
Change-Id: Id754011542ebcf35f7d5de223fa3ed60dedd96ca
2014-10-31 21:45:59 +01:00
Translation updater bot 82363ffde9 Localisation updates from https://translatewiki.net.
Change-Id: Ia4e1cf85839804d6a054f8ba145659fb70bb82d8
2014-10-30 23:30:03 +01:00
Translation updater bot 5e216605bc Localisation updates from https://translatewiki.net.
Change-Id: Ief310ef37f8389acf8ab81edaffb33a77007c9a6
2014-10-29 22:06:17 +01:00
Translation updater bot 8c7d9c9fea Localisation updates from https://translatewiki.net.
Change-Id: Iaccf7bbdd70124cbcb5067ab1ea50d7546e656fe
2014-10-28 15:17:11 +01:00
Translation updater bot 19207b7182 Localisation updates from https://translatewiki.net.
Change-Id: Ia7037485336ce1d897cc9d7a58ebfe7ba8ce05f0
2014-10-27 20:14:08 +01:00
Translation updater bot 3ec998de53 Localisation updates from https://translatewiki.net.
Change-Id: I574acf58977197ea6249f1843798cbfefda78125
2014-10-26 21:09:50 +01:00
Amir E. Aharoni 51e1d2b7b9 Improve wording of preferences
Change-Id: Ieaea40b3337db885d7dc4245467f4879a8650441
2014-10-25 17:43:09 +03:00
Translation updater bot bc0db79039 Localisation updates from https://translatewiki.net.
Change-Id: Ibe19f66c953e47974935a353a3a188e61d508919
2014-10-23 23:25:07 +02:00
jenkins-bot c1207937f5 Merge "Make MathML mode work on mobile devices" 2014-10-22 17:55:53 +00:00
Translation updater bot 586befcd20 Localisation updates from https://translatewiki.net.
Change-Id: I64fdcd4b610d58bfb9451246fc5835e9746c6f14
2014-10-21 23:01:08 +02:00
Željko Filipin ce58cbc738 Prepare repository for running RuboCop after every push to Gerrit
For now ignoring all problems.

Bug: 69245
Change-Id: Id1164187eddc6dcb006ca771d62ca867677213f9
2014-10-21 15:04:22 +02:00
Frédéric Wang e26d641b85 Make MathML mode work on mobile devices
- load ext.math.css on mobile devices
- move the @font-face rules for the Latin Modern WOFF fonts into a separate
  Desktop-only stylesheet.

Change-Id: Ifca3679185a4675bc31dff99a086fef740b9dab5
2014-10-20 22:40:53 +02:00
Translation updater bot 12450117ae Localisation updates from https://translatewiki.net.
Change-Id: Id9aca0e554e88d12047f608c117615b4f872ba2f
2014-10-20 22:26:08 +02:00
Translation updater bot 22ab9302a8 Localisation updates from https://translatewiki.net.
Change-Id: Iae95112256911401de6c3d5b5c2823e35514732f
2014-10-19 22:07:51 +02:00
Translation updater bot 2ebf1bd8f7 Localisation updates from https://translatewiki.net.
Change-Id: I3069bb1c16d852620fe8e824d96835a9fbedb751
2014-10-17 21:16:04 +02:00
Translation updater bot 014c11d1bb Localisation updates from https://translatewiki.net.
Change-Id: I4f11e42c14711cf05a99ef10edc5641ec963fc86
2014-10-16 23:05:02 +02:00
James D. Forrester c190beaf33 VisualEditor: Update icon to use consistent blackness with other icons
Change-Id: I51abe923c82204be0f4e098b92e9e4d35c33dd60
2014-10-16 10:49:04 -07:00
physikerwelt (Moritz Schubotz) ae930172fd Adjust caching times for svg images
In the first period we set the caching time for server-side
caching to 1 week and the value for client-side caching
to 1 hour.

Change-Id: Ieab63dfe9a00f31d64945180d7b0d98b9fe62b39
2014-10-16 16:22:40 +02:00
Gabriel Wicke f5fbffb8ca Merge "Use more consistent background image scaling" 2014-10-15 22:02:41 +00:00
Translation updater bot d1a69594c2 Localisation updates from https://translatewiki.net.
Change-Id: I2ee4fea9163cfcdbe9491db402e08abb7b75fbae
2014-10-15 22:06:58 +02:00
Gabriel Wicke d7954691c1 Use more consistent background image scaling
Chrome in particular would end up with fairly small and inconsistent
background sizes when using background-size: contain;. This makes sense
according to the docs at
https://developer.mozilla.org/en-US/docs/Web/CSS/background-size, which
doesn't specify that the background actually has to fill the entire element.

background-size: 100% 100%; does force full-size scaling, which is what we
want. Verified to work as expected in Chrome 38 on Linux.

Change-Id: I508e08dac1480491efcd1d27cfac16187bfbd4fe
2014-10-15 17:05:53 +00:00
Gabriel Wicke 97d6f8ff89 Work around tidy by using a meta element instead of an empty span
HTML tidy will strip empty spans, so don't use one for the fallback image. We
use a meta element instead, as that does not normally render at all & doesn't
have any default styling coming with it.

Change-Id: I5bcbbc9468433e3c8722c09ce813a6f5ac741333
2014-10-15 13:13:41 +00:00
Reedy 672df7dcc8 Fix file permissions
Bug: 71941
Change-Id: I7b0eddc0ca679cf233ef29dcdfeca024ecc71d38
2014-10-15 12:16:20 +00:00
Translation updater bot d3e21a1044 Localisation updates from https://translatewiki.net.
Change-Id: Idfb438a17ff33fb6255b77e4144610ca95221d0e
2014-10-14 23:01:41 +02:00
Translation updater bot be90a7f4dc Localisation updates from https://translatewiki.net.
Change-Id: I0450d88fd0c79263821297f16763c116d1bdb623
2014-10-13 21:53:44 +02:00
jenkins-bot 67fbac7d67 Merge "Use radio buttons only for math mode selection" 2014-10-13 07:59:21 +00:00
Gabriel Wicke c61b8becac Use radio buttons only for math mode selection
While the combination of all redering modes, might
be useful for some power users it will confuse the
average user and makes bug reporting harder.

Therefore, source rendering on the server side is
used when MathJax is enabled on the client side.

Change-Id: I05a20d7c2298115dbf0429db6c107e8132cc15ff
2014-10-13 09:42:37 +02:00
Frédéric Wang d4e928a486 SVG images should not be loaded when MathML is used
- Use span with a background-image instead of <img> for the fallback SVG so
  that they don't load in Gecko.
- Make the image fallback a span inline-block so that it can have a dimension.

Bug: 71929
Change-Id: I7f820cd5766db1fece452ebfc72915a55e42c82e
2014-10-12 23:00:55 +00:00
C. Scott Ananian 209f3218ad Regularize spacing in texvc and texvccheck
Tweak the position of spaces between function invocations and arguments
so that the expansion of mediawiki-specific functions (`\Rho`, etc) is
consistent with how spacing is added to normal function invocations.

This helps ensure that `texvc`/`texvccheck` is idempotent -- that is,
that it can parse what it emits, and render it without change.

Change-Id: I05fc8fa0201debf611ed4900d3cc953a6a8188ac
2014-10-12 22:04:41 +02:00
C. Scott Ananian e38a70ef9e Some commands should require arguments in texvc and texvccheck
The \overbrace, \overleftarrow, \overleftrightarrow, \overline,
\overrightarrow, \underbrace, \underline, \widehat, and \widetilde
commands take a single mandatory argument.  Move \overbrace and
\underbrace to the fun_ar1nb list, since they handle trailing
subscripts and superscripts specially.  Move the other functions to
the fun_ar1 list.

Change-Id: I449c8611eeb2eaa7ccb30d3b325975868a160f95
2014-10-12 21:31:36 +02:00
C. Scott Ananian 9d0ed80bf9 Remove unused empty production for litsq_zq in texvc
It is impossible to take the empty alternative for this production,
since any input which matches `litsq_aq` would instead match `lit_aq`
if the empty alternative is used.  In addition, there is no action
clause for the empty alternative, so it wouldn't typecheck if the
empty alternative was possible.

This has no effect on the generated parser, but clarifies the grammar.
This commit matches a25078ff9d to
texvccheck.

Change-Id: I52eddd7321bd8450b47a5d57f2d704f0dd669f16
2014-10-12 19:28:03 +00:00
C. Scott Ananian b8161615f4 Switch to text mode before emitting \AA or \textvisiblespace.
The \AA and \textvisible space commands aren't valid in math mode.
Surround them with \mbox so that we switch to text mode before
emitting them.

Change-Id: I36c23c80751401be4bbce6aca6c3333912f67add
2014-10-12 21:18:25 +02:00
Frédéric Wang 3d0b787cbe Move vertical-align back to ext.math.css
This improves If8ee1cf6453257a0a2f6aa186d4007954a8e5d8e

Change-Id: I794b39a5d322a92d9f722ded790e213803448127
2014-10-12 18:22:06 +00:00