-
Notifications
You must be signed in to change notification settings - Fork 180
Add keyboard support for Khiamniungan Naga (kix) #858
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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', | ||
| author: 'Toluwanimi Ayodele', | ||
| license: 'GPLv3', | ||
| version: '1.0', | ||
| maxKeyLength: 3, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ) ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 - |
||
| { | ||
| 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', | ||
|
|
||
There was a problem hiding this comment.
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.