Commit Graph

588 Commits

Author SHA1 Message Date
Niklas Laxström
15b3c31029 Avoid loading of jquery.i18n and messages until trigger clicked
Use RL for trigger tooltip messages to avoid using jquery.i18n just
to display the triggers. Reordered dependencies so that messages
are loaded for the setting panels and ime menu.

Change-Id: Ic9518f7b63699542deb02a413e03c28344c99fa4
2014-01-23 23:35:27 +00:00
Santhosh Thottingal
81c4dfe848 Refactor the css so that embedded images are optimally loaded
Change-Id: If19d20fb22afafbf62c355394dcda825a0151ac6
2014-01-23 16:48:18 +00:00
Santhosh Thottingal
89892f7f0e For IE, do not use salt for tofu detection
Adding salt won't work for IE since it uses a tofu with small width
for unassigned code points. From tests, algorithm without salt
should be enough for IE.

Change-Id: If39e6c49d272fa67f60c19f1af64f1fb71856bcd
2014-01-20 18:46:29 +00:00
Santhosh Thottingal
1113786330 Detect tofu before applying any default fonts
To detect whether the client can render a given string,
use a tofu detection algorithm.

If the user has an explicit font preference, do not override it.

If the user has no preference and there is a default font for a
language, see if that language can be rendered at the user's browser
using tofu detection.

If tofu is detected, apply the font.

If the element has 'autonym' class, apply Autonym font only when
that language has tofu.

Change-Id: Ib9ee9497e6bcfa7eb86f7d264e0980d8880d6b70
2014-01-20 22:20:58 +05:30
Ori Livneh
f7066d4d2a Apply /* @embed */ pragma to every image, not just the topmost in each block
/* @embed */ is scoped to the rule immediately below it, not the entire block.

Change-Id: I862b01e6bb70a53904b8264872f08d1bc1b073c1
2014-01-17 19:21:52 -08:00
Santhosh Thottingal
61e1f95a4c Wait till rendering thread completion before applying webfonts
So that the fontfamily values are always 'seen' by the webfonts jquery
plugin. Missing this was causing incorrect behavior -overriding the
fontfamiliy from css- in random cases.

The stylesheet ext.uls.webfonts.css define font family values for
interlanguge links and autonym class. This patch make sure that that
css values are read by jquery.webfonts while deciding which font to
apply. Autonym font is supposed to be used for them. If jquery.webfonts
does not read that these elements has a font family defined in css as
"'Autonym', sans-serif", it will attempt to apply fonts as per user
preference or default fonts based on lang attribute. That will cause
applying bigger fonts.

jquery.webfonts does not apply any fonts, if an element has explicit
font family value defined by inline css or by external style sheets.

Bug: 59958
Change-Id: I2da436caa618bc2318e20e3c0492a6bf1c03e162
2014-01-13 08:58:00 +05:30
Reedy
9d94cfad57 Add RailwaysSans font
Not adding as a font option for English, but make it possible to define
the font in css and get the font downloaded from server

Bug: 58203
Change-Id: I968c4c4c3ba35ca53a9762cef0f7c59b374b1f67
2014-01-07 14:56:55 +05:30
jenkins-bot
c8bbeb23d7 Merge "Fixing Scheherazade to properly target local font" 2014-01-06 09:14:44 +00:00
Niklas Laxström
38d7c935be Fix alignment issue of ULS trigger
The calculated font-height is about 13.5px on my machine. For some
reason the usage of Autonym font sways the rounding of the container
height to 14px instead of 13px as for other items. I found out that
setting line-height to 1em or 100% makes the trigger size also round
to 13px, but I can't explain why. I didn't see any change in Modern
or Monobook skins (Monobook is broken already with bold and icon
missing).

Bug: 59239
Change-Id: I71ed556f2ef707b7e5f5891d6fc0c88c01f6b0ca
2014-01-06 08:07:24 +00:00
Reza
426e005ca4 Fixing Scheherazade to properly target local font
Change-Id: I790f43d611f33d48c30f56fc95ce5f7d2c1f2f24
2014-01-04 23:08:21 +00:00
Kartik Mistry
7db07f2d94 Update AbyssinicaSIL font to new upstream version
* Upstream version: 1.500
* Upstream URL: http://scripts.sil.org/AbyssinicaSIL

Change-Id: Ia676001360affbb05985bd865506f03f983fdf07
2013-12-23 17:14:23 +05:30
Reedy
b1b2a26a8c Update ext.uls.webfonts.repository.js against current code
Change-Id: Iab27035e87f381bffd4f186cdb735d61ee0993cd
2013-12-15 19:23:55 +00:00
Ebrahim Byagowi
7f7c2c89f2 Add Lateef and Scheherazade fonts for ckb and fa
* Also improves Nazli by adding Nazli bold from its original pack
* Scheherazade-R.woff is taken from Scheherazade font pack
* Except the above, rest WOFFs and EOTs are made by sfntly

