Skip to content

Commit

Permalink
Add Likpakpaanl tilde (#822)
Browse files Browse the repository at this point in the history
* Add Likpakpaanl tilde

Downstream task:
https://phabricator.wikimedia.org/T380246

* Fix test
  • Loading branch information
amire80 authored Jan 15, 2025
1 parent bde148f commit 1b42750
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
23 changes: 23 additions & 0 deletions rules/xon/xon-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
( function ( $ ) {
'use strict';

var xonTilde = {
id: 'xon-tilde',
name: 'Likpakpaanl tilde',
description: 'Likpakpaanl tilde',
date: '2025-01-13',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
maxKeyLength: 2,
patterns: [
[ '~N', 'Ŋ' ],
[ '~n', 'ŋ' ],
[ '~O', 'Ɔ' ],
[ '~o', 'ɔ' ]
]
};

$.ime.register( xonTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,10 @@
name: 'Wolof tilde',
source: 'rules/wo/wo-tilde.js'
},
'xon-tilde': {
name: 'Likpakpaanl tilde',
source: 'rules/xon/xon-tilde.js'
},
'yo-alt': {
name: 'Yorùbá Alt',
source: 'rules/yo/yo-alt.js'
Expand Down Expand Up @@ -1882,6 +1886,10 @@
autonym: 'Wolof',
inputmethods: [ 'wo-alt', 'wo-tilde' ]
},
xon: {
autonym: 'Likpakpaanl',
inputmethods: [ 'xon-tilde' ]
},
yo: {
autonym: 'Yorùbá',
inputmethods: [ 'yo-alt', 'yo-tilde' ]
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 @@ -7139,6 +7139,13 @@ var palochkaVariants = {
{ input: '~G', output: 'Ŋ', description: 'Wolof tilde ~G' }
]
},
{
description: 'Likpakpaanl tilde test',
inputmethod: 'xon-tilde',
tests: [
{ input: '~N~n~O~o', output: 'ŊŋƆɔ', description: 'Likpakpaanl tilde ŊŋƆɔ' }
]
},
{
description: 'Yoruba yo-alt input method test',
inputmethod: 'yo-alt',
Expand Down

0 comments on commit 1b42750

Please sign in to comment.