Update jquery.ime from upstream and a fix in default preferences
Default preferences are kept while loading from localstorage. It may be empty first time. Handling that case. Change-Id: If5780006120e401a4df1171146760692b8963363
This commit is contained in:
committed by
Gerrit Code Review
parent
66b2badb5c
commit
5cbad377e0
@@ -1022,6 +1022,7 @@
|
||||
if ( !language ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$languageItem = $( '<a>' ).attr( 'href', '#' ).text( language.autonym );
|
||||
$language = $( '<li class="ime-lang">' ).attr( 'lang', languageCode );
|
||||
$language.append( $languageItem );
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
author: 'Junaid P V',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLensgth: 4,
|
||||
contextLength: 4,
|
||||
maxKeyLength: 5,
|
||||
patterns: [
|
||||
['([ক-হড়ঢ়য়])্?ররi','[^o`]', '$1ৃ'],
|
||||
|
||||
@@ -16,13 +16,8 @@
|
||||
'use strict';
|
||||
// All the characters are very similar in appearance,
|
||||
// so it's better to give them names to avoid confusion.
|
||||
var cyrlPalochka, palochka, latinSmallL, latinCapitalI, ukrainianCapitalI, digitOne;
|
||||
var cyrlPalochka;
|
||||
|
||||
palochka = 'c';
|
||||
latinSmallL = 'l';
|
||||
latinCapitalI = 'I';
|
||||
ukrainianCapitalI = 'І';
|
||||
digitOne = '1';
|
||||
|
||||
cyrlPalochka = {
|
||||
id: 'cyrl-palochka',
|
||||
@@ -33,17 +28,15 @@
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 0,
|
||||
maxKeyLength: 2,
|
||||
patterns: [
|
||||
[ latinSmallL, palochka ],
|
||||
[ latinCapitalI, palochka ],
|
||||
[ ukrainianCapitalI, palochka ] ],
|
||||
[ 'l', 'Ӏ' ],
|
||||
[ 'I', 'Ӏ' ],
|
||||
[ 'І', 'Ӏ' ] ],
|
||||
patterns_x: [
|
||||
[ digitOne, palochka ],
|
||||
[ 'д', palochka ],
|
||||
[ 'ш', palochka ],
|
||||
[ 'Ш', palochka ] ]
|
||||
[ '1', 'Ӏ' ],
|
||||
[ 'д', 'Ӏ' ],
|
||||
[ 'ш', 'Ӏ' ],
|
||||
[ 'Ш', 'Ӏ' ] ]
|
||||
};
|
||||
|
||||
$.ime.register( cyrlPalochka );
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
author: 'Jaldeep R Vasavada ([[User:JaldeepVasavada]]) / Amir E. Aharoni ([[User:Amire80]])',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 4,
|
||||
maxKeyLength: 2,
|
||||
contextLength: 2,
|
||||
maxKeyLength: 4,
|
||||
patterns: [
|
||||
['ક્h', 'c', 'ચ'],
|
||||
['\\\\([A-Za-z\\>_~\\.0-9])', '\\\\', '$1'],
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
author: 'Pathak A B',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 4,
|
||||
maxKeyLength: 2,
|
||||
contextLength: 2,
|
||||
maxKeyLength: 4,
|
||||
patterns: [
|
||||
['च्h', 'c', 'च्'], // ch
|
||||
['च्h', 'ch', 'छ्'], // chh
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
author: 'Amir E. Aharoni, inputs from Saurabh Choudhary and Surinder Wadhawan',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 4,
|
||||
maxKeyLength: 2,
|
||||
contextLength: 2,
|
||||
maxKeyLength: 4,
|
||||
/* Semi-automatically created from the Hindi transliteration mapping using
|
||||
* the following Perl substitution:
|
||||
* s{(?<deva_letter>[ऀ-ॿ])}{chr(ord($+{deva_letter}) + 0x100)}xmsge;
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
author: 'Junaid P V',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 2,
|
||||
maxKeyLength: 0,
|
||||
contextLength: 0,
|
||||
maxKeyLength: 2,
|
||||
patterns: [
|
||||
['`', '\u0DCA\u200D\u0DBB'],
|
||||
['~', '\u0DBB\u0DCA\u200D'],
|
||||
@@ -43,7 +43,7 @@
|
||||
['l', 'ක'],
|
||||
[';', 'ත'],
|
||||
['\'', '.'],
|
||||
['z', '\''],
|
||||
['z', '\''],
|
||||
['x', 'ං'],
|
||||
['c', 'ජ'],
|
||||
['v', 'ඩ'],
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
author: 'Veeven and Junaid P V',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 4,
|
||||
maxKeyLength: 1,
|
||||
contextLength: 1,
|
||||
maxKeyLength: 4,
|
||||
patterns: [
|
||||
['(మ్|న్)b', 'ంబ్'],
|
||||
['(మ్|న్)B', 'ంభ్'],
|
||||
@@ -67,8 +67,8 @@
|
||||
// ఉ
|
||||
['([క-హ])్u', '$1ు'],
|
||||
// ఊ
|
||||
['([క-హ])(ుu|ు\'|ుa|్U)', '', '$1ూ'],
|
||||
['([క-హ])ొo', 'o', '$1ూ'],
|
||||
['([క-హ])(ుu|ు\'|ుa|్U)', '$1ూ'],
|
||||
['([క-హ])ొo', 'o', '$1ూ'],
|
||||
// ఋ
|
||||
['([క-హ])్R', '$1ృ'],
|
||||
['([క-హ])్ర్\'', '$1ృ'],
|
||||
@@ -116,8 +116,8 @@
|
||||
['అe', 'a', 'ఏ'],
|
||||
['ఎi', 'ఐ'],
|
||||
['అi', 'a', 'ఐ'],
|
||||
['ఒ(a|\')', '', 'ఓ'],
|
||||
['అo', 'a', 'ఓ'],
|
||||
['ఒ(a|\')', '', 'ఓ'],
|
||||
['అo', 'a', 'ఓ'],
|
||||
['ఒ(u|w)', 'ఔ'],
|
||||
['అu', 'a', 'ఔ'],
|
||||
['ఋ(u|\')', 'ౠ'],
|
||||
|
||||
Reference in New Issue
Block a user