Skip to content

Commit

Permalink
Add Ewe tilde input method
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 committed Dec 4, 2018
1 parent 547c575 commit 0b9ecf3
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
36 changes: 36 additions & 0 deletions rules/ee/ee-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
( function ( $ ) {
'use strict';

var eeTilde = {
id: 'ee-tilde',
name: 'ee-tilde',
description: 'Ewe input keyboard',
date: '2018-11-30',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~D', 'Ɖ' ],
[ '~d', 'ɖ' ],
[ '~E', 'Ɛ' ],
[ '~e', 'ɛ' ],
[ '~F', 'Ƒ' ],
[ '~f', 'ƒ' ],
[ '~G', 'Ɣ' ],
[ '~g', 'ɣ' ],
[ '~N', 'Ŋ' ],
[ '~n', 'ŋ' ],
[ '~O', 'Ɔ' ],
[ '~o', 'ɔ' ],
[ '~V', 'Ʋ' ],
[ '~v', 'ʋ' ],
[ '~/', '\u0301' ], // Combining acute
[ '~\\\\', '\u0300' ], // Combining grave
[ '~\\{', '\u0303' ], // Combining tilde
[ '~\\^', '\u030C' ] // Combining caron
]
};

$.ime.register( eeTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@
name: 'Deutsch Tilde',
source: 'rules/de/de-transliteration.js'
},
'ee-tilde': {
name: 'Ewe Tilde',
source: 'rules/ee/ee-tilde.js'
},
'el-kbd': {
name: 'Τυπική πληκτρολόγιο',
source: 'rules/el/el-kbd.js'
Expand Down Expand Up @@ -846,6 +850,10 @@
autonym: 'English',
inputmethods: [ 'ipa-sil', 'ipa-x-sampa' ]
},
ee: {
autonym: 'Èʋegbe',
inputmethods: [ 'ee-tilde' ]
},
el: {
autonym: 'Ελληνικά',
inputmethods: [ 'el-kbd' ]
Expand Down
24 changes: 24 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,30 @@ var palochkaVariants = {
}
],
inputmethod: 'dag-alt'
},{
description: 'Ewe tilde test',
tests: [
{ input: '~D', output: 'Ɖ', description: 'Ewe ~D -> Ɖ' },
{ input: '~d', output: 'ɖ', description: 'Ewe ~d -> ɖ' },
{ input: '~E', output: 'Ɛ', description: 'Ewe ~E -> Ɛ' },
{ input: '~e', output: 'ɛ', description: 'Ewe ~e -> ɛ' },
{ input: '~F', output: 'Ƒ', description: 'Ewe ~F -> Ƒ' },
{ input: '~f', output: 'ƒ', description: 'Ewe ~f -> ƒ' },
{ input: '~G', output: 'Ɣ', description: 'Ewe ~G -> Ɣ' },
{ input: '~g', output: 'ɣ', description: 'Ewe ~g -> ɣ' },
{ input: '~N', output: 'Ŋ', description: 'Ewe ~N -> Ŋ' },
{ input: '~n', output: 'ŋ', description: 'Ewe ~n -> ŋ' },
{ input: '~O', output: 'Ɔ', description: 'Ewe ~O -> Ɔ' },
{ input: '~o', output: 'ɔ', description: 'Ewe ~o -> ɔ' },
{ input: '~V', output: 'Ʋ', description: 'Ewe ~V -> Ʋ' },
{ input: '~v', output: 'ʋ', description: 'Ewe ~v -> ʋ' },
{ input: '~~~~', output: '~~~~', description: 'Ewe ~~~~ -> ~~~~' },
{ input: 'mi~/', output: 'mí', description: 'Ewe mi~/ -> mí' },
{ input: 'wo~\\', output: 'wò', description: 'Ewe wo~\\ -> wò' },
{ input: '~E~{', output: 'Ɛ̃', description: 'Ewe ~E~{ -> Ɛ̃' },
{ input: 'to~^', output: 'tǒ', description: 'Ewe to~^ -> tǒ' }
],
inputmethod: 'ee-tilde'
},{
description: 'Cyrillic with palochka transliteration test',
tests: [
Expand Down

0 comments on commit 0b9ecf3

Please sign in to comment.