Commit graph

746 commits

Author SHA1 Message Date
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
C. Scott Ananian 7914fbea61 MathCoverageTest: encode test file using JSON instead of PHP serialize.
This ensures that changes to the test inputs or outputs yield readable
diffs when reviewing.

Change-Id: I7b4ef8102ad7fbf7c289a27db60f304a140b93a5
2014-10-12 18:02:50 +00:00
Frédéric Wang 296c79e070 Rename fallback-svg and fallback-png to fallback-image
- Merge fallback-svg and fallback-png into one fallback-image class.
- Move the vertical centering of PNG to MathTexvc and ext.math.js.
- Remove "img" from ext.math.css to reduce CSS specificity and make
  style easier to override by user stylesheets.
- Add a comment about the !important rules for centering in
  display mode.
- Only load ext.math.scripts in MathML mode.

Bug: 71955
Change-Id: If8ee1cf6453257a0a2f6aa186d4007954a8e5d8e
2014-10-12 13:42:01 +02:00
Frédéric Wang 74e4c3733d (Experimental) Fix centering of SVG image in display mode.
Change-Id: I7d5ec171c39b2eec563e074a4062b3e3682790f7
2014-10-11 21:21:46 +02:00
Frédéric Wang ee479e8e68 Fix centering of PNG image in display mode.
Revert the mistake made in https://gerrit.wikimedia.org/r/#/c/139120.

Change-Id: I31420ba3ab1e1b47c3e7307ac4a9aca2a6a8223f
2014-10-11 21:17:15 +02:00
Frédéric Wang 8e66e40780 Improvements to the PNG fallback style.
- create a new <img> tag to avoid copying unwanted style from the SVG fallback.
- keep the legacy tex class for consistency with the PNG mode.

Bug: 71912
Change-Id: Ibe4683d2898b49fda190e2f1535cab1b952250b0
2014-10-11 17:21:30 +00:00
Frédéric Wang 61a3d9c719 Merge "Revert "Disable failing latexml integration tests"" 2014-10-11 17:20:00 +00:00
Physikerwelt 2a20654ab9 Revert "Disable failing latexml integration tests"
This reverts commit 4c544f002b.

Change-Id: Ifafb5782e10e80240a282beb449ab069ad93c37f
2014-10-11 19:17:29 +02:00
Frédéric Wang 80361d2911 Merge "Avoid calling readFromDatabase in source mode" 2014-10-11 15:47:01 +00:00
physikerwelt (Moritz Schubotz) 3564b7cfe8 Avoid calling readFromDatabase in source mode
In source mode there is no database cache,
so we do not need to call readFromDatabase there.

Change-Id: I791eab923f5ed6e0a3e28dbaf49ba1ae8fdb6cdc
2014-10-11 16:41:38 +02:00
Frédéric Wang d1eef046af Cleanup MathMathML.php after the PNG fallback removal.
- Remove the special handling for the PNG fallback in
  getFallbackImageUrl, getFallbackImage and getClassName.

- Make these functions private and remove useless parameters.

Bug: 71912
Change-Id: I569f2dd3d32a0c9690a5d9674a1c6ae0b8698f08
2014-10-11 16:13:04 +02:00
Frédéric Wang 0ddd3afaea Cleanup after the removal of the PNG fallback
- remove the default "display: none" style on the SVG fallback
- remove the IE CSS hacks from ext.math.css
- add a client-side implementation of the PNG fallback

Bug: 71912
Change-Id: I91b11313aae25c4d05f8f2333d2f21537c9b8887
2014-10-11 13:21:59 +00:00