From 3d6440686820c5c37d501dabf9195bcb5c363994 Mon Sep 17 00:00:00 2001 From: Kartik Mistry Date: Thu, 30 Apr 2015 11:01:04 +0530 Subject: [PATCH] Update jquery.ime to 5498eae Changes: * Add South Azerbaijani Keyboard Layout * Add Arabic keyboard layout for Western Baluchi (bgn) * Added missing te-apple.js and te-modular.js Change-Id: I9527d659f10703ed0347ca9fa0e4ca5a0dd3d1b4 --- lib/jquery.ime/jquery.ime.js | 18 ++- lib/jquery.ime/rules/azb/azb-kbd.js | 108 ++++++++++++++++ lib/jquery.ime/rules/bgn/bgn-arab.js | 108 ++++++++++++++++ lib/jquery.ime/rules/te/te-apple.js | 159 +++++++++++++++++++++++ lib/jquery.ime/rules/te/te-modular.js | 179 ++++++++++++++++++++++++++ 5 files changed, 571 insertions(+), 1 deletion(-) create mode 100644 lib/jquery.ime/rules/azb/azb-kbd.js create mode 100644 lib/jquery.ime/rules/bgn/bgn-arab.js create mode 100644 lib/jquery.ime/rules/te/te-apple.js create mode 100644 lib/jquery.ime/rules/te/te-modular.js diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js index 33a363e2..bba41c21 100644 --- a/lib/jquery.ime/jquery.ime.js +++ b/lib/jquery.ime/jquery.ime.js @@ -1,4 +1,4 @@ -/*! jquery.ime - v0.1.0+20150429 +/*! jquery.ime - v0.1.0+20150504 * https://github.com/wikimedia/jquery.ime * Copyright (c) 2015 Santhosh Thottingal; Licensed GPL, MIT */ ( function ( $ ) { @@ -1605,6 +1605,10 @@ name: 'প্ৰতিৰূপান্তৰণ', source: 'rules/as/as-transliteration.js' }, + 'azb-kbd': { + name: 'تورکجه', + source: 'rules/azb/azb-kbd.js' + }, 'batak-qwerty': { name: 'Batak QWERTY', source: 'rules/bbc/batak-qwerty.js' @@ -1625,6 +1629,10 @@ name: 'Tifinagh', source: 'rules/ber/ber-tfng.js' }, + 'bgn-arab': { + name: 'عربی', + source: 'rules/bgn/bgn-arab.js' + }, 'bn-avro': { name: 'অভ্র', source: 'rules/bn/bn-avro.js' @@ -2185,6 +2193,10 @@ autonym: 'авар', inputmethods: [ 'cyrl-palochka' ] }, + 'azb': { + autonym: 'تورکجه', + inputmethods: [ 'azb-kbd' ] + }, 'bbc': { autonym: 'Batak', inputmethods: [ 'batak-qwerty' ] @@ -2201,6 +2213,10 @@ autonym: 'भोजपुरी', inputmethods: [ 'hi-transliteration' ] }, + 'bgn': { + autonym: 'بلوچی رخشانی', + inputmethods: [ 'bgn-arab' ] + }, 'bho': { autonym: 'भोजपुरी', inputmethods: [ 'hi-transliteration' ] diff --git a/lib/jquery.ime/rules/azb/azb-kbd.js b/lib/jquery.ime/rules/azb/azb-kbd.js new file mode 100644 index 00000000..c8d612b0 --- /dev/null +++ b/lib/jquery.ime/rules/azb/azb-kbd.js @@ -0,0 +1,108 @@ +( function ( $ ) { + 'use strict'; + + var azb_kbd = { + id: 'azb-kbd', + name: 'تورکجه', + description: 'South Azerbaijani Keyboard Layout', + date: '2015-05-02', + URL: 'http://github.com/wikimedia/jquery.ime', + author: 'Mjbmr', + license: 'GPLv3', + version: '1.0', + patterns: [ + ['`', '\u200d'], + ['1', '۱'], + ['2', '۲'], + ['3', '۳'], + ['4', '۴'], + ['5', '۵'], + ['6', '۶'], + ['7', '۷'], + ['8', '۸'], + ['9', '۹'], + ['0', '۰'], + + ['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', 'پ'], + [',', 'و'], + + ['~', '\u200c'], + ['@', '٬'], + ['#', '٫'], + ['%', '٪'], + ['\\^', '×'], + ['&', '،'], + ['\\(', ')'], + ['\\)', '('], + ['_', 'ـ'], + + ['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', 'ء'], + ['<', '>'], + ['>', '<'], + ['\\?', '؟'] + ] + }; + + $.ime.register( azb_kbd ); +}( jQuery ) ); diff --git a/lib/jquery.ime/rules/bgn/bgn-arab.js b/lib/jquery.ime/rules/bgn/bgn-arab.js new file mode 100644 index 00000000..7351192d --- /dev/null +++ b/lib/jquery.ime/rules/bgn/bgn-arab.js @@ -0,0 +1,108 @@ +( function ( $ ) { + 'use strict'; + + var bgn_arab = { + id: 'bgn-arab', + name: 'عربی', + description: 'Western Baluchi Keyboard Layout With Arabic Script', + date: '2015-03-11', + URL: 'http://github.com/wikimedia/jquery.ime', + author: 'Mjbmr', + license: 'GPLv3', + version: '1.0', + patterns: [ + ['`', '\u200c'], + ['1', '۱'], + ['2', '۲'], + ['3', '۳'], + ['4', '۴'], + ['5', '۵'], + ['6', '۶'], + ['7', '۷'], + ['8', '۸'], + ['9', '۹'], + ['0', '۰'], + + ['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', 'ء'], + ['<', '>'], + ['>', '<'], + ['\\?', '؟'] + ] + }; + + $.ime.register( bgn_arab ); +}( jQuery ) ); diff --git a/lib/jquery.ime/rules/te/te-apple.js b/lib/jquery.ime/rules/te/te-apple.js new file mode 100644 index 00000000..eca65087 --- /dev/null +++ b/lib/jquery.ime/rules/te/te-apple.js @@ -0,0 +1,159 @@ +( function ( $ ) { + 'use strict'; + + var teApple = { + id: 'te-apple', + name: 'ఆపిల్', + description: 'Apple keyboard layout for Telugu', + date: '2014-12-27', + author: 'Praveen Illa', + license: 'GPLv3', + version: '1.0', + patterns: [ + + ['1', '1'], + ['2', '2'], + ['3', '3'], + ['4', '4'], + ['5', '5'], + ['6', '6'], + ['7', '7'], + ['8', '8'], + ['\\(', '('], + ['9', '9'], + ['\\)', ')'], + ['0', '0'], + ['\\_', '÷'], + ['\\-', '×'], + ['\\+', '+'], + ['\\=', '='], + + ['\\!', '!'], + ['\\@', '\''], + ['\\#', '%'], + ['\\$', '్పు'], + ['\\%', '్ర'], + ['\\^', '-'], + ['\\&', '|'], + ['\\*', '`'], + + ['([క-హ])e', '$1ా'], + ['([క-హ])E', '$1ౄ'], + ['([క-హ])r', '$1ి'], + ['([క-హ])w', '$1ీ'], + ['([క-హ])W', '$1ృ'], + ['([క-హ])t', '$1ొ'], + ['([క-హ])y', '$1ో'], + ['([క-హ])u', '$1ె'], + ['([క-హ])i', '$1ు'], + ['([క-హ])o', '$1ే'], + ['([క-హ])p', '$1ూ'], + ['([క-హ])\\[', '$1ై'], + ['([క-హ])\\]', '$1ౌ'], + + ['Q', 'క్ష్మి'], + ['q', 'అ'], + ['W', 'ఋ'], + ['w', 'ఈ'], + ['E', 'ౠ'], + ['e', 'ఆ'], + ['R', 'ఙ'], + ['r', 'ఇ'], + ['T', 'ఞ'], + ['t', 'ఒ'], + ['Y', 'క్ష'], + ['y', 'ఓ'], + ['U', 'శ్రీ'], + ['u', 'ఎ'], + ['I', '/'], + ['i', 'ఉ'], + ['O', 'స్త్ర'], + ['o', 'ఏ'], + ['P', 'ష్ట్ర'], + ['p', 'ఊ'], + ['\\{', 'క్ష్మ'], + ['\\[', 'ఐ'], + ['\\}', '!'], + ['\\]', 'ఔ'], + ['\\|', 'ఁ'], + ['\\\\', 'ః'], + ['A', 'ళ'], + ['a', 'ల'], + ['S', 'థ'], + ['s', 'త'], + ['D', 'ధ'], + ['d', 'ద'], + ['F', 'శ'], + ['f', 'వ'], + ['G', ':'], + ['g', 'ం'], + ['H', '్'], + ['h', '్'], + ['J', 'ఖ'], + ['j', 'క'], + ['K', 'ఱ'], + ['k', 'ర'], + ['L', 'ణ'], + ['l', 'న'], + [':', 'ఫ'], + [';', 'ప'], + ['"', 'ష'], + ['\\\'', 'స'], + ['\\~', '~'], + ['\\`', '`'], + ['Z', 'ఠ'], + ['z', 'ట'], + ['X', 'ఘ'], + ['x', 'గ'], + ['C', 'ఢ'], + ['c', 'డ'], + ['V', 'భ'], + ['v', 'బ'], + ['B', 'హ'], + ['b', 'మ'], + ['N', 'క్ష్మీ'], + ['n', 'య'], + ['M', 'ఛ'], + ['m', 'చ'], + ['\\<', ';'], + [',', ','], + ['\\>', '?'], + ['\\.', '.'], + ['/', 'జ'], + ['\\?', 'ఝ'] + + ], + patterns_x: [ + + /* + * Some characters originally not there + * in original layout but for accessibility + * kept these based on inscript. + */ + + ['\\!', '౹'], + ['\\@', '౼'], + ['\\#', '౺'], + ['\\$', '౽'], + ['4', '₹'], + ['\\%', '౻'], + ['\\^', '౾'], + ['1', '\u200d'], + ['2', '\u200c'], + ['0', '౸'], + ['\\-', '౿'], + ['R', 'ౣ'], + ['r', 'ౡ'], + ['p', 'ౙ'], + ['F', 'ఌ'], + ['f', 'ౢ'], + [';', 'ౘ'], + ['Z', 'ౖ'], + ['z', 'ౕ'], + ['\\>', 'ఽ'], + ['\\.', '॥'] + ] + }; + + $.ime.register( teApple ); +}( jQuery ) ); diff --git a/lib/jquery.ime/rules/te/te-modular.js b/lib/jquery.ime/rules/te/te-modular.js new file mode 100644 index 00000000..f0c358b9 --- /dev/null +++ b/lib/jquery.ime/rules/te/te-modular.js @@ -0,0 +1,179 @@ +( function ( $ ) { + 'use strict'; + + var teModular = { + id: 'te-modular', + name: 'మాడ్యులర్', + description: 'Modular keyboard layout for Telugu', + date: '2014-12-31', + author: 'Praveen Illa', + license: 'GPLv3', + version: '1.0', + patterns: [ + + // numbers + + ['\\`', 'ే'], + ['1', '1'], + ['2', '2'], + ['3', '3'], + ['4', '4'], + ['5', '5'], + ['6', '6'], + ['7', '7'], + ['8', '8'], + ['9', '9'], + ['0', '0'], + ['\\-', '-'], + ['\\=', '='], + + // shift num + + ['\\~', 'ఏ'], + ['\\!', '!'], + ['\\@', '\''], + ['\\#', '\''], + ['\\$', 'ఊ'], + ['\\%', '%'], + ['\\^', 'క్ష'], + ['\\&', 'ౄ'], + ['\\*', '్ర'], + ['\\(', '('], + ['\\)', ')'], + ['\\_', 'ఙ'], + ['\\+', '+'], + + // qwerty order + // 1st row + + ['Q', 'అ'], + ['q', 'ష'], + ['W', 'ఘ'], + ['w', 'గ'], + ['E', 'ఖ'], + ['e', 'క'], + ['R', 'ఠ'], + ['r', 'ట'], + ['T', 'ఢ'], + ['t', 'డ'], + ['Y', 'ఫ'], + ['y', 'ప'], + ['U', 'బ'], + ['u', 'మ'], + ['I', 'ళ'], + ['i', 'ల'], + ['O', 'శ'], + ['o', 'వ'], + ['P', 'ఒ'], + ['p', 'ొ'], + ['\\{', 'ఓ'], + ['\\[', 'ో'], + ['\\}', 'ఞ'], + ['\\]', 'ూ'], + ['\\|', 'శ్రీ'], + ['\\\\', '్ర'], + + // 2nd row + ['A', 'ఆ'], + ['a', 'ా'], + ['S', 'ఇ'], + ['s', 'ి'], + ['D', '్'], + ['d', '్'], + ['F', 'ణ'], + ['f', 'య'], + ['G', 'థ'], + ['g', 'త'], + ['H', 'ధ'], + ['h', 'ద'], + ['J', 'భ'], + ['j', 'న'], + ['K', 'ఱ'], + ['k', 'ర'], + ['L', 'హ'], + ['l', 'స'], + [':', ':'], + [';', ';'], + ['"', 'ఔ'], + ['\\\'', 'ౌ'], + + // 3rd row + + ['Z', 'ఋ'], + ['z', 'ృ'], + ['X', 'ఝ'], + ['x', 'జ'], + ['C', 'ఛ'], + ['c', 'చ'], + ['V', 'ఈ'], + ['v', 'ీ'], + ['B', 'ఎ'], + ['b', 'ె'], + ['N', 'ఉ'], + ['n', 'ు'], + ['M', 'ఐ'], + ['m', 'ై'], + ['\\<', 'ం'], + [',', ','], + ['\\>', 'ః'], + ['\\.', '.'], + ['\\?', '?'], + ['\\/', '/'] + + ], + patterns_x: [ + + /* + * Some characters originally not there + * in original layout but for accessibility + * kept these based on inscript. + */ + + ['\\!', '౹'], + ['\\@', '౼'], + ['\\#', '౺'], + ['\\$', '౽'], + ['4', '₹'], + ['\\%', '౻'], + ['\\^', '౾'], + ['1', '\u200d'], + ['2', '\u200c'], + ['0', '౸'], + ['\\-', '౿'], + ['R', 'ౣ'], + ['r', 'ౡ'], + ['p', 'ౙ'], + ['F', 'ఌ'], + ['f', 'ౢ'], + [';', 'ౘ'], + + ['\\>', 'ఽ'], + ['\\.', '॥'], + + ['\\_', 'ఁ'], + ['=', 'ః'], + + ['q', 'ష్ట్ర'], + ['w', '÷'], + ['e', 'క్ష్మ'], + ['y', '్పు'], + ['i', 'క్ష్మి'], + ['\\[', 'క్ష్మీ'], + ['\\]', '×'], + + ['g', 'ఁ'], + ['k', '్ర'], + ['l', 'స్త్ర'], + ['\\\'', '్పు'], + + ['z', 'ౠ'], + ['c', 'ఁ'], + ['v', '|'], + ['n', '-'], + ['/', '÷'] + + ] + }; + + $.ime.register( teModular ); +}( jQuery ) );