diff --git a/rules/mns/mns-backslash.js b/rules/mns/mns-backslash.js new file mode 100644 index 00000000..dd469309 --- /dev/null +++ b/rules/mns/mns-backslash.js @@ -0,0 +1,40 @@ +( function ( $ ) { + 'use strict'; + + var mnsBackslash = { + id: 'mns-backslash', + name: 'mns-backslash', + description: 'Mansi backslash keyboard', + date: '2024-11-05', + URL: 'https://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + patterns: [ + [ '\\\\А', 'А̄' ], + [ '\\\\а', 'а̄' ], + [ '\\\\Е', 'Е̄' ], + [ '\\\\е', 'е̄' ], + [ '\\\\Ё', 'Ё̄' ], + [ '\\\\ё', 'ё̄' ], + [ '\\\\И', 'Ӣ' ], + [ '\\\\и', 'ӣ' ], + [ '\\\\Н', 'Ӈ' ], + [ '\\\\н', 'ӈ' ], + [ '\\\\О', 'О̄' ], + [ '\\\\о', 'о̄' ], + [ '\\\\У', 'Ӯ' ], + [ '\\\\у', 'ӯ' ], + [ '\\\\Ы', 'Ы̄' ], + [ '\\\\ы', 'ы̄' ], + [ '\\\\Э', 'Э̄' ], + [ '\\\\э', 'э̄' ], + [ '\\\\Ю', 'Ю̄' ], + [ '\\\\ю', 'ю̄' ], + [ '\\\\Я', 'Я̄' ], + [ '\\\\я', 'я̄' ] + ] + }; + + $.ime.register( mnsBackslash ); +}( jQuery ) ); diff --git a/src/jquery.ime.inputmethods.js b/src/jquery.ime.inputmethods.js index 342e8d0a..b8035a29 100755 --- a/src/jquery.ime.inputmethods.js +++ b/src/jquery.ime.inputmethods.js @@ -690,6 +690,10 @@ name: 'ইনস্ক্ৰিপ্ট ২', source: 'rules/mni/mni-inscript2.js' }, + 'mns-backslash': { + name: 'Mansi backslash', + source: 'rules/mns/mns-backslash.js' + }, 'mnw-simplified-anonta': { name: 'Mon Simplified Anonta', source: 'rules/mnw/mnw-simplified-anonta.js' @@ -1594,6 +1598,10 @@ autonym: 'Manipuri', inputmethods: [ 'mni-inscript2' ] }, + mns: { + autonym: 'ма̄ньси', + inputmethods: [ 'mns-backslash' ] + }, mnw: { autonym: 'ဘာသာမန်', inputmethods: [ 'mnw-simplified-anonta' ] diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index 0a301981..5b5af7f0 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -4841,6 +4841,13 @@ var palochkaVariants = { { input: 'M