kn-kgp.js 2.24 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
( function ( $ ) {
	'use strict';

	var knKGP = {
		id: 'kn-kgp',
		name: 'ಕಗಪ/ನುಡಿ',
		description: 'Kannada kgp/nudi/KP Rao layout',
		date: '2012-11-09',
		URL: 'http://github.com/wikimedia/jquery.ime',
		author: 'Aravinda VK<mail@aravindavk.in>',
		license: 'GPLv3,MIT',
		version: '1.0',
		contextLength: 4,
		maxKeyLength: 2,
		patterns: [
			['([ಕ-ಹೞ]಼?)f', '$1್'],
			['([ಕ-ಹೞ]಼?್)f', '$1'],
			['\\\\([A-Za-z\\>_~\\.0-9])', '\\\\', '$1'],
			['([ಕ-ಹೞ]಼?)A', '$1ಾ'],
			['([ಕ-ಹೞ]಼?)i', '$1ಿ'],
			['([ಕ-ಹೞ]಼?)I', '$1ೀ'],
			['([ಕ-ಹೞ]಼?)u', '$1ು'],
			['([ಕ-ಹೞ]಼?)U', '$1ೂ'],
			['([ಕ-ಹೞ]಼?)R', '$1ೃ'],
			['([ಕ-ಹೞ]಼?)ೃX', '$1ೄ'],
			['([ಕ-ಹೞ]಼?)e', '$1ೆ'],
			['([ಕ-ಹೞ]಼?)E', '$1ೇ'],
			['([ಕ-ಹೞ]಼?)Y', '$1ೈ'],
			['([ಕ-ಹೞ]಼?)o', '$1ೊ'],
			['([ಕ-ಹೞ]಼?)O', '$1ೋ'],
			['([ಕ-ಹೞ]಼?)V', '$1ೌ'],
			['ಸX', ''],
			['([ಕ-ಹೞ]಼?\u200D)f', '$1್'],
			['(\u200D)F', '\u200C'], // 0x200C Zero width non-joiner
			['F', '\u200D'], // 0x200D Zero width joiner
			['k', ''],
			['K', ''],
			['g', ''],
			['G', ''],
			['Z', ''],
			['c', ''],
			['C', ''],
			['j', ''],
			['ಜX', 'ಜ಼'],
			['J', ''],
			['z', ''],
			['q', ''],
			['Q', ''],
			['w', ''],
			['W', ''],
			['N', ''],
			['t', ''],
			['T', ''],
			['d', ''],
			['D', ''],
			['n', ''],
			['p', ''],
			['P', ''],
			['ಫX', 'ಫ಼'],
			['b', ''],
			['B', ''],
			['m', ''],
			['y', ''],
			['r', ''],
			['ರX', ''],
			['l', ''],
			['v', ''],
			['S', ''],
			['x', ''],
			['s', ''],
			['h', ''],
			['L', ''],
			['ಳX', ''],
			['a', ''],
			['A', ''],
			['i', ''],
			['I', ''],
			['u', ''],
			['U', ''],
			['R', ''],
			['ಋX', ''],
			['e', ''],
			['E', ''],
			['Y', ''],
			['o', ''],
			['O', ''],
			['V', ''],
			['M', ''],
			['H', ''],
			['0', ''],
			['1', ''],
			['2', ''],
			['3', ''],
			['4', ''],
			['5', ''],
			['6', ''],
			['7', ''],
			['8', ''],
			['9', '']
		]
	};

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