Skip to content

Commit

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

Co-authored-by: SrishAkaTux <[email protected]>
  • Loading branch information
amire80 and srish authored Nov 6, 2024
1 parent 00acdb6 commit ea14671
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
29 changes: 29 additions & 0 deletions rules/cko/cko-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
( function ( $ ) {
'use strict';

var ckoTilde = {
id: 'cko-tilde',
name: 'Anufo tilde',
description: 'Anufo input keyboard',
date: '2024-11-05',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~E', 'Ɛ' ],
[ '~e', 'ɛ' ],
[ '~M', 'Ɱ' ],
[ '~m', 'ɱ' ],
[ '~N', 'Ŋ' ],
[ '~n', 'ŋ' ],
[ '~O', 'Ɔ' ],
[ '~o', 'ɔ' ],
[ '~\\\\', '\u0300' ], // Combining grave
[ '~/', '\u0301' ], // Combining acute
[ '~\\{', '\u0303' ] // Combining tilde
]
};

$.ime.register( ckoTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@
name: 'لاتینی',
source: 'rules/ckb/ckb-transliteration-lakbd.js'
},
'cko-tilde': {
name: 'Anufo tilde',
source: 'rules/cko/cko-tilde.js'
},
'cv-cyr-altgr': {
name: 'Чăвашла (AltGr)',
source: 'rules/cv/cv-cyr-altgr.js'
Expand Down Expand Up @@ -1254,6 +1258,10 @@
autonym: 'کوردی',
inputmethods: [ 'ckb-transliteration-arkbd', 'ckb-transliteration-fakbd', 'ckb-transliteration-lakbd' ]
},
cko: {
autonym: 'Anufɔ',
inputmethods: [ 'cko-tilde' ]
},
cv: {
autonym: 'Чăвашла',
inputmethods: [ 'cv-cyr-altgr', 'cv-lat-altgr', 'cv-cyr-numbers' ]
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 @@ -1479,6 +1479,13 @@ var palochkaVariants = {
{ input: '?', output: '؟', description: 'Central Kurdish keyboard based on Latin: ? -> ؟' }
]
},
{
description: 'Anufo tilde test',
inputmethod: 'cko-tilde',
tests: [
{ input: '~E~e~M~m~N~n~O~oa~{i~/e~\\', output: 'ƐɛⱮɱŊŋƆɔãíè', description: 'Anufo tilde' }
]
},
{
description: 'Chuvash (AltGr) with jcuken',
inputmethod: 'cv-cyr-altgr',
Expand Down

0 comments on commit ea14671

Please sign in to comment.