ur-phonetic.js 2.06 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
( function ( $ ) {
	'use strict';

	var urPhonetic = {
		id: 'ur-phonetic',
		name: 'صوتی',
		description: 'Phonetic keyboard for Urdu script',
		date: '2013-02-18',
		URL: 'http://cvs.savannah.gnu.org/viewvc/m17n-contrib/im/ur-phonetic.mim?root=m17n&view=markup',
		author: 'Parag Nemade',
		license: 'GPLv3',
		version: '1.0',
		patterns: [
			['!', '!'],
			['1', '۱'],
			['2', '۲'],
			['\\#', '/'],
			['3', '۳'],
			/* Yeh with hamza above */ ['\\$', 'ئ'],
			['4', '۴'],
			['5', '۵'],
			['6', '۶'],
			['7', '۷'],
			['8', '۸'],
			['\\(', ')'],
			['9', '۹'],
			['\\)', '('],
			['0', '۰'],
			['\\_" "ّ'],
			/* Alef with hamza above */ ['\\-', 'أ'],
			/* Alef with madda above */ ['\\+', 'آ'],
			/* Waw with hamza above */ ['\\=', 'ؤ'],
			['Q', 'ْ'],
			['q', 'ق'],
			['W', ''],
			['w', 'و'],
			['E', '¥'],
			['e', 'ع'],
			['R', 'ڑ'],
			['r', 'ر'],
			['T', 'ٹ'],
			['t', 'ت'],
			['Y', '\u0601'],
			['y', 'ے'],
			['U', '،'],
			['u', 'ء'],
			['I', 'ٰ'],
			['i', 'ی'],
			/* Teh marbuta goal */ ['O', 'ۃ'],
			['o', 'ہ'],
			['P', 'ُ'],
			['p', 'پ'],
			['\\{', 'ٰ'],
			['\\[', ']'],
			['\\}', 'ٰٰ'],
			['\\]', '['],
			['A', 'ٓ'],
			['a', 'ا'],
			['S', 'ص'],
			['s', 'س'],
			['D', 'ڈ'],
			['d', 'د'],
			['F', ''],
			['f', 'ف'],
			['G', 'غ'],
			['g', 'گ'],
			['H', 'ح'],
			['h', 'ھ'],
			['J', 'ض'],
			['j', 'ج'],
			['K', 'خ'],
			['k', 'ک'],
			['L', '\u0613'],
			['l', 'ل'],
			[':', ':'],
			/* Arabic semicolon */ [';', '؛'],
			['\"', '؎'],
			['\'', 'ٰ'],
			['\\|', 'ؔ'],
			['\\', '؎'],
			['\\~', 'ً'],
			['\\`', 'ٍ'],
			['Z', 'ذ'],
			['z', 'ز'],
			['X', 'ژ'],
			['x', 'ش'],
			['C', 'ث'],
			['c', 'چ'],
			['V', 'ظ'],
			['v', 'ط'],
			['B', 'ؒ'],
			['b', 'ب'],
			['N', 'ں'],
			['n', 'ن'],
			['M', ''],
			['m', 'م'],
			['\\<', 'ِ'],
			[',', '،'],
			['\\>', 'َ'],
			/* Arabic full stop */ ['\\.', '۔'],
			/* Arabic question mark */ ['\\?', '؟'],
			['\\^', 'ۖ'],
			['\\&', 'ٔ'],
			['\\*', 'ٌ']]
	};

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