Major update of jquery.ime from upstream
Changes:
* New tilde-based layouts for several languages of Africa:
Kabyle, Kabiye, Kikuyu, Luganda, Lingala, Malagasy,
Northern Sotho, Koyraboro Senni, Sango, Sotho, Venda
* Latin Pinyin transliteration keyboard
https://github.com/wikimedia/jquery.ime/pull/545
* CSS and JS cleanup, to switch to stylelint and eslint.
Updating to
22407cf992
Bug: T212637
Change-Id: I167e572a6cc0f7c1c727e87e8ff361d88f87b40f
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
.imeselector {
|
||||
position: absolute;
|
||||
/* @embed */
|
||||
background: url('../images/ime-active.png') no-repeat left center;
|
||||
background: url( ../images/ime-active.png ) no-repeat left center;
|
||||
/* @embed */
|
||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||
background-image: -webkit-linear-gradient( transparent, transparent ), url( ../images/ime-active.svg );
|
||||
/* @embed */
|
||||
background-image: linear-gradient(transparent, transparent), url('../images/ime-active.svg');
|
||||
background-image: linear-gradient( transparent, transparent ), url( ../images/ime-active.svg );
|
||||
background-color: rgba( 255, 255, 255, 0.75 );
|
||||
background-position: left 3px center;
|
||||
height: 15px;
|
||||
@@ -42,12 +42,11 @@
|
||||
border-left: 4px solid transparent;
|
||||
border-right: 4px solid transparent;
|
||||
border-top: 4px solid #565656;
|
||||
content: "";
|
||||
content: '';
|
||||
display: inline-block;
|
||||
height: 0;
|
||||
vertical-align: top;
|
||||
width: 0;
|
||||
|
||||
}
|
||||
|
||||
span.ime-disable-link {
|
||||
@@ -122,7 +121,7 @@ span.ime-disable-shortcut {
|
||||
border-bottom: 7px solid #a2a9b1;
|
||||
border-left: 7px solid transparent;
|
||||
border-right: 7px solid transparent;
|
||||
content: "";
|
||||
content: '';
|
||||
display: inline-block;
|
||||
right: 9px;
|
||||
position: absolute;
|
||||
@@ -138,14 +137,13 @@ span.ime-disable-shortcut {
|
||||
border-bottom: 6px solid #fff;
|
||||
border-left: 6px solid transparent;
|
||||
border-right: 6px solid transparent;
|
||||
content: "";
|
||||
content: '';
|
||||
display: inline-block;
|
||||
right: 10px;
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
}
|
||||
|
||||
|
||||
.imeselector-menu.ime-right:after {
|
||||
right: auto;
|
||||
left: 10px;
|
||||
@@ -169,9 +167,9 @@ span.ime-disable-shortcut {
|
||||
/* @embed */
|
||||
background: url( ../images/tick.png ) no-repeat left 4px center;
|
||||
/* @embed */
|
||||
background-image: -webkit-linear-gradient(transparent, transparent), url('../images/tick.svg');
|
||||
background-image: -webkit-linear-gradient( transparent, transparent ), url( ../images/tick.svg );
|
||||
/* @embed */
|
||||
background-image: linear-gradient(transparent, transparent), url('../images/tick.svg');
|
||||
background-image: linear-gradient( transparent, transparent ), url( ../images/tick.svg );
|
||||
}
|
||||
|
||||
.imeselector-menu .ime-help-link {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -60,6 +60,7 @@
|
||||
version: '1.0',
|
||||
maxKeyLength: 5,
|
||||
patterns: [
|
||||
/* eslint-disable max-statements-per-line */
|
||||
[ ' ', function () { reinit(); return '་'; } ],
|
||||
[ '\\.', function () { reinit(); return ' '; } ],
|
||||
[ ',', function () { reinit(); return '།'; } ],
|
||||
@@ -181,6 +182,7 @@
|
||||
[ '7', function () { reinit(); return '༧'; } ],
|
||||
[ '8', function () { reinit(); return '༨'; } ],
|
||||
[ '9', function () { reinit(); return '༩'; } ]
|
||||
/* eslint-enable max-statements-per-line */
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -413,8 +413,7 @@
|
||||
[ '፺0', '፱፻' ], // 900
|
||||
|
||||
[ '፻0', '፲፻' ], // 1000
|
||||
[ '፲፻0', '፼' ], // 10,000
|
||||
|
||||
[ '፲፻0', '፼' ] // 10,000
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
[ 's', 'ɛ' ],
|
||||
[ 'X', 'Ɔ' ],
|
||||
[ 'x', 'ɔ' ]
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( defs );
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var eoTransliteration;
|
||||
|
||||
function prepareRules() {
|
||||
var rules = [],
|
||||
chars;
|
||||
@@ -28,7 +30,7 @@
|
||||
return rules;
|
||||
}
|
||||
|
||||
var eoTransliteration = {
|
||||
eoTransliteration = {
|
||||
id: 'eo-transliteration',
|
||||
name: 'Esperanto Transliteration',
|
||||
description: 'Esperanto x-code transliteration',
|
||||
|
||||
41
lib/jquery.ime/rules/kab/kab-tilde.js
Normal file
41
lib/jquery.ime/rules/kab/kab-tilde.js
Normal file
@@ -0,0 +1,41 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var kabTilde = {
|
||||
id: 'kab-tilde',
|
||||
name: 'kab-tilde',
|
||||
description: 'Kabyle Latin tilde keyboard',
|
||||
date: '2018-11-30',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~C', 'C\u030C' ], // C with combining caron
|
||||
[ '~c', 'c\u030C' ], // c with combining caron
|
||||
[ '~D', 'D\u0323' ], // D with combining dot below
|
||||
[ '~d', 'd\u0323' ], // d with combining dot below
|
||||
[ '~E', 'Ɛ' ],
|
||||
[ '~e', 'ɛ' ],
|
||||
[ '~G', 'G\u030C' ], // G with combining caron
|
||||
[ '~g', 'g\u030C' ], // g with combining caron
|
||||
[ '~Y', 'Ɣ' ],
|
||||
[ '~y', 'ɣ' ],
|
||||
[ '~H', 'H\u0323' ], // H with combining dot below
|
||||
[ '~h', 'h\u0323' ], // h with combining dot below
|
||||
// ~R is not provided to avoided confusion between caron and dot below
|
||||
[ '~S', 'S\u0323' ], // S with combining dot below
|
||||
[ '~s', 's\u0323' ], // s with combining dot below
|
||||
[ '~T', 'T\u0323' ], // T with combining dot below
|
||||
[ '~t', 't\u0323' ], // t with combining dot below
|
||||
[ '~Z', 'Z\u0323' ], // Z with combining dot below
|
||||
[ '~z', 'z\u0323' ], // z with combining dot below
|
||||
[ '~w', 'ʷ' ],
|
||||
[ '~v', '\u030C' ], // Combining caron
|
||||
[ '~\\.', '\u0323' ], // Combining dot below
|
||||
[ '~,', '\u0327' ] // Combining cedilla
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( kabTilde );
|
||||
}( jQuery ) );
|
||||
35
lib/jquery.ime/rules/kbp/kbp-tilde.js
Normal file
35
lib/jquery.ime/rules/kbp/kbp-tilde.js
Normal file
@@ -0,0 +1,35 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var kbpTilde = {
|
||||
id: 'kbp-tilde',
|
||||
name: 'Kabɩyɛ tilde',
|
||||
description: 'Kabiye input keyboard',
|
||||
date: '2018-12-18',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~D', 'Ɖ' ],
|
||||
[ '~d', 'ɖ' ],
|
||||
[ '~E', 'Ɛ' ],
|
||||
[ '~e', 'ɛ' ],
|
||||
[ '~G', 'Ɣ' ],
|
||||
[ '~g', 'ɣ' ],
|
||||
[ '~I', 'Ɩ' ],
|
||||
[ '~i', 'ɩ' ],
|
||||
[ '~N', 'Ŋ' ],
|
||||
[ '~n', 'ŋ' ],
|
||||
[ '~O', 'Ɔ' ],
|
||||
[ '~o', 'ɔ' ],
|
||||
[ '~V', 'Ʋ' ],
|
||||
[ '~v', 'ʋ' ],
|
||||
[ '~/', '\u0301' ], // Combining acute
|
||||
[ '~\\\\', '\u0300' ], // Combining grave
|
||||
[ '~\\{', '\u0303' ] // Combining tilde
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( kbpTilde );
|
||||
}( jQuery ) );
|
||||
22
lib/jquery.ime/rules/ki/ki-tilde.js
Normal file
22
lib/jquery.ime/rules/ki/ki-tilde.js
Normal file
@@ -0,0 +1,22 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var kiTilde = {
|
||||
id: 'ki-tilde',
|
||||
name: 'ki-tilde',
|
||||
description: 'Kikuyu input keyboard - tilde',
|
||||
date: '2019-01-22',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~I', 'Ĩ' ],
|
||||
[ '~i', 'ĩ' ],
|
||||
[ '~U', 'Ũ' ],
|
||||
[ '~u', 'ũ' ]
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( kiTilde );
|
||||
}( jQuery ) );
|
||||
@@ -32,6 +32,11 @@
|
||||
// Make sure contextLength is large enough for
|
||||
// these rules.
|
||||
|
||||
// Khmer uses a lot of U+200B, zero width space,
|
||||
// so ignore it in this file
|
||||
|
||||
/* eslint-disable no-irregular-whitespace */
|
||||
|
||||
// correction for two-part dependent vowels
|
||||
[ '\u17c1a', 'e', '\u17c4' ], // េ + ា -> ោ (o)
|
||||
[ '\u17b6e', 'a', '\u17c4' ], // ា + េ -> ោ (o)
|
||||
@@ -210,6 +215,8 @@
|
||||
[ 'q', 'ៜ' ],
|
||||
[ 'w', '\u17dd' ], // ៝
|
||||
|
||||
/* eslint-enable no-irregular-whitespace */
|
||||
|
||||
// divination signs (digits)
|
||||
[ '\\!', '៱' ], // shift-1
|
||||
[ '@', '៲' ], // shift-2
|
||||
|
||||
20
lib/jquery.ime/rules/lg/lg-tilde.js
Normal file
20
lib/jquery.ime/rules/lg/lg-tilde.js
Normal file
@@ -0,0 +1,20 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var lgTilde = {
|
||||
id: 'lg-tilde',
|
||||
name: 'lg-tilde',
|
||||
description: 'Luganda tilde keyboard',
|
||||
date: '2019-03-28',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~N', 'Ŋ' ],
|
||||
[ '~n', 'ŋ' ]
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( lgTilde );
|
||||
}( jQuery ) );
|
||||
25
lib/jquery.ime/rules/ln/ln-tilde.js
Normal file
25
lib/jquery.ime/rules/ln/ln-tilde.js
Normal file
@@ -0,0 +1,25 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var lnTilde = {
|
||||
id: 'ln-tilde',
|
||||
name: 'ln-tilde',
|
||||
description: 'Lingala tilde keyboard',
|
||||
date: '2019-03-28',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~E', 'Ɛ' ],
|
||||
[ '~e', 'ɛ' ],
|
||||
[ '~O', 'Ɔ' ],
|
||||
[ '~o', 'ɔ' ],
|
||||
[ '~/', '\u0301' ], // Combining acute
|
||||
[ '~\\^', '\u0302' ], // Combining circumflex
|
||||
[ '~v', '\u030C' ] // Combining caron
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( lnTilde );
|
||||
}( jQuery ) );
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
var lutTulalip = {
|
||||
id: 'lut-tulalip',
|
||||
name: "Lushootseed Tulalip",
|
||||
description: "Lushootseed Keyboard with Tulalip Layout",
|
||||
name: 'Lushootseed Tulalip',
|
||||
description: 'Lushootseed Keyboard with Tulalip Layout',
|
||||
date: '2014-03-01',
|
||||
URL: 'https://github.com/jcrowgey/jquery.ime',
|
||||
author: 'Joshua Crowgey, jcrowgey@u.washington.edu',
|
||||
@@ -42,13 +42,13 @@
|
||||
[ 'L', 'l̕' ], // U+006C U+0315
|
||||
[ ':' , 'ƛ̕' ], // U+019B U+0315
|
||||
// bottom row shifted
|
||||
[ "Z", 'x̌ʷ'], //U+0078 U+030C U+02B7
|
||||
[ "X", 'xʷ'], //U+0078 U+02B7
|
||||
[ "C", 'c̓'], //U+0063 U+0313
|
||||
[ "V", 'č̓'], //U+010D U+0313
|
||||
[ "B", 'b̓'], //U+0062 U+0313
|
||||
[ "N", 'n̓'], //U+006E U+0313
|
||||
[ "M", 'm̓'] //U+006D U+0313
|
||||
[ 'Z', 'x̌ʷ' ], // U+0078 U+030C U+02B7
|
||||
[ 'X', 'xʷ' ], // U+0078 U+02B7
|
||||
[ 'C', 'c̓' ], // U+0063 U+0313
|
||||
[ 'V', 'č̓' ], // U+010D U+0313
|
||||
[ 'B', 'b̓' ], // U+0062 U+0313
|
||||
[ 'N', 'n̓' ], // U+006E U+0313
|
||||
[ 'M', 'm̓' ] // U+006D U+0313
|
||||
]
|
||||
};
|
||||
$.ime.register( lutTulalip );
|
||||
|
||||
25
lib/jquery.ime/rules/mg/mg-tilde.js
Normal file
25
lib/jquery.ime/rules/mg/mg-tilde.js
Normal file
@@ -0,0 +1,25 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var mgTilde = {
|
||||
id: 'mg-tilde',
|
||||
name: 'mg-tilde',
|
||||
description: 'Malagasy tilde keyboard',
|
||||
date: '2019-03-28',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~n', 'n̈' ],
|
||||
[ '~N', 'N̈' ],
|
||||
[ '~\\\\', '\u0300' ], // Combining grave
|
||||
[ '~/', '\u0301' ], // Combining acute
|
||||
[ '~\\^', '\u0302' ], // Combining circumflex
|
||||
[ '~\\:', '\u0308' ], // Combining diaeresis
|
||||
[ '~v', '\u030C' ] // Combining caron
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( mgTilde );
|
||||
}( jQuery ) );
|
||||
24
lib/jquery.ime/rules/nso/nso-tilde.js
Normal file
24
lib/jquery.ime/rules/nso/nso-tilde.js
Normal file
@@ -0,0 +1,24 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var nsoTilde = {
|
||||
id: 'nso-tilde',
|
||||
name: 'nso-tilde',
|
||||
description: 'Northern Sotho input keyboard',
|
||||
date: '2018-12-02',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~S', 'Š' ],
|
||||
[ '~s', 'š' ],
|
||||
[ '~E', 'Ê' ],
|
||||
[ '~e', 'ê' ],
|
||||
[ '~O', 'Ô' ],
|
||||
[ '~o', 'ô' ]
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( nsoTilde );
|
||||
}( jQuery ) );
|
||||
40
lib/jquery.ime/rules/ses/ses-tilde.js
Normal file
40
lib/jquery.ime/rules/ses/ses-tilde.js
Normal file
@@ -0,0 +1,40 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var sesTilde = {
|
||||
id: 'ses-tilde',
|
||||
name: 'ses-tilde',
|
||||
description: 'Koyraboro Senni Songhay input keyboard - tilde',
|
||||
date: '2019-01-22',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~A', 'Ã' ],
|
||||
[ '~a', 'ã' ],
|
||||
[ '~E', 'Ẽ' ],
|
||||
[ '~e', 'ẽ' ],
|
||||
[ '~I', 'Ĩ' ],
|
||||
[ '~i', 'ĩ' ],
|
||||
[ '~O', 'Õ' ],
|
||||
[ '~o', 'õ' ],
|
||||
[ '~U', 'Ũ' ],
|
||||
[ '~u', 'ũ' ],
|
||||
[ '~G', 'Ŋ' ],
|
||||
[ '~g', 'ŋ' ],
|
||||
[ '~Y', 'Ɲ' ],
|
||||
[ '~y', 'ɲ' ],
|
||||
[ '~S', 'Š' ],
|
||||
[ '~s', 'š' ],
|
||||
[ '~Z', 'Ž' ],
|
||||
[ '~z', 'ž' ],
|
||||
[ '~\\\\', '\u0300' ], // Combining grave
|
||||
[ '~/', '\u0301' ], // Combining acute
|
||||
[ '~\\^', '\u0302' ], // Combining circumflex
|
||||
[ '~v', '\u030C' ] // Combining caron
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( sesTilde );
|
||||
}( jQuery ) );
|
||||
24
lib/jquery.ime/rules/sg/sg-tilde.js
Normal file
24
lib/jquery.ime/rules/sg/sg-tilde.js
Normal file
@@ -0,0 +1,24 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var sgTilde = {
|
||||
id: 'sg-tilde',
|
||||
name: 'sg-tilde',
|
||||
description: 'Sango tilde keyboard',
|
||||
date: '2019-03-28',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~\\\\', '\u0300' ], // Combining grave
|
||||
[ '~/', '\u0301' ], // Combining acute
|
||||
[ '~\\^', '\u0302' ], // Combining circumflex
|
||||
[ '~\\-', '\u0304' ], // Combining macron
|
||||
[ '~\\:', '\u0308' ], // Combining diaeresis
|
||||
[ '~v', '\u030C' ] // Combining caron
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( sgTilde );
|
||||
}( jQuery ) );
|
||||
22
lib/jquery.ime/rules/st/st-tilde.js
Normal file
22
lib/jquery.ime/rules/st/st-tilde.js
Normal file
@@ -0,0 +1,22 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var stTilde = {
|
||||
id: 'st-tilde',
|
||||
name: 'st-tilde',
|
||||
description: 'Sotho tilde keyboard',
|
||||
date: '2019-03-28',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~S', 'Š' ],
|
||||
[ '~s', 'š' ],
|
||||
[ '~\\\\', '\u0300' ], // Combining grave
|
||||
[ '~\\-', '\u0304' ] // Combining macron
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( stTilde );
|
||||
}( jQuery ) );
|
||||
@@ -413,8 +413,7 @@
|
||||
[ '፺0', '፱፻' ], // 900
|
||||
|
||||
[ '፻0', '፲፻' ], // 1000
|
||||
[ '፲፻0', '፼' ], // 10,000
|
||||
|
||||
[ '፲፻0', '፼' ] // 10,000
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -413,8 +413,7 @@
|
||||
[ '፺0', '፱፻' ], // 900
|
||||
|
||||
[ '፻0', '፲፻' ], // 1000
|
||||
[ '፲፻0', '፼' ], // 10,000
|
||||
|
||||
[ '፲፻0', '፼' ] // 10,000
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
28
lib/jquery.ime/rules/ve/ve-tilde.js
Normal file
28
lib/jquery.ime/rules/ve/ve-tilde.js
Normal file
@@ -0,0 +1,28 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var veTilde = {
|
||||
id: 've-tilde',
|
||||
name: 've-tilde',
|
||||
description: 'Venda input keyboard',
|
||||
date: '2018-12-02',
|
||||
URL: 'https://github.com/wikimedia/jquery.ime',
|
||||
author: 'Amir E. Aharoni',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
patterns: [
|
||||
[ '~D', 'Ḓ' ],
|
||||
[ '~d', 'ḓ' ],
|
||||
[ '~L', 'Ḽ' ],
|
||||
[ '~l', 'ḽ' ],
|
||||
[ '~N', 'Ṋ' ],
|
||||
[ '~n', 'ṋ' ],
|
||||
[ '~T', 'Ṱ' ],
|
||||
[ '~t', 'ṱ' ],
|
||||
[ '`N', 'Ṅ' ],
|
||||
[ '`n', 'ṅ' ]
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( veTilde );
|
||||
}( jQuery ) );
|
||||
60
lib/jquery.ime/rules/zh/zh-pinyin-transliteration.js
Normal file
60
lib/jquery.ime/rules/zh/zh-pinyin-transliteration.js
Normal file
@@ -0,0 +1,60 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var zhPinyinTransliteration = {
|
||||
id: 'zh-pinyin-transliteration',
|
||||
name: '拼音符号输入法',
|
||||
description: 'Mandarin PinYin Transliteration input method',
|
||||
date: '2018-12-28',
|
||||
URL: 'http://github.com/wikimedia/jquery.ime',
|
||||
author: 'Yuping Zuo',
|
||||
license: 'MIT',
|
||||
version: '1.0',
|
||||
maxKeyLength: 4,
|
||||
patterns: [
|
||||
[ 'iou', 'iu' ],
|
||||
[ 'uei', 'ui' ],
|
||||
[ 'uen', 'un' ],
|
||||
[ '([jqxy])v', '$1u' ],
|
||||
[ 'v', 'ü' ],
|
||||
[ 'a(ng?)?1', 'ā$1' ],
|
||||
[ 'a(ng?)?2', 'á$1' ],
|
||||
[ 'a(ng?)?3', 'ǎ$1' ],
|
||||
[ 'a(ng?)?4', 'à$1' ],
|
||||
[ 'a([io])1', 'ā$1' ],
|
||||
[ 'a([io])2', 'á$1' ],
|
||||
[ 'a([io])3', 'ǎ$1' ],
|
||||
[ 'a([io])4', 'à$1' ],
|
||||
[ 'o(ng)?1', 'ō$1' ],
|
||||
[ 'o(ng)?2', 'ó$1' ],
|
||||
[ 'o(ng)?3', 'ǒ$1' ],
|
||||
[ 'o(ng)?4', 'ò$1' ],
|
||||
[ 'ou1', 'ōu' ],
|
||||
[ 'ou2', 'óu' ],
|
||||
[ 'ou3', 'ǒu' ],
|
||||
[ 'ou4', 'òu' ],
|
||||
[ 'e(ng?)?1', 'ē$1' ],
|
||||
[ 'e(ng?)?2', 'é$1' ],
|
||||
[ 'e(ng?)?3', 'ě$1' ],
|
||||
[ 'e(ng?)?4', 'è$1' ],
|
||||
[ 'ei1', 'ēi' ],
|
||||
[ 'ei2', 'éi' ],
|
||||
[ 'ei3', 'ěi' ],
|
||||
[ 'ei4', 'èi' ],
|
||||
[ 'i(ng?)?1', 'ī$1' ],
|
||||
[ 'i(ng?)?2', 'í$1' ],
|
||||
[ 'i(ng?)?3', 'ǐ$1' ],
|
||||
[ 'i(ng?)?4', 'ì$1' ],
|
||||
[ 'u(n)?1', 'ū$1' ],
|
||||
[ 'u(n)?2', 'ú$1' ],
|
||||
[ 'u(n)?3', 'ǔ$1' ],
|
||||
[ 'u(n)?4', 'ù$1' ],
|
||||
[ 'ü(n)?1', 'ǖ$1' ],
|
||||
[ 'ü(n)?2', 'ǘ$1' ],
|
||||
[ 'ü(n)?3', 'ǚ$1' ],
|
||||
[ 'ü(n)?4', 'ǜ$1' ]
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( zhPinyinTransliteration );
|
||||
}( jQuery ) );
|
||||
Reference in New Issue
Block a user