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:
Santhosh Thottingal
2012-10-25 17:18:42 +05:30
committed by Gerrit Code Review
parent 66b2badb5c
commit 5cbad377e0
9 changed files with 26 additions and 32 deletions

View File

@@ -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 );

View File

@@ -10,7 +10,7 @@
author: 'Junaid P V',
license: 'GPLv3',
version: '1.0',
contextLensgth: 4,
contextLength: 4,
maxKeyLength: 5,
patterns: [
['([ক-হড়ঢ়য়])্?ররi','[^o`]', '$1ৃ'],

View File

@@ -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 );

View File

@@ -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'],

View File

@@ -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

View File

@@ -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;

View File

@@ -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'],

View File

@@ -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,7 +67,7 @@
// ఉ
['([క-హ])్u', '$1ు'],
// ఊ
['([క-హ])(ుu|ు\'|ుa|్U)', '', '$1ూ'],
['([క-హ])(ుu|ు\'|ుa|్U)', '$1ూ'],
['([క-హ])ొo', 'o', '$1ూ'],
// ఋ
['([క-హ])్R', '$1ృ'],