Changes:
1. build: Update eslint
2. telugu jna gunintham fixes
Updating to 6d591016d2
Change-Id: I092ae22f51bb18ef5dd23f8b1552ca7ced17face
50 lines
922 B
JavaScript
50 lines
922 B
JavaScript
( function ( $ ) {
|
|
'use strict';
|
|
|
|
var eoTransliteration;
|
|
|
|
function prepareRules() {
|
|
var rules = [],
|
|
chars;
|
|
|
|
chars = {
|
|
C: 'Ĉ',
|
|
G: 'Ĝ',
|
|
H: 'Ĥ',
|
|
J: 'Ĵ',
|
|
S: 'Ŝ',
|
|
U: 'Ŭ',
|
|
c: 'ĉ',
|
|
g: 'ĝ',
|
|
h: 'ĥ',
|
|
j: 'ĵ',
|
|
s: 'ŝ',
|
|
u: 'ŭ'
|
|
};
|
|
|
|
// eslint-disable-next-line no-jquery/no-each-util
|
|
$.each( chars, function ( ascii, accented ) {
|
|
rules.push( [ ascii + '[Xx]', ascii, accented ] );
|
|
rules.push( [ accented + '([Xx])', '[Xx]', ascii + '$1' ] );
|
|
} );
|
|
|
|
return rules;
|
|
}
|
|
|
|
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 ) );
|