Merge "Update jquery.ime from upstream"
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
/* @embed */
|
||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||
/* @embed */
|
||||
background-image: -moz-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||
/* @embed */
|
||||
background-image: linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||
background-color: rgba(255,255,255,0.75);
|
||||
background-position: left 3px center;
|
||||
@@ -176,8 +174,6 @@ span.ime-disable-shortcut {
|
||||
/* @embed */
|
||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/tick.svg');
|
||||
/* @embed */
|
||||
background-image: -moz-linear-gradient(transparent, transparent), url('../images/tick.svg');
|
||||
/* @embed */
|
||||
background-image: linear-gradient(transparent, transparent), url('../images/tick.svg');
|
||||
background-position: left 4px center;
|
||||
background-position-x: 4px;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*! jquery.ime - v0.1.0+20131123
|
||||
/*! jquery.ime - v0.1.0+20140211
|
||||
* https://github.com/wikimedia/jquery.ime
|
||||
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
|
||||
* Copyright (c) 2014 Santhosh Thottingal; Licensed GPL, MIT */
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
@@ -303,6 +303,11 @@
|
||||
return deferred.resolve();
|
||||
}
|
||||
|
||||
// Validate the input method id.
|
||||
if ( !$.ime.sources[inputmethodId] ) {
|
||||
return deferred.reject();
|
||||
}
|
||||
|
||||
dependency = $.ime.sources[inputmethodId].depends;
|
||||
if ( dependency && !$.ime.inputmethods[dependency] ) {
|
||||
ime.load( dependency ).done( function () {
|
||||
@@ -337,7 +342,7 @@
|
||||
|
||||
/**
|
||||
* Set the caret position in the div.
|
||||
* @param {jQuery} element The content editable div element
|
||||
* @param {jQuery} $element The content editable div element
|
||||
* @param {Object} position An object with start and end properties.
|
||||
* @return {Array} If the cursor could not be placed at given position, how
|
||||
* many characters had to go back to place the cursor
|
||||
@@ -665,6 +670,7 @@
|
||||
/**
|
||||
* Set the caret position in the div.
|
||||
* @param {Element} element The content editable div element
|
||||
* @param position
|
||||
*/
|
||||
function setDivCaretPosition( element, position ) {
|
||||
var nextCharIndex,
|
||||
@@ -1384,6 +1390,7 @@
|
||||
'class': 'ime-disable-link',
|
||||
'data-i18n': 'jquery-ime-disable-text'
|
||||
} )
|
||||
.addClass( 'ime-checked' )
|
||||
.text( 'System input method' ),
|
||||
$( '<span>' )
|
||||
.addClass( 'ime-disable-shortcut' )
|
||||
@@ -2117,6 +2124,10 @@
|
||||
'uz-kbd': {
|
||||
name: 'Uzbek kbd',
|
||||
source: 'rules/uz/uz-kbd.js'
|
||||
},
|
||||
'vec-GVU': {
|
||||
name: 'Venetian',
|
||||
source: 'rules/vec/vec-GVU.js'
|
||||
}
|
||||
} );
|
||||
|
||||
@@ -2448,6 +2459,10 @@
|
||||
'uz': {
|
||||
autonym: 'Oʻzbekcha',
|
||||
inputmethods: [ 'uz-kbd' ]
|
||||
},
|
||||
'vec': {
|
||||
autonym: 'Venetian',
|
||||
inputmethods: [ 'vec-GVU' ]
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
32
lib/jquery.ime/rules/vec/vec-GVU.js
Normal file
32
lib/jquery.ime/rules/vec/vec-GVU.js
Normal file
@@ -0,0 +1,32 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var vec = {
|
||||
id: 'vec-GVU',
|
||||
name: 'Venetian GVU',
|
||||
description: 'Venetian input method.',
|
||||
date: '2013-08-06',
|
||||
URL: 'http://github.com/wikimedia/jquery.ime',
|
||||
author: 'Vec.wiki community',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
['dh', 'đ'],
|
||||
['lh', 'ƚ'],
|
||||
['òò', 'ó'],
|
||||
['zh', 'ẑ'],
|
||||
['đh', 'dh'],
|
||||
['ƚh', 'lh'],
|
||||
['ẑh', 'zh'],
|
||||
['Dh', 'Đ'],
|
||||
['Lh', 'Ƚ'],
|
||||
['Òò', 'Ó'],
|
||||
['Zh', 'Ẑ'],
|
||||
['Đh', 'Dh'],
|
||||
['Ƚh', 'Lh'],
|
||||
['Ẑh', 'Zh']
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( vec );
|
||||
}( jQuery ) );
|
||||
Reference in New Issue
Block a user