Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bole tilde keyboard #774

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions rules/bol/bol-tilde.js
Original file line number Diff line number Diff line change
@@ -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 ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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' ]
Expand Down
14 changes: 14 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading