Skip to content

Commit

Permalink
Add Pontic keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 authored and kartikm committed Oct 1, 2024
1 parent 43b8234 commit 4787444
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rules/pnt/pnt-tilde.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
( function ( $ ) {
'use strict';

var pntTilde = {
id: 'pnt-tilde',
name: 'Pontic tilde',
description: 'Pontic tilde',
date: '2024-09-26',
URL: 'https://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
maxKeyLength: 2,
patterns: [
[ '~"', '\u0308' ], // Combining diaeresis
[ '~\\^', '\u030C' ], // Combining caron
[ '~:', '\u0324' ] // Combining diaeresis below
]
};

$.ime.register( pntTilde );
}( jQuery ) );
8 changes: 8 additions & 0 deletions src/jquery.ime.inputmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,10 @@
name: 'Piemontèis',
source: 'rules/pms/pms.js'
},
'pnt-tilde': {
name: 'Pontic tilde',
source: 'rules/pnt/pnt-tilde.js'
},
'roa-tara-GVU': {
name: 'Tarandine',
source: 'rules/roa-tara/roa-tara.js'
Expand Down Expand Up @@ -1570,6 +1574,10 @@
autonym: 'Piemontèis',
inputmethods: [ 'pms' ]
},
pnt: {
autonym: 'Ποντιακά',
inputmethods: [ 'pnt-tilde' ]
},
rif: {
autonym: 'ⵜⴰⵔⵉⴼⵉⵜ',
inputmethods: [ 'ber-tfng' ]
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 @@ -5332,6 +5332,16 @@ var palochkaVariants = {
{ input: ':A', output: 'Ä', description: 'Piemontèis (local) Ä' }
]
},
{
description: 'Pontic input method test',
inputmethod: 'pnt-tilde',
tests: [
{ input: 'Σ~^σ~^ς~^Ξ~^ξ~^Χ~^χ~^Ζ~^ζ~^Ψ~^ψ~^', output: 'Σ̌σ̌ς̌Ξ̌ξ̌Χ̌χ̌Ζ̌ζ̌Ψ̌ψ̌', description: 'Pontic caron' },
{ input: 'Α~"α~"Ο~"ο~"Ά~"ά~"', output: 'Α̈α̈Ο̈ο̈Ά̈ά̈', description: 'Pontic diaeresis above' },
{ input: 'Α~:α~:Ο~:ο~:', output: 'Α̤α̤Ο̤ο̤', description: 'Pontic diaeresis below' },
{ input: 'Ό~:ό~:Ά~:ά~:Ό~:ό~:', output: 'Ό̤ό̤Ά̤ά̤Ό̤ό̤', description: 'Pontic stress and diaeresis below' }
]
},
{
description: 'Tarandine input method test',
inputmethod: 'roa-tara-GVU',
Expand Down

0 comments on commit 4787444

Please sign in to comment.