Skip to content

Commit

Permalink
Add Ekpeye tilde keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed May 18, 2024
1 parent cc8169b commit 2b19d4f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
29 changes: 29 additions & 0 deletions rules/ekp/ekp-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
( function ( $ ) {
'use strict';

var ekpTilde = {
id: 'ekp-tilde',
name: 'ekp-tilde',
description: 'Ekpeye input keyboard - tilde',
date: '2024-05-17',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~E', 'Ẹ' ],
[ '~e', 'ẹ' ],
[ '~I', 'Ị' ],
[ '~i', 'ị' ],
[ '~O', 'Ọ' ],
[ '~o', 'ọ' ],
[ '~U', 'Ụ' ],
[ '~u', 'ụ' ],
[ '~\\\\', '\u0300' ], // Combining grave
[ '~\\^', '\u0302' ], // Combining circumflex
[ '~-', '\u0304' ]
]
};

$.ime.register( ekpTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@
name: 'Efik - tilde',
source: 'rules/efi/efi-tilde.js'
},
'ekp-tilde': {
name: 'Ẹkpeye',
source: 'rules/ekp/ekp-tilde.js'
},
'el-kbd': {
name: 'Τυπική πληκτρολόγιο',
source: 'rules/el/el-kbd.js'
Expand Down Expand Up @@ -1166,6 +1170,10 @@
autonym: 'efịk',
inputmethods: [ 'efi-tilde' ]
},
ekp: {
autonym: 'ẹkpeye',
inputmethods: [ 'ekp-tilde' ]
},
el: {
autonym: 'Ελληνικά',
inputmethods: [ 'el-kbd' ]
Expand Down
16 changes: 16 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,22 @@ var palochkaVariants = {
{ input: 'i~/', output: 'í', description: 'Efik tilde i~/ -> í' }
]
},
{
description: 'Ekpeye tilde test',
inputmethod: 'ekp-tilde',
tests: [
{ input: '~E', output: 'Ẹ', description: 'Ekpeye tilde ~E -> Ẹ' },
{ input: '~e', output: 'ẹ', description: 'Ekpeye tilde ~e -> ẹ' },
{ input: '~I', output: 'Ị', description: 'Ekpeye tilde ~I -> Ị' },
{ input: '~i', output: 'ị', description: 'Ekpeye tilde ~i -> ị' },
{ input: '~O', output: 'Ọ', description: 'Ekpeye tilde ~O -> Ọ' },
{ input: '~o', output: 'ọ', description: 'Ekpeye tilde ~o -> ọ' },
{ input: '~U', output: 'Ụ', description: 'Ekpeye tilde ~U -> Ụ' },
{ input: 'E~\\', output: 'È', description: 'Ekpeye tilde E~\\ -> È' },
{ input: 'i~^', output: 'î', description: 'Ekpeye tilde i~^ -> î' },
{ input: 'o~-', output: 'ō', description: 'Ekpeye tilde o~- -> ō' }
]
},
{
description: 'Modern Greek Std Kbd test',
inputmethod: 'el-kbd',
Expand Down

0 comments on commit 2b19d4f

Please sign in to comment.