Bug: 58381
Bug: 58382
Change-Id: Iede469600ddcaebfce177f5b3d33a9fc81ea33f9
2013-12-12 10:13:04 +00:00
Kartik Mistry
e19309c1b9 Update Autonym font from upstream.
* Fixed autonym for Old Slavonic.
* Fixed Glagolitic glyphs for 'cu'.
* Removed RFN and documentation updates.

Change-Id: I51263f0b6ecfbd43234b115a2d143f6703f0e60a
Version: 20131205
URL: https://github.com/santhoshtr/AutonymFont
2013-12-05 19:15:37 +05:30
jenkins-bot
bcfd55af9b Merge "Initial support for webfonts in MobileFrontend" 2013-12-02 17:25:37 +00:00
Ebrahim Byagowi
e4736e8cd6 Enable Amiri for ckbwiki
Bug: 57767
Change-Id: Ia176d107061047a921cd29a45ec24b330daddf19
2013-11-30 12:28:50 +00:00
Amir E. Aharoni
fd885d9881 Initial support for webfonts in MobileFrontend
Written in pair-programming with Ryan Kaldari.

This adds a version of webfonts initialization that is stripped
of any smart features. It only loads the basic jquery.webfonts
library and the fonts repository in a way that is usable
with the MobileFronted extension.

It is completely disabled by default.

It can be enabled by setting
$wgULSMobileWebfontsEnabled = true;
and even then it will only be enabled for users
who opted in for the mobile beta mode.

Change-Id: I488e411232a1192bbf46ae5675c701366bda9a3e
2013-11-30 12:28:46 +02:00
jenkins-bot
da7d1cde05 Merge "Apply Autonym only to class interlanguage-link" 2013-11-25 15:52:23 +00:00
Amir E. Aharoni
27935fb034 Apply Autonym only to class interlanguage-link
This depends on Ia995f89504d19ac281d55e0c19c51c9dc6442d8e .

Change-Id: I2ea915f4e1d01649bf91a13288b73c731dd64f6c
2013-11-25 17:51:29 +02:00
Santhosh Thottingal
abae4e1780 Do not save isDirty field in preferences
Bug: 57349
Change-Id: Id5fe6bf61fcf79942f879bd1729e6b0a622aded8
2013-11-25 17:24:44 +05:30
Santhosh Thottingal
ed993610f5 Clean up ini files
* Use ; for comments
* Avoid unescaped characters like = signs
* Consistency in request-url values

Change-Id: I1a94e30f1acedd934645b70f65025872e4bc7b8e
2013-11-24 12:17:42 +05:30
Santhosh Thottingal
d1647a9fa0 Update the local copy of preferences before saving to reflect other module changes
Change-Id: Idfd6d4f71eff9d1a1e6606b3fa91abf9ddc7b183
2013-11-22 12:05:42 +05:30
Amir E. Aharoni
3dda6b5828 Comment and whitespace cleanup
Change-Id: I7ac44f4d371faa3c6941ccf8a4654a035e9b05a5
2013-11-22 10:18:20 +05:30
jenkins-bot
52a011afa2 Merge "Update TharLon font to new upstream version." 2013-11-22 04:17:01 +00:00
Amir E. Aharoni
d2522e40dc Avoid duplicate html ids for the settings panel triggers
Bug: 57353
Change-Id: I144b7612639147fc96ef1506c454954d605958e9
2013-11-21 16:31:44 +00:00
Santhosh Thottingal
277b0db94d Visual indication while saving the settings
* Button label change to "applying changes"
* Button become disabled
* Cursor changes to "progress"

Bug: 53772
Change-Id: I1de459590ea9b357965a73f274d566eba8c04482
2013-11-21 14:52:48 +05:30
Santhosh Thottingal
328eb017c8 Json message loader clean up
* Rename JsonMessageLoader to ULSJsonMessageLoader
* Correct the return type of mw.uls.loadLocalization

Follow up: Ic39dec1c484982fb07edd167e83794c0b5f470ee

Change-Id: I13c64a5e89ac75be8a95d951658018a78534f466
2013-11-19 10:55:52 +00:00
jenkins-bot
bda50b7426 Merge "Remove unused method: hide" 2013-11-18 20:12:54 +00:00
jenkins-bot
5bf7ea41c2 Merge "Fix bug: Cannot apply changes after switching panels back and forth" 2013-11-18 20:11:47 +00:00
Santhosh Thottingal
8d9f1e97cd Remove unused method: hide
Change-Id: Iba2ca843db8f0edd7fd1826b998a73279e7c06fe
2013-11-18 20:09:42 +00:00
Kartik Mistry
d74954fe7f Update TharLon font to new upstream version.
Updated to version 1.003
Upstream: http://code.google.com/p/tharlon-font/

