Files
mediawiki-extensions-Univer…/lib/jquery.ime/rules/eo/eo-transliteration.js
Santhosh Thottingal 28044a6f14 Update jquery.ime to 7572e2
Documentation, code clean ups and build updates

Change-Id: I7ce3d75345b76f2a7693b6143e013b6a8202e093
2016-04-12 11:52:46 +05:30

47 lines
848 B
JavaScript

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