Update from upstream
Change-Id: If1843b6292c92d07b3dcf7f58ade57e2eb0bd880
This commit is contained in:
@@ -416,371 +416,59 @@
|
|||||||
( function ( $ ) {
|
( function ( $ ) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
$.extend( $.ime.sources, {
|
$.extend( $.ime.preferences, {
|
||||||
'am-transliteration': {
|
registry: {
|
||||||
name: 'Transliteration',
|
language : 'en',
|
||||||
source: 'rules/am/am-transliteration.js'
|
previousLanguages: [], // array of previous languages
|
||||||
|
imes: {
|
||||||
|
'en': 'system'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'as-avro': {
|
|
||||||
name: 'অভ্ৰ',
|
setLanguage: function ( language ) {
|
||||||
source: 'rules/as/as-avro.js'
|
this.registry.language = language;
|
||||||
|
if ( !this.registry.previousLanguages ) {
|
||||||
|
this.registry.previousLanguages = [];
|
||||||
|
}
|
||||||
|
//Add to the previous languages, but avoid duplicates.
|
||||||
|
if ( $.inArray( language, this.registry.previousLanguages ) === -1 ) {
|
||||||
|
this.registry.previousLanguages.push( language );
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'as-bornona': {
|
|
||||||
name: 'বৰ্ণনা',
|
getLanguage: function () {
|
||||||
source: 'rules/as/as-bornona.js'
|
return this.registry.language;
|
||||||
},
|
},
|
||||||
'as-inscript': {
|
|
||||||
name: 'ইন্স্ক্ৰিপ্ত',
|
getPreviousLanguages: function () {
|
||||||
source: 'rules/as/as-inscript.js'
|
return this.registry.previousLanguages;
|
||||||
},
|
},
|
||||||
'as-transliteration': {
|
|
||||||
name: 'প্ৰতিৰূপান্তৰণ',
|
// Set the given IM as the last used for the language
|
||||||
source: 'rules/as/as-transliteration.js'
|
setIM: function ( inputMethod ) {
|
||||||
|
if( !this.registry.imes ){
|
||||||
|
this.registry.imes= {};
|
||||||
|
}
|
||||||
|
this.registry.imes[this.getLanguage()] = inputMethod;
|
||||||
},
|
},
|
||||||
'ber-tfng': {
|
|
||||||
name: 'Tifinagh',
|
// Return the last used or the default IM for language
|
||||||
source: 'rules/ber/ber-tfng.js'
|
getIM: function ( language ) {
|
||||||
|
if( !this.registry.imes ){
|
||||||
|
this.registry.imes= {};
|
||||||
|
}
|
||||||
|
return this.registry.imes[language] || $.ime.languages[language].inputmethods[0];
|
||||||
},
|
},
|
||||||
'bn-avro': {
|
|
||||||
name: 'Avro',
|
save: function () {
|
||||||
source: 'rules/bn/bn-avro.js'
|
// save registry in cookies or localstorage
|
||||||
},
|
},
|
||||||
'bn-inscript': {
|
|
||||||
name: 'ইন্স্ক্ৰিপ্ত',
|
load: function () {
|
||||||
source: 'rules/bn/bn-inscript.js'
|
// load registry from cookies or localstorage
|
||||||
},
|
|
||||||
'bn-nkb': {
|
|
||||||
name: 'National Keyboard',
|
|
||||||
source: 'rules/bn/bn-nkb.js'
|
|
||||||
},
|
|
||||||
'bn-probhat': {
|
|
||||||
name: 'Probhat',
|
|
||||||
source: 'rules/bn/bn-probhat.js'
|
|
||||||
},
|
|
||||||
'brx-inscript': {
|
|
||||||
name: 'Inscript',
|
|
||||||
source: 'rules/brx/brx-inscript.js'
|
|
||||||
},
|
|
||||||
'cyrl-palochka': {
|
|
||||||
name: 'Palochka',
|
|
||||||
source: 'rules/cyrl/cyrl-palochka.js'
|
|
||||||
},
|
|
||||||
'eo-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/eo/eo-transliteration.js'
|
|
||||||
},
|
|
||||||
'hi-transliteration': {
|
|
||||||
name: 'लिप्यंतरण',
|
|
||||||
source: 'rules/hi/hi-transliteration.js'
|
|
||||||
},
|
|
||||||
'hi-inscript': {
|
|
||||||
name: 'इनस्क्रिप्ट',
|
|
||||||
source: 'rules/hi/hi-inscript.js'
|
|
||||||
},
|
|
||||||
'mai-inscript': {
|
|
||||||
name: 'इनस्क्रिप्ट',
|
|
||||||
source: 'rules/mai/mai-inscript.js',
|
|
||||||
depends: 'hi-inscript'
|
|
||||||
},
|
|
||||||
'hi-bolnagri': {
|
|
||||||
name: 'बोलनागरी',
|
|
||||||
source: 'rules/hi/hi-bolnagri.js'
|
|
||||||
},
|
|
||||||
'ml-transliteration': {
|
|
||||||
name: 'ലിപ്യന്തരണം',
|
|
||||||
source: 'rules/ml/ml-transliteration.js'
|
|
||||||
},
|
|
||||||
'ml-inscript': {
|
|
||||||
name: 'ഇൻസ്ക്രിപ്റ്റ്',
|
|
||||||
source: 'rules/ml/ml-inscript.js'
|
|
||||||
},
|
|
||||||
'ta-inscript': {
|
|
||||||
name: 'இன்ஸ்கிரிப்ட்',
|
|
||||||
source: 'rules/ta/ta-inscript.js'
|
|
||||||
},
|
|
||||||
'ta-transliteration': {
|
|
||||||
name: 'எழுத்துப்பெயர்ப்பு',
|
|
||||||
source: 'rules/ta/ta-transliteration.js'
|
|
||||||
},
|
|
||||||
'ta-99': {
|
|
||||||
name: 'தமிழ்99',
|
|
||||||
source: 'rules/ta/ta-99.js'
|
|
||||||
},
|
|
||||||
'ta-bamini': {
|
|
||||||
name: 'பாமினி',
|
|
||||||
source: 'rules/ta/ta-bamini.js'
|
|
||||||
},
|
|
||||||
'de': {
|
|
||||||
name: 'Deutsch',
|
|
||||||
source: 'rules/de/de.js'
|
|
||||||
},
|
|
||||||
'he-standard-2012': {
|
|
||||||
name: 'Hebrew 2012 (from English)',
|
|
||||||
source: 'rules/he/he-standard-2012.js'
|
|
||||||
},
|
|
||||||
'he-standard-2012-extonly': {
|
|
||||||
name: 'Hebrew 2012',
|
|
||||||
source: 'rules/he/he-standard-2012-extonly.js'
|
|
||||||
},
|
|
||||||
'gu-inscript': {
|
|
||||||
name: 'ઇનસ્ક્રિપ્ટ',
|
|
||||||
source: 'rules/gu/gu-inscript.js'
|
|
||||||
},
|
|
||||||
'gu-transliteration': {
|
|
||||||
name: 'લિપ્યાંતરણ',
|
|
||||||
source: 'rules/gu/gu-transliteration.js'
|
|
||||||
},
|
|
||||||
'ka-transliteration': {
|
|
||||||
name: 'ტრანსლიტერაცია',
|
|
||||||
source: 'rules/ka/ka-transliteration.js'
|
|
||||||
},
|
|
||||||
'kn-inscript': {
|
|
||||||
name: 'Inscript',
|
|
||||||
source: 'rules/kn/kn-inscript.js'
|
|
||||||
},
|
|
||||||
'kn-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/kn/kn-transliteration.js'
|
|
||||||
},
|
|
||||||
'mr-inscript': {
|
|
||||||
name: 'मराठी लिपी',
|
|
||||||
source: 'rules/mr/mr-inscript.js'
|
|
||||||
},
|
|
||||||
'mr-transliteration': {
|
|
||||||
name: 'अक्षरांतरण',
|
|
||||||
source: 'rules/mr/mr-transliteration.js'
|
|
||||||
},
|
|
||||||
'ne-inscript': {
|
|
||||||
name: 'इनस्क्रिप्ट',
|
|
||||||
source: 'rules/ne/ne-inscript.js'
|
|
||||||
},
|
|
||||||
'ne-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/ne/ne-transliteration.js'
|
|
||||||
},
|
|
||||||
'or-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/or/or-transliteration.js'
|
|
||||||
},
|
|
||||||
'or-inscript': {
|
|
||||||
name: 'Inscript',
|
|
||||||
source: 'rules/or/or-inscript.js'
|
|
||||||
},
|
|
||||||
'or-lekhani': {
|
|
||||||
name: 'ଲେଖନୀ',
|
|
||||||
source: 'rules/or/or-lekhani.js'
|
|
||||||
},
|
|
||||||
'te-inscript': {
|
|
||||||
name: 'ఇన్స్క్రిప్ట్',
|
|
||||||
source: 'rules/te/te-inscript.js'
|
|
||||||
},
|
|
||||||
'te-transliteration': {
|
|
||||||
name: 'లిప్యంతరీకరణ',
|
|
||||||
source: 'rules/te/te-transliteration.js'
|
|
||||||
},
|
|
||||||
'pa-inscript': {
|
|
||||||
name: 'Inscript',
|
|
||||||
source: 'rules/pa/pa-inscript.js'
|
|
||||||
},
|
|
||||||
'pa-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/pa/pa-transliteration.js'
|
|
||||||
},
|
|
||||||
'pa-phonetic': {
|
|
||||||
name: 'Phonetic',
|
|
||||||
source: 'rules/pa/pa-phonetic.js'
|
|
||||||
},
|
|
||||||
'ru-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/ru/ru-transliteration.js'
|
|
||||||
},
|
|
||||||
'sa-inscript': {
|
|
||||||
name: 'Inscript',
|
|
||||||
source: 'rules/sa/sa-inscript.js'
|
|
||||||
},
|
|
||||||
'sa-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/sa/sa-transliteration.js'
|
|
||||||
},
|
|
||||||
'sah-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/sah/sah-transliteration.js'
|
|
||||||
},
|
|
||||||
'si-singlish': {
|
|
||||||
name: 'Singlish',
|
|
||||||
source: 'rules/si/si-singlish.js'
|
|
||||||
},
|
|
||||||
'si-wijesekara': {
|
|
||||||
name: 'Wijesekara',
|
|
||||||
source: 'rules/si/si-wijesekara.js'
|
|
||||||
},
|
|
||||||
'ur-transliteration': {
|
|
||||||
name: 'Transliteration',
|
|
||||||
source: 'rules/ur/ur-transliteration.js'
|
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$.extend( $.ime.languages, {
|
|
||||||
'ady': {
|
|
||||||
autonym: 'адыгэбзэ',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'ahr': {
|
|
||||||
autonym: 'अहिराणी',
|
|
||||||
inputmethods: [ 'mr-transliteration', 'mr-inscript' ]
|
|
||||||
},
|
|
||||||
'am': {
|
|
||||||
autonym: 'አማርኛ',
|
|
||||||
inputmethods: [ 'am-transliteration' ]
|
|
||||||
},
|
|
||||||
'as': {
|
|
||||||
autonym: 'অসমীয়া',
|
|
||||||
inputmethods: [ 'as-transliteration', 'as-avro', 'as-bornona', 'as-inscript' ]
|
|
||||||
},
|
|
||||||
'av': {
|
|
||||||
autonym: 'авар',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'ber': {
|
|
||||||
autonym: 'ⵜⵉⴼⵉⵏⴰⵖ',
|
|
||||||
inputmethods: [ 'ber-tfng' ]
|
|
||||||
},
|
|
||||||
'bn': {
|
|
||||||
autonym: 'বাংলা',
|
|
||||||
inputmethods: [ 'bn-avro', 'bn-inscript', 'bn-nkb', 'bn-probhat' ]
|
|
||||||
},
|
|
||||||
'brx': {
|
|
||||||
autonym: 'बड़ो',
|
|
||||||
inputmethods: [ 'brx-inscript' ]
|
|
||||||
},
|
|
||||||
'ce': {
|
|
||||||
autonym: 'нохчийн',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'de': {
|
|
||||||
autonym: 'Deutsch',
|
|
||||||
inputmethods: [ 'de' ]
|
|
||||||
},
|
|
||||||
'eo': {
|
|
||||||
autonym: 'Esperanto',
|
|
||||||
inputmethods: [ 'eo-transliteration' ]
|
|
||||||
},
|
|
||||||
'gom': {
|
|
||||||
autonym: 'कोंकणी',
|
|
||||||
inputmethods: [ 'hi-transliteration', 'hi-inscript' ]
|
|
||||||
},
|
|
||||||
'gu': {
|
|
||||||
autonym: 'ગુજરાતી',
|
|
||||||
inputmethods: [ 'gu-transliteration', 'gu-inscript' ]
|
|
||||||
},
|
|
||||||
'he': {
|
|
||||||
autonym: 'עברית',
|
|
||||||
inputmethods: [ 'he-standard-2012-extonly', 'he-standard-2012' ]
|
|
||||||
},
|
|
||||||
'hi': {
|
|
||||||
autonym: 'हिन्दी',
|
|
||||||
inputmethods: [ 'hi-transliteration', 'hi-inscript', 'hi-bolnagri' ]
|
|
||||||
},
|
|
||||||
'hne': {
|
|
||||||
autonym: 'छत्तीसगढ़ी',
|
|
||||||
inputmethods: [ 'hi-transliteration' ]
|
|
||||||
},
|
|
||||||
'ka': {
|
|
||||||
autonym: 'ქართული ენა',
|
|
||||||
inputmethods: [ 'ka-transliteration' ]
|
|
||||||
},
|
|
||||||
'kbd': {
|
|
||||||
autonym: 'адыгэбзэ (къэбэрдеибзэ)',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'kn': {
|
|
||||||
autonym: 'ಕನ್ನಡ',
|
|
||||||
inputmethods: [ 'kn-transliteration', 'kn-inscript' ]
|
|
||||||
},
|
|
||||||
'lbe': {
|
|
||||||
autonym: 'лакку',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'lez': {
|
|
||||||
autonym: 'лезги',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'mai': {
|
|
||||||
autonym: 'मैथिली',
|
|
||||||
inputmethods: [ 'mai-inscript' ]
|
|
||||||
},
|
|
||||||
'ml': {
|
|
||||||
autonym: 'മലയാളം',
|
|
||||||
inputmethods: [ 'ml-transliteration', 'ml-inscript' ]
|
|
||||||
},
|
|
||||||
'mr': {
|
|
||||||
autonym: 'मराठी',
|
|
||||||
inputmethods: [ 'mr-transliteration', 'mr-inscript' ]
|
|
||||||
},
|
|
||||||
'ne': {
|
|
||||||
autonym: 'नेपाली',
|
|
||||||
inputmethods: [ 'ne-transliteration', 'ne-inscript' ]
|
|
||||||
},
|
|
||||||
'new': {
|
|
||||||
autonym: 'नेपाल भाषा',
|
|
||||||
inputmethods: [ 'hi-transliteration', 'hi-inscript' ]
|
|
||||||
},
|
|
||||||
'or': {
|
|
||||||
autonym: 'ଓଡ଼ିଆ',
|
|
||||||
inputmethods: [ 'or-transliteration', 'or-lekhani', 'or-inscript' ]
|
|
||||||
},
|
|
||||||
'pa': {
|
|
||||||
autonym: 'ਪੰਜਾਬੀ',
|
|
||||||
inputmethods: [ 'pa-transliteration', 'pa-inscript', 'pa-phonetic' ]
|
|
||||||
},
|
|
||||||
'rif': {
|
|
||||||
autonym: 'ⵜⵉⴼⵉⵏⴰⵖ',
|
|
||||||
inputmethods: [ 'ber-tfng' ]
|
|
||||||
},
|
|
||||||
'ru': {
|
|
||||||
autonym: 'русский',
|
|
||||||
inputmethods: [ 'ru-transliteration' ]
|
|
||||||
},
|
|
||||||
'sah': {
|
|
||||||
autonym: 'саха тыла',
|
|
||||||
inputmethods: [ 'sah-transliteration' ]
|
|
||||||
},
|
|
||||||
'sa': {
|
|
||||||
autonym: 'संस्कृत',
|
|
||||||
inputmethods: [ 'sa-transliteration', 'sa-inscript' ]
|
|
||||||
},
|
|
||||||
'shi': {
|
|
||||||
autonym: 'ⵜⵉⴼⵉⵏⴰⵖ',
|
|
||||||
inputmethods: [ 'ber-tfng' ]
|
|
||||||
},
|
|
||||||
'si': {
|
|
||||||
autonym: 'සිංහල',
|
|
||||||
inputmethods: [ 'si-singlish', 'si-wijesekara' ]
|
|
||||||
},
|
|
||||||
'ta': {
|
|
||||||
autonym: 'தமிழ்',
|
|
||||||
inputmethods: [ 'ta-transliteration', 'ta-99', 'ta-inscript', 'ta-bamini' ]
|
|
||||||
},
|
|
||||||
'tcy': {
|
|
||||||
autonym: 'ತುಳು',
|
|
||||||
inputmethods: [ 'kn-transliteration' ]
|
|
||||||
},
|
|
||||||
'te': {
|
|
||||||
autonym: 'తెలుగు',
|
|
||||||
inputmethods: [ 'te-transliteration', 'te-inscript' ]
|
|
||||||
},
|
|
||||||
'tkr': {
|
|
||||||
autonym: 'цӀаӀхна миз',
|
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
|
||||||
},
|
|
||||||
'ur': {
|
|
||||||
autonym: 'اردو',
|
|
||||||
inputmethods: [ 'ur-transliteration' ]
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
}( jQuery ) );
|
}( jQuery ) );
|
||||||
|
|
||||||
( function ( $ ) {
|
( function ( $ ) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@@ -846,12 +534,14 @@
|
|||||||
|
|
||||||
$( 'html' ).on( 'click.ime', function () {
|
$( 'html' ).on( 'click.ime', function () {
|
||||||
imeselector.$menu.removeClass( 'open' );
|
imeselector.$menu.removeClass( 'open' );
|
||||||
|
if ( imeselector.$element.is( ':hidden' ) ) {
|
||||||
|
imeselector.$imeSetting.hide();
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
imeselector.$menu.on( 'click.ime', 'li.ime-im', function ( e ) {
|
imeselector.$menu.on( 'click.ime', 'li.ime-im', function ( e ) {
|
||||||
imeselector.selectIM( $( this ).data( 'ime-inputmethod' ) );
|
imeselector.selectIM( $( this ).data( 'ime-inputmethod' ) );
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
imeselector.$menu.on( 'click.ime', 'li.ime-lang', function ( e ) {
|
imeselector.$menu.on( 'click.ime', 'li.ime-lang', function ( e ) {
|
||||||
@@ -874,12 +564,15 @@
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
imeselector.$element.attrchange( function ( attrName ) {
|
||||||
|
if( imeselector.$element.is( ':hidden') ) {
|
||||||
|
imeselector.$imeSetting.hide();
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
// Possible resize of textarea
|
// Possible resize of textarea
|
||||||
imeselector.$element.on( 'mouseup.ime', $.proxy( this.position, this ) );
|
imeselector.$element.on( 'mouseup.ime', $.proxy( this.position, this ) );
|
||||||
imeselector.$element.on( 'keydown.ime', $.proxy( this.keydown, this ) );
|
imeselector.$element.on( 'keydown.ime', $.proxy( this.keydown, this ) );
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1140,61 +833,460 @@
|
|||||||
return event.ctrlKey && ( event.which === 77 || event.which === 13 );
|
return event.ctrlKey && ( event.which === 77 || event.which === 13 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver
|
||||||
|
|| window.MozMutationObserver;
|
||||||
|
|
||||||
|
function isDOMAttrModifiedSupported () {
|
||||||
|
var p = document.createElement( 'p' );
|
||||||
|
var flag = false;
|
||||||
|
|
||||||
|
if ( p.addEventListener )
|
||||||
|
p.addEventListener( 'DOMAttrModified', function () {
|
||||||
|
flag = true;
|
||||||
|
}, false );
|
||||||
|
else if ( p.attachEvent )
|
||||||
|
p.attachEvent( 'onDOMAttrModified', function () {
|
||||||
|
flag = true;
|
||||||
|
} );
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
|
||||||
|
p.setAttribute( 'id', 'target' );
|
||||||
|
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.attrchange = function ( callback ) {
|
||||||
|
if ( MutationObserver ) {
|
||||||
|
var options = {
|
||||||
|
subtree: false,
|
||||||
|
attributes: true
|
||||||
|
};
|
||||||
|
|
||||||
|
var observer = new MutationObserver( function ( mutations ) {
|
||||||
|
mutations.forEach( function ( e ) {
|
||||||
|
callback.call( e.target, e.attributeName );
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
return this.each( function () {
|
||||||
|
observer.observe( this, options );
|
||||||
|
} );
|
||||||
|
|
||||||
|
} else if ( isDOMAttrModifiedSupported() ) {
|
||||||
|
return this.on( 'DOMAttrModified', function ( e ) {
|
||||||
|
callback.call( this, e.attrName );
|
||||||
|
} );
|
||||||
|
} else if ( 'onpropertychange' in document.body ) {
|
||||||
|
return this.on( 'propertychange', function ( e ) {
|
||||||
|
callback.call( this, window.event.propertyName );
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}( jQuery ) );
|
}( jQuery ) );
|
||||||
|
|
||||||
( function ( $ ) {
|
( function ( $ ) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
$.extend( $.ime.preferences, {
|
$.extend( $.ime.sources, {
|
||||||
registry: {
|
'am-transliteration': {
|
||||||
language : 'en',
|
name: 'Transliteration',
|
||||||
previousLanguages: [], // array of previous languages
|
source: 'rules/am/am-transliteration.js'
|
||||||
imes: {
|
|
||||||
'en': 'system'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
'as-avro': {
|
||||||
setLanguage: function ( language ) {
|
name: 'অভ্ৰ',
|
||||||
this.registry.language = language;
|
source: 'rules/as/as-avro.js'
|
||||||
if ( !this.registry.previousLanguages ) {
|
|
||||||
this.registry.previousLanguages = [];
|
|
||||||
}
|
|
||||||
//Add to the previous languages, but avoid duplicates.
|
|
||||||
if ( $.inArray( language, this.registry.previousLanguages ) === -1 ) {
|
|
||||||
this.registry.previousLanguages.push( language );
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
'as-bornona': {
|
||||||
getLanguage: function () {
|
name: 'বৰ্ণনা',
|
||||||
return this.registry.language;
|
source: 'rules/as/as-bornona.js'
|
||||||
},
|
},
|
||||||
|
'as-inscript': {
|
||||||
getPreviousLanguages: function () {
|
name: 'ইন্স্ক্ৰিপ্ত',
|
||||||
return this.registry.previousLanguages;
|
source: 'rules/as/as-inscript.js'
|
||||||
},
|
},
|
||||||
|
'as-transliteration': {
|
||||||
// Set the given IM as the last used for the language
|
name: 'প্ৰতিৰূপান্তৰণ',
|
||||||
setIM: function ( inputMethod ) {
|
source: 'rules/as/as-transliteration.js'
|
||||||
if( !this.registry.imes ){
|
|
||||||
this.registry.imes= {};
|
|
||||||
}
|
|
||||||
this.registry.imes[this.getLanguage()] = inputMethod;
|
|
||||||
},
|
},
|
||||||
|
'be-latin': {
|
||||||
// Return the last used or the default IM for language
|
name: 'Łacinka',
|
||||||
getIM: function ( language ) {
|
source: 'rules/be/be-latin.js'
|
||||||
if( !this.registry.imes ){
|
|
||||||
this.registry.imes= {};
|
|
||||||
}
|
|
||||||
return this.registry.imes[language] || $.ime.languages[language].inputmethods[0];
|
|
||||||
},
|
},
|
||||||
|
'be-transliteration': {
|
||||||
save: function () {
|
name: 'Transliteration',
|
||||||
// save registry in cookies or localstorage
|
source: 'rules/be/be-transliteration.js'
|
||||||
},
|
},
|
||||||
|
'ber-tfng': {
|
||||||
load: function () {
|
name: 'Tifinagh',
|
||||||
// load registry from cookies or localstorage
|
source: 'rules/ber/ber-tfng.js'
|
||||||
|
},
|
||||||
|
'bn-avro': {
|
||||||
|
name: 'Avro',
|
||||||
|
source: 'rules/bn/bn-avro.js'
|
||||||
|
},
|
||||||
|
'bn-inscript': {
|
||||||
|
name: 'ইন্স্ক্ৰিপ্ত',
|
||||||
|
source: 'rules/bn/bn-inscript.js'
|
||||||
|
},
|
||||||
|
'bn-nkb': {
|
||||||
|
name: 'National Keyboard',
|
||||||
|
source: 'rules/bn/bn-nkb.js'
|
||||||
|
},
|
||||||
|
'bn-probhat': {
|
||||||
|
name: 'Probhat',
|
||||||
|
source: 'rules/bn/bn-probhat.js'
|
||||||
|
},
|
||||||
|
'brx-inscript': {
|
||||||
|
name: 'Inscript',
|
||||||
|
source: 'rules/brx/brx-inscript.js'
|
||||||
|
},
|
||||||
|
'cyrl-palochka': {
|
||||||
|
name: 'Palochka',
|
||||||
|
source: 'rules/cyrl/cyrl-palochka.js'
|
||||||
|
},
|
||||||
|
'eo-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/eo/eo-transliteration.js'
|
||||||
|
},
|
||||||
|
'hi-transliteration': {
|
||||||
|
name: 'लिप्यंतरण',
|
||||||
|
source: 'rules/hi/hi-transliteration.js'
|
||||||
|
},
|
||||||
|
'hi-inscript': {
|
||||||
|
name: 'इनस्क्रिप्ट',
|
||||||
|
source: 'rules/hi/hi-inscript.js'
|
||||||
|
},
|
||||||
|
'mai-inscript': {
|
||||||
|
name: 'इनस्क्रिप्ट',
|
||||||
|
source: 'rules/mai/mai-inscript.js',
|
||||||
|
depends: 'hi-inscript'
|
||||||
|
},
|
||||||
|
'hi-bolnagri': {
|
||||||
|
name: 'बोलनागरी',
|
||||||
|
source: 'rules/hi/hi-bolnagri.js'
|
||||||
|
},
|
||||||
|
'ml-transliteration': {
|
||||||
|
name: 'ലിപ്യന്തരണം',
|
||||||
|
source: 'rules/ml/ml-transliteration.js'
|
||||||
|
},
|
||||||
|
'ml-inscript': {
|
||||||
|
name: 'ഇൻസ്ക്രിപ്റ്റ്',
|
||||||
|
source: 'rules/ml/ml-inscript.js'
|
||||||
|
},
|
||||||
|
'ta-inscript': {
|
||||||
|
name: 'இன்ஸ்கிரிப்ட்',
|
||||||
|
source: 'rules/ta/ta-inscript.js'
|
||||||
|
},
|
||||||
|
'ta-transliteration': {
|
||||||
|
name: 'எழுத்துப்பெயர்ப்பு',
|
||||||
|
source: 'rules/ta/ta-transliteration.js'
|
||||||
|
},
|
||||||
|
'ta-99': {
|
||||||
|
name: 'தமிழ்99',
|
||||||
|
source: 'rules/ta/ta-99.js'
|
||||||
|
},
|
||||||
|
'ta-bamini': {
|
||||||
|
name: 'பாமினி',
|
||||||
|
source: 'rules/ta/ta-bamini.js'
|
||||||
|
},
|
||||||
|
'de': {
|
||||||
|
name: 'Deutsch',
|
||||||
|
source: 'rules/de/de.js'
|
||||||
|
},
|
||||||
|
'he-standard-2012': {
|
||||||
|
name: 'Hebrew 2012 (from English)',
|
||||||
|
source: 'rules/he/he-standard-2012.js'
|
||||||
|
},
|
||||||
|
'he-standard-2012-extonly': {
|
||||||
|
name: 'Hebrew 2012',
|
||||||
|
source: 'rules/he/he-standard-2012-extonly.js'
|
||||||
|
},
|
||||||
|
'gu-inscript': {
|
||||||
|
name: 'ઇનસ્ક્રિપ્ટ',
|
||||||
|
source: 'rules/gu/gu-inscript.js'
|
||||||
|
},
|
||||||
|
'gu-transliteration': {
|
||||||
|
name: 'લિપ્યાંતરણ',
|
||||||
|
source: 'rules/gu/gu-transliteration.js'
|
||||||
|
},
|
||||||
|
'ka-transliteration': {
|
||||||
|
name: 'ტრანსლიტერაცია',
|
||||||
|
source: 'rules/ka/ka-transliteration.js'
|
||||||
|
},
|
||||||
|
'kn-inscript': {
|
||||||
|
name: 'Inscript',
|
||||||
|
source: 'rules/kn/kn-inscript.js'
|
||||||
|
},
|
||||||
|
'kn-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/kn/kn-transliteration.js'
|
||||||
|
},
|
||||||
|
'kn-kgp': {
|
||||||
|
name: 'KGP/Nudi/KP Rao',
|
||||||
|
source: 'rules/kn/kn-kgp.js'
|
||||||
|
},
|
||||||
|
'kok-inscript2': {
|
||||||
|
name: 'इनस्क्रिप्ट २',
|
||||||
|
source: 'rules/kok/kok-inscript2.js'
|
||||||
|
},
|
||||||
|
'mr-inscript': {
|
||||||
|
name: 'इनस्क्रिप्ट',
|
||||||
|
source: 'rules/mr/mr-inscript.js'
|
||||||
|
},
|
||||||
|
'mr-inscript2': {
|
||||||
|
name: 'इनस्क्रिप्ट २',
|
||||||
|
source: 'rules/mr/mr-inscript2.js'
|
||||||
|
},
|
||||||
|
'mr-transliteration': {
|
||||||
|
name: 'अक्षरांतरण',
|
||||||
|
source: 'rules/mr/mr-transliteration.js'
|
||||||
|
},
|
||||||
|
'ne-inscript': {
|
||||||
|
name: 'इनस्क्रिप्ट',
|
||||||
|
source: 'rules/ne/ne-inscript.js'
|
||||||
|
},
|
||||||
|
'ne-inscript2': {
|
||||||
|
name: 'इनस्क्रिप्ट २',
|
||||||
|
source: 'rules/ne/ne-inscript2.js'
|
||||||
|
},
|
||||||
|
'ne-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/ne/ne-transliteration.js'
|
||||||
|
},
|
||||||
|
'or-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/or/or-transliteration.js'
|
||||||
|
},
|
||||||
|
'or-inscript': {
|
||||||
|
name: 'Inscript',
|
||||||
|
source: 'rules/or/or-inscript.js'
|
||||||
|
},
|
||||||
|
'or-lekhani': {
|
||||||
|
name: 'ଲେଖନୀ',
|
||||||
|
source: 'rules/or/or-lekhani.js'
|
||||||
|
},
|
||||||
|
'te-inscript': {
|
||||||
|
name: 'ఇన్స్క్రిప్ట్',
|
||||||
|
source: 'rules/te/te-inscript.js'
|
||||||
|
},
|
||||||
|
'te-transliteration': {
|
||||||
|
name: 'లిప్యంతరీకరణ',
|
||||||
|
source: 'rules/te/te-transliteration.js'
|
||||||
|
},
|
||||||
|
'pa-inscript': {
|
||||||
|
name: 'Inscript',
|
||||||
|
source: 'rules/pa/pa-inscript.js'
|
||||||
|
},
|
||||||
|
'pa-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/pa/pa-transliteration.js'
|
||||||
|
},
|
||||||
|
'pa-phonetic': {
|
||||||
|
name: 'Phonetic',
|
||||||
|
source: 'rules/pa/pa-phonetic.js'
|
||||||
|
},
|
||||||
|
'ru-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/ru/ru-transliteration.js'
|
||||||
|
},
|
||||||
|
'sa-inscript': {
|
||||||
|
name: 'Inscript',
|
||||||
|
source: 'rules/sa/sa-inscript.js'
|
||||||
|
},
|
||||||
|
'sa-inscript2': {
|
||||||
|
name: 'इनस्क्रिप्ट २',
|
||||||
|
source: 'rules/sa/sa-inscript2.js'
|
||||||
|
},
|
||||||
|
'sa-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/sa/sa-transliteration.js'
|
||||||
|
},
|
||||||
|
'sah-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/sah/sah-transliteration.js'
|
||||||
|
},
|
||||||
|
'si-singlish': {
|
||||||
|
name: 'Singlish',
|
||||||
|
source: 'rules/si/si-singlish.js'
|
||||||
|
},
|
||||||
|
'si-wijesekara': {
|
||||||
|
name: 'Wijesekara',
|
||||||
|
source: 'rules/si/si-wijesekara.js'
|
||||||
|
},
|
||||||
|
'ur-transliteration': {
|
||||||
|
name: 'Transliteration',
|
||||||
|
source: 'rules/ur/ur-transliteration.js'
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
$.extend( $.ime.languages, {
|
||||||
|
'ady': {
|
||||||
|
autonym: 'адыгэбзэ',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'ahr': {
|
||||||
|
autonym: 'अहिराणी',
|
||||||
|
inputmethods: [ 'mr-transliteration', 'mr-inscript' ]
|
||||||
|
},
|
||||||
|
'am': {
|
||||||
|
autonym: 'አማርኛ',
|
||||||
|
inputmethods: [ 'am-transliteration' ]
|
||||||
|
},
|
||||||
|
'as': {
|
||||||
|
autonym: 'অসমীয়া',
|
||||||
|
inputmethods: [ 'as-transliteration', 'as-avro', 'as-bornona', 'as-inscript' ]
|
||||||
|
},
|
||||||
|
'av': {
|
||||||
|
autonym: 'авар',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'be': {
|
||||||
|
autonym: 'беларуская',
|
||||||
|
inputmethods: [ 'be-transliteration', 'be-latin' ]
|
||||||
|
},
|
||||||
|
'ber': {
|
||||||
|
autonym: 'ⵜⵉⴼⵉⵏⴰⵖ',
|
||||||
|
inputmethods: [ 'ber-tfng' ]
|
||||||
|
},
|
||||||
|
'bn': {
|
||||||
|
autonym: 'বাংলা',
|
||||||
|
inputmethods: [ 'bn-avro', 'bn-inscript', 'bn-nkb', 'bn-probhat' ]
|
||||||
|
},
|
||||||
|
'brx': {
|
||||||
|
autonym: 'बोड़ो',
|
||||||
|
inputmethods: [ 'brx-inscript' ]
|
||||||
|
},
|
||||||
|
'ce': {
|
||||||
|
autonym: 'нохчийн',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'de': {
|
||||||
|
autonym: 'Deutsch',
|
||||||
|
inputmethods: [ 'de' ]
|
||||||
|
},
|
||||||
|
'eo': {
|
||||||
|
autonym: 'Esperanto',
|
||||||
|
inputmethods: [ 'eo-transliteration' ]
|
||||||
|
},
|
||||||
|
'gom': {
|
||||||
|
autonym: 'कोंकणी',
|
||||||
|
inputmethods: [ 'hi-transliteration', 'hi-inscript' ]
|
||||||
|
},
|
||||||
|
'gu': {
|
||||||
|
autonym: 'ગુજરાતી',
|
||||||
|
inputmethods: [ 'gu-transliteration', 'gu-inscript' ]
|
||||||
|
},
|
||||||
|
'he': {
|
||||||
|
autonym: 'עברית',
|
||||||
|
inputmethods: [ 'he-standard-2012-extonly', 'he-standard-2012' ]
|
||||||
|
},
|
||||||
|
'hi': {
|
||||||
|
autonym: 'हिन्दी',
|
||||||
|
inputmethods: [ 'hi-transliteration', 'hi-inscript', 'hi-bolnagri' ]
|
||||||
|
},
|
||||||
|
'hne': {
|
||||||
|
autonym: 'छत्तीसगढ़ी',
|
||||||
|
inputmethods: [ 'hi-transliteration' ]
|
||||||
|
},
|
||||||
|
'ka': {
|
||||||
|
autonym: 'ქართული ენა',
|
||||||
|
inputmethods: [ 'ka-transliteration' ]
|
||||||
|
},
|
||||||
|
'kbd': {
|
||||||
|
autonym: 'адыгэбзэ (къэбэрдеибзэ)',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'kn': {
|
||||||
|
autonym: 'ಕನ್ನಡ',
|
||||||
|
inputmethods: [ 'kn-transliteration', 'kn-inscript', 'kn-kgp' ]
|
||||||
|
},
|
||||||
|
'kok': {
|
||||||
|
autonym: 'कोंकणी',
|
||||||
|
inputmethods: [ 'kok-inscript2' ]
|
||||||
|
},
|
||||||
|
'lbe': {
|
||||||
|
autonym: 'лакку',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'lez': {
|
||||||
|
autonym: 'лезги',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'mai': {
|
||||||
|
autonym: 'मैथिली',
|
||||||
|
inputmethods: [ 'mai-inscript' ]
|
||||||
|
},
|
||||||
|
'ml': {
|
||||||
|
autonym: 'മലയാളം',
|
||||||
|
inputmethods: [ 'ml-transliteration', 'ml-inscript' ]
|
||||||
|
},
|
||||||
|
'mr': {
|
||||||
|
autonym: 'मराठी',
|
||||||
|
inputmethods: [ 'mr-transliteration', 'mr-inscript2', 'mr-inscript' ]
|
||||||
|
},
|
||||||
|
'ne': {
|
||||||
|
autonym: 'नेपाली',
|
||||||
|
inputmethods: [ 'ne-transliteration', 'ne-inscript2', 'ne-inscript' ]
|
||||||
|
},
|
||||||
|
'new': {
|
||||||
|
autonym: 'नेपाल भाषा',
|
||||||
|
inputmethods: [ 'hi-transliteration', 'hi-inscript' ]
|
||||||
|
},
|
||||||
|
'or': {
|
||||||
|
autonym: 'ଓଡ଼ିଆ',
|
||||||
|
inputmethods: [ 'or-transliteration', 'or-lekhani', 'or-inscript' ]
|
||||||
|
},
|
||||||
|
'pa': {
|
||||||
|
autonym: 'ਪੰਜਾਬੀ',
|
||||||
|
inputmethods: [ 'pa-transliteration', 'pa-inscript', 'pa-phonetic' ]
|
||||||
|
},
|
||||||
|
'rif': {
|
||||||
|
autonym: 'ⵜⵉⴼⵉⵏⴰⵖ',
|
||||||
|
inputmethods: [ 'ber-tfng' ]
|
||||||
|
},
|
||||||
|
'ru': {
|
||||||
|
autonym: 'русский',
|
||||||
|
inputmethods: [ 'ru-transliteration' ]
|
||||||
|
},
|
||||||
|
'sah': {
|
||||||
|
autonym: 'саха тыла',
|
||||||
|
inputmethods: [ 'sah-transliteration' ]
|
||||||
|
},
|
||||||
|
'sa': {
|
||||||
|
autonym: 'संस्कृत',
|
||||||
|
inputmethods: [ 'sa-transliteration', 'sa-inscript2', 'sa-inscript' ]
|
||||||
|
},
|
||||||
|
'shi': {
|
||||||
|
autonym: 'ⵜⵉⴼⵉⵏⴰⵖ',
|
||||||
|
inputmethods: [ 'ber-tfng' ]
|
||||||
|
},
|
||||||
|
'si': {
|
||||||
|
autonym: 'සිංහල',
|
||||||
|
inputmethods: [ 'si-singlish', 'si-wijesekara' ]
|
||||||
|
},
|
||||||
|
'ta': {
|
||||||
|
autonym: 'தமிழ்',
|
||||||
|
inputmethods: [ 'ta-transliteration', 'ta-99', 'ta-inscript', 'ta-bamini' ]
|
||||||
|
},
|
||||||
|
'tcy': {
|
||||||
|
autonym: 'ತುಳು',
|
||||||
|
inputmethods: [ 'kn-transliteration' ]
|
||||||
|
},
|
||||||
|
'te': {
|
||||||
|
autonym: 'తెలుగు',
|
||||||
|
inputmethods: [ 'te-transliteration', 'te-inscript' ]
|
||||||
|
},
|
||||||
|
'tkr': {
|
||||||
|
autonym: 'цӀаӀхна миз',
|
||||||
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
|
},
|
||||||
|
'ur': {
|
||||||
|
autonym: 'اردو',
|
||||||
|
inputmethods: [ 'ur-transliteration' ]
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
}( jQuery ) );
|
}( jQuery ) );
|
||||||
Reference in New Issue
Block a user