Skip to content

Commit

Permalink
Add Edo tilde keyboard
Browse files Browse the repository at this point in the history
The language was recently added to translatewiki.
  • Loading branch information
amire80 authored and kartikm committed Jul 2, 2024
1 parent 2b19d4f commit 1565d60
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rules/bin/bin-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
( function ( $ ) {
'use strict';

var binTilde = {
id: 'bin-tilde',
name: 'bin-tilde',
description: 'Edo input keyboard - tilde',
date: '2024-07-01',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~E', 'Ẹ' ],
[ '~e', 'ẹ' ],
[ '~O', 'Ọ' ],
[ '~o', 'ọ' ]
]
};

$.ime.register( binTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
name: 'روچ کپتین بلوچی',
source: 'rules/bgn/bgn-kbd.js'
},
'bin-tilde': {
name: 'Edo tilde',
source: 'rules/bin/bin-tilde.js'
},
'bkm-tilde': {
name: 'Kom tilde',
source: 'rules/bkm/bkm-tilde.js'
Expand Down Expand Up @@ -1058,6 +1062,10 @@
autonym: 'روچ کپتین بلوچی',
inputmethods: [ 'bgn-kbd' ]
},
bin: {
autonym: 'Ẹdo',
inputmethods: [ 'bin-tilde' ]
},
bho: {
autonym: 'भोजपुरी',
inputmethods: [ 'hi-transliteration' ]
Expand Down
10 changes: 10 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,16 @@ var palochkaVariants = {
{ input: '?', output: '؟', description: 'Western Baluchi Keyboard Layout: ? -> ؟' }
]
},
{
description: 'Edo tilde test',
inputmethod: 'bin-tilde',
tests: [
{ input: '~E', output: 'Ẹ', description: 'Edo tilde ~E -> Ẹ' },
{ input: '~e', output: 'ẹ', description: 'Edo tilde ~e -> ẹ' },
{ input: '~O', output: 'Ọ', description: 'Edo tilde ~O -> Ọ' },
{ input: '~o', output: 'ọ', description: 'Edo tilde ~o -> ọ' }
]
},
{
description: 'Kom tilde test',
inputmethod: 'bkm-tilde',
Expand Down

0 comments on commit 1565d60

Please sign in to comment.