Commit Graph

1206 Commits

Author SHA1 Message Date
Santhosh Thottingal
7867b41ca4 Update jquery.webfonts from upstream
Upstream: https://github.com/wikimedia/jquery.webfonts/

Changes:
* Respect explicit font styles of child elements when switching
languages
* Fix duplicate font-weight property

Change-Id: Ic45357b2613e6f33c392f9a78cc389f31c99e036
2013-10-22 17:17:52 +00:00
jenkins-bot
afc5774ee2 Merge "Update jquery.webfonts.js to upstream dcbed4f" 2013-10-22 05:47:41 +00:00
jenkins-bot
9167ec4173 Merge "Fix the selector for interlanguage links" 2013-10-22 05:46:30 +00:00
Amir E. Aharoni
e8d16c4f71 Fix the selector for interlanguage links
So it will apply only to the links and not to the title.

Change-Id: I7f45c02b5d9955d45adc516478dee4863581c3a5
2013-10-22 07:33:36 +03:00
Amir E. Aharoni
eff4f8960d Edit area monospace font test
bug: 53734
Change-Id: Ia4abf6a47a18605c5a28f6f57aa8841584285f37
2013-10-21 23:25:20 +03:00
Santhosh Thottingal
35ac3b972a Fix monospace font usage for input fields for latin scripts
Updating jquery.webfonts from upstream

Bug: 53734
Change-Id: I58c9c3fb74774e26e0f680cec0b0f9b2d3b2c11c
2013-10-21 16:01:35 +00:00
jenkins-bot
03e3666ecf Merge "Use Autonymfont for interlanguage links" 2013-10-21 15:52:52 +00:00
Ori Livneh
c446001efd Update jquery.webfonts.js to upstream dcbed4f
Changes, 364c43..dcbed4f:
* dcbed4f Remove magic date from version query string
* 2354edc Merge pull request #35 from siebrand/4
* 6efa320 Update formatting
* faa1d08 Cleanup whitespace and comments

Change-Id: I84ae5f8299bbb7eb5dca4a2c1a404715b365bfe9
2013-10-21 14:05:26 +00:00
KartikMistry
ec532d6347 Merge "Update jquery.ime from upstream" 2013-10-21 09:23:03 +00:00
Zeljko Filipin
90350b86eb Run Accept-Language feature at sandbox.translatewiki.net
Change-Id: I4c93aee5ab2c596f2b95ef46c2151b3b051a38af
2013-10-21 10:47:27 +02:00
Amir E. Aharoni
90a480660b Fix gems for tests
Copied from I60bc4c3d395f9b1e3abad785f720403cc535e38e

Change-Id: I7a597adb1c16f4451af5b94c87ea5c4798217888
2013-10-21 09:53:05 +03:00
Santhosh Thottingal
d823fd7f1e Use Autonymfont for interlanguage links
Change-Id: If194efa7785d472f78790ffcb6c68636fcaee5ad
2013-10-21 04:30:10 +00:00
Santhosh Thottingal
007d7358c5 Update Autonym font
Downstreaming a48123ef1e

Change-Id: Iad60bfda7fea2c228754b3eb619dda16b8cfdfa5
2013-10-20 11:28:37 +05:30
Santhosh Thottingal
cc413a3a4d Update jquery.ime from upstream
version: v0.1.0+20131019 (commit: 4ac70e0047)
upstream: https://github.com/wikimedia/jquery.ime

Changes:
* Language tags are case insensitive now
* Fixes to Hindi and Persian input methods
* Shift modifier key support
* Misc CSS fixes

Bug: 54117
Change-Id: I581a1006c34fd86372facdae85ea48b4ed1ffc2c
2013-10-19 20:00:22 +05:30
Santhosh Thottingal
6a08a6d216 Update Meera font from upstream
Version: 6.0
Upstream: https://savannah.nongnu.org/projects/smc

Change-Id: If3638c7662e8ae3ca055504c9b7189335af51e92
2013-10-18 15:19:11 +05:30
jenkins-bot
b65c2d4956 Merge "Use Autonym font for language autonyms" 2013-10-18 07:17:20 +00:00
Ori Livneh
27224935c6 Cherry-pick dcbed4f from jquery.webfonts upstream
dcbed4f: Remove magic date from version query string
<https://github.com/wikimedia/jquery.webfonts/commit/dcbed4f>

Change-Id: I8cbce12916b67601db93dcbca63d9985b6b49717
2013-10-17 09:39:15 -07:00
jenkins-bot
f2701cb353 Merge "Make base font repository path configurable via $wgULSFontRepositoryBasePath" 2013-10-17 16:04:02 +00:00
jenkins-bot
0deb96b0ee Merge "Updated Ruby gems" 2013-10-17 12:00:57 +00:00
Santhosh Thottingal
c593ecef4c Support languages written in Tibetan script
Languages listed in
https://en.wikipedia.org/wiki/Category:Languages_written_in_Tibetan_script
mapped to Jomolhari font

See https://www.mediawiki.org/wiki/Talk:Universal_Language_Selector#Several_problems_with_web_fonts_31516
and https://github.com/wikimedia/jquery.webfonts/issues/29

Change-Id: I873dfb8c3689470a6070f90088984a668a3faf51
2013-10-17 17:19:54 +05:30
Zeljko Filipin
2adeb42782 Updated Ruby gems
Change-Id: Ifc1f4e74c97531bebd381dfb841e4cb0845bd425
2013-10-17 13:28:27 +02:00
Santhosh Thottingal
ba57ebc9ae Use AbyssinicaSIL for Ge'ez and Tigre languages
See https://www.mediawiki.org/wiki/Talk:Universal_Language_Selector#Several_problems_with_web_fonts_31516
and https://github.com/wikimedia/jquery.webfonts/issues/29

Change-Id: I7a2853682f0a103e2ce7e459d2bd3097a21001ed
2013-10-17 16:24:06 +05:30
Santhosh Thottingal
52ead2aa41 Use Autonym font for language autonyms
Updates jquery.uls from upstream autonymfont branch

Also contains an example html page which can be used
for testing the font

Change-Id: Ia702ba1df91701df67160d973a0caaa72511c743
2013-10-17 14:40:40 +05:30
Ori Livneh
03e40f7215 Make base font repository path configurable via $wgULSFontRepositoryBasePath
This patch adds a configuration variable, '$wgULSFontRepositoryBasePath', which
specifies the base path to the font repository. By default, the variable is set
to its existing value, which is $wgExtensionAssetsPath +
'/UniversalLanguageSelector/data/fontrepo/fonts/'. However, adding a discrete
configuration variable makes it possible to configure ULS to use a custom URL
scheme that is more suitable for large static assets that change infrequently.

