jenkins-bot has submitted this change and it was merged.
Change subject: Update jquery.ime from upstream
......................................................................
Update jquery.ime from upstream
Version: 0.1.0+20130617
Bug: 49317
Change-Id: I566980aeafb9dce45ab4916751947c301778377c
---
M lib/jquery.ime/css/jquery.ime.css
M lib/jquery.ime/jquery.ime.js
A lib/jquery.ime/rules/cv/README.md
A lib/jquery.ime/rules/cv/cv-cyr-altgr.js
A lib/jquery.ime/rules/cv/cv-cyr-numbers.js
A lib/jquery.ime/rules/cv/cv-lat-altgr.js
6 files changed, 314 insertions(+), 5 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/lib/jquery.ime/css/jquery.ime.css
b/lib/jquery.ime/css/jquery.ime.css
index 9a4202b..ac63106 100644
--- a/lib/jquery.ime/css/jquery.ime.css
+++ b/lib/jquery.ime/css/jquery.ime.css
@@ -5,7 +5,7 @@
background-image: -webkit-linear-gradient(transparent, transparent),
url('../images/ime-active.svg');
background-image: -moz-linear-gradient(transparent, transparent),
url('../images/ime-active.svg');
background-image: linear-gradient(transparent, transparent),
url('../images/ime-active.svg');
- background-color: #fff;
+ background-color: rgba(255,255,255,0.75);
background-position: left 3px center;
cursor: pointer;
height: 15px;
diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js
index c24e950..12e3384 100644
--- a/lib/jquery.ime/jquery.ime.js
+++ b/lib/jquery.ime/jquery.ime.js
@@ -1,4 +1,4 @@
-/*! jquery.ime - v0.1.0+20130610
+/*! jquery.ime - v0.1.0+20130617
* https://github.com/wikimedia/jquery.ime
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
( function ( $ ) {
@@ -42,7 +42,7 @@
if ( altGr ) {
patterns = this.inputmethod.patterns_x || [];
} else {
- patterns = this.inputmethod.patterns;
+ patterns = this.inputmethod.patterns || [];
}
if ( $.isFunction( patterns ) ) {
@@ -1230,6 +1230,18 @@
name: 'इनस्क्रिप्ट २',
source: 'rules/brx/brx-inscript2.js'
},
+ 'cv-cyr-altgr': {
+ name: 'Чăвашла (AltGr)',
+ source: 'rules/cv/cv-cyr-altgr.js'
+ },
+ 'cv-lat-altgr': {
+ name: 'Căvašla (AltGr)',
+ source: 'rules/cv/cv-lat-altgr.js'
+ },
+ 'cv-cyr-numbers': {
+ name: 'Чăвашла (цифрилисем)',
+ source: 'rules/cv/cv-cyr-numbers.js'
+ },
'cyrl-palochka': {
name: 'Palochka',
source: 'rules/cyrl/cyrl-palochka.js'
@@ -1481,11 +1493,11 @@
source: 'rules/mr/mr-phonetic.js'
},
'my-kbd': {
- name: 'Burmese kbd',
+ name: 'မြန်မာဘာသာ kbd',
source: 'rules/my/my-kbd.js'
},
'my-xkb': {
- name: 'Burmese xkb',
+ name: 'မြန်မာဘာသာ xkb',
source: 'rules/my/my-xkb.js'
},
'ne-inscript': {
@@ -1711,6 +1723,10 @@
autonym: 'нохчийн',
inputmethods: [ 'cyrl-palochka' ]
},
+ 'cv': {
+ autonym: 'Чăвашла',
+ inputmethods: [ 'cv-cyr-altgr', 'cv-lat-altgr',
'cv-cyr-numbers' ]
+ },
'da': {
autonym: 'Dansk',
inputmethods: [ 'da-normforms' ]
diff --git a/lib/jquery.ime/rules/cv/README.md
b/lib/jquery.ime/rules/cv/README.md
new file mode 100644
index 0000000..069431a
--- /dev/null
+++ b/lib/jquery.ime/rules/cv/README.md
@@ -0,0 +1,26 @@
+Chuvash keyboard layouts
+========================
+
+This directory contains different Chuvash keyboard layouts.
+
+The Chuvash alphabet contains all the 33 letters from the Russian alphabet and
+four additional letters: ӑ ӗ ҫ ӳ
+
+
+Chuvash AltGr — Чăвашла AltGr
+-----------------------------
+The default keyboard layout in [chuvash.org](http://chuvash.org) which uses
+the standard Russian keyboard layouts plus additional four Chuvash letters.
+They are typed using the AltGr button.
+
+Unfortunately only in firefox AltGr combinations work well.
+
+Chuvash Mercen — Căvašla Mercen
+-------------------------------
+This keyboard layout is based on
[Mercen](https://sites.google.com/site/mercen77/)
+and comes from CVLat movement.
+
+"Chuvash Cyrillic"
+-----------------
+This keyboard layout is designed by Ikăruk and uses the number row buttons for
+adding the additional letters. No AltGr is needed.
diff --git a/lib/jquery.ime/rules/cv/cv-cyr-altgr.js
b/lib/jquery.ime/rules/cv/cv-cyr-altgr.js
new file mode 100644
index 0000000..176c97b
--- /dev/null
+++ b/lib/jquery.ime/rules/cv/cv-cyr-altgr.js
@@ -0,0 +1,120 @@
+// This Chuvash keyboard layout is the "official" layout
+// in chuvash.org
+// This implementation is based on ru-jcuken ime rule
+// which supports both transliteration mode and the native jcuken
+// Along them there are four Chuvash letters ă ĕ ç ÿ
+// The keyboard layout is an agreement
+// of the Chuvash Language Committee 2009-03-12
+// http://comissi.chv.su/node/23
+// This layout differs from the agreement in that matter
+// that all letters are from the Cyrillic subset of Unicode
+
+( function ( $ ) {
+ 'use strict';
+
+ var cv = {
+ id: 'cv-cyr-altgr',
+ name: 'Чăвашла (AltGr)',
+ description: 'AltGr пускăчлă чăваш сарăмĕ',
+ date: '2013-03-24',
+ URL: 'http://comissi.chv.su/',
+ author: 'Anatoly Mironov, @mirontoli',
+ license: 'MIT',
+ version: '1.0',
+ patterns: [
+ ['Q', 'Й'],
+ ['W', 'Ц'],
+ ['E', 'У'],
+ ['R', 'К'],
+ ['T', 'Е'],
+ ['Y', 'Н'],
+ ['U', 'Г'],
+ ['I', 'Ш'],
+ ['O', 'Щ'],
+ ['P', 'З'],
+ ['{', 'Х'],
+ ['}', 'Ъ'],
+ ['A', 'Ф'],
+ ['S', 'Ы'],
+ ['D', 'В'],
+ ['F', 'А'],
+ ['G', 'П'],
+ ['H', 'Р'],
+ ['J', 'О'],
+ ['K', 'Л'],
+ ['L', 'Д'],
+ [':', 'Ж'],
+ ['"', 'Э'],
+ ['Z', 'Я'],
+ ['X', 'Ч'],
+ ['C', 'С'],
+ ['V', 'М'],
+ ['B', 'И'],
+ ['N', 'Т'],
+ ['M', 'Ь'],
+ ['<', 'Б'],
+ ['>', 'Ю'],
+ ['\\?', ','],
+
+ ['q', 'й'],
+ ['w', 'ц'],
+ ['e', 'у'],
+ ['r', 'к'],
+ ['t', 'е'],
+ ['y', 'н'],
+ ['u', 'г'],
+ ['i', 'ш'],
+ ['o', 'щ'],
+ ['p', 'з'],
+ ['\\[', 'х'],
+ ['\\]', 'ъ'],
+ ['a', 'ф'],
+ ['s', 'ы'],
+ ['d', 'в'],
+ ['f', 'а'],
+ ['g', 'п'],
+ ['h', 'р'],
+ ['j', 'о'],
+ ['k', 'л'],
+ ['l', 'д'],
+ [';', 'ж'],
+ ['\'', 'э'],
+ ['z', 'я'],
+ ['x', 'ч'],
+ ['c', 'с'],
+ ['v', 'м'],
+ ['b', 'и'],
+ ['n', 'т'],
+ ['m', 'ь'],
+ [',', 'б'],
+ ['\\.', 'ю'],
+ ['/', '.'],
+
+ ['`', 'ё'],
+ ['~', 'Ё'],
+
+ // ! is the same // 1
+ ['@', '"'], // 2
+ ['#', '№'], // 3
+ ['\\$', ';'], // 4
+ // '%' is the same // 5
+ ['^', ':'], // 6
+ ['&', '?'] // 7
+ // '*', '(' and ')' are the same // 8, 9, 0
+ ],
+ //support both qwerty and jcuken keyboards
+ patterns_x: [
+ ['f|а', 'ӑ'],
+ ['F|А', 'Ӑ'],
+ ['t|е', 'ӗ'],
+ ['T|Е', 'Ӗ'],
+ ['c|с', 'ҫ'],
+ ['C|С', 'Ҫ'],
+ ['e|у', 'ӳ'],
+ ['E|У', 'Ӳ']
+ ]
+ };
+
+ $.ime.register( cv );
+
+}( jQuery ) );
diff --git a/lib/jquery.ime/rules/cv/cv-cyr-numbers.js
b/lib/jquery.ime/rules/cv/cv-cyr-numbers.js
new file mode 100644
index 0000000..ba84265
--- /dev/null
+++ b/lib/jquery.ime/rules/cv/cv-cyr-numbers.js
@@ -0,0 +1,113 @@
+// This Chuvash keyboard layout is designed by Ikăruk
+//
http://ru.wikipedia.org/wiki/Чувашские_раскладки_клавиатуры#Раскладка_«Chuvash_Cyrillic»
+// This uses the number row of the keyboard
+// as it is in Sakha keyboard layout, in Bashkir, Slovak and many more
+// Some other keys are added which are often used in wikipedia editing
+// all letters are from the Cyrillic subset of Unicode
+
+( function ( $ ) {
+ 'use strict';
+
+ var cv = {
+ id: 'cv-cyr-numbers',
+ name: 'Чăвашла (Цифрили)',
+ description: 'Икăрук туса хунă, цифрисене усă куракан сарăм',
+ date: '2013-03-24',
+ URL: 'http://comissi.chv.su/',
+ author: 'Anatoly Mironov, @mirontoli',
+ license: 'MIT',
+ version: '1.0',
+ patterns: [
+ ['Q', 'Й'],
+ ['W', 'Ц'],
+ ['E', 'У'],
+ ['R', 'К'],
+ ['T', 'Е'],
+ ['Y', 'Н'],
+ ['U', 'Г'],
+ ['I', 'Ш'],
+ ['O', 'Щ'],
+ ['P', 'З'],
+ ['{', 'Х'],
+ ['}', 'Ъ'],
+ ['A', 'Ф'],
+ ['S', 'Ы'],
+ ['D', 'В'],
+ ['F', 'А'],
+ ['G', 'П'],
+ ['H', 'Р'],
+ ['J', 'О'],
+ ['K', 'Л'],
+ ['L', 'Д'],
+ [':', 'Ж'],
+ ['"', 'Э'],
+ ['Z', 'Я'],
+ ['X', 'Ч'],
+ ['C', 'С'],
+ ['V', 'М'],
+ ['B', 'И'],
+ ['N', 'Т'],
+ ['M', 'Ь'],
+ ['<', 'Б'],
+ ['>', 'Ю'],
+ ['\\?', ','],
+
+ ['q', 'й'],
+ ['w', 'ц'],
+ ['e', 'у'],
+ ['r', 'к'],
+ ['t', 'е'],
+ ['y', 'н'],
+ ['u', 'г'],
+ ['i', 'ш'],
+ ['o', 'щ'],
+ ['p', 'з'],
+ ['\\[', 'х'],
+ ['\\]', 'ъ'],
+ ['a', 'ф'],
+ ['s', 'ы'],
+ ['d', 'в'],
+ ['f', 'а'],
+ ['g', 'п'],
+ ['h', 'р'],
+ ['j', 'о'],
+ ['k', 'л'],
+ ['l', 'д'],
+ [';', 'ж'],
+ ['\'', 'э'],
+ ['z', 'я'],
+ ['x', 'ч'],
+ ['c', 'с'],
+ ['v', 'м'],
+ ['b', 'и'],
+ ['n', 'т'],
+ ['m', 'ь'],
+ [',', 'б'],
+ ['\\.', 'ю'],
+ ['/', '.'],
+
+ ['`', 'ё'],
+ ['~', 'Ё'],
+ ['1', '?'], // 1
+ ['2', '\''], // 2
+ ['@', '"'], // 2
+ ['3', 'ҫ'], // 3
+ ['#|№', 'Ҫ'], // 3
+ ['4', '|'], // 4
+ ['\\$', ';'], // 4
+ ['5', 'ӳ'], // 5
+ ['%', 'Ӳ'], // 5
+ ['6', '—'], // 6
+ ['\\^', ':'], // 6
+ ['7', 'ӗ'], // 7
+ ['&|\\?', 'Ӗ'], // 7
+ ['8', 'ӑ'], // 8
+ ['\\*', 'Ӑ'], // 8
+ ['9', '['], // 9
+ ['0', ']'] // 0
+ ]
+ };
+
+ $.ime.register( cv );
+
+}( jQuery ) );
diff --git a/lib/jquery.ime/rules/cv/cv-lat-altgr.js
b/lib/jquery.ime/rules/cv/cv-lat-altgr.js
new file mode 100644
index 0000000..1ac27a1
--- /dev/null
+++ b/lib/jquery.ime/rules/cv/cv-lat-altgr.js
@@ -0,0 +1,34 @@
+// This Chuvash keyboard is a stripped version of latin Mercen
+// https://sites.google.com/site/mercen77/
+// http://cvlat.blogspot.com
+// only Chuvash diacritics are used, no additional letters for Turkish or dead
keys implemented (for now?)
+
+( function ( $ ) {
+ 'use strict';
+
+ var cv = {
+ id: 'cv-lat-altgr',
+ name: 'Căvašla - Mercen',
+ description: 'CVLat usă kurakan Mercen',
+ date: '2013-03-21',
+ URL: 'https://sites.google.com/site/mercen77/',
+ author: 'Anatoly Mironov, @mirontoli',
+ license: 'MIT',
+ version: '1.0',
+ patterns_x: [
+ ['a', 'ă'],
+ ['A', 'Ă'],
+ ['e', 'ĕ'],
+ ['E', 'Ĕ'],
+ ['s', 'ş'],
+ ['S', 'Ş'],
+ ['d|h', 'š'],
+ ['D|H', 'Š'],
+ ['w|u', 'ü'],
+ ['W|U', 'Ü']
+ ]
+ };
+
+ $.ime.register( cv );
+
+}( jQuery ) );
--
To view, visit https://gerrit.wikimedia.org/r/69031
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I566980aeafb9dce45ab4916751947c301778377c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits