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

jv-keyboard (New) #730

Merged
merged 2 commits into from
Jul 21, 2023
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
36 changes: 36 additions & 0 deletions rules/jv/jv-keyboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
( function ( $ ) {
'use strict';

var jvKeyboard = {
id: 'jv-keyboard',
name: 'Jawa Latin extended keyboard',
description: 'Javanese keyboard that include several accented letters',
date: '2023-06-06',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Benny Lin',
license: 'GPLv3',
version: '1',
patterns: [
[ '~E', 'É' ],
[ '~e', 'é' ],
[ '`E', 'È' ],
[ '`e', 'è' ],
[ '\\^E', 'Ê' ],
[ '\\^e', 'ê' ],
[ '\\^A', 'Å' ],
[ '\\^a', 'å' ],
[ '~A', 'Å' ],
[ '~a', 'å' ],
[ '~D', 'Ḍ' ],
[ '~d', 'ḍ' ],
[ '~T', 'Ṭ' ],
[ '~t', 'ṭ' ],
[ '.D', 'Ḍ' ],
[ '.d', 'ḍ' ],
[ '.T', 'Ṭ' ],
[ '.t', 'ṭ' ]
]
};

$.ime.register( jvKeyboard );
}( jQuery ) );
8 changes: 6 additions & 2 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@
name: 'Transliteration',
source: 'rules/jv/jv-transliteration.js'
},
'jv-keyboard': {
name: 'Jawa Latin extended',
source: 'rules/jv/jv-keyboard.js'
},
'ka-kbd': {
name: 'სტანდარტული კლავიატურის',
source: 'rules/ka/ka-kbd.js'
Expand Down Expand Up @@ -1251,8 +1255,8 @@
inputmethods: [ 'ish-tilde' ]
},
jv: {
autonym: 'ꦧꦱꦗꦮ',
inputmethods: [ 'jv-transliteration' ]
autonym: 'ꦧꦱꦗꦮ (Basa Jawa)',
inputmethods: [ 'jv-transliteration', 'jv-keyboard' ]
},
ka: {
autonym: 'ქართული ენა',
Expand Down
14 changes: 14 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -2722,6 +2722,20 @@ var palochkaVariants = {
{ input: ')', output: '꧍', description: 'last line test' }
]
},
{
description: 'Jawa Latin extended test',
inputmethod: 'jv-keyboard',
tests: [
{ input: '`En`ek', output: 'Ènèk', description: 'Jawa Latin extended È' },
{ input: '~Enak~e', output: 'Énaké', description: 'Jawa Latin extended É' },
{ input: '^En^eg', output: 'Ênêg', description: 'Jawa Latin extended Ê' },
{ input: '^An^a', output: 'Ånå', description: 'Jawa Latin extended Å' },
{ input: '~An~a', output: 'Ånå', description: 'Jawa Latin extended Å - alternate' },
{ input: 'tula.da .Da .Ta .ta', output: 'tulaḍa Ḍa Ṭa ṭa', description: 'Jawa Latin extended Ḍ and Ṭ' },
{ input: 'tula~da ~Da ~Ta ~ta', output: 'tulaḍa Ḍa Ṭa ṭa', description: 'Jawa Latin extended Ḍ and Ṭ - alternate' }

]
},
{
description: 'Georgian Transliteration test',
inputmethod: 'ka-transliteration',
Expand Down