Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/127470

Change subject: Update from upstream
......................................................................

Update from upstream

* Add Batak input method
* Fix Odia Lekhani input method

Change-Id: I9192554f42994a799309b9cec7466045dccfe27d
---
M lib/jquery.ime/jquery.ime.js
A lib/jquery.ime/rules/bbc/batak-qwerty.js
M lib/jquery.ime/rules/or/or-lekhani.js
3 files changed, 109 insertions(+), 13 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector 
refs/changes/70/127470/1

diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js
index 26577b2..662b921 100644
--- a/lib/jquery.ime/jquery.ime.js
+++ b/lib/jquery.ime/jquery.ime.js
@@ -1,4 +1,4 @@
-/*! jquery.ime - v0.1.0+20140408
+/*! jquery.ime - v0.1.0+20140420
 * https://github.com/wikimedia/jquery.ime
 * Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */
 ( function ( $ ) {
@@ -1598,6 +1598,10 @@
                        name: 'প্ৰতিৰূপান্তৰণ',
                        source: 'rules/as/as-transliteration.js'
                },
+               'batak-qwerty': {
+                       name: 'Batak QWERTY',
+                       source: 'rules/bbc/batak-qwerty.js'
+               },
                'be-kbd': {
                        name: 'Стандартная',
                        source: 'rules/be/be-kbd.js'
@@ -2159,6 +2163,10 @@
                        autonym: 'авар',
                        inputmethods: [ 'cyrl-palochka' ]
                },
+               'bbc': {
+                       autonym: 'Batak',
+                       inputmethods: [ 'batak-qwerty' ]
+               },
                'be': {
                        autonym: 'беларуская',
                        inputmethods: [ 'be-transliteration', 'be-latin', 
'be-kbd' ]
diff --git a/lib/jquery.ime/rules/bbc/batak-qwerty.js 
b/lib/jquery.ime/rules/bbc/batak-qwerty.js
new file mode 100644
index 0000000..2e6f29c
--- /dev/null
+++ b/lib/jquery.ime/rules/bbc/batak-qwerty.js
@@ -0,0 +1,90 @@
+( function ( $ ) {
+       'use strict';
+
+       var batakQwertyKbd = {
+               id: 'batak-qwerty',
+               name: 'Batak QWERTY',
+               description: 'QWERTY-based Batak keyboard',
+               date: '2014-04-20',
+               URL: 'http://evertype.com/fonts/batak/',
+               author: 'design by Michael Everson, implementation by Amir E. 
Aharoni',
+               license: 'GPLv3',
+               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', 'ᯙ' ],
+
+                       [ 'F', '᯳' ],
+                       [ 'G', 'ᯏ' ],
+                       [ 'H', 'ᯃ' ],
+                       [ 'J', 'ᯄ' ],
+
+                       [ 'L', 'ᯟ' ],
+
+                       [ 'Z', 'ᯚ' ],
+
+                       [ 'B', 'ᯆ' ],
+                       [ 'N', 'ᯊ' ],
+                       [ 'M', 'ᯕ' ],
+
+                       [ '`', 'ᯠ' ],
+                       [ '=', 'ᯱ' ],
+                       [ '\\+', '᯦' ],
+                       [ '-', '' ],
+                       [ '_', 'ᯩ' ],
+
+                       [ 'B', 'ᯆ' ]
+               ],
+               patterns_x: [
+                       [ '4', '᯼' ],
+                       [ '5', '᯽' ],
+                       [ '6', '᯾' ],
+                       [ '7', '᯿' ],
+
+                       [ 'w', 'ᯍ' ],
+                       [ '`', '`' ]
+               ]
+       };
+
+       $.ime.register( batakQwertyKbd );
+}( jQuery ) );
diff --git a/lib/jquery.ime/rules/or/or-lekhani.js 
b/lib/jquery.ime/rules/or/or-lekhani.js
index 9cea79c..b3701df 100644
--- a/lib/jquery.ime/rules/or/or-lekhani.js
+++ b/lib/jquery.ime/rules/or/or-lekhani.js
@@ -25,7 +25,6 @@
                        ['([କ-ହୟୱ])୍ଳ୍l', '$1ୢ'],
                        ['([କ-ହୟୱ])ୢl', '$1ୣ'],
                        
['([କ-ହୟୱଡ଼ଢ଼ଙ୍କଙ୍ଖଙ୍ଗଙ୍ଘଞ୍ଚଞ୍ଛଞ୍ଝଣ୍ଟଣ୍ଠଣ୍ଡଣ୍ଢନ୍ତନ୍ଥନ୍ଦନ୍ଧମ୍ପମ୍ଫମ୍ବମ୍ଭଞ୍])e', 
'$1େ'],
-                       
['([କ-ହୟୱଡ଼ଢ଼ଙ୍କଙ୍ଖଙ୍ଗଙ୍ଘଞ୍ଚଞ୍ଛଞ୍ଝଣ୍ଟଣ୍ଠଣ୍ଡଣ୍ଢନ୍ତନ୍ଥନ୍ଦନ୍ଧମ୍ପମ୍ଫମ୍ବମ୍ଭଞ୍])ାi', 
'$1ୈ'],
                        
['([କ-ହୟୱଡ଼ଢ଼ଙ୍କଙ୍ଖଙ୍ଗଙ୍ଘଞ୍ଚଞ୍ଛଞ୍ଝଣ୍ଟଣ୍ଠଣ୍ଡଣ୍ଢନ୍ତନ୍ଥନ୍ଦନ୍ଧମ୍ପମ୍ଫମ୍ବମ୍ଭଞ୍])o', 
'$1ୋ'],
                        
['([କ-ହୟୱଡ଼ଢ଼ଙ୍କଙ୍ଖଙ୍ଗଙ୍ଘଞ୍ଚଞ୍ଛଞ୍ଝଣ୍ଟଣ୍ଠଣ୍ଡଣ୍ଢନ୍ତନ୍ଥନ୍ଦନ୍ଧମ୍ପମ୍ଫମ୍ବମ୍ଭଞ୍])(ାu|ୋu)',
 '$1ୌ'],
                        ['([କ-ହୟୱ])E', '$1\u0B48'],
@@ -37,7 +36,7 @@
                        ['z', '୍'], // halanta
                        ['\\.', '।'], //purnacheda
                        ['ଅa', 'ଆ'],
-                       ['(ଅi|ଏe)', 'ଐ'],
+                       ['ଏe', 'ଐ'],
                        ['(ଅu|ଓo|ଓO)', 'ଔ'],
                        ['ଋR', 'ୠ'], // RR
                        ['ଳl', 'ଌ'], // Ll
@@ -47,7 +46,7 @@
                        ['ଙ୍କh', 'ଙ୍ଖ'], // nkh
                        ['ଙ୍ଗh', 'ଙ୍ଘ'],        // ngh
                        ['ହm', 'ହ୍ମ'], // mh
-                       ['(ହn|ନh)', 'ହ୍ନ'], // nh
+                       ['ହn', 'ହ୍ନ'], // nh
                        ['ମ୍ବh', 'ମ୍ଭ'], // mbh or nbh
                        ['ଣ୍ଡai', 'ଣ୍ଡାଇ'], // NDai
                        ['ଜ୍ଜh', 'ଜ୍ଝ'], // jjh
@@ -66,21 +65,20 @@
                        ['ନk', 'ଙ୍କ'],  // nk
                        ['ନd', 'ନ୍ଦ'],  // nd
                        ['ନD|ଣD', 'ଣ୍ଡ'], // nd
-                       ['(ନDh|ଣDH|ଣDh)', 'ଣ୍ଢ'],       //ndh
-                       ['ନdh', 'ନ୍ଧ'], // ndh
-                       ['([କସପନ])t', '$1୍ତ'],  // kt, st, pt, nt
-                       ['([ଷ])T', '$1୍ଟ'],     // ST
-                       ['(ଟh|ଟH)', 'ଠ'], // Th
+                       ['ଣDh', 'ଣ୍ଢ'], //ndh
+                       ['ନdh', 'ନ୍ଧ'], // ndht
+                       ['ଷT', '$1୍ଟ'], // ST
+                       ['ଟh', 'ଠ'], // Th
                        ['ଡh', 'ଢ'], // Dh
                        ['ତh', 'ଥ'], // th
                        ['ଦh', 'ଧ'], // dh
                        ['(f|ପh|P)', 'ଫ'], // ph or f
                        ['ବh', 'ଭ'], // bh
                        ['ସh', 'ଷ'], // sh
-                       ['(ମb|ନb)', 'ମ୍ବ'], // mb or nb
-                       ['(ଣT|ନT)', 'ଣ୍ଟ'], // NT
-                       ['(ଣTh|ଣTh|ନTh|ନTH)', 'ଣ୍ଠ'], // NTh
-                       ['([ସ|ଷ|ମ])p', '$1୍ପ'], // sp/shp
+                       ['ମb', 'ମ୍ବ'], // mb or nb
+                       ['ଣT', 'ଣ୍ଟ'], // NT
+                       ['ଣTh', 'ଣ୍ଠ'], // NTh
+                       ['(ଷ|ମ)p', '$1୍ପ'],     // sp/shp
                        ['shp', 'ଷ୍ପ'], // sp
                        ['ଂM', 'ଁ'], // MM
 

-- 
To view, visit https://gerrit.wikimedia.org/r/127470
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9192554f42994a799309b9cec7466045dccfe27d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to