diff --git a/rules/bol/bol-tilde.js b/rules/bol/bol-tilde.js new file mode 100644 index 00000000..994e9bd3 --- /dev/null +++ b/rules/bol/bol-tilde.js @@ -0,0 +1,26 @@ +( function ( $ ) { + 'use strict'; + + var bolTilde = { + id: 'bol-tilde', + name: 'bol-tilde', + description: 'Bole input keyboard', + date: '2024-05-12', + URL: 'https://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + patterns: [ + [ '~B', 'Ɓ' ], + [ '~b', 'ɓ' ], + [ '~D', 'Ɗ' ], + [ '~d', 'ɗ' ], + [ '~\\\\', '\u0300' ], // Combining grave + [ '~\\^', '\u0302' ], // Combining circumflex + [ '~-', '\u0304' ], // Combining macron + [ '~v', '\u030C' ] // Combining caron + ] + }; + + $.ime.register( bolTilde ); +}( jQuery ) ); diff --git a/src/jquery.ime.inputmethods.js b/src/jquery.ime.inputmethods.js index e8abb4c7..cc737b4c 100755 --- a/src/jquery.ime.inputmethods.js +++ b/src/jquery.ime.inputmethods.js @@ -148,6 +148,10 @@ name: 'Tibetan Sambhota', source: 'rules/bo/bo-sambhota.js' }, + 'bol-tilde': { + name: 'Bole - tilde', + source: 'rules/bol/bol-tilde.js' + }, 'bom-tilde': { name: 'Bèrom Tilde', source: 'rules/bom/bom-tilde.js' @@ -1070,6 +1074,10 @@ autonym: 'བོད་ཡིག།', inputmethods: [ 'bo-ewts', 'bo-sambhota' ] }, + bol: { + autonym: 'bòo pìkkà', + inputmethods: [ 'bol-tilde' ] + }, bom: { autonym: 'bèrom', inputmethods: [ 'bom-tilde' ] diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index 06cf754f..7e0d74d1 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -793,6 +793,20 @@ var palochkaVariants = { { input: 'pafdma', output: 'པདྨ', description: 'Tibetan Sambhota - pafdma' } ] }, + { + description: 'Bole tilde test', + inputmethod: 'bol-tilde', + tests: [ + { input: '~B', output: 'Ɓ', description: 'Bole tilde ~B -> Ɓ' }, + { input: '~b', output: 'ɓ', description: 'Bole tilde ~b -> ɓ' }, + { input: '~D', output: 'Ɗ', description: 'Bole tilde ~D -> Ɗ' }, + { input: '~d', output: 'ɗ', description: 'Bole tilde ~d -> ɗ' }, + { input: 'E~\\', output: 'È', description: 'Bole tilde E~\\ -> È' }, + { input: 'i~^', output: 'î', description: 'Bole tilde i~^ -> î' }, + { input: 'o~-', output: 'ō', description: 'Bole tilde o~- -> ō' }, + { input: 'a~v', output: 'ǎ', description: 'Bole tilde a~v -> ǎ' } + ] + }, { description: 'Berom tilde test', inputmethod: 'bom-tilde',