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,111 @@
( function ( $ ) {
'use strict';
var siSinglish = {
id: 'si-singlish',
name: 'Sinhalese Singlish',
description: 'Singlish',
date: '2012-10-16',
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Junaid P V and Nishantha Anuruddha',
license: 'GPLv3',
version: '1.0',
contextLength: 5,
maxKeyLength: 2,
patterns: [
//['ඬ්හ්a', 'ඳ'], // nndha
['ඬ්h', 'ඳ්'], // nndh
['න්න්d', 'ඬ්'], // nnd
['න්න්g', 'ඟ්'],// nng
['\\u0DC1\\u0DCA\\u200D\\u0DBB\\u0DD2i', '\u0DC1\u0DCA\u200D\u0DBB\u0DD3'],// shrii
['\\u0DC1\\u0DCA\\u200D\\u0DBBi', '\u0DC1\u0DCA\u200D\u0DBB\u0DD2'],// shri
['ශ්r', '\u0DC1\u0DCA\u200D\u0DBB'], // shr
['([\\u0D9A-\\u0DC6])්\\u200Dර්u', '$1ෘ'], // <consonant>ru
['([\\u0D9A-\\u0DC6])ෘu', '$1ෲ'], // <consonant>ruu
['([\\u0D9A-\\u0DC6])්a', '$1'], // <consonant>a
['([\\u0D9A-\\u0DC6])a', '$1ා'], // <consonant>aa
['([\\u0D9A-\\u0DC6])්A', '$1ැ'], // <consonant>A
['([\\u0D9A-\\u0DC6])ැa', '$1ෑ'], // <consonant>Aa
['([\\u0D9A-\\u0DC6])්i', '$1ි'], // <consonant>i
['([\\u0D9A-\\u0DC6])ි[ei]', '$1ී'], // <consonant>ie
['([\\u0D9A-\\u0DC6])්u', '$1ු'], // <consonant>u
['([\\u0D9A-\\u0DC6])ුu', '$1ූ'], // <consonant>u
['([\\u0D9A-\\u0DC6])්e', '$1ෙ'], // <consonant>e
['([\\u0D9A-\\u0DC6])ෙ[ai]', '$1ේ'], // <consonant>ei
['([\\u0D9A-\\u0DC6])්o', '$1ො'], // <consonant>o
['([\\u0D9A-\\u0DC6])ොe', '$1ෝ'], // <consonant>oe
['([\\u0D9A-\\u0DC6])u', '$1ෞ'], // <consonant>au
['([\\u0D9A-\\u0DC6])්I', '$1ෛ'], // <consonant>I
['([\\u0D9A-\\u0DC6]්)r', '$1\u200Dර්'], // <consonant>r
['ළුu', 'ළුු'], // Luu
['(ක්h|K)', 'ඛ්'], // kh K
['(ග්h|G)', 'ඝ්'], // gh G
['ස්h', 'ශ්'], // sh
['ch', 'ච්'],
['Ch', 'ඡ්'],
['Sh', 'ෂ්'],
['ඝ්N', 'ඥ්'], // GN
['ඨ්h', 'ථ්'], // Th
['ඛ්N', 'ඤ්'], // KN
['ට්h', 'ත්'], // th
['ඪ්h', 'ධ්'], // Dh
['ඩ්h', 'ද්'], // dh
['(ප්h|P)', 'ඵ්'], // ph P
['ළ්u', 'ළු'], // Lu
['බ්h', 'භ්'], // bh
['(\\\\r|R)', '\u0DBB\u0DCA\u200D'], // \r R
['(\\\\y|Y)', '\u200D\u0DBA\u0DCA'], // \y Y
['අ(a|\\))', 'ආ'], // aa a)
['ඇ(a|\\))', 'ඈ'], // Aa A) ae
['(ඉ[i\\)e]|එe)', 'ඊ'], // ii i) ie ee
['එ[a\\)i]', 'ඒ'], // ea e) ei
['ඔ[e\\)]', 'ඕ'], // oe o)
['(උ[u\\)]|ඔo)', 'ඌ'], // uu u) oo
['අu', 'ඖ'], // au
['\\\\n', ''],
['\\\\h', 'ඃ'],
['\\\\N', 'ඞ'],
['\\\\R', 'ඍ'],
['a', 'අ'],
['A', 'ඇ'],
['i', 'ඉ'],
['e', 'එ'],
['o', 'ඔ'],
['u', 'උ'],
['k', 'ක්'],
['b', 'බ්'],
['B', 'ඹ්'],
['g', 'ග්'],
['m', 'ම්'],
['y', 'ය්'],
['j', 'ජ්'],
['r', 'ර්'],
['T', 'ඨ්'],
['f', 'ෆ්'],
['t', 'ට්'],
['l', 'ල්'],
['D', 'ඪ්'],
['d', 'ඩ්'],
['(w|v)', 'ව්'],
['s', 'ස්'],
['q', 'ඣ්'],
['h', 'හ්'],
['n', 'න්'],
['N', 'ණ්'],
['p', 'ප්'],
['L', 'ළ්']]
};
$.ime.register( siSinglish );
}( jQuery ) );