Update jquery.ime from upstream to 7b24f45b01d

Changes:
* bo-ewts: using unicode NFC instead of NFD.
* Fixed description in bn-probhat layout.

Change-Id: Ieb58a36fd997bc422dab01a1d2c7692068a26c6b
This commit is contained in:
Kartik Mistry
2014-08-28 11:25:50 +05:30
committed by Santhosh
parent c6079b2e92
commit 3d202e4774
3 changed files with 282 additions and 269 deletions

View File

@@ -1,4 +1,4 @@
/*! jquery.ime - v0.1.0+20140728
/*! jquery.ime - v0.1.0+20140828
* https://github.com/wikimedia/jquery.ime
* Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */
( function ( $ ) {

View File

@@ -4,7 +4,7 @@
var bnProbhat = {
id: 'bn-probhat',
name: 'Bengali Probhat',
description: 'Bengali Probhat input method for Assamese',
description: 'Bengali Probhat input method for Bengali',
date: '2012-10-10',
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Nasir Khan Saikat',

View File

@@ -1,271 +1,284 @@
( function ( $ ) {
'use strict';
var patterns = [
// ambiguous cases with b as prefix
['བྲk', 'r', 'བརྐ'],
['བྲg', 'r', 'བརྒ'],
['བྲl', 'r', 'བརླ'],
['བྲj', 'r', 'བརྗ'],
['བྲt', 'r', 'བརྟ'],
['བྲd', 'r', 'བརྡ'],
['བྲn', 'r', 'བརྣ '],
['བླt', 'l', 'བལྟ'],
['བླd', 'l', 'བལྡ'],
// Standard Tibetan Stacks listed at <http://www.thlib.org/reference/transliteration/tibstacks.php>
// some are handled magically and don't need to appear here.
['རྐy', 'k', 'རྐྱ'],
['རྒy', 'g', 'རྒྱ'],
['རྨy', 'm', 'རྨྱ'],
['རྒw', 'g', 'རྒྭ'],
['རྩw', 's', 'རྩྭ'],
['སྐy', 'k', 'སྐྱ'],
['སྒy', 'g', 'སྒྱ'],
['སྤy', 'p', 'སྤྱ'],
['སྦy', 'b', 'སྦྱ'],
['སྨy', 'm', 'སྨྱ'],
['སྐr', 'k', 'སྐྲ'],
['སྒr', 'g', 'སྒྲ'],
['སྣr', 'n', 'སྣྲ'],
['སྤr', 'p', 'སྤྲ'],
['སྦr', 'b', 'སྦྲ'],
['སྨr', 'm', 'སྨྲ'],
['གྲw', 'r', 'གྲྭ'],
['དྲw', 'r', 'དྲྭ'],
['ཕྱw', 'y', 'ཕྱྭ'],
['རk', 'r', 'རྐ'],
['རg', 'r', 'རྒ'],
['རj', 'r', 'རྗ'],
['རt', 'r', 'རྟ'],
['རd', 'r', 'རྡ'],
['རn', 'r', 'རྣ '],
['རb', 'r', 'རྦ'],
['རm', 'r', 'རྨ'],
['ལk', 'l', 'ལྐ'],
['ལg', 'l', 'ལྒ'],
['ལc', 'l', 'ལྕ'],
['ལj', 'l', 'ལྗ'],
['ལt', 'l', 'ལྟ'],
['ལd', 'l', 'སྡ'],
['ལp', 'l', 'ལྤ'],
['ལb', 'l', 'ལྦ'],
['ལh', 'l', 'ལྷ'],
['སk', 's', 'སྐ'],
['སg', 's', 'སྒ'],
['སt', 's', 'སྟ'],
['སd', 's', 'སྡ'],
['སn', 's', 'སྣ'],
['སp', 's', 'སྤ'],
['སb', 's', 'སྦ'],
['སm', 's', 'སྨ'],
['སྟs', 't', 'ས'],
['ཀw', 'k', 'ཀྭ'],
['ཁw', 'h', 'ཁྭ'],
['གw', 'g', 'གྭ'],
['ཅw', 'c', 'ཅྭ'],
['ཉw', 'y', 'ཉྭ'],
['ཏw', 't', 'ཏྭ'],
['དw', 'd', 'དྭ'],
['ཙw', 's', 'ཙྭ'],
['ཚw', 'h', 'ཚྭ'],
['ཞw', 'h', 'ཞྭ'],
['ཟw', 'z', 'ཟྭ'],
['རw', 'r', 'རྭ'],
['w', 'h', 'ྭ'],
['w', 's', 'ྭ'],
['w', 'h', 'ྭ'],
['ཀy', 'k', 'ཀྱ'],
['ཁy', 'h', 'ཁྱ'],
['གy', 'g', 'གྱ'],
['པy', 'p', 'པྱ'],
['ཕy', 'h', 'ཕྱ'],
['བy', 'b', 'བྱ'],
['མy', 'm', 'མྱ'],
['ཀr', 'k', 'ཀྲ'],
['ཁr', 'h', 'ཁྲ'],
['གr', 'g', 'གྲ'],
['ཏr', 't', 'ཏྲ'],
['ཐr', 'h', 'ཐྲ'],
['དr', 'd', 'དྲ'],
['པr', 'p', 'པྲ'],
['ཕr', 'h', 'ཕྲ'],
['བr', 'b', 'བྲ'],
['མr', 'm', 'མྲ'],
['ཤr', 'h', 'ཤྲ'],
['སr', 's', 'སྲ'],
['r', 'h', 'ྲ'],
['ཀl', 'k', 'ཀླ'],
['གl', 'g', 'ག'],
['བl', 'b', 'བླ'],
['ཟl', 'z', 'ཟླ'],
['རl', 'r', 'རླ'],
['སl', 's', 'སླ'],
['ཨོM', 'o', ''],
['\\.', ''],
['\\+', ''],
['-', ''],
['S', ''],
// subjoined letters:
['k', '\\+', ''],
['ྐh', ''],
['g', '\\+', ''],
['ྣg', ''],
['c', '\\+', ''],
['ྕh', ''],
['j', '\\+', ''],
['ྣy', ''],
['T', '\\+', ''],
['ྚh', ''],
['D', '\\+', ''],
['N', '\\+', 'ྞ'],
['t', '\\+', ''],
['ྟh', ''],
['d', '\\+', ''],
['n', '\\+', ''],
['p', '\\+', ''],
['ྤh', ''],
['b', '\\+', ''],
['m', '\\+', ''],
['ྟs', ''],
['ྩh', ''],
['ྡz', ''],
['w', '\\+', ''],
['h', ''],
['z', '\\+', ''],
['\'', '\\+', ''],
['y', '\\+', ''],
['r', '\\+', ''],
['l', '\\+', ''],
['ྶh', ''],
['h', '\\+S', 'ྵ'],
['s', '\\+', ''],
['h', '\\+', ''],
['v', '\\+', 'ྦ༹'],
['f', '\\+', 'ྥ༹'],
['W', '\\+', ''],
['Y', '\\+', ''],
['R', '\\+', ''],
['Z', '\\+', ''],
// consonants
['k', ''],
['ཀh', 'k', ''],
['g', ''],
['ནg', 'n', 'ང'],
['c', ''],
['ཅh', 'c', ''],
['j', ''],
['ནy', 'n', ''],
['T', ''],
['h', 'T', ''],
['D', ''],
['N', ''],
['t', ''],
['h', 't', ''],
['d', ''],
['n', ''],
['p', ''],
['པh', 'p', ''],
['b', ''],
['m', ''],
['ཏs', 't', ''],
['ཙh', 's', ''],
['དz', 'd', ''],
['w', 'ཝ'],
['ཟh', 'z', 'ཞ'],
['z', ''],
['\'', ''],
['y', ''],
['r', ''],
['l', ''],
['སh', 's', ''],
['h', 'S', ''],
['s', ''],
['h', ''],
['f', 'ཕ༹'],
['v', 'བ༹'],
['R', ''],
// vowels after consonnants or vowels
['([ཀ-ྼ])i', 'a', '$1ཻ'],
['([ཀ-ྼ])u', 'a', '$1ཽ'],
['([ཀ-ྼ])i', '-', '$1ྀ'],
['([ཀ-ྼ])རI', 'r-', '$1ྲཱྀ'],
['([ཀ-ྼ])ལI', 'l-', '$1ླཱྀ'],
['རI', 'r-', 'ཨྲཱྀ'],
['ལI', 'l-', 'ཨླཱྀ'],
['([ཀ-ྼ])I', '-', '$1ཱྀ'],
['([ཀ-ྼ])a', '$1'],
['([ཀ-ྼ])i', '$1ི'],
['([ཀ-ྼ])u', '$1ུ'],
['([ཀ-ྼ])e', '$1ེ'],
['([ཀ-ྼ])o', '$1ོ'],
['([ཀ-ྼ])A', '$1ཱ'],
['([ཀ-ྼ])I', '$1ཱི'],
['([ཀ-ྼ])U', '$1ཱུ'],
// vowels after something else
['a', ''],
['i', '-', 'ཨྀ'],
['A', 'ཨཱ'],
['I', '-', 'ཨཱྀ'],
['I', 'ཨཱི'],
['U', 'ཨཱུ'],
['i', 'ཨི'],
['u', 'ཨུ'],
['e', 'ཨེ'],
['o', 'ཨོ'],
// numbers
['0', ''],
['1', '༡'],
['2', '༢'],
['3', ''],
['4', ''],
['5', ''],
['6', ''],
['7', ''],
['8', ''],
['9', ''],
// sanskrit marks
['H', 'ཿ'],
['M', ''],
['~M', ''],
['~M`', 'ྂ'],
['\\?', ''],
['&', ''],
// punctuation
[' ', ''],
['\\*', ''],
['\\/', ''],
['\\/\\/', ''],
[';', ''],
['\\|', ''],
['\\!', ''],
['\\:', '༔'],
['_', ' '],
['\\=', ''],
['@', ''],
['#', ''],
['\\$', ''],
['%', ''],
['<', ''],
['>', ''],
['\\(', ''],
['\\)', ''],
['~X', '༵'],
['X', ''],
['\\^', '']
];
var boEWTS = {
id: 'bo-ewts',
name: 'Tibetan EWTS transliteration',
description: 'Tibetan Extended Wylie Transliteration, based on the work of thdl.',
date: '2014-07-09',
URL: 'http://www.thlib.org/reference/transliteration/#!essay=/thl/ewts',
author: 'Elie Roux <elie.roux@telecom-bretagne.eu>',
license: 'GPLv3',
version: '1.0',
contextLength: 2,
maxKeyLength: 5,
patterns: patterns
};
'use strict';
var boEWTS = {
id: 'bo-ewts',
name: 'Tibetan EWTS transliteration',
description: 'Tibetan Extended Wylie Transliteration, based on the work of thdl.',
date: '2014-07-09',
URL: 'http://www.thlib.org/reference/transliteration/#!essay=/thl/ewts',
author: 'Elie Roux <elie.roux@telecom-bretagne.eu>',
license: 'GPLv3',
version: '1.1',
contextLength: 2,
maxKeyLength: 5,
patterns: [
// ambiguous cases with b as prefix
['བྲk', 'r', 'བརྐ'],
['བྲg', 'r', 'བརྒ'],
['བྲl', 'r', 'བརླ'],
['བྲj', 'r', 'བརྗ'],
['བྲt', 'r', 'བརྟ'],
['བྲd', 'r', 'བརྡ'],
['བྲn', 'r', 'བརྣ '],
['བླt', 'l', 'བལྟ'],
['བླd', 'l', 'བལྡ'],
// Standard Tibetan Stacks listed at <http://www.thlib.org/reference/transliteration/tibstacks.php>
// some are handled magically and don't need to appear here.
['རྐy', 'k', 'རྐྱ'],
['རྒy', 'g', 'རྒྱ'],
['རྨy', 'm', 'རྨྱ'],
['རྒw', 'g', 'རྒྭ'],
['རྩw', 's', 'རྩྭ'],
['སྐy', 'k', 'སྐྱ'],
['སྒy', 'g', 'སྒྱ'],
['སྤy', 'p', 'སྤྱ'],
['སྦy', 'b', 'སྦྱ'],
['སྨy', 'm', 'སྨྱ'],
['སྐr', 'k', 'སྐྲ'],
['སྒr', 'g', 'སྒྲ'],
['སྣr', 'n', 'སྣྲ'],
['སྤr', 'p', 'སྤྲ'],
['སྦr', 'b', 'སྦྲ'],
['སྨr', 'm', 'སྨྲ'],
['གྲw', 'r', 'གྲྭ'],
['དྲw', 'r', 'དྲྭ'],
['ཕྱw', 'y', 'ཕྱྭ'],
['རk', 'r', 'རྐ'],
['རg', 'r', 'རྒ'],
['རj', 'r', 'རྗ'],
['རt', 'r', 'རྟ'],
['རd', 'r', 'རྡ'],
['རn', 'r', 'རྣ '],
['རb', 'r', 'རྦ'],
['རm', 'r', 'རྨ'],
['ལk', 'l', 'ལྐ'],
['ལg', 'l', 'ལྒ'],
['ལc', 'l', 'ལྕ'],
['ལj', 'l', 'ལྗ'],
['ལt', 'l', 'ལྟ'],
['ལd', 'l', 'ས'],
['ལp', 'l', 'ལྤ'],
['ལb', 'l', 'ལྦ'],
['ལh', 'l', 'ལྷ'],
['སk', 's', 'སྐ'],
['སg', 's', 'སྒ'],
['སt', 's', 'སྟ'],
['སd', 's', 'སྡ'],
['སn', 's', 'སྣ'],
['སp', 's', 'སྤ'],
['སb', 's', 'སྦ'],
['སm', 's', 'སྨ'],
['སྟs', 't', 'སྩ'],
['w', 'k', 'ྭ'],
['w', 'h', 'ྭ'],
['w', 'g', 'ྭ'],
['ཅw', 'c', 'ཅྭ'],
['ཉw', 'y', 'ཉྭ'],
['ཏw', 't', 'ཏྭ'],
['དw', 'd', 'དྭ'],
['ཙw', 's', 'ཙྭ'],
['ཚw', 'h', 'ཚྭ'],
['ཞw', 'h', 'ཞྭ'],
['ཟw', 'z', 'ཟྭ'],
['རw', 'r', 'རྭ'],
['ཤw', 'h', 'ཤྭ'],
['སw', 's', 'སྭ'],
['ཧw', 'h', 'ཧྭ'],
['ཀy', 'k', 'ཀྱ'],
['ཁy', 'h', 'ཁྱ'],
['གy', 'g', 'གྱ'],
['པy', 'p', 'པྱ'],
['ཕy', 'h', 'ཕྱ'],
['བy', 'b', 'བྱ'],
['མy', 'm', 'མྱ'],
['r', 'k', 'ྲ'],
['ཁr', 'h', 'ཁྲ'],
['གr', 'g', 'ག'],
['ཏr', 't', 'ཏྲ'],
['ཐr', 'h', 'ཐྲ'],
['དr', 'd', 'དྲ'],
['པr', 'p', 'པྲ'],
['ཕr', 'h', 'ཕྲ'],
['བr', 'b', 'བྲ'],
['མr', 'm', 'མྲ'],
['ཤr', 'h', 'ཤྲ'],
['སr', 's', 'སྲ'],
['ཧr', 'h', 'ཧྲ'],
['ཀl', 'k', 'ཀླ'],
['གl', 'g', 'གླ'],
['བl', 'b', 'བླ'],
['ཟl', 'z', 'ཟླ'],
['རl', 'r', 'རླ'],
['སl', 's', 'སླ'],
['ཨོM', 'o', ''],
['\\.', ''],
['\\+', ''],
['-', ''],
['S', ''],
// subjoined letters:
['k', '\\+', ''],
['g', '\\+', 'ྒ'],
['ྣg', ''],
['c', '\\+', ''],
['ྕh', ''],
['j', '\\+', 'ྗ'],
['ྣy', ''],
['T', '\\+', ''],
['ྚh', ''],
['D', '\\+', 'ྜ'],
['N', '\\+', 'ྞ'],
['t', '\\+', ''],
['h', ''],
['d', '\\+', ''],
['n', '\\+', ''],
['p', '\\+', ''],
['ྤh', ''],
['b', '\\+', ''],
['m', '\\+', 'ྨ'],
['ྟs', ''],
['ྩh', ''],
['ྡz', ''],
['w', '\\+', ''],
['ྯh', ''],
['z', '\\+', ''],
['\'', '\\+', ''],
['y', '\\+', ''],
['r', '\\+', ''],
['l', '\\+', 'ླ'],
['ྶh', ''],
['ཀh', '\\+S', ''],
['ྐh', '\\+S', ''],
['ྐh', ''],
['h', '\\+S', 'ྵ'],
['s', '\\+', ''],
['གh', '\\+', 'གྷ'],
['ཌh', '\\+', ''],
['དh', '\\+', 'དྷ'],
['h', '\\+', ''],
['ཛh', '\\+', 'ཛྷ'],
['ྒh', '\\+', 'ྒྷ'],
['ྜh', '\\+', 'ྜྷ'],
['h', '\\+', ''],
['ྦh', '\\+', 'ྦྷ'],
['ྫh', '\\+', 'ྫྷ'],
['h', '\\+', ''],
['v', '\\+', 'ྦ༹'],
['f', '\\+', 'ྥ༹'],
['W', '\\+', ''],
['Y', '\\+', ''],
['R', '\\+', ''],
['Z', '\\+', ''],
// consonants
['k', ''],
['ཀh', 'k', 'ཁ'],
['g', ''],
['ནg', 'n', 'ང'],
['c', ''],
['ཅh', 'c', 'ཆ'],
['j', ''],
['ནy', 'n', ''],
['T', ''],
['h', 'T', 'ཋ'],
['D', ''],
['N', ''],
['t', ''],
['ཏh', 't', 'ཐ'],
['d', 'ད'],
['n', ''],
['p', ''],
['པh', 'p', ''],
['b', ''],
['m', ''],
['ཏs', 't', ''],
['ཙh', 's', ''],
['དz', 'd', 'ཛ'],
['w', ''],
['ཟh', 'z', ''],
['z', ''],
['\'', ''],
['y', ''],
['r', ''],
['l', ''],
['སh', 's', 'ཤ'],
['h', 'S', 'ཥ'],
['s', ''],
['h', ''],
['f', 'ཕ༹'],
['v', 'བ༹'],
['R', ''],
// vowels after consonnants or vowels
['([ཀ-ྼ])i', 'a', '$1ཻ'],
['([ཀ-ྼ])u', 'a', '$1ཽ'],
['ྲi', '-', ''],
['ླi', '-', 'ླྀ'],
['([ཀ-ྼ])i', '-', '$1ྀ'],
['([ཀ-ྼ])རI', 'r-', '$1ྲཱྀ'],
['([ཀ-ྼ])ལI', 'l-', '$1ླཱྀ'],
['རI', 'r-', 'ཨྲཱྀ'],
['ལI', 'l-', 'ཨླཱྀ'],
['([ཀ-ྼ])I', '-', '$1ཱྀ'],
['([ཀ-ྼ])a', '$1'],
['([ཀ-ྼ])i', '$1ི'],
['([ཀ-ྼ])u', '$1ུ'],
['([ཀ-ྼ])e', '$1ེ'],
['([ཀ-ྼ])o', '$1ོ'],
['([ཀ-ྼ])A', '$1ཱ'],
['([ཀ-ྼ])I', '$1ཱི'],
['([ཀ-ྼ])U', '$1ཱུ'],
// vowels after something else
['a', ''],
['i', '-', 'ཨྀ'],
['A', 'ཨཱ'],
['I', '-', 'ཨཱྀ'],
['I', 'ཨཱི'],
['U', 'ཨཱུ'],
['i', 'ཨི'],
['u', 'ཨུ'],
['e', 'ཨེ'],
['o', 'ཨོ'],
// numbers
['0', ''],
['1', ''],
['2', ''],
['3', ''],
['4', ''],
['5', ''],
['6', ''],
['7', ''],
['8', ''],
['9', ''],
// sanskrit marks
['H', 'ཿ'],
['M', ''],
['~M', 'ྃ'],
['~M`', 'ྂ'],
['\\?', '྄'],
['&', '྅'],
// punctuation
[' ', '་'],
['\\*', '༌'],
['\\/', '།'],
['\\/\\/', '༎'],
[';', '༏'],
['\\|', '༑'],
['\\!', '༈'],
['\\:', '༔'],
['_', ' '],
['\\=', '༴'],
['@', '༄'],
['#', '༅'],
['\\$', '༆'],
['%', '༇'],
['<', '༺'],
['>', '༻'],
['\\(', '༼'],
['\\)', '༽'],
['~X', '༵'],
['X', '༷'],
['\\^', '༹']
]
};
$.ime.register( boEWTS );
}( jQuery ) );