as-avro.js 5.29 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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
( function ( $ ) {
	'use strict';

	var asAvro = {
		id: 'as-avro',
		name: 'অভ্ৰ',
		description: 'Assamese Avro layout based on Bengali Avro input method',
		date: '2012-10-10',
		URL: 'http://github.com/wikimedia/jquery.ime',
		author: 'Junaid P V',
		license: 'GPLv3',
		version: '1.0',
		contextLength: 0,
		maxKeyLength: 2,
		patterns: [
			['([ক-হড়ঢ়য়ৰ])্?ৰৰi', '[^o`]', '$1ৃ'],
			['ৰৰi', '[^o`]', ''],

			['(([ক-হড়ঢ়য়ৰ])|য়)o', '[^o`]', '$1'], // য় cannot be included in the range, why? everywhere else it is OK!
			['([ক-হড়ঢ়য়ৰ])a', '[^o`]', '$1া'],
			['([ক-হড়ঢ়য়ৰ])i', '[^o`]', '$1ি'],
			['([ক-হড়ঢ়য়ৰ])I', '[^o`]', '$1ী'],
			['([ক-হড়ঢ়য়ৰ])u', '[^o`]', '$1ু'],
			['([ক-হড়ঢ়য়ৰ])U', '[^o`]', '$1ূ'],
			['([ক-হড়ঢ়য়ৰ])o', '[o`]', '$1ু'],
			['([ক-হড়ঢ়য়ৰ])e', '[^o`]', '$1ে'],
			['([ক-হড়ঢ়য়ৰ])োI', '[^o`]', '$1ৈ'],
			['([ক-হড়ঢ়য়ৰ])O', '[^o`]', '$1ো'],
			['([ক-হড়ঢ়য়ৰ])োU', '[^o`]', '$1ৌ'],

			//'চচh', '[^o`]', 'চ্চ'],

			['([কঙলষস])(k|K)', '[^o`]', '$1্ক'],
			['([ঙদল])(g|G)', '[^o`]', '$1্গ'],
			['গg', '[^o`]', 'জ্ঞ'],
			['([চশ])c', '[^o`]', '$1্চ'],
			['([জঞব])j', '[^o`]', '$1্জ'],
			['নj', '[^o`]', 'ঞ্জ'],
			['([কটণনপলষস])T', '[^o`]', '$1্ট'],
			['([ডণনল])D', '[^o`]', '$1্ড'],
			['([গষহ])N', '[^o`]', '$1্ণ'],
			['([কতনপশসহ])t', '[^o`]', '$1্ত'],
			['([দনব])d', '[^o`]', '$1্দ'],
			['([গঘণতধনপমশসহ])n', '[^o`]', '$1্ন'],
			['([পমলস])p', '[^o`]', '$1্প'],
			['([বমল])b', '[^o`]', '$1্ব'],
			['([দম])(v|V)', '[^o`]', '$1্ভ'],
			['([কগঙটণতদধনমলশষসহ])m', '[^o`]', '$1্ম'],
			['([ক-ঘচ-ঝট-যলশ-হড়ঢ়য়])r', '[^o`]', '$1্ৰ'],
			['([কগপ-বমলশসহ])l', '[^o`]', '$1্ল'],
			['([কনপ])s', '[^o`]', '$1্স'],
			['([ক-হড়ঢ়য়ৰ])w', '[^o`]', '$1্ব'],
			['([ক-হড়ঢ়য়ৰ])y', '[^o`]', '$1্য'],
			['নc', '[^o`]', 'ঞ্চ'],

			['ত`', '`', ''],

			['ক্ক(h|H)', '[^o`]', 'ক্ষ'],
			['কশ(h|H)', '[^o`]', 'ক্ষ'],
			//'([অ-ঔা-ৌ])ৰৰk', '[^o]', '$1র্ক'],

			['ৰৰk', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ক'],
			['ৰৰg', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্গ'],
			['ৰৰc', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্চ'],
			['ৰৰj', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্জ'],
			['ৰৰT', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ট'],
			['ৰৰD', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ড'],
			['ৰৰN', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ণ'],
			['ৰৰt', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ত'],
			['ৰৰd', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্দ'],
			['ৰৰn', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ন'],
			['ৰৰp', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্প'],
			['ৰৰf', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ফ'],
			['ৰৰb', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ব'],
			['ৰৰv', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ভ'],
			['ৰৰm', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ম'],
			['ৰৰz', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্য'],
			['ৰৰl', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ল'],
			['ৰৰS', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্শ'],
			['ৰৰs', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্স'],
			['ৰৰh', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্হ'],
			['ৰৰR', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্ড়'],
			['ৰৰ(y|Y)', '(o|a|i|I|u|U|e|O|OI|OU|rri)rr', 'র্য়'],

			['শ(h|H)', 'S', ''],

			['অo', '[^`]', ''],
			['এe', '[^o`]', ''],

			['কh', '[^o`]', ''],
			['গh', '[^o`]', ''],
			['ণg', '[^o`]', ''],
			['চh', '[^o`]', ''],
			['জh', '[^o`]', ''],
			['ণG', '[^o`]', ''],
			['টh', '[^o`]', ''],
			['ডh', '[^o`]', ''],
			['তh', '[^o`]', ''],
			['দh', '[^o`]', ''],
			['পh', '[^o`]', ''],
			['বh', '[^o`]', ''],
			['(সh)', '[^o`]', ''],
			['ড়h', '[^o`]', ''],
			['ত্`', '[^o`]', ''],
			['নg', '[^o`]', ''],
			['ঃ`', '[^o`]', ':'],
			['ৰৰi', '[^o`]', ''],
			['ওI', '[^o`]', ''],
			['ওU', '[^o`]', ''],
			['(k|K)', ''],
			['(g|G)', ''],
			['(c|C)', ''],
			['j', ''],
			['T', ''],
			['D', ''],
			['N', ''],
			['t', ''],
			['d', ''],
			['n', ''],
			['(p|P)', ''],
			['f', ''],
			['(b|B)', ''],
			['(v|V)', ''],
			['(m|M)', ''],
			['z', ''],
			['r', ''],
			['(l|L)', ''],
			['S', ''],
			['s', ''],
			['(h|H)', ''],
			['R', ''],
			['(y|Y)', ''],

			['Z','্য'],

			['o', ''],
			['(a|A)', ''],
			['i', ''],
			['I', ''],
			['u', ''],
			['U', ''],
			['e', ''],
			['O', ''],

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

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

			[',,',''],
			['\\:',''],
			['\\^',''],
			['\\.', ''],
			['\\$', ''],
			['ঃ`', ':'],
			['`', '']]
	};

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