diff --git a/rules/ekp/ekp-tilde.js b/rules/ekp/ekp-tilde.js new file mode 100644 index 00000000..f6f169f6 --- /dev/null +++ b/rules/ekp/ekp-tilde.js @@ -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 ) ); diff --git a/src/jquery.ime.inputmethods.js b/src/jquery.ime.inputmethods.js index cc737b4c..319378c6 100755 --- a/src/jquery.ime.inputmethods.js +++ b/src/jquery.ime.inputmethods.js @@ -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' @@ -1166,6 +1170,10 @@ autonym: 'efịk', inputmethods: [ 'efi-tilde' ] }, + ekp: { + autonym: 'ẹkpeye', + inputmethods: [ 'ekp-tilde' ] + }, el: { autonym: 'Ελληνικά', inputmethods: [ 'el-kbd' ] diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index 7e0d74d1..f8776f18 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -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',