diff --git a/rules/maw/maw-tilde.js b/rules/maw/maw-tilde.js new file mode 100644 index 00000000..93533baf --- /dev/null +++ b/rules/maw/maw-tilde.js @@ -0,0 +1,25 @@ +( function ( $ ) { + 'use strict'; + + var mawTilde = { + id: 'maw-tilde', + name: 'Mampruli tilde', + description: 'Mampruli tilde', + date: '2024-11-05', + URL: 'https://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + maxKeyLength: 2, + patterns: [ + [ '~E', 'Ɛ' ], + [ '~e', 'ɛ' ], + [ '~N', 'Ŋ' ], + [ '~n', 'ŋ' ], + [ '~O', 'Ɔ' ], + [ '~o', 'ɔ' ] + ] + }; + + $.ime.register( mawTilde ); +}( jQuery ) ); diff --git a/src/jquery.ime.inputmethods.js b/src/jquery.ime.inputmethods.js index eec77d3c..91719724 100755 --- a/src/jquery.ime.inputmethods.js +++ b/src/jquery.ime.inputmethods.js @@ -630,6 +630,10 @@ source: 'rules/mai/mai-inscript2.js', depends: 'hi-inscript2' }, + 'maw-tilde': { + name: 'Mampruli tilde', + source: 'rules/maw/maw-tilde.js' + }, 'mg-tilde': { name: 'Malagasy tilde', source: 'rules/mg/mg-tilde.js' @@ -1550,6 +1554,10 @@ autonym: 'मैथिली', inputmethods: [ 'mai-inscript', 'mai-inscript2' ] }, + maw: { + autonym: 'Ŋmampulli', + inputmethods: [ 'maw-tilde' ] + }, mg: { autonym: 'Malagasy', inputmethods: [ 'mg-tilde' ] diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index 359ca678..c3c06bcf 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -4687,6 +4687,13 @@ var palochkaVariants = { { input: '~t', output: 'ṭ', description: 'Madurese tilde ~t' } ] }, + { + description: 'Mampruli tilde test', + inputmethod: 'maw-tilde', + tests: [ + { input: '~e~n~o~E~N~O', output: 'ɛŋɔƐŊƆ', description: 'Mampruli tilde ɛŋɔƐŊƆ' } + ] + }, { description: 'Malagasy tilde test', inputmethod: 'mg-tilde',