Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Duala Tilde keyboard #786

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions rules/dua/dua-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
( function ( $ ) {
'use strict';

var duaTilde = {
id: 'dua-tilde',
name: 'Duala tilde',
description: 'Duala tilde keyboard',
date: '2024-08-09',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
maxKeyLength: 2,
patterns: [
[ '~B', 'Ɓ' ],
[ '~b', 'ɓ' ],
[ '~D', 'Ɗ' ],
[ '~d', 'ɗ' ],
[ '~E', 'Ɛ' ],
[ '~e', 'ɛ' ],
[ '~N', 'Ŋ' ],
[ '~n', 'ŋ' ],
[ '~j', 'ɲ' ],
[ '~J', 'Ɲ' ],
[ '~O', 'Ɔ' ],
[ '~o', 'ɔ' ],
[ '~\\\\', '\u0300' ], // Combining grave accent
[ '~/', '\u0301' ], // Combining acute accent
[ '~\\^', '\u0302' ], // Combining circumflex accent
[ '~v', '\u030C' ] // Combining caron
]
};

$.ime.register( duaTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@
name: 'इनस्क्रिप्ट २',
source: 'rules/doi/doi-inscript2.js'
},
'dua-tilde': {
name: 'Duala tilde keyboard',
source: 'rules/dua/dua-tilde.js'
},
'ee-tilde': {
name: 'Ewe Tilde',
source: 'rules/ee/ee-tilde.js'
Expand Down Expand Up @@ -1182,6 +1186,10 @@
autonym: 'डोगरी',
inputmethods: [ 'doi-inscript2' ]
},
dua: {
autonym: 'Duálá',
inputmethods: [ 'dua-tilde' ]
},
en: {
autonym: 'English',
inputmethods: [ 'ipa-sil', 'ipa-x-sampa' ]
Expand Down
21 changes: 21 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,27 @@ var palochkaVariants = {
{ input: '/', output: 'य', description: 'Dogri InScript 2 /' }
]
},
{
description: 'Duala tilde input method test',
inputmethod: 'dua-tilde',
tests: [
{ input: '~b', output: 'ɓ', description: 'Duala tilde ~b' },
{ input: '~B', output: 'Ɓ', description: 'Duala tilde ~B' },
{ input: '~d', output: 'ɗ', description: 'Duala tilde ~d' },
{ input: '~D', output: 'Ɗ', description: 'Duala tilde ~D' },
{ input: '~e', output: 'ɛ', description: 'Duala tilde ~e' },
{ input: '~E', output: 'Ɛ', description: 'Duala tilde ~E' },
{ input: '~n', output: 'ŋ', description: 'Duala tilde ~n' },
{ input: '~N', output: 'Ŋ', description: 'Duala tilde ~N' },
{ input: '~j', output: 'ɲ', description: 'Duala tilde ~j' },
{ input: '~J', output: 'Ɲ', description: 'Duala tilde ~J' },
{ input: '~O', output: 'Ɔ', description: 'Duala tilde ~O' },
{ input: '~o', output: 'ɔ', description: 'Duala tilde ~o' },
{ input: 'Dua~/la~/', output: 'Duálá', description: 'Duala tilde Duálá' },
{ input: 'mule~vdi', output: 'mulědi', description: 'Duala tilde mulědi' },
{ input: 'a~\\o~^', output: 'àô', description: 'Duala tilde àô' },
]
},
{
description: 'Ewe tilde test',
inputmethod: 'ee-tilde',
Expand Down
Loading