Skip to content

Commit

Permalink
Update jv-keyboard.js (#789)
Browse files Browse the repository at this point in the history
* Update jv-keyboard.js

Add common shortcuts, fix bug, change url link

* Update jquery.ime.test.fixtures.js

Add new tests

* Update jv-keyboard.js

change the order
  • Loading branch information
bennylin authored Aug 30, 2024
1 parent e9165c0 commit 9ee9bc8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
33 changes: 24 additions & 9 deletions rules/jv/jv-keyboard.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
( function ( $ ) {
( 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',
date: '2024-06-05',
URL: 'https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods/jv-keyboard',
author: 'Benny Lin',
license: 'GPLv3',
version: '1',
version: '1.1',
patterns: [
[ '~E', 'É' ],
[ '~e', 'é' ],
[ '`E', 'È' ],
[ '`e', 'è' ],
[ 'ÈQ', 'Q' ],
[ 'Èq', 'Q' ],
[ 'èq', 'q' ],
[ 'Q', 'È' ],
[ 'q', 'è' ],
[ '\\^E', 'Ê' ],
[ '\\^e', 'ê' ],
[ 'ÊX', 'X' ],
[ 'Êx', 'X' ],
[ 'êx', 'x' ],
[ 'X', 'Ê' ],
[ 'x', 'ê' ],
[ 'ÉE', 'E' ],
[ 'Ée', 'E' ],
[ 'ée', 'e' ],
[ 'E', 'É' ],
[ 'e', 'é' ],
[ '\\^A', 'Å' ],
[ '\\^a', 'å' ],
[ '~A', 'Å' ],
Expand All @@ -25,12 +40,12 @@
[ '~d', 'ḍ' ],
[ '~T', 'Ṭ' ],
[ '~t', 'ṭ' ],
[ '.D', 'Ḍ' ],
[ '.d', 'ḍ' ],
[ '.T', 'Ṭ' ],
[ '.t', 'ṭ' ]
[ '\\.D', 'Ḍ' ],
[ '\\.d', 'ḍ' ],
[ '\\.T', 'Ṭ' ],
[ '\\.t', 'ṭ' ]
]
};

$.ime.register( jvKeyboard );
}( jQuery ) );
}( jQuery ) );
10 changes: 5 additions & 5 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Variables for Cyrillic with palochka transliteration tests.
// Variables for Cyrillic with palochka transliteration tests.
// All the characters are very similar in appearance,
// so it's better to give them names to avoid confusion.
// eslint-disable-next-line no-implicit-globals
Expand Down Expand Up @@ -2880,14 +2880,14 @@ var palochkaVariants = {
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: '`En`ek Qnqk', output: 'Ènèk Ènèk', description: 'Jawa Latin extended È' },
{ input: '~Enak~e Enake', output: 'Énaké Énaké', description: 'Jawa Latin extended É' },
{ input: '^En^eg Xnxg', output: 'Ênêg Ênêg', description: 'Jawa Latin extended Ê' },
{ input: 'QQ Qq qq EE Ee ee XX Xx xx', output: 'Q Q q E E e X X x', description: 'Normal QEX' },
{ 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' }

]
},
{
Expand Down

0 comments on commit 9ee9bc8

Please sign in to comment.