Skip to content

Commit

Permalink
Add Waale tilde keyboard
Browse files Browse the repository at this point in the history
Recently added to translatewiki:
https://phabricator.wikimedia.org/T368046
  • Loading branch information
amire80 authored and kartikm committed Jul 3, 2024
1 parent fd23127 commit 28eff33
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions rules/wlx/wlx-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
( function ( $ ) {
'use strict';

var wlxTilde = {
id: 'wlx-tilde',
name: 'Waale tilde',
description: 'Waale tilde',
date: '2024-07-03',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
maxKeyLength: 2,
patterns: [
[ '~E', 'Ɛ' ],
[ '~e', 'ɛ' ],
[ '~N', 'Ŋ' ],
[ '~n', 'ŋ' ],
[ '~O', 'Ɔ' ],
[ '~o', 'ɔ' ]
]
};

$.ime.register( wlxTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,10 @@
name: 'Vèneto',
source: 'rules/vec/vec-GVU.js'
},
'wlx-tilde': {
name: 'Waale tilde',
source: 'rules/wlx/wlx-tilde.js'
},
'wo-alt': {
name: 'Wolof Alt',
source: 'rules/wo/wo-alt.js'
Expand Down Expand Up @@ -1642,6 +1646,10 @@
autonym: 'Vèneto',
inputmethods: [ 'vec-GVU' ]
},
wlx: {
autonym: 'Waale',
inputmethods: [ 'wlx-tilde' ]
},
wo: {
autonym: 'Wolof',
inputmethods: [ 'wo-alt', 'wo-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 @@ -6490,6 +6490,13 @@ var palochkaVariants = {
{ input: 'Ẑh', output: 'Zh', description: 'Venetian Zh' }
]
},
{
description: 'Waale tilde test',
inputmethod: 'wlx-tilde',
tests: [
{ input: '~E~e~N~n~O~o', output: 'ƐɛŊŋƆɔ', description: 'Waale tilde ƐɛŊŋƆɔ' }
]
},
{
description: 'Wolof Alt input method test',
inputmethod: 'wo-alt',
Expand Down

0 comments on commit 28eff33

Please sign in to comment.