Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
26 changes: 26 additions & 0 deletions rules/kix/kix-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
( function ( $ ) {
'use strict';

var kixTilde = {
id: 'kix-tilde',
name: 'Khiamniungan tilde',
description: 'Khiamniungan Naga input keyboard',
date: '2026-07-22',
URL: 'https://github.com/wikimedia/jquery.ime',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation link needs to be added.

author: 'Toluwanimi Ayodele',
license: 'GPLv3',
version: '1.0',
maxKeyLength: 3,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be 2 given this is the length of largest regex sequence in the patterns.

patterns: [
[ '~u', 'ü' ], // U+00FC

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like the comments are column aligned. Rest of the repo doesn't follow this convention.

[ '~U', 'Ü' ], // U+00DC
[ '~\\\\', '\u0300' ], // grave
[ '~-', '\u0304' ], // macron
[ '~\\^', '\u0302' ], // circumflex
[ '~/', '\u0301' ] // acute
]
};

$.ime.register( kixTilde );
}( jQuery ) );

8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@
name: 'Gĩkũyũ',
source: 'rules/ki/ki-tilde.js'
},
'kix-tilde': {
name: 'Khiamniungan tilde',
source: 'rules/kix/kix-tilde.js'
},
'kk-arabic': {
name: 'Kazakh Arabic transliteration',
source: 'rules/kk/kk-arabic.js'
Expand Down Expand Up @@ -1526,6 +1530,10 @@
autonym: 'Gĩkũyũ',
inputmethods: [ 'ki-tilde' ]
},
kix: {
autonym: 'Khiamniungan',
inputmethods: [ 'kix-tilde' ]
},
kk: {
autonym: 'Қазақша',
inputmethods: [ 'kk-kbd', 'kk-arabic' ]
Expand Down
47 changes: 47 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -4221,6 +4221,53 @@ var palochkaVariants = {
{ input: 'd~ha', output: 'ದ್ಹ', description: 'd~ha for ದ್ಹ in Kannada transliteration' }
]
},
{
description: 'Khiamniungan Naga tilde test',
inputmethod: 'kix-tilde',
tests: [
// Group 1: a, e, i × 4 tones (unchanged – passes)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixture style here diverges from the rest of the file. We can add input, output and description in single lines and then remove all the comments from this file. You could try adding two more test cases - capital tone-marked vowels (A~\E~-I~^O~/U~\ → ÀĒÎÓÙ) and a real word (h~u~-he~^i → hǖhêi).

{
input: 'a~\\a~-a~^a~/e~\\e~-e~^e~/i~\\i~-i~^i~/',
output: 'àāâáèēêéìīîí',
description: 'a/e/i × 4 tones'
},

// Group 2: o, u × 4 tones (unchanged – passes)
{
input: 'o~\\o~-o~^o~/u~\\u~-u~^u~/',
output: 'òōôóùūûú',
description: 'o/u × 4 tones'
},

// Group 3: ü × 4 tones – actual output uses precomposed ü (U+00FC) + tone mark
{
input: '~u~\\~u~-~u~^~u~/',
output: 'ǜǖü̂ǘ', // U+00FC + combining grave/macron/circumflex/acute
description: 'ü × 4 tones'
},

// Group 4: Ü × 4 tones – actual output uses precomposed Ü (U+00DC) + tone mark
{
input: '~U~\\~U~-~U~^~U~/',
output: 'ǛǕÜ̂Ǘ', // U+00DC + combining marks
description: 'Ü × 4 tones'
},

// Group 5: mixed tones with spaces – actual output uses precomposed ü for diaeresis
{
input: '~u~- a~/ e~^ i~\\ o~-',
output: 'ǖ á ê ì ō', // ǖ = U+00FC + U+0304; ì = i + U+0300
description: 'mixed tones with spaces'
},

// Group 6: edge cases (unchanged)
{
input: '~~ ~ ~x ~',
output: '~~ ~ ~x ~',
description: 'double tilde, tilde space, tilde+x'
}
]
},
{
description: 'Korean RR test',
inputmethod: 'ko-rr',
Expand Down
Loading