Skip to content

Commit

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

var jacTilde = {
id: 'jac-tilde',
name: 'jac-tilde',
description: 'Jakaltek input keyboard',
date: '2024-07-03',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~\'', 'ꞌ' ], // Saltillo
[ '~n', 'n̈' ],
[ '~N', 'N̈' ],
[ '~x', 'ẍ' ],
[ '~X', 'Ẍ' ]
]
};

$.ime.register( jacTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@
name: 'Esan Awain tilde',
source: 'rules/ish/ish-tilde.js'
},
'jac-tilde': {
name: 'Jakaltek tilde',
source: 'rules/jac/jac-tilde.js'
},
'jv-transliteration': {
name: 'Transliteration',
source: 'rules/jv/jv-transliteration.js'
Expand Down Expand Up @@ -1294,6 +1298,10 @@
autonym: 'awain',
inputmethods: [ 'ish-tilde' ]
},
jac: {
autonym: 'Abꞌxubꞌal Poptiꞌ',
inputmethods: [ 'jac-tilde' ]
},
jv: {
autonym: 'ꦧꦱꦗꦮ (Basa Jawa)',
inputmethods: [ 'jv-transliteration', 'jv-keyboard' ]
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 @@ -2805,6 +2805,13 @@ var palochkaVariants = {
{ input: '~o', output: 'ọ', description: 'Esan Awain tilde ~o -> ọ' }
]
},
{
description: 'Jakaltek tilde test',
inputmethod: 'jac-tilde',
tests: [
{ input: "~'~n~N~x~X", output: 'ꞌn̈N̈ẍẌ', description: 'Jakaltek tilde ꞌn̈N̈ẍẌ' }
]
},
{
description: 'Javanese transliteration test',
inputmethod: 'jv-transliteration',
Expand Down

0 comments on commit 9a41333

Please sign in to comment.