Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add Marshallese key map #154

Merged
merged 3 commits into from

2 participants

@mapmeld

Add input method and tests for Marshallese language input

@santhoshtr santhoshtr merged commit e84869a into wikimedia:master
@santhoshtr
Owner

Just perfect!. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
44 rules/mh/mh.js
@@ -0,0 +1,44 @@
+/**
+ * Businesses and government offices in the Republic of the Marshall Islands typically use
+ * a font to replace eight letters that are typically unused in the Marshallese language
+ * with Marshallese letters.
+ * Sample English translations: http://mapmeld.github.com/olpc-rmi/laptops.html
+ * Pronunciation: http://www.rmiembassyus.org/Marshallese%20Phrasebook.htm
+ */
+
+( function ( $ ) {
+ 'use strict';
+
+ var mh = {
+ id: 'mh',
+ name: 'Kajin M̧ajeļ',
+ description: 'Marshallese Language',
+ date: '2013-03-29',
+ URL: 'http://github.com/wikimedia/jquery.ime',
+ author: 'Nick Doiron, <ndoiron@mapmeld.com>',
+ license: 'GPLv3',
+ version: '1.0',
+ patterns: [
+ ['Y', 'Ū'],
+ ['S', 'Ā'],
+ ['F', 'Ņ'],
+ ['G', ''],
+ ['H', ''],
+ ['X', ''],
+ ['C', 'Ō'],
+ ['V', 'Ļ'],
+
+ ['y', 'ū'],
+ ['s', 'ā'],
+ ['f', 'ņ'],
+ ['g', ''],
+ ['h', ''],
+ ['x', ''],
+ ['c', 'ō'],
+ ['v', 'ļ']
+ ]
+ };
+
+ $.ime.register( mh );
+
+}( jQuery ) );
View
8 src/jquery.ime.inputmethods.js 100644 → 100755
@@ -300,6 +300,10 @@
name: 'າຶກ',
source: 'rules/lo/lo-kbd.js'
},
+ 'mh': {
+ name: 'Kajin M̧ajeļ',
+ source: 'rules/mh/mh.js'
+ },
'mn-cyrl': {
name: 'Кирилл',
source: 'rules/mn/mn-cyrl.js'
@@ -667,6 +671,10 @@
autonym: 'मैथिली',
inputmethods: [ 'mai-inscript', 'mai-inscript2' ]
},
+ 'mh': {
+ autonym: 'Kajin M̧ajeļ',
+ inputmethods: [ 'mh' ]
+ },
'ml': {
autonym: 'മലയാളം',
inputmethods: [ 'ml-transliteration', 'ml-inscript', 'ml-inscript2' ]
View
21 test/jquery.ime.test.fixtures.js 100644 → 100755
@@ -949,6 +949,27 @@ var testFixtures = [
],
inputmethod: 'kn-transliteration'
},{
+ description: "Kajin M̧ajeļ (Marshallese) test",
+ tests: [
+ { input: 'Y', output: 'Ū', description: 'Y for Ū in Marshallese' },
+ { input: 'S', output: 'Ā', description: 'S for Ā in Marshallese' },
+ { input: 'F', output: 'Ņ', description: 'F for Ņ in Marshallese' },
+ { input: 'G', output: '', description: 'G for N̄ in Marshallese' },
+ { input: 'H', output: '', description: 'H for M̧ in Marshallese' },
+ { input: 'X', output: '', description: 'X for O̧ in Marshallese' },
+ { input: 'C', output: 'Ō', description: 'C for Ō in Marshallese' },
+ { input: 'V', output: 'Ļ', description: 'V for Ļ in Marshallese' },
+ { input: 'y', output: 'ū', description: 'y for ū in Marshallese' },
+ { input: 's', output: 'ā', description: 's for ā in Marshallese' },
+ { input: 'f', output: 'ņ', description: 'f for ņ in Marshallese' },
+ { input: 'g', output: '', description: 'g for n̄ in Marshallese' },
+ { input: 'h', output: '', description: 'h for m̧ in Marshallese' },
+ { input: 'x', output: '', description: 'x for o̧ in Marshallese' },
+ { input: 'c', output: 'ō', description: 'c for ō in Marshallese' },
+ { input: 'v', output: 'ļ', description: 'v for ļ in Marshallese' }
+ ],
+ inputmethod: 'mh'
+ },{
description: 'Marathi InScript 2 test',
tests: [
{ input: [ [ '1', false ] ], output: '', description: 'Marathi InScript regular 1 - १' },
Something went wrong with that request. Please try again.