Skip to content

Commit 5385e71

Browse files
author
ToluAyo
committed
Add keyboard support for Shughni (sgh)
Phabricator task: https://phabricator.wikimedia.org/T409846
1 parent 2c8cfba commit 5385e71

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

rules/sgh/sgh-tilde.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
( function ( $ ) {
2+
'use strict';
3+
4+
var sghTilde = {
5+
id: 'sgh-tilde',
6+
name: 'Shughni tilde',
7+
description: 'Shughni input keyboard',
8+
date: '2025-11-29',
9+
URL: 'https://github.com/wikimedia/jquery.ime',
10+
author: 'Toluwanimi Ayodele',
11+
license: 'GPLv3',
12+
version: '1.0',
13+
patterns: [
14+
[ '~A', 'Ā' ],
15+
[ '~a', 'ā' ],
16+
[ '~C', 'Č' ],
17+
[ '~c', 'č' ],
18+
[ '~Z', 'Ʒ' ],
19+
[ '~z', 'ʒ' ],
20+
[ '~D', 'Đ' ],
21+
[ '~d', 'đ' ],
22+
[ '~e', 'ē' ],
23+
[ '~E', 'Ê' ],
24+
[ '~3', 'ê' ],
25+
[ '~G', 'Ğ' ],
26+
[ '~h', 'ğ' ],
27+
[ '~H', 'H²' ],
28+
[ '~2', 'h²' ],
29+
[ '~S', 'Š' ],
30+
[ '~s', 'š' ],
31+
[ '~T', 'Þ' ],
32+
[ '~t', 'þ' ],
33+
[ '~U', 'Ů' ],
34+
[ '~u', 'ů' ],
35+
[ '~X', 'Ẋ' ],
36+
[ '~x', 'ẋ' ],
37+
[ '~V', 'Ž' ],
38+
[ '~v', 'ž' ],
39+
[ '~Y', 'Ġ' ],
40+
[ '~y', 'ġ' ],
41+
[ '~_', '\u0331' ],
42+
[ '~B', 'A̱' ],
43+
[ '~b', 'a̱' ]
44+
]
45+
};
46+
47+
$.ime.register( sghTilde );
48+
}( jQuery ) );

src/jquery.ime.inputmethods.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,10 @@
930930
name: 'Sängö',
931931
source: 'rules/sg/sg-tilde.js'
932932
},
933+
'sgh-tilde': {
934+
name: 'xuɣ̌nůni',
935+
source: 'rules/sgh/sgh-tilde.js'
936+
},
933937
'shn-standard': {
934938
name: 'တႆး',
935939
source: 'rules/shn/shn-standard.js'
@@ -1782,6 +1786,10 @@
17821786
autonym: 'Sängö',
17831787
inputmethods: [ 'sg-tilde' ]
17841788
},
1789+
sgh: {
1790+
autonym: 'xuɣ̌nůni',
1791+
inputmethods: [ 'sgh-tilde' ]
1792+
},
17851793
shi: {
17861794
autonym: 'ⵜⴰⵛⵍⵃⵉⵜ',
17871795
inputmethods: [ 'ber-tfng' ]

test/jquery.ime.test.fixtures.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21222,6 +21222,17 @@ var palochkaVariants = {
2122221222
{ input: 'Mbre~\\s', output: 'Mbrès', description: 'Sängö tilde test Mbrès' }
2122321223
]
2122421224
},
21225+
{
21226+
description: 'Shughni tilde test',
21227+
inputmethod: 'sgh-tilde',
21228+
tests: [
21229+
{ input: '~A~a~C~c~Z~z~D~d', output: 'ĀāČčƷʒĐđ', description: 'Shughni tilde test ĀāČčƷʒĐđ' },
21230+
{ input: '~e~E~3~G~h', output: 'ēÊêĞğ', description: 'Shughni tilde test ēÊêĞğ' },
21231+
{ input: '~Y~y~H~2', output: 'ĠġH²h²', description: 'Shughni tilde test ĠġH²h²' },
21232+
{ input: '~S~s~T~t~U~u~X~x', output: 'ŠšÞþŮůẊẋ', description: 'Shughni tilde test ŠšÞþŮůẊẋ' },
21233+
{ input: '~V~v~B~b', output: 'ŽžA̱a̱', description: 'Shughni tilde test ŽžA̱a̱' }
21234+
]
21235+
},
2122521236
{
2122621237
description: 'Shan Keyboard Test',
2122721238
inputmethod: 'shn-standard',

0 commit comments

Comments
 (0)