Update jquery.ime from upstream

Changes:
* Update jquery.ime.js version.
* Updated Tibetian (bo) EWTS IME for handling brla and speed
  improvement.

Change-Id: I6a3eb0d16000074ea5fd96ef15d4096a5d9ce9f8
This commit is contained in:
Kartik Mistry
2014-07-28 12:50:02 +00:00
parent 919d002da9
commit 058dbbcda1
2 changed files with 24 additions and 70 deletions

View File

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

View File

@@ -1,64 +1,18 @@
(function ( $ ) {
( 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', 'བརྣ '],
['བྲb', 'r', 'བརྦ'],
['བྲm', 'r', 'བརྨ'],
['བླk', 'l', 'བལྐ'],
['བླg', 'l', 'བལྒ'],
['བླནg', 'n', 'བལྔ'],
['བླc', 'l', 'བལྕ'],
['བླj', 'l', 'བལྗ'],
['བླt', 'l', 'བལྟ'],
['བླd', 'l', 'བྡ'],
['བླp', 'l', 'བལྤ'],
['བླb', 'l', 'བལྦ'],
['བླh', 'l', 'བལྷ'],
// ambiguous cases with g as prefix
['གྲk', 'r', 'གརྐ'],
['གྲg', 'r', 'གརྒ'],
['གྲj', 'r', 'གརྗ'],
['གྲt', 'r', 'གརྟ'],
['གྲd', 'r', 'གརྡ'],
['གྲn', 'r', 'གརྣ '],
['གྲb', 'r', 'གརྦ'],
['གྲm', 'r', 'གརྨ'],
['གླk', 'l', 'གལྐ'],
['གླg', 'r', 'གལྒ'],
['གླg', 'n', 'གལྔ'],
['གླc', 'r', 'གལྕ'],
['གླj', 'r', 'གལྗ'],
['གླt', 'r', 'གལྟ'],
['གླd', 'r', 'གསྡ'],
['གླp', 'r', 'གལྤ'],
['གླb', 'r', 'གལྦ'],
['གླh', 'r', 'གལྷ'],
// ambiguous cases with d as prefix
['དྲk', 'r', 'དརྐ'],
['དྲg', 'r', 'དརྒ'],
['དྲj', 'r', 'དརྗ'],
['དྲt', 'r', 'དརྟ'],
['དྲd', 'r', 'དརྡ'],
['དྲn', 'r', 'དརྣ '],
['དྲb', 'r', 'དརྦ'],
['དྲm', 'r', 'དརྨ'],
// ambiguous cases with m as prefix
['མྲk', 'r', 'མརྐ'],
['མྲg', 'r', 'མརྒ'],
['མྲj', 'r', 'མརྗ'],
['མྲt', 'r', 'མརྟ'],
['མྲd', 'r', 'མརྡ'],
['མྲn', 'r', 'མརྣ '],
['མྲb', 'r', 'མརྦ'],
['མྲm', 'r', 'མརྨ'],
['བླ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.
// some are handled magically and don't need to appear here.
['རྐy', 'k', 'རྐྱ'],
['རྒy', 'g', 'རྒྱ'],
['རྨy', 'm', 'རྨྱ'],
@@ -185,12 +139,12 @@
['h', '\\+S', 'ྵ'],
['s', '\\+', 'ྶ'],
['h', '\\+', 'ྷ'],
['v', '\\+', "ྦ༹"],
['f', '\\+', "ྥ༹"],
['W', '\\+', "ྺ"],
['Y', '\\+', "ྻ"],
['R', '\\+', "ྼ"],
['Z', '\\+', "༹"],
['v', '\\+', 'ྦ༹'],
['f', '\\+', 'ྥ༹'],
['W', '\\+', 'ྺ'],
['Y', '\\+', 'ྻ'],
['R', '\\+', 'ྼ'],
['Z', '\\+', '༹'],
// consonants
['k', 'ཀ'],
['ཀh', 'k', 'ཁ'],
@@ -242,7 +196,7 @@
['([ཀ-ྼ])i', '$1ི'],
['([ཀ-ྼ])u', '$1ུ'],
['([ཀ-ྼ])e', '$1ེ'],
['([ཀ-ྼ])o', "$1ོ"],
['([ཀ-ྼ])o', '$1ོ'],
['([ཀ-ྼ])A', '$1ཱ'],
['([ཀ-ྼ])I', '$1ཱི'],
['([ཀ-ྼ])U', '$1ཱུ'],
@@ -269,11 +223,11 @@
['8', '༨'],
['9', '༩'],
// sanskrit marks
['H', "ཿ"],
['M', "ཾ"],
['~M', "ྃ"],
['~M`', "ྂ"],
['\\?', "྄"],
['H', 'ཿ'],
['M', 'ཾ'],
['~M', 'ྃ'],
['~M`', 'ྂ'],
['\\?', '྄'],
['&', '྅'],
// punctuation
[' ', '་'],
@@ -294,20 +248,20 @@
['>', '༻'],
['\\(', '༼'],
['\\)', '༽'],
['~X', "༵"],
['X', "༷"],
['\\^', "༹"]
['~X', '༵'],
['X', '༷'],
['\\^', '༹']
];
var boEWTS = {
id: 'bo-ewts',
name: 'Tibetan EWTS transliteration',
description: 'Tibetan Extended Wylie Transliteration, based on <a href="http://www.thlib.org/reference/transliteration/#!essay=/thl/ewts">the work of thdl</a>.',
date: '2014-07-02',
URL: 'http://github.com/wikimedia/jquery.ime',
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: '0.9',
version: '1.0',
contextLength: 2,
maxKeyLength: 5,
patterns: patterns