Skip to content

Commit

Permalink
Add Kikuyu tilde keyboard (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed Mar 27, 2019
1 parent 9124dc0 commit 4cfcad5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rules/ki/ki-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
( function ( $ ) {
'use strict';

var kiTilde = {
id: 'ki-tilde',
name: 'ki-tilde',
description: 'Kikuyu input keyboard - tilde',
date: '2019-01-22',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~I', 'Ĩ' ],
[ '~i', 'ĩ' ],
[ '~U', 'Ũ' ],
[ '~u', 'ũ' ]
]
};

$.ime.register( kiTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@
name: 'ტრანსლიტერაცია',
source: 'rules/ka/ka-transliteration.js'
},
'ki-tilde': {
name: 'Gĩkũyũ',
source: 'rules/ki/ki-tilde.js'
},
'kk-arabic': {
name: 'Kazakh Arabic transliteration',
source: 'rules/kk/kk-arabic.js'
Expand Down Expand Up @@ -982,6 +986,10 @@
autonym: 'адыгэбзэ (къэбэрдеибзэ)',
inputmethods: [ 'cyrl-palochka' ]
},
ki: {
autonym: 'Gĩkũyũ',
inputmethods: [ 'ki-tilde' ]
},
kk: {
autonym: 'Қазақша',
inputmethods: [ 'kk-kbd', 'kk-arabic' ]
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 @@ -593,6 +593,13 @@ var palochkaVariants = {
{ input: 'WRTSJZC`~', output: 'ჭღთშჟძჩ„“', description: 'WRTSJZC`~ in Georgian' }
],
inputmethod: 'ka-transliteration'
},{
description: 'Kikuyu tilde test',
tests: [
{ input: 'Ng~ug~i wa Thiong\'o', output: 'Ngũgĩ wa Thiong\'o', description: 'Kikuyu Ngũgĩ wa Thiong\'o' },
{ input: 'NG~UG~I', output: 'NGŨGĨ', description: 'Kikuyu NGŨGĨ' }
],
inputmethod: 'ki-tilde'
},{
description: 'Hausa tilde test',
tests: [
Expand Down

0 comments on commit 4cfcad5

Please sign in to comment.