Skip to content

Commit

Permalink
Indonesian keyboard (#727)
Browse files Browse the repository at this point in the history
* Create id-keyboard.js

* Update jquery.ime.inputmethods.js

* Update jquery.ime.test.fixtures.js

test

* delete rare Ê

* Update jquery.ime.inputmethods.js

* Update jquery.ime.inputmethods.js

---------

Co-authored-by: SrishAkaTux <[email protected]>
  • Loading branch information
bennylin and srish authored Oct 3, 2024
1 parent 5ea9891 commit 29877f8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
22 changes: 22 additions & 0 deletions rules/id/id-keyboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
( function ( $ ) {
'use strict';

var idKeyboard = {
id: 'id-keyboard',
name: 'id-keyboard',
description: 'Indonesian - Suku keyboard',
date: '2023-06-04',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Benny Lin',
license: 'GPLv3',
version: '1',
patterns: [
[ '~E', 'É' ],
[ '~e', 'é' ],
[ '`E', 'È' ],
[ '`e', 'è' ]
]
};

$.ime.register( idKeyboard );
}( jQuery ) );
8 changes: 6 additions & 2 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@
name: 'Ibibio - tilde',
source: 'rules/ibb/ibb-tilde.js'
},
'id-keyboard': {
name: 'Indonesian - Suku',
source: 'rules/id/id-keyboard.js'
},
'id-jawi': {
name: 'Jawi Keyboard',
source: 'rules/id/id-jawi.js'
Expand Down Expand Up @@ -1343,8 +1347,8 @@
inputmethods: [ 'ibb-tilde' ]
},
id: {
autonym: 'Jawi',
inputmethods: [ 'id-jawi' ]
autonym: 'Bahasa Indonesia',
inputmethods: [ 'id-keyboard', 'id-jawi' ]
},
ig: {
autonym: 'Igbo',
Expand Down
10 changes: 10 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,16 @@ var palochkaVariants = {
{ input: 'a~/e~\\i~^o~-u~v', output: 'áèîōǔ', description: 'Ibibio tilde áèîōǔ' }
]
},
{
description: 'Indonesian keyboard test',
inputmethod: 'id-keyboard',
tests: [
{ input: '~Edamame', output: 'Édamame', description: 'Indonesian keyboard É' },
{ input: 'mer~eka', output: 'meréka', description: 'Indonesian keyboard é' },
{ input: '`E`ek', output: 'Èèk', description: 'Indonesian keyboard È' },
{ input: 'ap`el, b`eb`ek', output: 'apèl, bèbèk', description: 'Indonesian keyboard è' }
]
},
{
description: 'Jawi test',
inputmethod: 'id-jawi',
Expand Down

0 comments on commit 29877f8

Please sign in to comment.