Merge "Update jquery.ime from upstream"
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||||
background-image: -moz-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
background-image: -moz-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||||
background-image: linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
background-image: linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||||
background-color: #fff;
|
background-color: rgba(255,255,255,0.75);
|
||||||
background-position: left 3px center;
|
background-position: left 3px center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/*! jquery.ime - v0.1.0+20130610
|
/*! jquery.ime - v0.1.0+20130617
|
||||||
* https://github.com/wikimedia/jquery.ime
|
* https://github.com/wikimedia/jquery.ime
|
||||||
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
|
* Copyright (c) 2013 Santhosh Thottingal; Licensed GPL, MIT */
|
||||||
( function ( $ ) {
|
( function ( $ ) {
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
if ( altGr ) {
|
if ( altGr ) {
|
||||||
patterns = this.inputmethod.patterns_x || [];
|
patterns = this.inputmethod.patterns_x || [];
|
||||||
} else {
|
} else {
|
||||||
patterns = this.inputmethod.patterns;
|
patterns = this.inputmethod.patterns || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $.isFunction( patterns ) ) {
|
if ( $.isFunction( patterns ) ) {
|
||||||
@@ -1230,6 +1230,18 @@
|
|||||||
name: 'इनस्क्रिप्ट २',
|
name: 'इनस्क्रिप्ट २',
|
||||||
source: 'rules/brx/brx-inscript2.js'
|
source: 'rules/brx/brx-inscript2.js'
|
||||||
},
|
},
|
||||||
|
'cv-cyr-altgr': {
|
||||||
|
name: 'Чăвашла (AltGr)',
|
||||||
|
source: 'rules/cv/cv-cyr-altgr.js'
|
||||||
|
},
|
||||||
|
'cv-lat-altgr': {
|
||||||
|
name: 'Căvašla (AltGr)',
|
||||||
|
source: 'rules/cv/cv-lat-altgr.js'
|
||||||
|
},
|
||||||
|
'cv-cyr-numbers': {
|
||||||
|
name: 'Чăвашла (цифрилисем)',
|
||||||
|
source: 'rules/cv/cv-cyr-numbers.js'
|
||||||
|
},
|
||||||
'cyrl-palochka': {
|
'cyrl-palochka': {
|
||||||
name: 'Palochka',
|
name: 'Palochka',
|
||||||
source: 'rules/cyrl/cyrl-palochka.js'
|
source: 'rules/cyrl/cyrl-palochka.js'
|
||||||
@@ -1481,11 +1493,11 @@
|
|||||||
source: 'rules/mr/mr-phonetic.js'
|
source: 'rules/mr/mr-phonetic.js'
|
||||||
},
|
},
|
||||||
'my-kbd': {
|
'my-kbd': {
|
||||||
name: 'Burmese kbd',
|
name: 'မြန်မာဘာသာ kbd',
|
||||||
source: 'rules/my/my-kbd.js'
|
source: 'rules/my/my-kbd.js'
|
||||||
},
|
},
|
||||||
'my-xkb': {
|
'my-xkb': {
|
||||||
name: 'Burmese xkb',
|
name: 'မြန်မာဘာသာ xkb',
|
||||||
source: 'rules/my/my-xkb.js'
|
source: 'rules/my/my-xkb.js'
|
||||||
},
|
},
|
||||||
'ne-inscript': {
|
'ne-inscript': {
|
||||||
@@ -1711,6 +1723,10 @@
|
|||||||
autonym: 'нохчийн',
|
autonym: 'нохчийн',
|
||||||
inputmethods: [ 'cyrl-palochka' ]
|
inputmethods: [ 'cyrl-palochka' ]
|
||||||
},
|
},
|
||||||
|
'cv': {
|
||||||
|
autonym: 'Чăвашла',
|
||||||
|
inputmethods: [ 'cv-cyr-altgr', 'cv-lat-altgr', 'cv-cyr-numbers' ]
|
||||||
|
},
|
||||||
'da': {
|
'da': {
|
||||||
autonym: 'Dansk',
|
autonym: 'Dansk',
|
||||||
inputmethods: [ 'da-normforms' ]
|
inputmethods: [ 'da-normforms' ]
|
||||||
|
|||||||
26
lib/jquery.ime/rules/cv/README.md
Normal file
26
lib/jquery.ime/rules/cv/README.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
Chuvash keyboard layouts
|
||||||
|
========================
|
||||||
|
|
||||||
|
This directory contains different Chuvash keyboard layouts.
|
||||||
|
|
||||||
|
The Chuvash alphabet contains all the 33 letters from the Russian alphabet and
|
||||||
|
four additional letters: ӑ ӗ ҫ ӳ
|
||||||
|
|
||||||
|
|
||||||
|
Chuvash AltGr — Чăвашла AltGr
|
||||||
|
-----------------------------
|
||||||
|
The default keyboard layout in [chuvash.org](http://chuvash.org) which uses
|
||||||
|
the standard Russian keyboard layouts plus additional four Chuvash letters.
|
||||||
|
They are typed using the AltGr button.
|
||||||
|
|
||||||
|
Unfortunately only in firefox AltGr combinations work well.
|
||||||
|
|
||||||
|
Chuvash Mercen — Căvašla Mercen
|
||||||
|
-------------------------------
|
||||||
|
This keyboard layout is based on [Mercen](https://sites.google.com/site/mercen77/)
|
||||||
|
and comes from CVLat movement.
|
||||||
|
|
||||||
|
"Chuvash Cyrillic"
|
||||||
|
-----------------
|
||||||
|
This keyboard layout is designed by Ikăruk and uses the number row buttons for
|
||||||
|
adding the additional letters. No AltGr is needed.
|
||||||
120
lib/jquery.ime/rules/cv/cv-cyr-altgr.js
Normal file
120
lib/jquery.ime/rules/cv/cv-cyr-altgr.js
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
// This Chuvash keyboard layout is the "official" layout
|
||||||
|
// in chuvash.org
|
||||||
|
// This implementation is based on ru-jcuken ime rule
|
||||||
|
// which supports both transliteration mode and the native jcuken
|
||||||
|
// Along them there are four Chuvash letters ă ĕ ç ÿ
|
||||||
|
// The keyboard layout is an agreement
|
||||||
|
// of the Chuvash Language Committee 2009-03-12
|
||||||
|
// http://comissi.chv.su/node/23
|
||||||
|
// This layout differs from the agreement in that matter
|
||||||
|
// that all letters are from the Cyrillic subset of Unicode
|
||||||
|
|
||||||
|
( function ( $ ) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var cv = {
|
||||||
|
id: 'cv-cyr-altgr',
|
||||||
|
name: 'Чăвашла (AltGr)',
|
||||||
|
description: 'AltGr пускăчлă чăваш сарăмĕ',
|
||||||
|
date: '2013-03-24',
|
||||||
|
URL: 'http://comissi.chv.su/',
|
||||||
|
author: 'Anatoly Mironov, @mirontoli',
|
||||||
|
license: 'MIT',
|
||||||
|
version: '1.0',
|
||||||
|
patterns: [
|
||||||
|
['Q', 'Й'],
|
||||||
|
['W', 'Ц'],
|
||||||
|
['E', 'У'],
|
||||||
|
['R', 'К'],
|
||||||
|
['T', 'Е'],
|
||||||
|
['Y', 'Н'],
|
||||||
|
['U', 'Г'],
|
||||||
|
['I', 'Ш'],
|
||||||
|
['O', 'Щ'],
|
||||||
|
['P', 'З'],
|
||||||
|
['{', 'Х'],
|
||||||
|
['}', 'Ъ'],
|
||||||
|
['A', 'Ф'],
|
||||||
|
['S', 'Ы'],
|
||||||
|
['D', 'В'],
|
||||||
|
['F', 'А'],
|
||||||
|
['G', 'П'],
|
||||||
|
['H', 'Р'],
|
||||||
|
['J', 'О'],
|
||||||
|
['K', 'Л'],
|
||||||
|
['L', 'Д'],
|
||||||
|
[':', 'Ж'],
|
||||||
|
['"', 'Э'],
|
||||||
|
['Z', 'Я'],
|
||||||
|
['X', 'Ч'],
|
||||||
|
['C', 'С'],
|
||||||
|
['V', 'М'],
|
||||||
|
['B', 'И'],
|
||||||
|
['N', 'Т'],
|
||||||
|
['M', 'Ь'],
|
||||||
|
['<', 'Б'],
|
||||||
|
['>', 'Ю'],
|
||||||
|
['\\?', ','],
|
||||||
|
|
||||||
|
['q', 'й'],
|
||||||
|
['w', 'ц'],
|
||||||
|
['e', 'у'],
|
||||||
|
['r', 'к'],
|
||||||
|
['t', 'е'],
|
||||||
|
['y', 'н'],
|
||||||
|
['u', 'г'],
|
||||||
|
['i', 'ш'],
|
||||||
|
['o', 'щ'],
|
||||||
|
['p', 'з'],
|
||||||
|
['\\[', 'х'],
|
||||||
|
['\\]', 'ъ'],
|
||||||
|
['a', 'ф'],
|
||||||
|
['s', 'ы'],
|
||||||
|
['d', 'в'],
|
||||||
|
['f', 'а'],
|
||||||
|
['g', 'п'],
|
||||||
|
['h', 'р'],
|
||||||
|
['j', 'о'],
|
||||||
|
['k', 'л'],
|
||||||
|
['l', 'д'],
|
||||||
|
[';', 'ж'],
|
||||||
|
['\'', 'э'],
|
||||||
|
['z', 'я'],
|
||||||
|
['x', 'ч'],
|
||||||
|
['c', 'с'],
|
||||||
|
['v', 'м'],
|
||||||
|
['b', 'и'],
|
||||||
|
['n', 'т'],
|
||||||
|
['m', 'ь'],
|
||||||
|
[',', 'б'],
|
||||||
|
['\\.', 'ю'],
|
||||||
|
['/', '.'],
|
||||||
|
|
||||||
|
['`', 'ё'],
|
||||||
|
['~', 'Ё'],
|
||||||
|
|
||||||
|
// ! is the same // 1
|
||||||
|
['@', '"'], // 2
|
||||||
|
['#', '№'], // 3
|
||||||
|
['\\$', ';'], // 4
|
||||||
|
// '%' is the same // 5
|
||||||
|
['^', ':'], // 6
|
||||||
|
['&', '?'] // 7
|
||||||
|
// '*', '(' and ')' are the same // 8, 9, 0
|
||||||
|
],
|
||||||
|
//support both qwerty and jcuken keyboards
|
||||||
|
patterns_x: [
|
||||||
|
['f|а', 'ӑ'],
|
||||||
|
['F|А', 'Ӑ'],
|
||||||
|
['t|е', 'ӗ'],
|
||||||
|
['T|Е', 'Ӗ'],
|
||||||
|
['c|с', 'ҫ'],
|
||||||
|
['C|С', 'Ҫ'],
|
||||||
|
['e|у', 'ӳ'],
|
||||||
|
['E|У', 'Ӳ']
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
$.ime.register( cv );
|
||||||
|
|
||||||
|
}( jQuery ) );
|
||||||
113
lib/jquery.ime/rules/cv/cv-cyr-numbers.js
Normal file
113
lib/jquery.ime/rules/cv/cv-cyr-numbers.js
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
// This Chuvash keyboard layout is designed by Ikăruk
|
||||||
|
// http://ru.wikipedia.org/wiki/Чувашские_раскладки_клавиатуры#Раскладка_«Chuvash_Cyrillic»
|
||||||
|
// This uses the number row of the keyboard
|
||||||
|
// as it is in Sakha keyboard layout, in Bashkir, Slovak and many more
|
||||||
|
// Some other keys are added which are often used in wikipedia editing
|
||||||
|
// all letters are from the Cyrillic subset of Unicode
|
||||||
|
|
||||||
|
( function ( $ ) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var cv = {
|
||||||
|
id: 'cv-cyr-numbers',
|
||||||
|
name: 'Чăвашла (Цифрили)',
|
||||||
|
description: 'Икăрук туса хунă, цифрисене усă куракан сарăм',
|
||||||
|
date: '2013-03-24',
|
||||||
|
URL: 'http://comissi.chv.su/',
|
||||||
|
author: 'Anatoly Mironov, @mirontoli',
|
||||||
|
license: 'MIT',
|
||||||
|
version: '1.0',
|
||||||
|
patterns: [
|
||||||
|
['Q', 'Й'],
|
||||||
|
['W', 'Ц'],
|
||||||
|
['E', 'У'],
|
||||||
|
['R', 'К'],
|
||||||
|
['T', 'Е'],
|
||||||
|
['Y', 'Н'],
|
||||||
|
['U', 'Г'],
|
||||||
|
['I', 'Ш'],
|
||||||
|
['O', 'Щ'],
|
||||||
|
['P', 'З'],
|
||||||
|
['{', 'Х'],
|
||||||
|
['}', 'Ъ'],
|
||||||
|
['A', 'Ф'],
|
||||||
|
['S', 'Ы'],
|
||||||
|
['D', 'В'],
|
||||||
|
['F', 'А'],
|
||||||
|
['G', 'П'],
|
||||||
|
['H', 'Р'],
|
||||||
|
['J', 'О'],
|
||||||
|
['K', 'Л'],
|
||||||
|
['L', 'Д'],
|
||||||
|
[':', 'Ж'],
|
||||||
|
['"', 'Э'],
|
||||||
|
['Z', 'Я'],
|
||||||
|
['X', 'Ч'],
|
||||||
|
['C', 'С'],
|
||||||
|
['V', 'М'],
|
||||||
|
['B', 'И'],
|
||||||
|
['N', 'Т'],
|
||||||
|
['M', 'Ь'],
|
||||||
|
['<', 'Б'],
|
||||||
|
['>', 'Ю'],
|
||||||
|
['\\?', ','],
|
||||||
|
|
||||||
|
['q', 'й'],
|
||||||
|
['w', 'ц'],
|
||||||
|
['e', 'у'],
|
||||||
|
['r', 'к'],
|
||||||
|
['t', 'е'],
|
||||||
|
['y', 'н'],
|
||||||
|
['u', 'г'],
|
||||||
|
['i', 'ш'],
|
||||||
|
['o', 'щ'],
|
||||||
|
['p', 'з'],
|
||||||
|
['\\[', 'х'],
|
||||||
|
['\\]', 'ъ'],
|
||||||
|
['a', 'ф'],
|
||||||
|
['s', 'ы'],
|
||||||
|
['d', 'в'],
|
||||||
|
['f', 'а'],
|
||||||
|
['g', 'п'],
|
||||||
|
['h', 'р'],
|
||||||
|
['j', 'о'],
|
||||||
|
['k', 'л'],
|
||||||
|
['l', 'д'],
|
||||||
|
[';', 'ж'],
|
||||||
|
['\'', 'э'],
|
||||||
|
['z', 'я'],
|
||||||
|
['x', 'ч'],
|
||||||
|
['c', 'с'],
|
||||||
|
['v', 'м'],
|
||||||
|
['b', 'и'],
|
||||||
|
['n', 'т'],
|
||||||
|
['m', 'ь'],
|
||||||
|
[',', 'б'],
|
||||||
|
['\\.', 'ю'],
|
||||||
|
['/', '.'],
|
||||||
|
|
||||||
|
['`', 'ё'],
|
||||||
|
['~', 'Ё'],
|
||||||
|
['1', '?'], // 1
|
||||||
|
['2', '\''], // 2
|
||||||
|
['@', '"'], // 2
|
||||||
|
['3', 'ҫ'], // 3
|
||||||
|
['#|№', 'Ҫ'], // 3
|
||||||
|
['4', '|'], // 4
|
||||||
|
['\\$', ';'], // 4
|
||||||
|
['5', 'ӳ'], // 5
|
||||||
|
['%', 'Ӳ'], // 5
|
||||||
|
['6', '—'], // 6
|
||||||
|
['\\^', ':'], // 6
|
||||||
|
['7', 'ӗ'], // 7
|
||||||
|
['&|\\?', 'Ӗ'], // 7
|
||||||
|
['8', 'ӑ'], // 8
|
||||||
|
['\\*', 'Ӑ'], // 8
|
||||||
|
['9', '['], // 9
|
||||||
|
['0', ']'] // 0
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
$.ime.register( cv );
|
||||||
|
|
||||||
|
}( jQuery ) );
|
||||||
34
lib/jquery.ime/rules/cv/cv-lat-altgr.js
Normal file
34
lib/jquery.ime/rules/cv/cv-lat-altgr.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
// This Chuvash keyboard is a stripped version of latin Mercen
|
||||||
|
// https://sites.google.com/site/mercen77/
|
||||||
|
// http://cvlat.blogspot.com
|
||||||
|
// only Chuvash diacritics are used, no additional letters for Turkish or dead keys implemented (for now?)
|
||||||
|
|
||||||
|
( function ( $ ) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var cv = {
|
||||||
|
id: 'cv-lat-altgr',
|
||||||
|
name: 'Căvašla - Mercen',
|
||||||
|
description: 'CVLat usă kurakan Mercen',
|
||||||
|
date: '2013-03-21',
|
||||||
|
URL: 'https://sites.google.com/site/mercen77/',
|
||||||
|
author: 'Anatoly Mironov, @mirontoli',
|
||||||
|
license: 'MIT',
|
||||||
|
version: '1.0',
|
||||||
|
patterns_x: [
|
||||||
|
['a', 'ă'],
|
||||||
|
['A', 'Ă'],
|
||||||
|
['e', 'ĕ'],
|
||||||
|
['E', 'Ĕ'],
|
||||||
|
['s', 'ş'],
|
||||||
|
['S', 'Ş'],
|
||||||
|
['d|h', 'š'],
|
||||||
|
['D|H', 'Š'],
|
||||||
|
['w|u', 'ü'],
|
||||||
|
['W|U', 'Ü']
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
$.ime.register( cv );
|
||||||
|
|
||||||
|
}( jQuery ) );
|
||||||
Reference in New Issue
Block a user