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 * https://github.com/wikimedia/jquery.ime
* Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */ * Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */
( function ( $ ) { ( function ( $ ) {

View File

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

View File

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