diff --git a/lib/jquery.ime/jquery.ime.js b/lib/jquery.ime/jquery.ime.js index d8a16bc5..1b9a35a9 100644 --- a/lib/jquery.ime/jquery.ime.js +++ b/lib/jquery.ime/jquery.ime.js @@ -1,4 +1,4 @@ -/*! jquery.ime - v0.2.0+20190515 +/*! jquery.ime - v0.2.0+20190521 * https://github.com/wikimedia/jquery.ime * Copyright (c) 2019 Santhosh Thottingal; License: (GPL-2.0+ OR MIT) */ ( function ( $ ) { @@ -1701,6 +1701,10 @@ // All keys have quotes for consistency /* eslint-disable quote-props */ $.extend( $.ime.sources, { + 'af-tilde': { + name: 'Afrikaans tilde', + source: 'rules/af/af-tilde.js' + }, 'ak-qx': { name: 'Akan QX replacement', source: 'rules/ak/ak-qx.js' @@ -2259,6 +2263,14 @@ name: 'Tildemerkt transliterasjon', source: 'rules/nb/nb-tildeforms.js' }, + 'nqo-standard-qwerty': { + name: "N'Ko standard QWERTY", + source: 'rules/nqo/nqo-standard-qwerty.js' + }, + 'nqo-transliteration': { + name: "N'Ko transliteration", + source: 'rules/nqo/nqo-transliteration.js' + }, 'nso-tilde': { name: 'Sesotho sa Leboa tilde', source: 'rules/nso/nso-tilde.js' @@ -2535,6 +2547,10 @@ autonym: 'адыгэбзэ', inputmethods: [ 'cyrl-palochka' ] }, + af: { + autonym: 'Afrikaans', + inputmethods: [ 'af-tilde' ] + }, ahr: { autonym: 'अहिराणी', inputmethods: [ 'mr-transliteration', 'mr-inscript' ] @@ -2871,6 +2887,10 @@ autonym: 'Norsk (nynorsk)', inputmethods: [ 'nb-normforms', 'nn-tildeforms' ] }, + nqo: { + autonym: 'ߒߞߏ', + inputmethods: [ 'nqo-standard-qwerty', 'nqo-transliteration' ] + }, nso: { autonym: 'Sesotho sa Leboa', inputmethods: [ 'nso-tilde' ] diff --git a/lib/jquery.ime/rules/af/af-tilde.js b/lib/jquery.ime/rules/af/af-tilde.js new file mode 100644 index 00000000..b62b928a --- /dev/null +++ b/lib/jquery.ime/rules/af/af-tilde.js @@ -0,0 +1,24 @@ +( function ( $ ) { + 'use strict'; + + var afTilde = { + id: 'af-tilde', + name: 'Afrikaans tilde', + description: 'Afrikaans tilde', + date: '2019-04-30', + URL: 'https://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + maxKeyLength: 2, + patterns: [ + [ "~\\'", '’' ], // Initial apostrophe + [ '~\\\\', '\u0300' ], // Combining grave accent + [ '~/', '\u0301' ], // Combining acute accent + [ '~\\^', '\u0302' ], // Combining circumflex accent + [ '~:', '\u0308' ] // Combining diaeresis + ] + }; + + $.ime.register( afTilde ); +}( jQuery ) ); diff --git a/lib/jquery.ime/rules/nqo/nqo-standard-qwerty.js b/lib/jquery.ime/rules/nqo/nqo-standard-qwerty.js new file mode 100644 index 00000000..fcc47bbb --- /dev/null +++ b/lib/jquery.ime/rules/nqo/nqo-standard-qwerty.js @@ -0,0 +1,93 @@ +( function ( $ ) { + 'use strict'; + + var nqoStandardQwerty = { + id: 'nqo-standard-qwerty', + name: "N'Ko standard qwerty", + description: "N'Ko standard qwerty", + date: '2019-04-26', + URL: 'https://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + maxKeyLength: 1, + patterns: [ + [ '`', '߷' ], + [ '1', '߁' ], + [ '2', '߂' ], + [ '3', '߃' ], + [ '4', '߄' ], + [ '5', '߅' ], + [ '6', '߆' ], + [ '7', '߇' ], + [ '8', '߈' ], + [ '9', '߉' ], + [ '0', '߀' ], + + [ 'Q', 'ߩ' ], + [ 'W', 'ߨ' ], + [ 'Y', 'ߚ' ], + [ 'I', '÷' ], + [ 'O', '×' ], + [ 'P', 'ߪ' ], + + [ 'A', '߶' ], + [ 'D', '[' ], + [ 'F', ']' ], + [ 'G', '(' ], + [ 'H', ')' ], + [ 'J', 'ߺ' ], + [ 'L', '/' ], + + [ 'Z', '\u07F3' ], + [ 'X', '\u07F1' ], + [ 'C', '\u07ED' ], + [ 'V', '\u07EE' ], + [ 'B', '\u07F0' ], + [ 'N', '\u07EF' ], + [ 'M', '߸' ], // Comma + [ '<', 'ߑ' ], + [ '\\?', '؟' ], + + [ 'q', 'ߔ' ], + [ 'w', 'ߧ' ], + [ 'e', 'ߠ' ], + [ 'r', 'ߥ' ], + [ 't', 'ߦ' ], + [ 'y', 'ߙ' ], + [ 'u', 'ߗ' ], + [ 'i', 'ߜ' ], + [ 'o', 'ߢ' ], + [ 'p', 'ߡ' ], + [ '\\[', 'ߤ' ], + [ '\\]', 'ߒ' ], + + [ 'a', 'ߏ' ], + [ 's', 'ߎ' ], + [ 'd', 'ߍ' ], + [ 'f', 'ߌ' ], + [ 'g', 'ߋ' ], + [ 'h', 'ߊ' ], + [ 'k', 'ߝ' ], + [ 'j', 'ߖ' ], + [ 'k', 'ߞ' ], + [ 'l', 'ߣ' ], + [ 'm', 'ߟ' ], + [ ';', 'ߕ' ], + [ "'", 'ߓ' ], + + [ 'z', 'ߐ' ], + [ 'x', '\u07F2' ], + [ 'v', 'ߴ' ], + [ 'c', 'ߵ' ], + [ 'b', '\u07EC' ], + [ 'n', '\u07EB' ], + [ '!', '߹' ], + [ ',', 'ߛ' ], + [ '\\.', 'ߘ' ], + [ '/', 'ߞ' ] + ] + }; + + $.ime.register( nqoStandardQwerty ); +}( jQuery ) ); diff --git a/lib/jquery.ime/rules/nqo/nqo-transliteration.js b/lib/jquery.ime/rules/nqo/nqo-transliteration.js new file mode 100644 index 00000000..4ceb8c0b --- /dev/null +++ b/lib/jquery.ime/rules/nqo/nqo-transliteration.js @@ -0,0 +1,102 @@ +( function ( $ ) { + 'use strict'; + + var nqoTransliteration = { + id: 'nqo-transliteration', + name: "N'Ko transliteration", + description: "N'Ko transliteration", + date: '2019-04-26', + URL: 'http://github.com/wikimedia/jquery.ime', + author: 'Amir E. Aharoni', + license: 'GPLv3', + version: '1.0', + maxKeyLength: 3, + patterns: [ + // Sequences + [ 'ߣn', 'ߠ' ], // nn + [ 'ߢw', 'ߧ' ], // nyw + [ 'ߣy', 'ߢ' ], // ny + [ + 'ߖ\\/', + 'ߨ' + ], // j/ + [ + 'ߗ\\/', + 'ߩ' + ], // c/ + [ + 'ߙ\\/', + 'ߪ' + ], // r/ + [ '\u07F2\u07F2\\.', '߷' ], // ... + [ '\u07EB-', '-' ], // -- + [ '\u07EC~', '~' ], // ~~ + [ '\\\\\\?', '?' ], // \? + [ '\\?', '؟' ], + + // Unshifted + + [ '`', 'ߑ' ], + [ '1', '߁' ], + [ '2', '߂' ], + [ '3', '߃' ], + [ '4', '߄' ], + [ '5', '߅' ], + [ '6', '߆' ], + [ '7', '߇' ], + [ '8', '߈' ], + [ '9', '߉' ], + [ '0', '߀' ], + + [ 'w', 'ߥ' ], + [ 'e', 'ߍ' ], + [ 'r', 'ߙ' ], + [ 't', 'ߕ' ], + [ 'y', 'ߦ' ], + [ 'u', 'ߎ' ], + [ 'i', 'ߌ' ], + [ 'o', 'ߐ' ], + [ 'p', 'ߔ' ], + + [ 'a', 'ߊ' ], + [ 's', 'ߛ' ], + [ 'd', 'ߘ' ], + [ 'f', 'ߝ' ], + [ 'g', 'ߜ' ], + [ 'h', 'ߤ' ], + [ 'j', 'ߖ' ], + [ 'k', 'ߞ' ], + [ 'l', 'ߟ' ], + + [ 'c', 'ߗ' ], + [ 'b', 'ߓ' ], + [ 'n', 'ߣ' ], + [ 'm', 'ߡ' ], + + // Shifted + + [ '~', '\u07EC' ], + [ '!', '߹' ], + [ '#', '\u07F0' ], + [ '%', '\u07F3' ], + + [ 'E', 'ߋ' ], + [ 'R', 'ߚ' ], + [ 'O', 'ߏ' ], + [ 'N', 'ߒ' ], + [ '<', '\u07F1' ], + [ '>', '\u07EF' ], + [ '\u07EE\\.', '\u07ED' ], // ^. + [ '\\^', '\u07EE' ], // ^ + [ '߸\\/', 'ߺ' ], // ,/ + [ '\\.', '\u07F2' ], // Combining nasalization mark ("dot below") + [ ',', '߸' ], // Comma + [ '/', '߶' ], + [ "'", 'ߴ' ], // High tone apostrophe + [ '"', 'ߵ' ], // Low tone apostrophe + [ '-', '\u07EB' ] // Combining short high tone ("macron") + ] + }; + + $.ime.register( nqoTransliteration ); +}( jQuery ) );