Update jquery.ime and jquery.uls from upstream

jquery.ime:
* Update characters for the Basaa keyboard.
* add ~1 rule to the Palochka layout and make it
  available for the Dargwa language
Updating to
51418055cd

jquery.uls:
language-data: Add the Dargwa (Dargin) language (dar)
Updating to
67e4d46f6a

Change-Id: I6fe23100a5a4b2ad0507353d6a7cd4c5520867c0
This commit is contained in:
Amir Aharoni
2021-04-07 14:43:17 +03:00
committed by Amire80
parent a002e3647e
commit 51ec3bc0e6
4 changed files with 48 additions and 18 deletions

View File

@@ -6,17 +6,27 @@
*
* This layout assumes that the standard Russian keyboard layout is used. All the rules produce the
* same character palochka, and the characters used are the same that are often used by the speakers
* of these languages online: 1. Latin small 'l'. 2. Latin capital 'I'. 3. Ukrainian capital 'І'. 4.
* Alt-1 (the digit one). 5. Alt-д (Cyrillic small 'de', on the same key as Latin 'l'). 6. Alt-ш
* (Cyrillic small 'sha', on the same key as Latin 'i'). 7. Alt-Ш (Cyrillic capital 'sha', on the
* same key as Latin 'I').
* of these languages online:
* 1. Latin small 'l'.
* 2. Latin capital 'I'.
* 3. Ukrainian capital 'І'.
* 4. Alt-1 (the digit one).
* 5. Alt-д (Cyrillic small 'de', on the same key as Latin 'l').
* 6. Alt-ш (Cyrillic small 'sha', on the same key as Latin 'i').
* 7. Alt-Ш (Cyrillic capital 'sha', on the same key as Latin 'I').
*/
( function ( $ ) {
'use strict';
// All the characters are very similar in appearance,
// so it's better to give them names to avoid confusion.
var cyrlPalochka;
var cyrlPalochka,
// All the characters are very similar in appearance,
// so it's better to give them names to avoid confusion.
latinSmallL = 'l',
latinCapitalI = 'I',
ukrainianCapitalI = 'І',
palochka = 'Ӏ',
digitOne = '1';
cyrlPalochka = {
id: 'cyrl-palochka',
@@ -26,16 +36,22 @@
URL: 'http://github.com/wikimedia/jquery.ime',
author: 'Amir E. Aharoni',
license: 'GPLv3',
version: '1.0',
version: '1.1',
contextLength: 2,
maxKeyLength: 3,
patterns: [
[ 'l', 'Ӏ' ],
[ 'I', 'Ӏ' ],
[ 'І', 'Ӏ' ] ],
[ '~~' + digitOne, '~~', '~1' ],
[ '~' + digitOne, palochka ],
[ latinSmallL, palochka ],
[ latinCapitalI, palochka ],
[ ukrainianCapitalI, palochka ]
],
patterns_x: [
[ '1', 'Ӏ' ],
[ 'д', 'Ӏ' ],
[ 'ш', 'Ӏ' ],
[ 'Ш', 'Ӏ' ] ]
[ digitOne, palochka ],
[ 'д', palochka ],
[ 'ш', palochka ],
[ 'Ш', palochka ]
]
};
$.ime.register( cyrlPalochka );