ks-kbd.js 1.82 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
( function ( $ ) {
	'use strict';

	var ksKbd = {
		id: 'ks-Kbd',
		name: 'Kbd',
		description: 'Kbd keyboard for Kashmiri language using Arabic script',
		date: '2013-02-09',
		author: 'Parag Nemade',
		license: 'GPLv3',
		version: '1.0',
		patterns: [
			['\\~', 'ٓ'],
			['\\!', '!'],
			['1', '۱'],
			['\\@', '@'],
			['2', '۲'],
			['\\#', '#'],
			['3', '۳'],
			['\\$', '$'],
			['4', '۴'],
			['5', '۵'],
			['6', '۶'],
			['7', '۷'],
			['8', '۸'],
			['\\(', ')'],
			['9', '۹'],
			['\\)', '('],
			['0', '۰'],
			['\\_', 'ّ'],
			['\\-', '-'],
			['\\+', '+'],
			['\\=', '='],
			['Q', ''],
			['q', 'ق'],
			['W', 'ؤ'],
			['w', 'و'],
			['E', 'ئ'],
			['e', 'ع'],
			['R', 'ڑ'],
			['r', 'ر'],
			['T', 'ٹ'],
			['t', 'ت'],
			['Y', '\u0601'],
			['y', 'ے'],
			['U', '،'],
			['u', 'ء'],
			['I', 'ۆ'],
			['i', 'ی'],
			['O', 'ۃ'],
			['o', 'ہ'],
			['P', 'إ'],
			['p', 'پ'],
			['\\{', 'ٰ'],
			['\\[', ']'],
			['\\}', 'ٰ'],
			['\\]', '['],
			['A', 'آ'],
			['a', 'ا'],
			['S', 'ش'],
			['s', 'س'],
			['D', 'ڈ'],
			['d', 'د'],
			['F', 'ُ'],
			['f', 'ف'],
			['G', 'غ'],
			['g', 'گ'],
			['H', 'ح'],
			['h', 'ھ'],
			['J', 'ژ'],
			['j', 'ج'],
			['K', 'خ'],
			['k', 'ک'],
			['L', 'ؓ'],
			['l', 'ل'],
			[':', ':'],
			[';', '؛'],
			['\"', '\"'],
			['\'', 'ٰ'],
			['\\|', 'أ'],
			['\\\\', '؎'],
			['\\~', 'ً'],
			['`', 'ٍ'],
			['Z', 'ذ'],
			['z', 'ز'],
			['X', 'ض'],
			['x', 'ص'],
			['C', 'ث'],
			['c', 'چ'],
			['V', 'ظ'],
			['v', 'ط'],
			['B', 'أ'],
			['b', 'ب'],
			['N', 'ں'],
			['n', 'ن'],
			['M', 'ٔ'],
			['m', 'م'],
			['\\>', 'َ'],
			[',', '،'],
			['\\<', 'ِ'],
			['\\.', '۔'],
			['\\?', '؟'],
			['/', '/'],
			['\\%', '%'],
			['\\^', '^'],
			['\\&', '&'],
			['\\*', '*']
		]
	};

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