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 06:06:54 +00:00
committed by Santhosh
parent c6079b2e92
commit 3d202e4774
3 changed files with 282 additions and 269 deletions
+1 -1
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 ( $ ) {
+1 -1
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',
+280 -267
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 ) );