Change-Id: Idbe57072c4f3258757eb691e54cab5429cadcfda
2013-10-17 00:10:00 -07:00
Ori Livneh
e7539a341e Prefer __DIR__ to $dir
__DIR__ is the more common idiom these days, and there is absolutely no
advantage (in fact, there's a slight performance penalty) to storing it in a
variable. Use alternate syntax for declaring autoload classes to avoid
exceeding line length limits or having to break lines in unsightly ways.

Change-Id: I20211539ccc17937b141331c1875f219a92b1483
2013-10-14 01:22:56 -07:00
jenkins-bot
bb535a2eed Merge "Update formatting" 2013-10-10 20:30:02 +00:00
jenkins-bot
4310647a56 Merge "Use MW_INSTALL_PATH for test path if defined" 2013-10-10 09:26:13 +00:00
Translation updater bot
7bc2f3c2fe Localisation updates from http://translatewiki.net.
Change-Id: I6556f0491547d9acb86326bf17246b7abf3384a7
2013-10-09 19:40:19 +00:00
Siebrand Mazeland
315cf739bc Update formatting
Change-Id: Iaee2ab4f36d3a0dce143c62965ab29de504b31ea
2013-10-09 15:40:39 +02:00
Santhosh Thottingal
efaa3dc317 Disable jquery.ime for VE till IME support is improved
Bug: 55492
Change-Id: I30cffd94413b50bb57a403a9d06dbc0498a02d0a
2013-10-09 19:05:20 +05:30
Santhosh Thottingal
243972403b Use MW_INSTALL_PATH for test path if defined
Change-Id: Ib4eedb61f37e3b8a5c834dc417342543771a2d33
2013-10-09 17:54:17 +05:30
Translation updater bot
2eecc721a2 Localisation updates from http://translatewiki.net.
Change-Id: I2337c1b10cc6968bca9b3fa5ec78713cd767498c
2013-10-08 01:01:43 +00:00
Translation updater bot
82a1758e87 Localisation updates from http://translatewiki.net.
Change-Id: I779330df5b3c3429629b370b2a03fbaea79a87ae
2013-10-07 14:09:29 +00:00
jenkins-bot
35358268ba Merge "Moving shared code to mediawiki-selenium Ruby gem" 2013-10-05 15:50:59 +00:00
Siebrand Mazeland
a9a55e1bee Reformat file
Change-Id: I6f81f159550508718926e923631b9065650e8825
2013-10-04 15:02:53 +02:00
Zeljko Filipin
613edd4a3c Moving shared code to mediawiki-selenium Ruby gem
Bug: 53579
Change-Id: I3164a9640ec878723b622f42c7684ffdeedf9d8c
2013-10-04 12:29:08 +02:00
Translation updater bot
47968cfb49 Localisation updates from http://translatewiki.net.
Change-Id: I73ead2494acc39e6a463d910ca01b7d883e0b29c
2013-10-03 18:17:40 +00:00
Translation updater bot
5686594cb9 Localisation updates from http://translatewiki.net.
Change-Id: I7cdcd79941edff7f11e5f33121c3656846ca3f18
2013-10-02 19:57:40 +00:00
Zeljko Filipin
5a808ef394 Moved Cucumber hooks to hooks.rb file
Bug: 49812
Change-Id: Ib927b824a8854d1c4257a17db582595a22d70470
2013-10-01 16:30:54 +00:00
Zeljko Filipin
2c4a906889 Updated ULS repository to the latest version of shared test files
Bug: 53579
Change-Id: I9828866f3a3db24a95324bb82942f2c59382f2c9
2013-10-01 16:30:25 +00:00
jenkins-bot
f74f7c6c4e Merge "Fix for IME menu integration tests" 2013-10-01 13:56:03 +00:00
Kartik Mistry
2461d57220 Fix for IME menu integration tests
Make sure to click only when Input Method indicator is available.

Change-Id: Ieff61d74a8ea5b8bcb7aafdc94865dee4927dc97
2013-10-01 19:02:10 +05:30
jenkins-bot
24ca1e08b4 Merge "Localization update from upstream" 2013-10-01 02:51:12 +00:00
cmcmahon
eae3ac7d3b resetting all prefs on beta causes VE tests to fail
Change-Id: Ifdbe3e0d7513c7402b3c17cdb9ec654a25b55947
2013-09-30 17:13:16 -07:00
Amir E. Aharoni
de57dadf33 Localization update from upstream
Change-Id: I9ac867e8b54b63119acf213e82f3171e7dee32fc
2013-09-30 16:25:06 -07:00
Santhosh Thottingal
b4f794f9fe Reset language and font while preview
If not reset, the font-family will persist for languages
without font preferences

Steps to reproduce:
1. Open language settings->Display settings.
Switch language to English. Inspect the lang and font-family
of uls-display-settings element.

2. Switch language to hi. Inspect the lang and font-family
of uls-display-settings element. You can see Lohit Devanagari
as font.

3. Switch the language back to English. You can still see font
as Lohit Devanagari. With this patch, you should see font family
reset for English.

Change-Id: Ib3346d8b888c7dcfda16e8a10473c785a1ebd890
2013-09-30 10:59:55 +05:30
Santhosh Thottingal
32bb03045f Refactor all language, font change code to preview method
Avoids duplication of code and better organising language and font
change logic

Change-Id: I4e95cfc2de7b650a75e2bd550af547647d5b3eb3
2013-09-30 04:14:46 +00:00
Translation updater bot
a6a06823bf Localisation updates from http://translatewiki.net.
Change-Id: Id9dce158414758d93929ee1a9a01997b7184f46b
2013-09-29 20:19:11 +00:00
Roan Kattouw
d6ae72eb9c Don't trigger namespaced events, it breaks VisualEditor
Code like $input.trigger( 'focus.ime' ); doesn't make any sense. Event
namespaces exist for binding and unbinding and are irrelevant when
triggering. However, there's a bug in the version of jQuery that we
use (1.8.3) that causes .trigger( 'focus.ime' ) to perform a native
focus and call natively bound focus handlers, but only call jQuery
event handlers bound to 'focus.ime', not handlers bound to 'focus'.
This bug is fixed in jQuery 1.9+. http://jsfiddle.net/WGy9h/3/
demonstrates this bug.

The way ULS broke VE with this went like this:
* VE initializes and creates two contentEditable divs, the
  pasteTarget and the documentNode. It then focuses the documentNode.
* ULS loads jQuery.ime
* Once jQuery.ime loads, it first calls .trigger( 'focus.ime' ) on
  the pasteTarget
* jQuery focuses the pasteTarget, which means a blur is emitted on the
  documentNode
* In response to this blur event, VE disables the SurfaceObserver
* jQuery.ime then calls .trigger( 'focus.ime' ) on the documentNode
* jQuery focuses the documentNode, but does not call VE's focus handler
  because it's bound to 'focus' rather than 'focus.ime'
* This means VE's SurfaceObserver is not reenabled
* If the user then focuses something else then focuses VE again, a
  native focus event fires and the SurfaceObserver does get reenabled

Change-Id: I7c590599df4cf62418403bc1d1dccfc3c6db5fd3
2013-09-27 16:34:19 -07:00
Amir E. Aharoni
d501ad89de Replace deprecated method
Change-Id: I1b79c172d032d96651d5b5c36cbf0c662081da28
2013-09-26 23:08:53 -07:00