Skip to content

Commit

Permalink
Add Jju tilde keyboard (#792)
Browse files Browse the repository at this point in the history
Downstream task:
https://phabricator.wikimedia.org/T373928

Co-authored-by: SrishAkaTux <[email protected]>
  • Loading branch information
amire80 and srish committed Sep 5, 2024
1 parent 6cac5c5 commit 76a0db2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rules/kaj/kaj-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
( function ( $ ) {
'use strict';

var kajTilde = {
id: 'kaj-tilde',
name: 'kaj-tilde',
description: 'Jju input keyboard',
date: '2024-09-03',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~A', 'A\u0331' ], // A̱
[ '~a', 'a\u0331' ], // a̱
[ '~U', 'U\u0331' ], // U̱
[ '~u', 'u\u0331' ], // u̱
[ '~/', '\u0301' ], // Combining acute accent
[ '~_', '\u0331' ] // Combining macron below
]
};

$.ime.register( kajTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@
name: 'Taqbaylit Alatin tilde',
source: 'rules/kab/kab-tilde.js'
},
'kaj-tilde': {
name: 'Jju tilde',
source: 'rules/kaj/kaj-tilde.js'
},
'kbp-tilde': {
name: 'Kabɩyɛ tilde',
source: 'rules/kbp/kbp-tilde.js'
Expand Down Expand Up @@ -1330,6 +1334,10 @@
autonym: 'Taqbaylit / ⵜⴰⵇⴱⴰⵢⵍⵉⵜ',
inputmethods: [ 'kab-tilde', 'ber-tfng' ]
},
kaj: {
autonym: 'Jju',
inputmethods: [ 'kaj-tilde' ]
},
kbd: {
autonym: 'адыгэбзэ (къэбэрдеибзэ)',
inputmethods: [ 'cyrl-palochka' ]
Expand Down
9 changes: 9 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -2945,6 +2945,15 @@ var palochkaVariants = {
{ input: '~y~w', output: 'ɣʷ', description: 'Kabyle tilde ɣʷ' }
]
},
{
description: 'Jju tilde test',
inputmethod: 'kaj-tilde',
tests: [
{ input: '~A~a~U~u', output: 'A̱a̱U̱u̱', description: 'Jju tilde A̱a̱U̱u̱' },
{ input: 'n~a~/', output: 'ná̱', description: 'Jju tilde ná̱' },
{ input: 'zi~/', output: 'zí', description: 'Jju tilde zí' }
]
},
{
description: 'Kabiye tilde test',
inputmethod: 'kbp-tilde',
Expand Down

0 comments on commit 76a0db2

Please sign in to comment.