Change-Id: Ic6563bfcbb851f85e4be7cab83507d02353a1c78
2013-11-18 16:02:25 +05:30
Santhosh Thottingal
b04c11aec9 Sort the language code in alphabetic order
Follow up: Ide4379c01ec1666cc837e0418c1481e3ae599441

Change-Id: If58594ef1157e84dcf646ef14e5e09ad741c7efc
2013-11-17 07:36:37 +05:30
Santhosh Thottingal
644f38d5f3 Add Polish also to OpenDyslexic font supported languages
Bug: 57136
Change-Id: Ide4379c01ec1666cc837e0418c1481e3ae599441
2013-11-16 18:15:54 +05:30
Santhosh Thottingal
be99ff9a55 Fix bug: Cannot apply changes after switching panels back and forth
Bug: 57011
Change-Id: I0614d97dea99781f46bb80a496b12c95aef55c8c
2013-11-14 14:12:59 +00:00
Santhosh Thottingal
6f113bdf19 Keep previous input settings if new language selected and cancelled
Bug: 56913
Change-Id: If25c0cc07ae233085d1b270f9a75a0002ffe1882
2013-11-13 12:44:58 +00:00
Santhosh Thottingal
a1b8316ecc Remove the non-existing lazyload option for uls plugin
Change-Id: I1fac753c449b47de97eec244a8a53dbb8e77fc38
2013-11-13 12:43:38 +00:00
jenkins-bot
fb2c99d30e Merge "Validate the dirty flag before saving preferences in each modules" 2013-11-13 12:40:48 +00:00
Santhosh Thottingal
8b3d27a505 Validate the dirty flag before saving preferences in each modules
Pressing apply button is applicable to all settings module, not only
for the one that is visible. Unless we do a validation before we save
preferences, other module can cause incorrect (old) preferences to be
saved.

Bug: 56885
Change-Id: I31df2ee0bf8b600a94e8fed1a784daf529186b16
2013-11-13 12:39:57 +00:00
jenkins-bot
d19dc4fdc1 Merge "Use data-i18n for system font l10n" 2013-11-13 09:32:48 +00:00
Niklas Laxström
de4f78a6be Use data-i18n for system font l10n
This ensures that the translation is updated properly in the
language live preview.

Bug: 56888
Change-Id: I320c570f9272e8d191144f66a9cf0079c89d201d
2013-11-13 08:36:47 +00:00
jenkins-bot
f677fa2ff5 Merge "Page scrolls when opening language selector" 2013-11-13 04:43:39 +00:00
Niklas Laxström
7822d5d03b Page scrolls when opening language selector
Was happening mostly on Firefox when ULS was in personal
position and you were logged out and allowed to change language.

Loading grid here already prevents graphical glitch and delaying
the click seems to prevent scrolling to wrong position.

Bug: 56937
Change-Id: Ie9acaa5a46fd903221d30c94dbc26a83355cdb64
2013-11-12 12:50:31 +00:00
jenkins-bot
4c6229e9ba Merge "Revert "Do not load jquery.jStorage for logged in users"" 2013-11-12 12:48:51 +00:00
Nikerabbit
2bc77f2c18 Revert "Do not load jquery.jStorage for logged in users"
This reverts commit 5884337c9f.

Change-Id: Icfdfd89059a417a6aaea30d12164e7174dd5f58b
2013-11-12 12:47:56 +00:00
Kartik Mistry
aef4909616 Update Autonym font (20131112)
* Fix rendering of Telugu.

Bug: 56841
Change-Id: Ia43e404ed67346b65e9344c4fb7ae655ed303558
2013-11-12 16:30:26 +05:30
jenkins-bot
601ff3bc60 Merge "Do not load jquery.jStorage for logged in users" 2013-11-12 10:43:57 +00:00
Niklas Laxström
5884337c9f Do not load jquery.jStorage for logged in users
Change-Id: Ibe77962cecd6aa8504aa60d5d2b8d17a56e1319f
2013-11-12 10:40:59 +00:00
Amir E. Aharoni
bb250efea1 Cleanup wgULSLanguages usage
Change-Id: I15cb10f97ed39b18fdfb1bc2ce51d02374fe9c43
2013-11-11 18:14:55 +02:00
Amir E. Aharoni
97c79ec668 Fix incorrect module name
Follow up to Ic33ef034c794a523b5403867196c6098a58eb5b1.

Change-Id: I15c9e58b24bf4f43ac58f065ed42614df59e638f
2013-11-11 12:39:20 +02:00
Amir E. Aharoni
b23f937cb7 Remove the dependency on uls.data
Change-Id: I9fa103ee7d338ed8ea2032c82249a47d022d2c90
2013-11-11 09:56:55 +00:00