Skip to content

Commit

Permalink
Add Nias tilde keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed Jan 15, 2021
1 parent cd027cc commit 4fe3529
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rules/nia/nia-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
( function ( $ ) {
'use strict';

var niaTilde = {
id: 'nia-tilde',
name: 'nia-tilde',
description: 'Nias tilde keyboard',
date: '2021-01-13',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1',
patterns: [
[ '~O', 'Ö' ],
[ '~o', 'ö' ],
[ '~W', 'Ŵ' ],
[ '~w', 'ŵ' ]
]
};

$.ime.register( niaTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@
name: 'ट्रांस्लितेरेशन',
source: 'rules/ne/ne-transliteration.js'
},
'nia-tilde': {
name: 'Li Niha tilde',
source: 'rules/nia/nia-tilde.js'
},
'nqo-standard-qwerty': {
name: "N'Ko standard QWERTY",
source: 'rules/nqo/nqo-standard-qwerty.js'
Expand Down Expand Up @@ -1214,6 +1218,10 @@
autonym: 'नेपाल भाषा',
inputmethods: [ 'hi-transliteration', 'hi-inscript' ]
},
nia: {
autonym: 'li niha',
inputmethods: [ 'nia-tilde' ]
},
nn: {
autonym: 'Norsk (nynorsk)',
inputmethods: [ 'nb-normforms', 'nb-tildeforms' ]
Expand Down
10 changes: 10 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -3757,6 +3757,16 @@ var palochkaVariants = {
{ input: '~~', output: '~', description: "N'Ko transliteration ~~" }
]
},
{
description: 'Nias tilde test',
inputmethod: 'nia-tilde',
tests: [
{ input: '~O moroi', output: 'Ö moroi', description: 'Nias tilde Ö moroi' },
{ input: 'Sanandr~osa', output: 'Sanandrösa', description: 'Nias tilde Sanandrösa' },
{ input: 'MIYA~WA', output: 'MIYAŴA', description: 'Nias tilde MIYAŴA' },
{ input: 'zali~wa-li~wa', output: 'zaliŵa-liŵa', description: 'Nias tilde zaliŵa-liŵa' }
]
},
{
description: 'Northern Sotho tilde test',
inputmethod: 'nso-tilde',
Expand Down

0 comments on commit 4fe3529

Please sign in to comment.