Skip to content

Commit b170943

Browse files
andauthored
Add North Straits Salish (Saanich) SENĆOŦEN Keyboard (#819)
* Initial Sencoten keyboard and tests * Add comma, more tests --------- Co-authored-by: Anne Drew Hu <48420747+hu-a@users.noreply.github.com> Co-authored-by: SrishAkaTux <ssethi@wikimedia.org>
1 parent 7c496e7 commit b170943

File tree

Image for: File tree

3 files changed

Image for: 3 files changed
+74
-0
lines changed

3 files changed

Image for: 3 files changed
+74
-0
lines changed

‎rules/str/str-sencoten.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
( function ( $ ) {
2+
'use strict';
3+
4+
var strSencoten = {
5+
id: 'str-sencoten',
6+
name: 'SENĆOŦEN Keyboard',
7+
description: 'Saanich SENĆOŦEN Keyboard',
8+
date: '2024-11-23',
9+
URL: 'http://github.com/wikimedia/jquery.ime',
10+
author: 'Anne Drew Hu',
11+
license: 'MIT',
12+
version: '1.0',
13+
maxKeyLength: 4,
14+
patterns: [
15+
[ 'S', 's' ],
16+
[ '([a-z])', function ( $1 ) {
17+
return $1.toUpperCase();
18+
} ],
19+
[ 'A\'', 'Á' ],
20+
[ 'A/', 'Ⱥ' ],
21+
[ 'C\'', 'Ć' ],
22+
[ 'C/', 'Ȼ' ],
23+
[ 'I\'', 'Í' ],
24+
[ ',', '¸' ],
25+
[ '<', ','],
26+
[ 'K-', '₭' ],
27+
[ 'K_', 'Ḵ' ],
28+
[ 'K;', 'Ḵ' ],
29+
[ 'K\'', 'Ḱ' ],
30+
[ 'L-', 'Ƚ' ],
31+
[ 'N_', 'Ṉ' ],
32+
[ 'N;', 'Ṉ' ],
33+
[ 'S\'', 'Ś' ],
34+
[ 'T/', 'Ⱦ' ],
35+
[ 'T_', 'Ṯ' ],
36+
[ 'T;', 'Ṯ' ],
37+
[ 'T-', 'Ŧ' ],
38+
[ 'W_', 'W̱' ],
39+
[ 'W;', 'W̱' ],
40+
[ 'X;', 'X̱' ],
41+
[ 'X_', 'X̱' ],
42+
]
43+
};
44+
45+
$.ime.register( strSencoten );
46+
}( jQuery ) );

‎src/jquery.ime.inputmethods.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,10 @@
950950
name: 'Sesotho tilde',
951951
source: 'rules/st/st-tilde.js'
952952
},
953+
'str-sencoten': {
954+
name: 'SENĆOŦEN keyboard',
955+
source: 'rules/str/str-sencoten.js'
956+
},
953957
'su-keyboard': {
954958
name: 'Sundanese keyboard',
955959
source: 'rules/su/su-keyboard.js'
@@ -1782,6 +1786,10 @@
17821786
autonym: 'Sesotho',
17831787
inputmethods: [ 'st-tilde' ]
17841788
},
1789+
str: {
1790+
autonym: 'SENĆOŦEN',
1791+
inputmethods: [ 'str-sencoten' ]
1792+
},
17851793
su: {
17861794
autonym: 'Sunda',
17871795
inputmethods: [ 'su-keyboard' ]

‎test/jquery.ime.test.fixtures.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6196,6 +6196,26 @@ var palochkaVariants = {
61966196
{ input: 'ro~-na', output: 'rōna', description: 'Sotho tilde rōna' }
61976197
]
61986198
},
6199+
{
6200+
description: 'Straits Salish (Saanich) SENĆOŦEN test',
6201+
inputmethod: 'str-sencoten',
6202+
tests: [
6203+
{ input: "senc'ot-en", output: 'SENĆOŦEN', description: 'Straits Salish SENĆOŦEN' },
6204+
{ input: "pet/en_eu,ec'", output: 'PEȾEṈEU¸EĆ', description: 'Straits Salish PEȾEṈEU¸EĆ' },
6205+
{ input: "sda/y,es", output: 'SDȺY¸ES', description: 'Straits Salish SDȺY¸ES' },
6206+
{ input: "ta'nS", output: 'TÁNs', description: 'Straits Salish TÁNs' },
6207+
{ input: "qa'sset", output: 'QÁSSET', description: 'Straights Salish QÁSSET' },
6208+
{ input: "qa',les sc/a'c'el", output: 'QÁ¸LES SȻÁĆEL', description: 'Straights Salish SȻÁĆEL' },
6209+
{ input: "qi'yec'en", output: 'QÍYEĆEN', description: 'Straights Salish QÍYEĆEN' },
6210+
{ input: "sa',i'eu", output: 'SÁ¸ÍEU', description: 'Straights Salish SÁ¸ÍEU' },
6211+
{ input: "s,i'e,", output: 'S¸ÍE¸', description: 'Straights Salish S¸ÍE¸' },
6212+
{ input: "sk-ek'c'es", output: 'S₭EḰĆES', description: 'Straights Salish S₭EḰĆES' },
6213+
{ input: "sk_a'keten;", output: 'SḴÁKETEṈ', description: 'Straights Salish SḴÁKETEṈ' },
6214+
{ input: "l-a'u<weln;ew;", output: 'ȽÁU,WELṈEW̱', description: 'Straights Salish WELṈEW̱' },
6215+
{ input: "c/ec/ot;s'en", output: 'ȻEȻOṮŚEN', description: 'Straights Salish ȻEȻOṮŚEN' },
6216+
{ input: "ec'ex;el", output: 'EĆEX̱EL', description: 'Straights Salish EĆEX̱EL' },
6217+
]
6218+
},
61996219
{
62006220
description: 'Sundanese keyboard test',
62016221
inputmethod: 'su-keyboard',

0 commit comments

Image for: 0 commit comments
Comments
 (0)