From c1667dad197fdb733d4c6a9cf3e64e75079aeb5d Mon Sep 17 00:00:00 2001 From: ToluAyo Date: Wed, 7 Jan 2026 10:55:52 -0500 Subject: [PATCH 1/2] Fix Shughni keyboard --- rules/sgh/sgh-tilde.js | 41 ++++++++++++++++---------------- test/jquery.ime.test.fixtures.js | 10 ++++---- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/rules/sgh/sgh-tilde.js b/rules/sgh/sgh-tilde.js index 0eeb42cb..9dc87011 100644 --- a/rules/sgh/sgh-tilde.js +++ b/rules/sgh/sgh-tilde.js @@ -15,32 +15,31 @@ [ '~a', 'ā' ], [ '~C', 'Č' ], [ '~c', 'č' ], - [ '~Z', 'Ʒ' ], - [ '~z', 'ʒ' ], - [ '~D', 'Đ' ], - [ '~d', 'đ' ], - [ '~e', 'ē' ], [ '~E', 'Ê' ], - [ '~3', 'ê' ], - [ '~G', 'Ğ' ], - [ '~h', 'ğ' ], - [ '~H', 'H²' ], - [ '~2', 'h²' ], + [ '~e', 'ê' ], + [ '~G', 'Ɣ' ], + [ '~g', 'ɣ' ], + [ '~H', 'Ɣ̌' ], + [ '~h', 'ɣ̌' ], + [ '~I', 'Ī' ], + [ '~i', 'ī' ], + [ '~J', 'J̌' ], + [ '~j', 'ǰ' ], + [ '~T', 'Θ' ], + [ '~t', 'θ' ], [ '~S', 'Š' ], [ '~s', 'š' ], - [ '~T', 'Þ' ], - [ '~t', 'þ' ], [ '~U', 'Ů' ], [ '~u', 'ů' ], - [ '~X', 'Ẋ' ], - [ '~x', 'ẋ' ], - [ '~V', 'Ž' ], - [ '~v', 'ž' ], - [ '~Y', 'Ġ' ], - [ '~y', 'ġ' ], - [ '~_', '\u0331' ], - [ '~B', 'A̱' ], - [ '~b', 'a̱' ] + [ '~V', 'Ū' ], + [ '~v', 'ū' ], + [ '~X', 'X̌' ], + [ '~x', 'x̌' ], + [ '~Z', 'Ž' ], + [ '~z', 'ž' ], + [ '~M', 'Ʒ' ], + [ '~m', 'ʒ' ], + [ '~\\-', '\u0304' ] // Combining macron ] }; diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index 1ff96e81..2d2a9765 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -21226,11 +21226,11 @@ var palochkaVariants = { description: 'Shughni tilde test', inputmethod: 'sgh-tilde', tests: [ - { input: '~A~a~C~c~Z~z~D~d', output: 'ĀāČčƷʒĐđ', description: 'Shughni tilde test ĀāČčƷʒĐđ' }, - { input: '~e~E~3~G~h', output: 'ēÊêĞğ', description: 'Shughni tilde test ēÊêĞğ' }, - { input: '~Y~y~H~2', output: 'ĠġH²h²', description: 'Shughni tilde test ĠġH²h²' }, - { input: '~S~s~T~t~U~u~X~x', output: 'ŠšÞþŮůẊẋ', description: 'Shughni tilde test ŠšÞþŮůẊẋ' }, - { input: '~V~v~B~b', output: 'ŽžA̱a̱', description: 'Shughni tilde test ŽžA̱a̱' } + { input: '~A~a~C~c~E~e~G~g', output: 'ĀāČčÊêƔɣ', description: 'Shughni tilde test ĀāČčÊêƔɣ' }, + { input: '~H~h~I~i~J~j~T~t', output: 'Ɣ̌ɣ̌ĪīJ̌ǰΘθ', description: 'Shughni tilde test Ɣ̌ɣ̌ĪīJ̌ǰΘθ' }, + { input: '~S~s~U~u~V~v~X~x', output: 'ŠšŮůŪūX̌x̌', description: 'Shughni tilde test ŠšŮůŪūẊẋ' }, + { input: '~Z~z~M~me~-', output: 'ŽžƷʒē', description: 'Shughni tilde test ŽžƷʒē' }, + { input: 're~-al', output: 'rēal', description: 'Shughni tilde test rēal' } ] }, { From 164aa3c6f61066ebe51dde0dec915e8ed1530b1a Mon Sep 17 00:00:00 2001 From: ToluAyo Date: Wed, 7 Jan 2026 10:55:52 -0500 Subject: [PATCH 2/2] Fix Shughni keyboard --- rules/sgh/sgh-tilde.js | 8 +++++--- test/jquery.ime.test.fixtures.js | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/rules/sgh/sgh-tilde.js b/rules/sgh/sgh-tilde.js index 9dc87011..e5c4d816 100644 --- a/rules/sgh/sgh-tilde.js +++ b/rules/sgh/sgh-tilde.js @@ -15,6 +15,8 @@ [ '~a', 'ā' ], [ '~C', 'Č' ], [ '~c', 'č' ], + [ '~D', 'Δ' ], + [ '~d', 'δ' ], [ '~E', 'Ê' ], [ '~e', 'ê' ], [ '~G', 'Ɣ' ], @@ -25,10 +27,10 @@ [ '~i', 'ī' ], [ '~J', 'J̌' ], [ '~j', 'ǰ' ], - [ '~T', 'Θ' ], - [ '~t', 'θ' ], [ '~S', 'Š' ], [ '~s', 'š' ], + [ '~T', 'Θ' ], + [ '~t', 'θ' ], [ '~U', 'Ů' ], [ '~u', 'ů' ], [ '~V', 'Ū' ], @@ -39,7 +41,7 @@ [ '~z', 'ž' ], [ '~M', 'Ʒ' ], [ '~m', 'ʒ' ], - [ '~\\-', '\u0304' ] // Combining macron + [ '~-', '\u0304' ] // Combining macron ] }; diff --git a/test/jquery.ime.test.fixtures.js b/test/jquery.ime.test.fixtures.js index 5a6c7ef5..c4a20324 100644 --- a/test/jquery.ime.test.fixtures.js +++ b/test/jquery.ime.test.fixtures.js @@ -21226,10 +21226,10 @@ var palochkaVariants = { description: 'Shughni tilde test', inputmethod: 'sgh-tilde', tests: [ - { input: '~A~a~C~c~E~e~G~g', output: 'ĀāČčÊêƔɣ', description: 'Shughni tilde test ĀāČčÊêƔɣ' }, - { input: '~H~h~I~i~J~j~T~t', output: 'Ɣ̌ɣ̌ĪīJ̌ǰΘθ', description: 'Shughni tilde test Ɣ̌ɣ̌ĪīJ̌ǰΘθ' }, - { input: '~S~s~U~u~V~v~X~x', output: 'ŠšŮůŪūX̌x̌', description: 'Shughni tilde test ŠšŮůŪūẊẋ' }, - { input: '~Z~z~M~me~-', output: 'ŽžƷʒē', description: 'Shughni tilde test ŽžƷʒē' }, + { input: '~A~a~C~c~D~d~E~e~G~g', output: 'ĀāČčΔδÊêƔɣ', description: 'Shughni tilde test ĀāČčΔδÊêƔɣ' }, + { input: '~H~h~I~i~J~j~S~s', output: 'Ɣ̌ɣ̌ĪīJ̌ǰŠš', description: 'Shughni tilde test Ɣ̌ɣ̌ĪīJ̌ǰŠš' }, + { input: '~T~t~U~u~V~v~X~x', output: 'ΘθŮůŪūX̌x̌', description: 'Shughni tilde test ΘθŮůŪūẊẋ' }, + { input: '~Z~z~M~m', output: 'ŽžƷʒ', description: 'Shughni tilde test ŽžƷʒ' }, { input: 're~-al', output: 'rēal', description: 'Shughni tilde test rēal' } ] },