Skip to content

Commit

Permalink
Add Sango tilde method
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed Mar 29, 2019
1 parent 35bc2f8 commit 5c00740
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rules/sg/sg-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
( function ( $ ) {
'use strict';

var sgTilde = {
id: 'sg-tilde',
name: 'sg-tilde',
description: 'Sango tilde keyboard',
date: '2019-03-28',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
patterns: [
[ '~\\\\', '\u0300' ], // Combining grave
[ '~/', '\u0301' ], // Combining acute
[ '~\\^', '\u0302' ], // Combining circumflex
[ '~\\-', '\u0304' ], // Combining macron
[ '~\\:', '\u0308' ], // Combining diaeresis
[ '~v', '\u030C' ] // Combining caron
]
};

$.ime.register( sgTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,10 @@
name: 'Normal forms',
source: 'rules/se/se-normforms.js'
},
'sg-tilde': {
name: 'Sängö',
source: 'rules/sg/sg-tilde.js'
},
'si-singlish': {
name: 'සිංග්ලිෂ්',
source: 'rules/si/si-singlish.js'
Expand Down Expand Up @@ -1150,6 +1154,10 @@
autonym: 'Davvisámegiella',
inputmethods: [ 'se-normforms' ]
},
sg: {
autonym: 'Sängö',
inputmethods: [ 'sg-tilde' ]
},
shi: {
autonym: 'ⵜⴰⵛⵍⵃⵉⵜ',
inputmethods: [ 'ber-tfng' ]
Expand Down
11 changes: 11 additions & 0 deletions test/jquery.ime.test.fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -3776,6 +3776,17 @@ var palochkaVariants = {
{ input: '?', output: '؟', description: 'Southern Kurdish Keyboard Layout: ? -> ؟' }
]
},
{
description: 'Sängö tilde test',
inputmethod: 'sg-tilde',
tests: [
{ input: 'se~^hi~:nga~:ngo~:', output: 'sêhïngängö', description: 'Sängö tilde test sêhïngängö' },
{ input: 'angba~^', output: 'angbâ', description: 'Sängö tilde test angbâ' },
{ input: 'TE~/LE~/CHARGENGO', output: 'TÉLÉCHARGENGO', description: 'Sängö tilde test TÉLÉCHARGENGO' },
{ input: 'Kembe~/', output: 'Kembé', description: 'Sängö tilde test Kembé' },
{ input: 'Mbre~\\s', output: 'Mbrès', description: 'Sängö tilde test Mbrès' }
]
},
{
description: 'Sinhala Wijesekara transliteration tests',
inputmethod: 'si-wijesekara',
Expand Down

0 comments on commit 5c00740

Please sign in to comment.