Update jquery.ime library

upstream: http://github.com/wikimedia/jquery.ime

changes:
* Support for contenteditable, like the VisualEditor surfaces. This
  support is very minimal now. Because of VE bugs on IME support, many
  things are broken. But one-one keyboard mappings should work with less
  issues. The UI of jquery.ime is not integrated with VE toolbar
* More input methods
	- IPA-X-SAMPA by Amir
	- Armenian keymaps by  Aleksey Chalabyan
	- Kurdish keymaps by Ghybu
	- Кыргыз keymap by Amir
	- Central Kurdish keyboards by Çalak
* A lot of input method bug fixes multiple contributors
* Minor UX fixes

Introduces Rangy library.
A module named rangy is defined in VisualEditor extension with more features of rangy.
Here we need only the core library. This module is loaded dynamically from
client when rangy is undefined. If VE is present rangy will be defined, the module
defined in VE will be used. ie, This get loaded only when VE is not present and
user trying to type in a contenteditable.

Bug: 49569
Bug: 50849
Bug: 50220

Change-Id: Iadad5a4e5972fbd1359847526d28e9dbbe00a7c4
This commit is contained in:
Santhosh Thottingal
2013-08-19 09:54:55 +05:30
committed by Santhosh
parent e13a4e2cb0
commit 8f5be106f5
127 changed files with 5454 additions and 643 deletions

View File

@@ -0,0 +1,189 @@
( function ( $ ) {
'use strict';
var ipaSil = {
id: 'ipa-x-sampa',
name: 'International Phonetic Alphabet - X-SAMPA',
description: 'International Phonetic Alphabet - X-SAMPA',
date: '2012-11-26',
URL: 'http://www.phon.ucl.ac.uk/home/sampa/x-sampa.htm',
author: 'mapping by John C. Wells; implementation by Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
contextLength: 0,
maxKeyLength: 4,
patterns: [
// Tones
['_/', '\u030C'], // Combining caron
['_\\\\', '\u0302'], // Combining circumflex accent
['_ɥ_T', '\u1dc4'], // _H_T - Combining macron-acute
['_β_L', '\u1dc5'], // _B_L - Combining grave-macron
['_ʁ_F', '\u1dc8'], // _R_F - Combining grave-acute-grave
['β\\\\', 'ʙ'],
['p\\\\', 'ɸ'],
['B', 'β'],
['F', 'ɱ'],
// ⱱ is not in X-SAMPA
['P', 'ʋ'],
['v\\\\', 'ʋ'],
['T', 'θ'],
['D', 'ð'],
['4', 'ɾ'],
['K', 'ɬ'],
['ɬ\\\\', 'ɮ'],
['r\\\\', 'ɹ'],
['S', 'ʃ'],
['Z', 'ʒ'],
['t`', 'ʈ'],
['d`', 'ɖ'],
['n`', 'ɳ'],
['r`', 'ɽ'],
['s`', 'ʂ'],
['z`', 'ʐ'],
['ɹ`', 'ɻ'],
['l`', 'ɭ'],
['ɲ\\\\', 'ɟ'],
['J', 'ɲ'],
['C', 'ç'],
['j\\\\', 'ʝ'],
['L', 'ʎ'],
['g', 'ɡ'],
['_N', '\u033c'], // Combining seagull below
['N', 'ŋ'],
['_G', 'ˠ'],
['G', 'ɣ'],
['ɯ\\\\', 'ɰ'],
['ʎ\\\\', 'ʟ'],
['ɣ\\\\', 'ɢ'],
['ŋ\\\\', 'ɴ'],
['ʁ\\\\', 'ʀ'],
['_X', '\u0306'], // Combining breve
['X', 'χ'],
['R', 'ʁ'],
['χ\\\\', 'ħ'],
['_ʔ\\\\', 'ˤ'],
['ʔ\\\\', 'ʕ'],
['\\?', 'ʔ'],
['h\\\\', 'ɦ'],
['ɔ\\\\', 'ʘ'],
['ǀ\\|\\\\', 'ǁ'],
['\\|\\\\', 'ǀ'],
['ꜜ\\\\', 'ǃ'], // !\ -> Retroflex (postalveolar) click
['_?=', '\u0329'], // Combining vertical line below
['\u0329\\\\', 'ǂ'],
['b_<', 'ɓ'],
['d_<', 'ɗ'],
['ɟ_<', 'ʄ'],
['ɡ_<', 'ɠ'],
['ɢ_<', 'ʛ'],
['W', 'ʍ'],
['H', 'ɥ'],
['ɥ\\\\', 'ʜ'],
['<\\\\', 'ʢ'],
['>\\\\', 'ʡ'],
['s\\\\', 'ɕ'],
['z\\\\', 'ʑ'],
['l\\\\', 'ɺ'],
['x\\\\', 'ɧ'],
['I', 'ɪ'],
['E', 'ɛ'],
['\\{', 'æ'],
['Y', 'ʏ'],
['2', 'ø'],
['9', 'œ'],
['&', 'ɶ'],
['1', 'ɨ'],
['ə\\\\', 'ɘ'],
['@', 'ə'],
['ɜ\\\\', 'ɞ'],
['3', 'ɜ'],
['6', 'ɐ'],
['_\\}', '\u031a'],
['\\}', 'ʉ'],
['8', 'ɵ'],
['M', 'ɯ'],
['7', 'ɤ'],
['V', 'ʌ'],
['_A', '\u0318'], // Combining right tack below
['A', 'ɑ'],
['U', 'ʊ'],
['_O', '\u0339'], // ++++ // Combining right half ring below
['O', 'ɔ'],
['Q', 'ɒ'],
['%', 'ˌ'],
['_"', '\u0308'], // Combining diaeresis
['"', 'ˈ'],
['ː\\\\', 'ˑ'],
[':', 'ː'],
['\\.<', '|'],
['\\|\\|', '‖'],
['-\\\\', '‿'],
['<ʁ>', '↗'], // <R>
['<ɱ>', '↘'], // <F>
['!', 'ꜜ'],
['_\\^', '\u032f'], // Combining inverted breve below
['\\^', 'ꜛ'],
// Diacritics and suprasegmentals
['_h', 'ʰ'],
['_w', 'ʷ'],
['_j', 'ʲ'],
// see above for ˠ
// see above for ˤ
['_n', 'ⁿ'],
['_l', 'ˡ'],
['`', '˞'],
['_>', 'ʼ'],
// See above for No audible release
// See above for Syllabic
// See above for Non-syllabic
['_k', '\u0330'], // Combining tilde below
['([ɱɮɳɖʐɻɽɭɲɟʝjŋɡɣɰ])_0', '$1\u030a'], // Combining ring above
['(.)_0', '$1\u0325'], // Combining ring below
['_v', '\u032c'], // Combining caron below
['_t', '\u0324'], // Combining diaeresis below
['_d', '\u032a'], // Combining bridge below
['_a', '\u033a'], // Combining inverted bridge below
['_m', '\u033b'], // Combining square below
// See above for linguolabial
['_?~', '\u0303'], // Combining tilde
['_e', '\u0334'], // Combining tilde overlay
// See above for centralised
['_x', '\u033d'], // Combining x above
// See above for extra short
['_\\+', '\u031f'], // Combining plus sign below
['_-', '\u0320'], // Combining minus sign below
['_r', '\u031d'], // Combining up tack below
['_o', '\u031e'], // Combining down tack below
// See above for advanced tongue root
['_q', '\u0319'], // Combining left tack below
// See above for more rounded
['_c', '\u031c']
]
};
$.ime.register( ipaSil );
} ( jQuery ) );