Skip to content

Commit

Permalink
Add Chinnok Jargon keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed Feb 7, 2024
1 parent c253fa1 commit 9cf1686
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
27 changes: 27 additions & 0 deletions rules/chn/chn-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
( function ( $ ) {
'use strict';

var chnTilde = {
id: 'chn-tilde',
name: 'chn-tilde',
description: 'Chinook Jargon input keyboard - tilde',
date: '2024-02-07',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~E', 'Ə' ],
[ '~e', 'ə' ],
[ '~h', 'ʰ' ],
[ '~H', 'ʰ' ],
[ '~L', 'Ɬ' ],
[ '~l', 'ɬ' ],
[ '~X', 'X̣' ],
[ '~x', 'x̣' ],
[ '~\\?', 'ʔ' ]
]
};

$.ime.register( chnTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@
name: 'ብሊን',
source: 'rules/byn/byn-geezim.js'
},
'chn-tilde': {
name: 'Chinook wawa tilde',
source: 'rules/chn/chn-tilde.js'
},
'chr': {
name: 'Cherokee Transliteration',
source: 'rules/chr/chr.js'
Expand Down Expand Up @@ -1090,6 +1094,10 @@
autonym: 'нохчийн',
inputmethods: [ 'cyrl-palochka' ]
},
chn: {
autonym: 'chinook wawa',
inputmethods: [ 'chn-tilde' ]
},
chr: {
autonym: 'ᏣᎳᎩ',
inputmethods: [ 'chr' ]
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 @@ -869,6 +869,13 @@ var palochkaVariants = {
{ input: 'Gi', output: 'ጚ', description: 'Blin Gi -> ጚ' }
]
},
{
description: 'Chinook Jargon tilde test',
inputmethod: 'chn-tilde',
tests: [
{ input: '~E~e~H~h~L~l~X~x~?', output: 'ƏəʰʰꞭɬX̣x̣ʔ', description: 'Chinook Jargon ƏəʰʰꞭɬX̣x̣ʔ' }
]
},
{
description: 'Cherokee transliteration test',
inputmethod: 'chr',
Expand Down

0 comments on commit 9cf1686

Please sign in to comment.