Input method integration with ULS

The file ext.uls.settingspanel.js is a draft for common
code in the different settings panels.

Change-Id: I057274f16b27b2c18d43d41c1d43f485a18ef0bf
This commit is contained in:
Santhosh Thottingal
2012-10-18 16:27:25 +05:30
parent 90de05cb97
commit f13e474e43
67 changed files with 8867 additions and 22 deletions

View File

@@ -0,0 +1,45 @@
( function ( $ ) {
'use strict';
function prepareRules () {
var rules= [], chars;
chars = {
C: 'Ĉ',
G: 'Ĝ',
H: 'Ĥ',
J: 'Ĵ',
S: 'Ŝ',
U: 'Ŭ',
c: 'ĉ',
g: 'ĝ',
h: 'ĥ',
j: 'ĵ',
s: 'ŝ',
u: 'ŭ'
};
$.each( chars, function ( ascii, accented ) {
rules.push( [ ascii + '[Xx]', ascii, accented ] );
rules.push( [ accented + '([Xx])', '[Xx]', ascii + '$1' ] );
} );
return rules;
}
var eoTransliteration = {
id: 'eo-transliteration',
name: 'Esperanto Transliteration',
description: 'Esperanto x-code transliteration',
date: '2012-10-10',
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Brion Vibber',
license: 'GPLv3',
version: '1.0',
contextLength: 1,
maxKeyLength: 1,
patterns: prepareRules()
};
$.ime.register( eoTransliteration );
}( jQuery ) );