diff --git a/rules/chn/chn-tilde.js b/rules/chn/chn-tilde.js new file mode 100644 index 00000000..b0964c99 --- /dev/null +++ b/rules/chn/chn-tilde.js @@ -0,0 +1,27 @@ +( function ( $ ) { + 'use strict'; + + var chnTilde = { + id: 'chn-tilde', + name: 'chn-tilde', + description: 'Chinook Jargon input keyboard - tilde', + date: '2024-02-07', + URL: 'https://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + patterns: [ + [ '~E', 'Ə' ], + [ '~e', 'ə' ], + [ '~h', 'ʰ' ], + [ '~H', 'ʰ' ], + [ '~L', 'Ɬ' ], + [ '~l', 'ɬ' ], + [ '~X', 'X̣' ], + [ '~x', 'x̣' ], + [ '~\\?', 'ʔ' ] + ] + }; + + $.ime.register( chnTilde ); +}( jQuery ) ); diff --git a/src/jquery.ime.inputmethods.js b/src/jquery.ime.inputmethods.js index 6f73677e..e8abb4c7 100755 --- a/src/jquery.ime.inputmethods.js +++ b/src/jquery.ime.inputmethods.js @@ -168,6 +168,10 @@ name: 'ብሊን', source: 'rules/byn/byn-geezim.js' }, + 'chn-tilde': { + name: 'Chinook wawa tilde', + source: 'rules/chn/chn-tilde.js' + }, 'chr': { name: 'Cherokee Transliteration', source: 'rules/chr/chr.js' @@ -1090,6 +1094,10 @@ autonym: 'нохчийн', inputmethods: [ 'cyrl-palochka' ] }, + chn: { + autonym: 'chinook wawa', + inputmethods: [ 'chn-tilde' ] + }, chr: { autonym: 'ᏣᎳᎩ', inputmethods: [ 'chr' ] @@ -1387,7 +1395,7 @@ inputmethods: [ 'mni-inscript2' ] }, mnw: { - autonym: 'ဘာသာ မန်', + autonym: 'ဘာသာမန်', inputmethods: [ 'mnw-simplified-anonta' ] }, mos: { diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index ef052a77..59522fbe 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -869,6 +869,13 @@ var palochkaVariants = { { input: 'Gi', output: 'ጚ', description: 'Blin Gi -> ጚ' } ] }, + { + description: 'Chinook Jargon tilde test', + inputmethod: 'chn-tilde', + tests: [ + { input: '~E~e~H~h~L~l~X~x~?', output: 'ƏəʰʰꞭɬX̣x̣ʔ', description: 'Chinook Jargon ƏəʰʰꞭɬX̣x̣ʔ' } + ] + }, { description: 'Cherokee transliteration test', inputmethod: 'chr',