Skip to content

Commit

Permalink
Add North Straits Salish (Saanich) SENĆOŦEN Keyboard (#819)
Browse files Browse the repository at this point in the history
* Initial Sencoten keyboard and tests

* Add comma, more tests

---------

Co-authored-by: Anne Drew Hu <[email protected]>
Co-authored-by: SrishAkaTux <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 7c496e7 commit b170943
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
46 changes: 46 additions & 0 deletions rules/str/str-sencoten.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
( function ( $ ) {
'use strict';

var strSencoten = {
id: 'str-sencoten',
name: 'SENĆOŦEN Keyboard',
description: 'Saanich SENĆOŦEN Keyboard',
date: '2024-11-23',
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Anne Drew Hu',
license: 'MIT',
version: '1.0',
maxKeyLength: 4,
patterns: [
[ 'S', 's' ],
[ '([a-z])', function ( $1 ) {
return $1.toUpperCase();
} ],
[ 'A\'', 'Á' ],
[ 'A/', 'Ⱥ' ],
[ 'C\'', 'Ć' ],
[ 'C/', 'Ȼ' ],
[ 'I\'', 'Í' ],
[ ',', '¸' ],
[ '<', ','],
[ 'K-', '₭' ],
[ 'K_', 'Ḵ' ],
[ 'K;', 'Ḵ' ],
[ 'K\'', 'Ḱ' ],
[ 'L-', 'Ƚ' ],
[ 'N_', 'Ṉ' ],
[ 'N;', 'Ṉ' ],
[ 'S\'', 'Ś' ],
[ 'T/', 'Ⱦ' ],
[ 'T_', 'Ṯ' ],
[ 'T;', 'Ṯ' ],
[ 'T-', 'Ŧ' ],
[ 'W_', 'W̱' ],
[ 'W;', 'W̱' ],
[ 'X;', 'X̱' ],
[ 'X_', 'X̱' ],
]
};

$.ime.register( strSencoten );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,10 @@
name: 'Sesotho tilde',
source: 'rules/st/st-tilde.js'
},
'str-sencoten': {
name: 'SENĆOŦEN keyboard',
source: 'rules/str/str-sencoten.js'
},
'su-keyboard': {
name: 'Sundanese keyboard',
source: 'rules/su/su-keyboard.js'
Expand Down Expand Up @@ -1782,6 +1786,10 @@
autonym: 'Sesotho',
inputmethods: [ 'st-tilde' ]
},
str: {
autonym: 'SENĆOŦEN',
inputmethods: [ 'str-sencoten' ]
},
su: {
autonym: 'Sunda',
inputmethods: [ 'su-keyboard' ]
Expand Down
20 changes: 20 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -6196,6 +6196,26 @@ var palochkaVariants = {
{ input: 'ro~-na', output: 'rōna', description: 'Sotho tilde rōna' }
]
},
{
description: 'Straits Salish (Saanich) SENĆOŦEN test',
inputmethod: 'str-sencoten',
tests: [
{ input: "senc'ot-en", output: 'SENĆOŦEN', description: 'Straits Salish SENĆOŦEN' },
{ input: "pet/en_eu,ec'", output: 'PEȾEṈEU¸EĆ', description: 'Straits Salish PEȾEṈEU¸EĆ' },
{ input: "sda/y,es", output: 'SDȺY¸ES', description: 'Straits Salish SDȺY¸ES' },
{ input: "ta'nS", output: 'TÁNs', description: 'Straits Salish TÁNs' },
{ input: "qa'sset", output: 'QÁSSET', description: 'Straights Salish QÁSSET' },
{ input: "qa',les sc/a'c'el", output: 'QÁ¸LES SȻÁĆEL', description: 'Straights Salish SȻÁĆEL' },
{ input: "qi'yec'en", output: 'QÍYEĆEN', description: 'Straights Salish QÍYEĆEN' },
{ input: "sa',i'eu", output: 'SÁ¸ÍEU', description: 'Straights Salish SÁ¸ÍEU' },
{ input: "s,i'e,", output: 'S¸ÍE¸', description: 'Straights Salish S¸ÍE¸' },
{ input: "sk-ek'c'es", output: 'S₭EḰĆES', description: 'Straights Salish S₭EḰĆES' },
{ input: "sk_a'keten;", output: 'SḴÁKETEṈ', description: 'Straights Salish SḴÁKETEṈ' },
{ input: "l-a'u<weln;ew;", output: 'ȽÁU,WELṈEW̱', description: 'Straights Salish WELṈEW̱' },
{ input: "c/ec/ot;s'en", output: 'ȻEȻOṮŚEN', description: 'Straights Salish ȻEȻOṮŚEN' },
{ input: "ec'ex;el", output: 'EĆEX̱EL', description: 'Straights Salish EĆEX̱EL' },
]
},
{
description: 'Sundanese keyboard test',
inputmethod: 'su-keyboard',
Expand Down

0 comments on commit b170943

Please sign in to comment.