or-transliteration.js 3.83 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
( function ( $ ) {
	'use strict';

	var orTransliteration = {
		id: 'or-transliteration',
		name: 'ଟ୍ରାନ୍ସଲିଟରେସନ',
		description: 'Odia Transliteration',
		date: '2012-10-14',
		URL: 'http://github.com/wikimedia/jquery.ime',
		author: 'Junaid P V and Subhashish Panigrahi',
		license: 'GPLv3',
		version: '1.0',
		contextLength: 4,
		maxKeyLength: 2,
		patterns: [
			[ '\\\\([A-Za-z\\>_~\\.0-9])', '\\\\', '$1' ],

			[ 'ଞ୍ଜ୍h', 'ଞ୍ଝ୍' ], // njh
			[ 'ଙ୍ଗ୍h', 'ଙ୍ଘ୍' ], // ngh

			[ '([କ-ହୟ])୍a', '$1' ],
			[ '([କ-ହୟ])(a|୍A)', '$1ା' ],
			[ '([କ-ହୟ])୍i', '$1\u0b3f' ],
			[ '([କ-ହୟ])୍I', '$1ୀ' ],
			[ '([କ-ହୟ])୍u', '$1\u0b41' ],
			[ '([କ-ହୟ])(୍U|\u0b41u)', '$1\u0b42' ],
			[ '([କ-ହୟ])୍R', '$1\u0b43' ],
			[ '([କ-ହୟ])\u0b43R', '$1\u0b44' ],
			[ '([କ-ହୟ])୍ଳ୍l', '$1ୢ' ],
			[ '([କ-ହୟ])ୢl', '$1ୣ' ],
			[ '([କ-ହୟ])୍e', '$1େ' ],
			[ '([କ-ହୟ])i', '$1ୈ' ],
			[ '([କ-ହୟ])୍o', '$1ୋ' ],
			[ '([କ-ହୟ])ୋu', '$1ୌ' ],
			[ '([କ-ହୟ])୍E', '$1\u0B48' ],

			[ 'ଅa', '' ],
			[ '(ଅi|ଏe)', '' ],
			[ '(ଅu|ଓo|ଓO)', '' ],
			[ 'ଋR', '' ],
			[ 'ଳ୍l', '' ],
			[ 'ଌl', '' ],
			[ 'ଞ୍ଚ୍h', 'ଞ୍ଛ୍' ], // nch

			[ 'ଣ୍G', 'ଙ୍' ], // NG
			[ 'ଣ୍g', 'ଞ୍' ], // Ng
			[ 'କ୍h', 'ଖ୍' ],
			[ 'ଗ୍h', 'ଘ୍' ],
			[ 'ନ୍c', 'ଞ୍ଚ୍' ], // nc
			[ 'ନ୍g', 'ଙ୍ଗ୍' ], // ng
			[ 'ଚ୍h', 'ଛ୍' ],
			[ 'ଜ୍h', 'ଝ୍' ],
			[ 'ନ୍j', 'ଞ୍ଜ୍' ], // nj
			[ 'ନ୍k', 'ଙ୍କ୍' ], // nk
			[ 'ଟ୍h', 'ଠ୍' ],
			[ 'ଡ୍h', 'ଢ୍' ],
			[ 'ତ୍h', 'ଥ୍' ],
			[ 'ଦ୍h', 'ଧ୍' ],
			[ 'ପ୍h', 'ଫ୍' ],
			[ 'ବ୍h', 'ଭ୍' ],
			[ 'ସ୍h', 'ଷ୍' ],
			[ '।Z', '' ],

			[ '\\\\', '\u0B3E' ], // aa sign
			[ '\\\\', '\u0B3F' ], // i sign
			[ '\\\\', '\u0B40' ],// I sign
			[ '\\\\', '\u0B41' ], // u sign
			[ '\\\\', '\u0B42' ], // U sign
			[ '\\\\', '\u0B43' ], // R sign
			[ '\\\\', '\u0B44' ], // RR sign
			[ '\\\\', '\u0B62' ], // L sign
			[ '\\\\', '\u0B63' ], // LL sign
			[ '\\\\', '\u0B47' ], // e sign
			[ '\\\\', '\u0B48' ], // ai sign
			[ '\\\\', '\u0B4B' ], // o sign
			[ '\\\\', '\u0B4C' ], // au sign

			[ '\u200c?a', '' ],
			[ 'b', 'ବ୍' ],
			[ 'c', '', 'ଚ୍' ],
			[ 'd', 'ଦ୍' ],
			[ '\u200c?e', '' ],
			[ 'f', 'ଫ୍' ],
			[ 'g', 'ଗ୍' ],
			[ 'h', 'ହ୍' ],
			[ '\u200c?i', '' ],
			[ 'j', 'ଜ୍' ],
			[ 'k', 'କ୍' ],
			[ 'l', 'ଲ୍' ],
			[ 'm', 'ମ୍' ],
			[ 'n', 'ନ୍' ],
			[ '\u200c?o', '' ],
			[ 'p', 'ପ୍' ],
			[ 'q', 'ଜ୍ଞ୍' ],
			[ 'r', 'ର୍' ],
			[ 's', 'ସ୍' ],
			[ 't', 'ତ୍' ],
			[ '\u200c?u', '' ],
			[ 'v', 'ୱ୍' ],
			[ 'w', 'ଵ୍' ],
			[ 'x', 'କ୍ଷ୍' ],
			[ 'y', 'ୟ୍' ],
			[ 'z', '\u0B3C' ],
			[ '\u200c?A', '' ],
			[ 'B', 'ବ୍' ],
			[ 'C', 'ଛ୍' ],
			[ 'D', 'ଡ୍' ],
			[ '\u200c?E', '' ],
			[ 'F', 'ଫ୍' ],
			[ 'G', 'ଗ୍' ],
			[ 'H', '', '' ],
			[ '\u200c?I', '' ],
			[ 'J', 'ଝ୍' ],
			[ 'K', 'କ୍' ],
			[ 'L', 'ଳ୍' ],
			[ 'M', '', '' ],
			[ 'N', 'ଣ୍' ],
			[ '\u200c?O', '' ],
			[ 'P', 'ଫ୍' ],
			[ 'Q', 'ଜ୍ଞ୍' ],
			[ 'R', '' ],
			[ 'S', 'ଶ୍' ],
			[ 'T', 'ଟ୍' ],
			[ '\u200c?U', '' ],
			[ 'V', 'ଵ୍' ],
			[ 'W', 'ଵ୍ଵ୍' ],
			[ 'X', '' ],
			[ 'Y', 'ଯ୍' ],
			[ 'Z', '' ],
			[ '\\~', '', '' ],
			[ '//', '' ],
			[ '_', '\u200c' ],
			[ '0', '' ],
			[ '1', '' ],
			[ '2', '' ],
			[ '3', '' ],
			[ '4', '' ],
			[ '5', '' ],
			[ '6', '' ],
			[ '7', '' ],
			[ '8', '' ],
			[ '9', '' ] ]
	};

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