as-transliteration.js 2.83 KB
Newer Older
priyank's avatar
priyank committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
( function ( $ ) {
	'use strict';

	var asTransliteration = {
		id: 'as-transliteration',
		name: 'প্ৰতিৰূপান্তৰণ',
		description: 'Assamese Transliteration input method',
		date: '2012-10-10',
		URL: 'http://github.com/wikimedia/jquery.ime',
		author: 'Junaid P V',
		license: 'GPLv3',
		version: '1.0',
		contextLength: 8,
		maxKeyLength: 0,
		patterns: [
			['([ক-হড়-য়ৰৱ])(্ড়্ড়্i|্q)', '$1ৃ'], // <consonant>RRi or <consonant>q

			['(ড়্ড়্i|q)', ''], // RRi or q

			['([ক-হড়-য়ৰৱ])্o', '$1'], // <consonant>o
			['([ক-হড়-য়ৰৱ])্a', '$1া'], // <consonant>a
			['([ক-হড়-য়ৰৱ])্i', '$1ি'], // <consonant>i
			['([ক-হড়-য়ৰৱ])(িi|্I)', '$1ী'], // <consonant>ii or <consonant>I
			['([ক-হড়-য়ৰৱ])্u', '$1ু'], // <consonant>u
			['([ক-হড়-য়ৰৱ])(ুu|্U)', '$1ূ'], // <consonant>uu or <consonant>U

			['([ক-হড়-য়ৰৱ])্e', '$1ে'], // <consonant>e
			['([ক-হড়-য়ৰৱ])i', '$1ৈ'], // <consonant>oi
			['([ক-হড়-য়ৰৱ])্O', '$1ো'], // <consonant>O
			['([ক-হড়-য়ৰৱ])u', '$1ৌ'], // <consonant>ou

			['(খ্y|c)', 'ক্ষ্'], // khy or c

			['ইi', ''], // ii
			['উu', ''], // uu
			['অi', ''], // oi
			['অu', ''], // ou
			['ত্~', ''], // t~

			['ক্h', 'খ্'], // kh
			['গ্h', 'ঘ্'], // gh
			['ন্g', 'ঙ্'], // ng
			['জ্h', 'ঝ্'], // jh
			['(ন্~|Y)', 'ঞ্'], // n~ or Y
			['ট্h', 'ঠ্'], // Th
			['ড্h', 'ঢ্'], // Dh
			['ত্h', 'থ্'], // th
			['দ্h', 'ধ্'], // dh
			['(প্h|f)', 'ফ্'], // ph or f
			['(ব্h|v)', 'ভ্'], // bh or v
			['শ্h', 'ষ্'], // Xh
			['ড়্h', 'ঢ়্'], // Rh

			['(M|ন্G)', ''], // M or nG

			['o', ''],
			['a', ''],
			['i', ''],
			['I', ''],
			['u', ''],
			['U', ''],
			['e', ''],
			['O', ''],

			['H', ''],
			['\\^', ''],
			['ণ্~', ''], // N~
			['C', ''],

			['k', 'ক্'],
			['g', 'গ্'],
			['s', 'চ্'],
			['S', 'ছ্'],
			['j', 'জ্'],
			['T', 'ট্'],
			['D', 'ড্'],
			['N', 'ণ্'],
			['t', 'ত্'],
			['d', 'দ্'],
			['n', 'ন্'],
			['p', 'প্'],
			['b', 'ব্'],
			['m', 'ম্'],
			['z', 'য্'],
			['r', 'ৰ্'],
			['l', 'ল্'],
			['w', 'ৱ্'],
			['X', 'শ্'],
			['x', 'স্'],
			['h', 'হ্'],
			['R', 'ড়্'],
			['y', 'য়্'],

			['\\\\\\.', '.'],
			['\\.', ''],
			['\\.', ''],

			['0', ''],
			['1', ''],
			['2', ''],
			['3', ''],
			['4', ''],
			['5', ''],
			['6', ''],
			['7', ''],
			['8', ''],
			['9', ''],

			['(\u200C)*_', '\u200C'],
			['(\u200D)*`', '\u200D']]
	};

	$.ime.register( asTransliteration );
}( jQuery ) );