Skip to content

Commit

Permalink
Add Acholi tilde keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed Oct 1, 2024
1 parent 44d4cee commit 43b8234
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rules/ach/ach-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
( function ( $ ) {
'use strict';

var achTilde = {
id: 'ach-tilde',
name: 'ach-tilde',
description: 'Acholi tilde keyboard',
date: '2024-09-30',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~N', 'Ŋ' ],
[ '~n', 'ŋ' ],
[ '~/', '\u0301' ], // Combining acute
[ '~\\\\', '\u0300' ] // Combining grave
]
};

$.ime.register( achTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// All keys have quotes for consistency
/* eslint-disable quote-props */
$.extend( $.ime.sources, {
'ach-tilde': {
name: 'Acholi tilde',
source: 'rules/ach/ach-tilde.js'
},
'af-tilde': {
name: 'Afrikaans tilde',
source: 'rules/af/af-tilde.js'
Expand Down Expand Up @@ -1026,6 +1030,10 @@
autonym: 'Abron',
inputmethods: [ 'ak-qx', 'ak-tilde' ]
},
ach: {
autonym: 'Acoli',
inputmethods: [ 'ach-tilde' ]
},
ady: {
autonym: 'адыгэбзэ',
inputmethods: [ 'cyrl-palochka' ]
Expand Down
7 changes: 7 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ var palochkaVariants = {
},
// eslint-disable-next-line no-implicit-globals
testFixtures = [ // eslint-disable-line no-unused-vars
{
description: 'Acholi tilde test',
inputmethod: 'ach-tilde',
tests: [
{ input: '~N~na~\\e~/', output: 'Ŋŋàé', description: 'Acholi tilde Ŋŋà' }
]
},
{
description: 'Aja tilde test',
inputmethod: 'ajg-tilde',
Expand Down

0 comments on commit 43b8234

Please sign in to comment.