Files
mediawiki-extensions-Univer…/lib/jquery.ime/rules/eo/eo-transliteration.js
Amir Aharoni a85bc8171c Major update of jquery.ime from upstream
Changes:
* New tilde-based layouts for several languages of Africa:
  Kabyle, Kabiye, Kikuyu, Luganda, Lingala, Malagasy,
  Northern Sotho, Koyraboro Senni, Sango, Sotho, Venda
* Latin Pinyin transliteration keyboard
  https://github.com/wikimedia/jquery.ime/pull/545
* CSS and JS cleanup, to switch to stylelint and eslint.

Updating to
22407cf992

Bug: T212637
Change-Id: I167e572a6cc0f7c1c727e87e8ff361d88f87b40f
2019-03-29 15:02:33 -07:00

49 lines
869 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: 'ŭ'
};
$.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 ) );