Skip to content

Commit

Permalink
Add Bole tilde keyboard
Browse files Browse the repository at this point in the history
It is used on translatewiki, so it should be available.
  • Loading branch information
amire80 authored and kartikm committed May 13, 2024
1 parent 4031b38 commit cc8169b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
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

0 comments on commit cc8169b

Please sign in to comment.