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

	var srKbd = {
		id: 'sr-kbd',
		name: 'Serbian keyboard',
		description: 'Serbian keyboard layout',
		date: '2013-02-12',
		URL: 'http://github.com/wikimedia/jquery.ime',
		author: 'Parag Nemade',
		license: 'GPLv3',
		version: '1.0',
		patterns: [
			['\'g', 'ѓ'],
			['\'G', 'Ѓ'],
			['\'k', 'ќ'],
			['\'K', 'Ќ'],
			['\\@', '\"'],
			['\\^', '&'],
			['\\&', '/'],
			['\\*', '('],
			['\\(', ')'],
			['\\)', '='],
			['\\-', '\''],
			['\\_', '?'],
			['\\=', '+'],
			['\\+', '*'],
			['q', 'љ'],
			['Q', 'Љ'],
			['w', 'њ'],
			['W', 'Њ'],
			['e', 'е'],
			['E', 'Е'],
			['r', 'р'],
			['R', 'Р'],
			['t', 'т'],
			['T', 'Т'],
			['y', 'з'],
			['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( srKbd );
}( jQuery ) );