Skip to content

Commit c010c34

Browse files
amire80kartikm
authored andcommitted
Add Ewe tilde input method (wikimedia#535)
1 parent 2046765 commit c010c34

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

rules/ee/ee-tilde.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
( function ( $ ) {
2+
'use strict';
3+
4+
var eeTilde = {
5+
id: 'ee-tilde',
6+
name: 'ee-tilde',
7+
description: 'Ewe input keyboard',
8+
date: '2018-11-30',
9+
URL: 'https://github.com/wikimedia/jquery.ime',
10+
author: 'Amir E. Aharoni',
11+
license: 'GPLv3',
12+
version: '1.0',
13+
patterns: [
14+
[ '~D', 'Ɖ' ],
15+
[ '~d', 'ɖ' ],
16+
[ '~E', 'Ɛ' ],
17+
[ '~e', 'ɛ' ],
18+
[ '~F', 'Ƒ' ],
19+
[ '~f', 'ƒ' ],
20+
[ '~G', 'Ɣ' ],
21+
[ '~g', 'ɣ' ],
22+
[ '~N', 'Ŋ' ],
23+
[ '~n', 'ŋ' ],
24+
[ '~O', 'Ɔ' ],
25+
[ '~o', 'ɔ' ],
26+
[ '~V', 'Ʋ' ],
27+
[ '~v', 'ʋ' ],
28+
[ '~/', '\u0301' ], // Combining acute
29+
[ '~\\\\', '\u0300' ], // Combining grave
30+
[ '~\\{', '\u0303' ], // Combining tilde
31+
[ '~\\^', '\u030C' ] // Combining caron
32+
]
33+
};
34+
35+
$.ime.register( eeTilde );
36+
}( jQuery ) );

src/jquery.ime.inputmethods.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@
304304
name: 'Deutsch Tilde',
305305
source: 'rules/de/de-transliteration.js'
306306
},
307+
'ee-tilde': {
308+
name: 'Ewe Tilde',
309+
source: 'rules/ee/ee-tilde.js'
310+
},
307311
'el-kbd': {
308312
name: 'Τυπική πληκτρολόγιο',
309313
source: 'rules/el/el-kbd.js'
@@ -851,6 +855,10 @@
851855
autonym: 'English',
852856
inputmethods: [ 'ipa-sil', 'ipa-x-sampa' ]
853857
},
858+
ee: {
859+
autonym: 'Èʋegbe',
860+
inputmethods: [ 'ee-tilde' ]
861+
},
854862
el: {
855863
autonym: 'Ελληνικά',
856864
inputmethods: [ 'el-kbd' ]

test/jquery.ime.test.fixtures.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,30 @@ var palochkaVariants = {
534534
}
535535
],
536536
inputmethod: 'dag-alt'
537+
},{
538+
description: 'Ewe tilde test',
539+
tests: [
540+
{ input: '~D', output: 'Ɖ', description: 'Ewe ~D -> Ɖ' },
541+
{ input: '~d', output: 'ɖ', description: 'Ewe ~d -> ɖ' },
542+
{ input: '~E', output: 'Ɛ', description: 'Ewe ~E -> Ɛ' },
543+
{ input: '~e', output: 'ɛ', description: 'Ewe ~e -> ɛ' },
544+
{ input: '~F', output: 'Ƒ', description: 'Ewe ~F -> Ƒ' },
545+
{ input: '~f', output: 'ƒ', description: 'Ewe ~f -> ƒ' },
546+
{ input: '~G', output: 'Ɣ', description: 'Ewe ~G -> Ɣ' },
547+
{ input: '~g', output: 'ɣ', description: 'Ewe ~g -> ɣ' },
548+
{ input: '~N', output: 'Ŋ', description: 'Ewe ~N -> Ŋ' },
549+
{ input: '~n', output: 'ŋ', description: 'Ewe ~n -> ŋ' },
550+
{ input: '~O', output: 'Ɔ', description: 'Ewe ~O -> Ɔ' },
551+
{ input: '~o', output: 'ɔ', description: 'Ewe ~o -> ɔ' },
552+
{ input: '~V', output: 'Ʋ', description: 'Ewe ~V -> Ʋ' },
553+
{ input: '~v', output: 'ʋ', description: 'Ewe ~v -> ʋ' },
554+
{ input: '~~~~', output: '~~~~', description: 'Ewe ~~~~ -> ~~~~' },
555+
{ input: 'mi~/', output: 'mí', description: 'Ewe mi~/ -> mí' },
556+
{ input: 'wo~\\', output: 'wò', description: 'Ewe wo~\\ -> wò' },
557+
{ input: '~E~{', output: 'Ɛ̃', description: 'Ewe ~E~{ -> Ɛ̃' },
558+
{ input: 'to~^', output: 'tǒ', description: 'Ewe to~^ -> tǒ' }
559+
],
560+
inputmethod: 'ee-tilde'
537561
},{
538562
description: 'Cyrillic with palochka transliteration test',
539563
tests: [

0 commit comments

Comments
 (0)