Skip to content

Commit

Permalink
add silesian szl tilde keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlud123 authored and amire80 committed Aug 28, 2024
1 parent 596391d commit a16ddfd
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
39 changes: 39 additions & 0 deletions rules/szl/szl-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
( function ( $ ) {
'use strict';

var szlTilde = {
id: 'szl-tilde',
name: 'Silesian tilde',
description: 'Silesian alphabets specific keyboard',
date: '2024-08-19',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Tomasz Ludyga',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~1', 'ō' ],
[ '~2', 'ô' ],
[ '~3', 'ŏ' ],
[ '~4', 'õ' ],
[ '~5', 'ã' ],
[ '~6', 'Ô' ],
[ '~7', 'Ō' ],
[ '~u', 'ů' ],
[ '~s', 'ś' ],
[ '~l', 'ł' ],
[ '~z', 'ż' ],
[ '~x', 'ź' ],
[ '~c', 'ć' ],
[ '~n', 'ń' ],
[ '~U', 'Ů' ],
[ '~S', 'Ś' ],
[ '~L', 'Ł' ],
[ '~Z', 'Ż' ],
[ '~X', 'Ź' ],
[ '~C', 'Ć' ],
[ '~N', 'Ń' ],
]
};

$.ime.register( szlTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@
name: 'Normal forms',
source: 'rules/sv/sv-normforms.js'
},
'szl-tilde': {
name: 'Silesian tilde',
source: 'rules/szl/szl-tilde.js'
},
'ta-99': {
name: 'தமிழ்99',
source: 'rules/ta/ta-99.js'
Expand Down Expand Up @@ -1582,6 +1586,10 @@
autonym: 'Svenska',
inputmethods: [ 'sv-normforms' ]
},
szl: {
autonym: 'Ślōnskŏ',
inputmethods: [ 'szl-tilde' ]
},
ta: {
autonym: 'தமிழ்',
inputmethods: [ 'ta-transliteration', 'ta-99', 'ta-inscript', 'ta-bamini', 'ta-inscript2' ]
Expand Down
9 changes: 9 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -5645,6 +5645,15 @@ var palochkaVariants = {
{ input: '@^&*()-_=+<>/?', output: '"&/()=\'?+*;:-_', description: 'Serbian keyboard "&/()=\'?+*;:-_' }
]
},
{
description: 'Silesian keyboard test',
inputmethod: 'szl-tilde',
tests: [
{ input: '~u~U~1~2~3~4~5~6~7', output: 'ůŮōôŏõãÔŌ', description: 'Silesian specific letters' },
{ input: '~s~l~z~x~c~n~S~L~Z~X~C~N', output: 'śłżźćńŚŁŻŹĆŃ', description: 'Uncommon letters' },
{ input: 'Dziyń dobry w~1m!', output: 'Dziyń dobry wōm!', description: 'Pratical use case example' }
]
},
{
description: 'Tamil 99 test',
inputmethod: 'ta-99',
Expand Down

0 comments on commit a16ddfd

Please sign in to comment.