Skip to content
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

Add North Straits Salish (Saanich) SENĆOŦEN Keyboard #819

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading