Files
mediawiki-extensions-Univer…/lib/jquery.ime/rules/sa/sa-transliteration.js
Kartik Mistry 7515596bdc Update jquery.ime from upstream
Upstream: https://github.com/wikimedia/jquery.ime/
Changes:
* Update sa-transliteration layout as per community request
* Fix license for batak-qwerty layout
* Fix indentations in or-lekhani layout
* Updated jquery.ime.js to v0.1.0+20140528

Bug: 63895
Change-Id: I3441924e8e80023eebe77ee5b3c87541c22b1c42
2014-05-28 09:37:45 +00:00

166 lines
3.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

( function ( $ ) {
'use strict';
var saTransliteration = {
id: 'sa-transliteration',
name: 'Sanskrit Transliteration',
description: 'Sanskrit transliteration',
date: '2012-10-16',
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Junaid P V and Naveen Shankar',
license: 'GPLv3',
version: '1.0',
contextLength: 4,
maxKeyLength: 2,
patterns: [
['क्h','c','च्'],
['\\\\([A-Za-z\\>_~\\.0-9])','\\\\','$1'],
['([क-ह]़?)्a','$1'],
['([क-ह]़?)्A','$1ा'],
['([क-ह]़?)a','$1ा'],
['([क-ह]़?)्i','$1ि'],
['([क-ह]़?)(्I|िi|ॆe)','$1ी'],
['([क-ह]़?)्u','$1ु'],
['([क-ह]़?)(ुu|्U|ॊo)','$1ू'],
['([क-ह]़?)्R','$1ृ'],
['([क-ह]़?)ृR','$1ॄ'],
['([क-ह]़?)्ळ्l','$1ॢ'],
['([क-ह]़?)ॢl','$1ॣ'],
['([क-ह]़?)ॆ\\^','$1ॅ'],
['([क-ह]़?)्e','$1े'],
['([क-ह]़?)्E','$1ॅ'],
['([क-ह]़?)ॊ\\^','$1ॉ'],
['([क-ह]़?)i','$1ै'],
['([क-ह]़?)्o','$1ो'],
['([क-ह]़?)्O','$1ॉ'],
['([क-ह]़?)u','$1ौ'],
['([क-ह]़?)ृa','$1्ऱ'],
['([क-ह]़?)ृA','$1्ऱा'],
['([क-ह]़?)ृi','$1्ऱि'],
['([क-ह]़?)ृI','$1्ऱी'],
['([क-ह]़?)ृu','$1्ऱु'],
['([क-ह]़?)ृU','$1्ऱू'],
['([क-ह]़?)ृ\\^','$1्ऱॅ'],
['([क-ह]़?)ृe','$1्ऱे'],
['([क-ह]़?)ृE','1्ऱॅ'],
['([क-ह]़?)ृo','$1्ऱो'],
['([क-ह]़?)ृO','$1्ऱौ'],
['([क-ह]़?)ृ\\~','$1्ऱ्'],
['([क-ह])्\\`','$1़्'],
['अa','आ'],
['(ऒo|उu)','ऊ'],
['ऎ\\^','ऍ'],
['अi','ऐ'],
['अ\\^','ॲ'],
['(इi|ऎe)','ई'],
['ऒ\\^','ऑ'],
['अu','औ'],
['ऋR','ॠ'],
['ळ्l','ऌ'],
['ऌl','ॡ'],
['ं\\^','ँ'],
['ंm','ँ'],
['ओM','ॐ'],
['क्h','ख्'],
['ग्h','घ्'],
['न्g','ङ्'],
['च्h','छ्'],
['ज्h','झ्'],
['न्j','ञ्'],
['ट्h','ठ्'],
['ड्h','ढ्'],
['त्h','थ्'],
['द्h','ध्'],
['प्h','फ्'],
['ब्h','भ्'],
['ऋa','ऱ'],
['ऋA','ऱा'],
['ऋi','ऱि'],
['ऋI','ऱी'],
['ऋu','ऱु'],
['ऋU','ऱू'],
['ऋ\\^','ऱॅ'],
['ऋe','ऱे'],
['ऋE','ऱै'],
['ऋo','ऱो'],
['ऋO','ऱौ'],
['ऋ\\~','ऱ्'],
['स्h','ष्'],
['क़्h','ख़्'],
['ज़्h','ऴ्'],
['।\\.','॥'],
['a','अ'],
['b','ब्'],
['c','क्'],
['d','द्'],
['e','ए'],
['(f|F)','फ़्'],
['g','ग्'],
['h','ह्'],
['i','इ'],
['j','ज्'],
['k','क्'],
['l','ल्'],
['m','म्'],
['n','न्'],
['o','ओ'],
['p','प्'],
['q','क़्'],
['r','र्'],
['s','स्'],
['t','त्'],
['u','उ'],
['(v|w)','व्'],
['x','क्ष्'],
['y','य्'],
['(z|Z)','ज़्'],
['A','आ'],
['B','ब्ब्'],
['C','क्क्'],
['D','ड्'],
['E','ऍ'],
//'F','फ्'],
['G','ग्ग्'],
['H',''],
['I','ई'],
['J','ज्ज्'],
['K','क्क्'],
['L','ळ्'],
['M','ं'],
['N','ण्'],
['O','ऑ'],
['P','प्प्'],
//'Q','अ'],
['R','ऋ'],
['S','श्'],
['T','ट्'],
['U','ऊ'],
['(V|W)','व्व्'],
['X','क्ष्'],
['Y','य्य्'],
//'z','अ'
['0',''],
['1','१'],
['2','२'],
['3','३'],
['4','४'],
['5','५'],
['6','६'],
['7','७'],
['8','८'],
['9','९'],
['~','्'],
['\\.','।'],
['//','ऽ'],
['\\`','़'],
['(\u200C)*_', '\u200c']]
};
$.ime.register( saTransliteration );
}( jQuery ) );