Update jquery.ime to 7edcc7b from upstream
Changes: * Added IMEs for Eritrean languages: Tigrinya (ti), Tigre (tig), Blin (byn). * Documentation updates. Change-Id: Iec9e45711308d0b7a4670c64d3c2c9ae6debd0d9
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*! jquery.ime - v0.1.0+20170130
|
||||
/*! jquery.ime - v0.1.0+20170217
|
||||
* https://github.com/wikimedia/jquery.ime
|
||||
* Copyright (c) 2017 Santhosh Thottingal; Licensed GPL, MIT */
|
||||
( function ( $ ) {
|
||||
@@ -1786,6 +1786,10 @@
|
||||
name: 'इनस्क्रिप्ट २',
|
||||
source: 'rules/brx/brx-inscript2.js'
|
||||
},
|
||||
'byn-geezim': {
|
||||
name: 'ብሊን',
|
||||
source: 'rules/byn/byn-geezim.js'
|
||||
},
|
||||
'ckb-transliteration-arkbd': {
|
||||
name: 'باشووری',
|
||||
source: 'rules/ckb/ckb-transliteration-arkbd.js'
|
||||
@@ -2275,6 +2279,14 @@
|
||||
name: 'විජේසේකර',
|
||||
source: 'rules/si/si-wijesekara.js'
|
||||
},
|
||||
'ti-geezim': {
|
||||
name: 'ትግርኛ',
|
||||
source: 'rules/ti/ti-geezim.js'
|
||||
},
|
||||
'tig-geezim': {
|
||||
name: 'ትግረ',
|
||||
source: 'rules/tig/tig-geezim.js'
|
||||
},
|
||||
'ur-phonetic': {
|
||||
name: 'صوتی',
|
||||
source: 'rules/ur/ur-phonetic.js'
|
||||
@@ -2386,6 +2398,10 @@
|
||||
autonym: 'बोड़ो',
|
||||
inputmethods: [ 'brx-inscript', 'brx-inscript2' ]
|
||||
},
|
||||
byn: {
|
||||
autonym: 'ብሊን',
|
||||
inputmethods: [ 'byn-geezim' ]
|
||||
},
|
||||
ckb: {
|
||||
autonym: 'کوردیی ناوەندی',
|
||||
inputmethods: [ 'ckb-transliteration-arkbd', 'ckb-transliteration-fakbd', 'ckb-transliteration-lakbd' ]
|
||||
@@ -2654,6 +2670,14 @@
|
||||
autonym: 'ไทย',
|
||||
inputmethods: [ 'th-kedmanee', 'th-pattachote' ]
|
||||
},
|
||||
ti: {
|
||||
autonym: 'ትግርኛ',
|
||||
inputmethods: [ 'ti-geezim' ]
|
||||
},
|
||||
tig: {
|
||||
autonym: 'ትግረ',
|
||||
inputmethods: [ 'tig-geezim' ]
|
||||
},
|
||||
tkr: {
|
||||
autonym: 'цӀаӀхна миз',
|
||||
inputmethods: [ 'cyrl-palochka' ]
|
||||
|
||||
@@ -1,33 +1,42 @@
|
||||
<!-- markdownlint-disable MD010 -->
|
||||
jQuery.ime Input method specification
|
||||
=====================================
|
||||
|
||||
Input methods are defined in javascript files. An input method is a javascript
|
||||
object and it is passed to $.ime.register() method to register with jquery.ime
|
||||
object and it is passed to `$.ime.register()` method to register with `jquery.ime`
|
||||
|
||||
eg: $.ime.register( hebrewStandardKeyboard );
|
||||
eg: `$.ime.register( hebrewStandardKeyboard );`
|
||||
|
||||
Input methods can be built by reusing parts of other methods, this is especially
|
||||
interesting for complex patterns. If rules are reused then the methods must be
|
||||
loaded first. This is done through configurations in `jquery.ime.inputmethods.js`.
|
||||
|
||||
For examples on reuse, see the rules "nb-normforms" or "hi-inscript".
|
||||
|
||||
Metadata fields
|
||||
---------------
|
||||
|
||||
id: A mandatory unique identifier that represents the input method.
|
||||
eg: "hindi-inscript"
|
||||
eg: `"hindi-inscript"`
|
||||
|
||||
name: A mandatory short name for the input method. eg: Hindi InScript
|
||||
name: A mandatory short name for the input method. eg: `"Hindi InScript"`
|
||||
|
||||
Note that the names used in the menu comes from [jquery.ime.inputmethods.js](../src/jquery.ime.inputmethods.js)
|
||||
|
||||
description: An optional short description about the input method.
|
||||
eg: "keyboard layout as per inscript standard"
|
||||
eg: `"keyboard layout as per inscript standard"`
|
||||
|
||||
date: An optional string to represent when this input method was written.
|
||||
Format should be: yyyy-mm-dd
|
||||
|
||||
author: An optional string containing the authors name. Can contain email
|
||||
address as well. eg: "Santhosh Thottingal, <santhosh.thottingal@gmail.com>"
|
||||
address as well. eg: `"Santhosh Thottingal, <santhosh.thottingal@gmail.com>"`
|
||||
|
||||
URL: A mandatory string containing URL for source where keyboard is defined,
|
||||
information about trademark restrictions if any, layout and help.
|
||||
|
||||
license: An optional string containing licence information. Eg: "CC-BY-SA" or
|
||||
"GPLv3".
|
||||
license: An optional string containing licence information. Eg: `"CC-BY-SA"` or
|
||||
`"GPLv3"`.
|
||||
|
||||
version: An optional string containing version information.
|
||||
|
||||
@@ -38,6 +47,8 @@ patterns: A regular expression table that maps the original inputs to the
|
||||
target language.
|
||||
|
||||
eg:
|
||||
|
||||
```javascript
|
||||
patterns: [
|
||||
[ 'q', '/' ],
|
||||
[ 'w', '\'' ],
|
||||
@@ -49,37 +60,55 @@ patterns: [
|
||||
[ 'i', 'ן' ],
|
||||
[ 'o', 'ם' ],
|
||||
[ 'p', 'פ' ]
|
||||
...
|
||||
// ...
|
||||
// These characters are mirrored in RTL languages
|
||||
[ '\\(', ')' ],
|
||||
[ '\\)', '(' ],
|
||||
[ '\\[', ']' ],
|
||||
[ '\\]', '[' ]
|
||||
]
|
||||
```
|
||||
|
||||
Any valid regular expression is possible as first element of each array item.
|
||||
More examples
|
||||
[ '([ക-ഹ])a', '$1ാ' ]
|
||||
[ '(([ൺ-ൿം])\u200c+)?I', '$2ഐ' ]
|
||||
|
||||
ex: `[ '([ക-ഹ])a', '$1ാ' ]`
|
||||
ex: `[ '(([ൺ-ൿം])\u200c+)?I', '$2ഐ' ]`
|
||||
|
||||
In the above example, $1, $1 etc are according to the normal regular expression
|
||||
replace syntax.
|
||||
|
||||
The second member of pattern can be a function as well. For eg:
|
||||
The second member of the pattern can be a function as well.
|
||||
|
||||
eg:
|
||||
|
||||
```javascript
|
||||
patterns: [ [ '[a-z]', function ( $1 ) {
|
||||
return $1.toUpperCase();
|
||||
} ] ]
|
||||
```
|
||||
|
||||
This rule replace all key strokes to its upper case character.
|
||||
|
||||
contextLength: Length of the context to remember. jquery.ime can replace the
|
||||
text based on the previously typed characters. eg:
|
||||
patterns_x: Defined the same way as ordinary patterns, but active while holding down the alt key or
|
||||
alt graph key. When active the normal patterns will be excluded. These two modifier keys can be
|
||||
handled differently on various hardware. It might be necessary to define ordinary patterns in
|
||||
addition to patterns_x to catch all cases.
|
||||
|
||||
patterns_shift: Defined the same way as ordinary patterns, but active while holding down the shift
|
||||
key. When active the normal patterns will still be run, but only after the rules listed in
|
||||
patterns_shift is run.
|
||||
|
||||
contextLength: Length of the context to remember. jquery.ime can replace the
|
||||
text based on the previously typed characters.
|
||||
|
||||
eg:
|
||||
|
||||
```javascript
|
||||
[ 'ൿh', 'c', 'ച്' ]
|
||||
```
|
||||
|
||||
Note that this pattern definition has 3 members, the middle one is the context.
|
||||
This rule is interpreted as
|
||||
This rule is interpreted as as an override to pattern definitions with 2 members.
|
||||
|
||||
The current key is h, previous key is c. For the previous key press c, we have
|
||||
a transliteration ൿ. But if it is followed by h and ൿ is indeed from key press
|
||||
@@ -105,4 +134,5 @@ Examples
|
||||
|
||||
For complete examples, please refer the existing input method definitions.
|
||||
|
||||
Documentation of input methods are available at https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods
|
||||
Documentation of input methods are available at
|
||||
[mw:Help:Extension:UniversalLanguageSelector/Input methods](https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods)
|
||||
|
||||
416
lib/jquery.ime/rules/byn/byn-geezim.js
Normal file
416
lib/jquery.ime/rules/byn/byn-geezim.js
Normal file
@@ -0,0 +1,416 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var bynGeezim = {
|
||||
id: 'byn-geezim',
|
||||
name: 'Blin GeezIM',
|
||||
description: 'Blin input method based on GeezIME scheme',
|
||||
date: '2017-01-22',
|
||||
URL: 'http://type.geezlab.com',
|
||||
author: 'Fitsum Gaim, <fitsum@geezlab.com>',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 1,
|
||||
maxKeyLength: 2,
|
||||
patterns: [
|
||||
// consonants
|
||||
[ 'h', 'ህ' ],
|
||||
[ '(l|L)', 'ል' ],
|
||||
[ 'H', 'ሕ' ],
|
||||
[ '(m|M)', 'ም' ],
|
||||
[ '(r|R)', 'ር' ],
|
||||
[ 'ስs', 'ሥ' ],
|
||||
[ 's', 'ስ' ],
|
||||
[ 'S', 'ሽ' ],
|
||||
[ 'q', 'ቅ' ],
|
||||
[ 'Q', 'ቕ' ],
|
||||
[ '(b|B)', 'ብ' ],
|
||||
[ '(v|V)', 'ቭ' ],
|
||||
[ 't', 'ት' ],
|
||||
[ 'c', 'ች' ],
|
||||
[ 'ህh', 'ኅ' ],
|
||||
[ 'n', 'ን' ],
|
||||
[ 'N', 'ኝ' ],
|
||||
[ 'k', 'ክ' ],
|
||||
[ 'K', 'ኽ' ],
|
||||
[ 'w', 'ው' ],
|
||||
[ 'z', 'ዝ' ],
|
||||
[ 'Z', 'ዥ' ],
|
||||
[ '(y|Y)', 'ይ' ],
|
||||
[ '(d|D)', 'ድ' ],
|
||||
[ '(j|J)', 'ጅ' ],
|
||||
[ 'g', 'ግ' ],
|
||||
[ 'G', 'ጝ' ], // Blin
|
||||
[ 'T', 'ጥ' ],
|
||||
[ 'C', 'ጭ' ],
|
||||
[ 'P', 'ጵ' ],
|
||||
[ '(x|X)', 'ጽ' ],
|
||||
[ '(ጽx|ጽX)', 'ፅ' ],
|
||||
[ '(f|F)', 'ፍ' ],
|
||||
[ 'p', 'ፕ' ],
|
||||
|
||||
// consonant-vowel orders
|
||||
[ 'ህe', 'ሀ' ],
|
||||
[ 'ህu', 'ሁ' ],
|
||||
[ 'ህi', 'ሂ' ],
|
||||
[ 'ህa', 'ሃ' ],
|
||||
[ '(ሂe|ህE)', 'ሄ' ],
|
||||
[ 'ህo', 'ሆ' ],
|
||||
|
||||
[ 'ልe', 'ለ' ],
|
||||
[ 'ልu', 'ሉ' ],
|
||||
[ 'ልi', 'ሊ' ],
|
||||
[ 'ልa', 'ላ' ],
|
||||
[ '(ሊe|ልE)', 'ሌ' ],
|
||||
[ 'ልo', 'ሎ' ],
|
||||
[ 'ሉa', 'ሏ' ], // et
|
||||
|
||||
[ 'ሕe', 'ሐ' ],
|
||||
[ 'ሕu', 'ሑ' ],
|
||||
[ 'ሕi', 'ሒ' ],
|
||||
[ 'ሕa', 'ሓ' ],
|
||||
[ '(ሒe|ሕE)', 'ሔ' ],
|
||||
[ 'ሕo', 'ሖ' ],
|
||||
[ 'ሑa', 'ሗ' ], // et
|
||||
|
||||
[ 'ምe', 'መ' ],
|
||||
[ 'ምu', 'ሙ' ],
|
||||
[ 'ምi', 'ሚ' ],
|
||||
[ 'ምa', 'ማ' ],
|
||||
[ '(ሚe|ምE)', 'ሜ' ],
|
||||
[ 'ምo', 'ሞ' ],
|
||||
[ 'ሙa', 'ሟ' ], // et
|
||||
|
||||
[ 'ርe', 'ረ' ],
|
||||
[ 'ርu', 'ሩ' ],
|
||||
[ 'ርi', 'ሪ' ],
|
||||
[ 'ርa', 'ራ' ],
|
||||
[ '(ሪe|ርE)', 'ሬ' ],
|
||||
[ 'ርo', 'ሮ' ],
|
||||
[ 'ሩa', 'ሯ' ], // et
|
||||
|
||||
[ 'ሥe', 'ሠ' ],
|
||||
[ 'ሥu', 'ሡ' ],
|
||||
[ 'ሥi', 'ሢ' ],
|
||||
[ 'ሥa', 'ሣ' ],
|
||||
[ '(ሢe|ሥE)', 'ሤ' ],
|
||||
[ 'ሥo', 'ሦ' ],
|
||||
[ 'ሡa', 'ሧ' ], // et
|
||||
|
||||
[ 'ስe', 'ሰ' ],
|
||||
[ 'ስu', 'ሱ' ],
|
||||
[ 'ስi', 'ሲ' ],
|
||||
[ 'ስa', 'ሳ' ],
|
||||
[ '(ሲe|ስE)', 'ሴ' ],
|
||||
[ 'ስo', 'ሶ' ],
|
||||
[ 'ሱa', 'ሷ' ], // et
|
||||
|
||||
[ 'ሽe', 'ሸ' ],
|
||||
[ 'ሽu', 'ሹ' ],
|
||||
[ 'ሽi', 'ሺ' ],
|
||||
[ 'ሽa', 'ሻ' ],
|
||||
[ '(ሺe|ሽE)', 'ሼ' ],
|
||||
[ 'ሽo', 'ሾ' ],
|
||||
[ 'ሹa', 'ሿ' ], // et
|
||||
|
||||
[ 'ቅe', 'ቀ' ],
|
||||
[ 'ቅu', 'ቁ' ],
|
||||
[ 'ቅi', 'ቂ' ],
|
||||
[ 'ቅa', 'ቃ' ],
|
||||
[ '(ቂe|ቅE)', 'ቄ' ],
|
||||
[ 'ቅo', 'ቆ' ],
|
||||
|
||||
[ 'ቁe', 'ቈ' ],
|
||||
[ 'ቁi', 'ቊ' ],
|
||||
[ 'ቁa', 'ቋ' ],
|
||||
[ 'ቊe', 'ቌ' ],
|
||||
[ 'ቅW', 'ቍ' ],
|
||||
|
||||
[ 'ቕe', 'ቐ' ],
|
||||
[ 'ቕu', 'ቑ' ],
|
||||
[ 'ቕi', 'ቒ' ],
|
||||
[ 'ቕa', 'ቓ' ],
|
||||
[ '(ቒe|ቕE)', 'ቔ' ],
|
||||
[ 'ቕo', 'ቖ' ],
|
||||
|
||||
[ 'ቑe', 'ቘ' ],
|
||||
[ 'ቑi', 'ቚ' ],
|
||||
[ 'ቑa', 'ቛ' ],
|
||||
[ 'ቚe', 'ቜ' ],
|
||||
[ 'ቕW', 'ቝ' ],
|
||||
|
||||
[ 'ብe', 'በ' ],
|
||||
[ 'ብu', 'ቡ' ],
|
||||
[ 'ብi', 'ቢ' ],
|
||||
[ 'ብa', 'ባ' ],
|
||||
[ '(ቢe|ብE)', 'ቤ' ],
|
||||
[ 'ብo', 'ቦ' ],
|
||||
[ 'ቡa', 'ቧ' ], // et
|
||||
|
||||
[ 'ቭe', 'ቨ' ],
|
||||
[ 'ቭu', 'ቩ' ],
|
||||
[ 'ቭi', 'ቪ' ],
|
||||
[ 'ቭa', 'ቫ' ],
|
||||
[ '(ቪe|ቭE)', 'ቬ' ],
|
||||
[ 'ቭo', 'ቮ' ],
|
||||
[ 'ቩa', 'ቯ' ], // et
|
||||
|
||||
[ 'ትe', 'ተ' ],
|
||||
[ 'ትu', 'ቱ' ],
|
||||
[ 'ትi', 'ቲ' ],
|
||||
[ 'ትa', 'ታ' ],
|
||||
[ '(ቲe|ትE)', 'ቴ' ],
|
||||
[ 'ትo', 'ቶ' ],
|
||||
[ 'ቱa', 'ቷ' ], // et
|
||||
|
||||
[ 'ችe', 'ቸ' ],
|
||||
[ 'ችu', 'ቹ' ],
|
||||
[ 'ችi', 'ቺ' ],
|
||||
[ 'ችa', 'ቻ' ],
|
||||
[ '(ቺe|ችE)', 'ቼ' ],
|
||||
[ 'ችo', 'ቾ' ],
|
||||
[ 'ቹa', 'ቿ' ], // et
|
||||
|
||||
[ 'ኅe', 'ኀ' ],
|
||||
[ 'ኅu', 'ኁ' ],
|
||||
[ 'ኅi', 'ኂ' ],
|
||||
[ 'ኅa', 'ኃ' ],
|
||||
[ '(ኂe|ኅE)', 'ኄ' ],
|
||||
[ 'ኅo', 'ኆ' ],
|
||||
|
||||
[ 'ኁe', 'ኈ' ],
|
||||
[ 'ኈi', 'ኊ' ],
|
||||
[ 'ኈa', 'ኋ' ],
|
||||
[ 'ኊe', 'ኌ' ],
|
||||
[ 'ኅW', 'ኍ' ],
|
||||
|
||||
[ 'ንe', 'ነ' ],
|
||||
[ 'ንu', 'ኑ' ],
|
||||
[ 'ንi', 'ኒ' ],
|
||||
[ 'ንa', 'ና' ],
|
||||
[ '(ኒe|ንE)', 'ኔ' ],
|
||||
[ 'ንo', 'ኖ' ],
|
||||
[ 'ኑa', 'ኗ' ], // et
|
||||
|
||||
[ 'ኝe', 'ኘ' ],
|
||||
[ 'ኝu', 'ኙ' ],
|
||||
[ 'ኝi', 'ኚ' ],
|
||||
[ 'ኝa', 'ኛ' ],
|
||||
[ '(ኚe|ኝE)', 'ኜ' ],
|
||||
[ 'ኝo', 'ኞ' ],
|
||||
[ 'ኙa', 'ኟ' ], // et
|
||||
|
||||
[ 'ክe', 'ከ' ],
|
||||
[ 'ክu', 'ኩ' ],
|
||||
[ 'ክi', 'ኪ' ],
|
||||
[ 'ክa', 'ካ' ],
|
||||
[ '(ኪe|ክE)', 'ኬ' ],
|
||||
[ 'ክo', 'ኮ' ],
|
||||
|
||||
[ 'ኩe', 'ኰ' ],
|
||||
[ 'ኩi', 'ኲ' ],
|
||||
[ 'ኩa', 'ኳ' ],
|
||||
[ 'ኲe', 'ኴ' ],
|
||||
[ 'ክW', 'ኵ' ],
|
||||
|
||||
[ 'ኽe', 'ኸ' ],
|
||||
[ 'ኽu', 'ኹ' ],
|
||||
[ 'ኽi', 'ኺ' ],
|
||||
[ 'ኽa', 'ኻ' ],
|
||||
[ '(ኺe|ኽE)', 'ኼ' ],
|
||||
[ 'ኽo', 'ኾ' ],
|
||||
|
||||
[ 'ኹe', 'ዀ' ],
|
||||
[ 'ኹi', 'ዂ' ],
|
||||
[ 'ኹa', 'ዃ' ],
|
||||
[ 'ዂe', 'ዄ' ],
|
||||
[ 'ኽW', 'ዅ' ],
|
||||
|
||||
[ 'ውe', 'ወ' ],
|
||||
[ 'ውu', 'ዉ' ],
|
||||
[ 'ውi', 'ዊ' ],
|
||||
[ 'ውa', 'ዋ' ],
|
||||
[ '(ዊe|ውE)', 'ዌ' ],
|
||||
[ 'ውo', 'ዎ' ],
|
||||
|
||||
[ 'ዝe', 'ዘ' ],
|
||||
[ 'ዝu', 'ዙ' ],
|
||||
[ 'ዝi', 'ዚ' ],
|
||||
[ 'ዝa', 'ዛ' ],
|
||||
[ '(ዚe|ዝE)', 'ዜ' ],
|
||||
[ 'ዝo', 'ዞ' ],
|
||||
[ 'ዙa', 'ዟ' ], // et
|
||||
|
||||
[ 'ዥe', 'ዠ' ],
|
||||
[ 'ዥu', 'ዡ' ],
|
||||
[ 'ዥi', 'ዢ' ],
|
||||
[ 'ዥa', 'ዣ' ],
|
||||
[ '(ዢe|ዥE)', 'ዤ' ],
|
||||
[ 'ዥo', 'ዦ' ],
|
||||
[ 'ዡa', 'ዧ' ], // et
|
||||
|
||||
[ 'ይe', 'የ' ],
|
||||
[ 'ይu', 'ዩ' ],
|
||||
[ 'ይi', 'ዪ' ],
|
||||
[ 'ይa', 'ያ' ],
|
||||
[ '(ዪe|ይE)', 'ዬ' ],
|
||||
[ 'ይo', 'ዮ' ],
|
||||
|
||||
[ 'ድe', 'ደ' ],
|
||||
[ 'ድu', 'ዱ' ],
|
||||
[ 'ድi', 'ዲ' ],
|
||||
[ 'ድa', 'ዳ' ],
|
||||
[ '(ዲe|ድE)', 'ዴ' ],
|
||||
[ 'ድo', 'ዶ' ],
|
||||
[ 'ዱa', 'ዷ' ], // et
|
||||
|
||||
[ 'ጅe', 'ጀ' ],
|
||||
[ 'ጅu', 'ጁ' ],
|
||||
[ 'ጅi', 'ጂ' ],
|
||||
[ 'ጅa', 'ጃ' ],
|
||||
[ '(ጂe|ጅE)', 'ጄ' ],
|
||||
[ 'ጅo', 'ጆ' ],
|
||||
[ 'ጁa', 'ጇ' ], // et
|
||||
|
||||
[ 'ግe', 'ገ' ],
|
||||
[ 'ግu', 'ጉ' ],
|
||||
[ 'ግi', 'ጊ' ],
|
||||
[ 'ግa', 'ጋ' ],
|
||||
[ '(ጊe|ግE)', 'ጌ' ],
|
||||
[ 'ግo', 'ጎ' ],
|
||||
|
||||
[ 'ጉe', 'ጐ' ],
|
||||
[ 'ጉi', 'ጒ' ],
|
||||
[ 'ጉa', 'ጓ' ],
|
||||
[ 'ጒe', 'ጔ' ],
|
||||
[ 'ግW', 'ጕ' ],
|
||||
|
||||
[ 'ጝe', 'ጘ' ],
|
||||
[ 'ጝu', 'ጙ' ],
|
||||
[ 'ጝi', 'ጚ' ],
|
||||
[ 'ጝa', 'ጛ' ],
|
||||
[ '(ጚe|ጝE)', 'ጜ' ],
|
||||
[ 'ጝo', 'ጞ' ],
|
||||
|
||||
[ 'ጥe', 'ጠ' ],
|
||||
[ 'ጥu', 'ጡ' ],
|
||||
[ 'ጥi', 'ጢ' ],
|
||||
[ 'ጥa', 'ጣ' ],
|
||||
[ '(ጢe|ጥE)', 'ጤ' ],
|
||||
[ 'ጥo', 'ጦ' ],
|
||||
[ 'ጡa', 'ጧ' ], // et
|
||||
|
||||
[ 'ጭe', 'ጨ' ],
|
||||
[ 'ጭu', 'ጩ' ],
|
||||
[ 'ጭi', 'ጪ' ],
|
||||
[ 'ጭa', 'ጫ' ],
|
||||
[ '(ጪe|ጭE)', 'ጬ' ],
|
||||
[ 'ጭo', 'ጮ' ],
|
||||
[ 'ጩa', 'ጯ' ], // et
|
||||
|
||||
[ 'ጵe', 'ጰ' ],
|
||||
[ 'ጵu', 'ጱ' ],
|
||||
[ 'ጵi', 'ጲ' ],
|
||||
[ 'ጵa', 'ጳ' ],
|
||||
[ '(ጲe|ጵE)', 'ጴ' ],
|
||||
[ 'ጵo', 'ጶ' ],
|
||||
[ 'ጱa', 'ጷ' ],
|
||||
|
||||
[ 'ጽe', 'ጸ' ],
|
||||
[ 'ጽu', 'ጹ' ],
|
||||
[ 'ጽi', 'ጺ' ],
|
||||
[ 'ጽa', 'ጻ' ],
|
||||
[ '(ጺe|ጽE)', 'ጼ' ],
|
||||
[ 'ጽo', 'ጾ' ],
|
||||
[ 'ጹa', 'ጿ' ], // et
|
||||
|
||||
[ 'ፅe', 'ፀ' ],
|
||||
[ 'ፅu', 'ፁ' ],
|
||||
[ 'ፅi', 'ፂ' ],
|
||||
[ 'ፅa', 'ፃ' ],
|
||||
[ '(ፂe|ፅE)', 'ፄ' ],
|
||||
[ 'ፅo', 'ፆ' ],
|
||||
|
||||
[ 'ፍe', 'ፈ' ],
|
||||
[ 'ፍu', 'ፉ' ],
|
||||
[ 'ፍi', 'ፊ' ],
|
||||
[ 'ፍa', 'ፋ' ],
|
||||
[ '(ፈe|ፍE)', 'ፌ' ],
|
||||
[ 'ፍo', 'ፎ' ],
|
||||
[ 'ፉa', 'ፏ' ], // et
|
||||
|
||||
[ 'ፕe', 'ፐ' ],
|
||||
[ 'ፕu', 'ፑ' ],
|
||||
[ 'ፕi', 'ፒ' ],
|
||||
[ 'ፕa', 'ፓ' ],
|
||||
[ '(ፒe|ፕE)', 'ፔ' ],
|
||||
[ 'ፕo', 'ፖ' ],
|
||||
[ 'ፑa', 'ፗ' ], // et
|
||||
|
||||
// vowels
|
||||
[ 'A', 'እ' ],
|
||||
[ '(እu|u)', 'ኡ' ],
|
||||
[ '(እi|i)', 'ኢ' ],
|
||||
[ '(እa|a)', 'ኣ' ],
|
||||
[ '(ኢe|እE)', 'ኤ' ],
|
||||
[ '(እe|e)', 'አ' ],
|
||||
[ '(እo|o)', 'ኦ' ],
|
||||
[ 'አa', 'ኧ' ], // et
|
||||
|
||||
[ 'O', 'ዕ' ],
|
||||
[ 'ዕe', 'ዐ' ],
|
||||
[ 'ዕu', 'ዑ' ],
|
||||
[ 'ዕi', 'ዒ' ],
|
||||
[ 'ዕa', 'ዓ' ],
|
||||
[ '(ዒe|ዕE)', 'ዔ' ],
|
||||
[ 'ዕo', 'ዖ' ],
|
||||
|
||||
// punctuations
|
||||
[ ',', '፣' ],
|
||||
[ '።\\.', '.' ],
|
||||
[ '(\\.|፡;)', '።' ],
|
||||
[ '\\;', '፡' ],
|
||||
[ '\\?\\?', '፧' ],
|
||||
[ '፡-', '፦' ],
|
||||
[ '።-', '፨' ],
|
||||
[ '\\:', '፤' ],
|
||||
|
||||
// Geez Numerals
|
||||
[ '1^', '፩' ], // 1
|
||||
[ '2^', '፪' ], // 2
|
||||
[ '3^', '፫' ], // 3
|
||||
[ '4^', '፬' ], // 4
|
||||
[ '5^', '፭' ], // 5
|
||||
[ '6^', '፮' ], // 6
|
||||
[ '7^', '፯' ], // 7
|
||||
[ '8^', '፰' ], // 8
|
||||
[ '9^', '፱' ], // 9
|
||||
|
||||
[ '፩0', '፲' ], // 10
|
||||
[ '፪0', '፳' ], // 20
|
||||
[ '፫0', '፴' ], // 30
|
||||
[ '፬0', '፵' ], // 40
|
||||
[ '፭0', '፶' ], // 50
|
||||
[ '፮0', '፷' ], // 60
|
||||
[ '፯0', '፸' ], // 70
|
||||
[ '፰0', '፹' ], // 80
|
||||
[ '፱0', '፺' ], // 90
|
||||
|
||||
[ '፲0', '፻' ], // 100
|
||||
[ '፳0', '፪፻' ], // 200
|
||||
[ '፴0', '፫፻' ], // 300
|
||||
[ '፵0', '፬፻' ], // 400
|
||||
[ '፶0', '፭፻' ], // 500
|
||||
[ '፷0', '፮፻' ], // 600
|
||||
[ '፸0', '፯፻' ], // 700
|
||||
[ '፹0', '፰፻' ], // 800
|
||||
[ '፺0', '፱፻' ], // 900
|
||||
|
||||
[ '፻0', '፲፻' ], // 1000
|
||||
[ '፲፻0', '፼' ], // 10,000
|
||||
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( bynGeezim );
|
||||
}( jQuery ) );
|
||||
416
lib/jquery.ime/rules/ti/ti-geezim.js
Normal file
416
lib/jquery.ime/rules/ti/ti-geezim.js
Normal file
@@ -0,0 +1,416 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var tiGeezim = {
|
||||
id: 'ti-geezim',
|
||||
name: 'Tigrinya GeezIM',
|
||||
description: 'Tigrinya input method based on GeezIME scheme',
|
||||
date: '2017-01-22',
|
||||
URL: 'http://type.geezlab.com',
|
||||
author: 'Fitsum Gaim, <fitsum@geezlab.com>',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 1,
|
||||
maxKeyLength: 2,
|
||||
patterns: [
|
||||
// consonants
|
||||
[ 'h', 'ህ' ],
|
||||
[ '(l|L)', 'ል' ],
|
||||
[ 'H', 'ሕ' ],
|
||||
[ '(m|M)', 'ም' ],
|
||||
[ '(r|R)', 'ር' ],
|
||||
[ 'ስs', 'ሥ' ],
|
||||
[ 's', 'ስ' ],
|
||||
[ 'S', 'ሽ' ],
|
||||
[ 'q', 'ቅ' ],
|
||||
[ 'Q', 'ቕ' ],
|
||||
[ '(b|B)', 'ብ' ],
|
||||
[ '(v|V)', 'ቭ' ],
|
||||
[ 't', 'ት' ],
|
||||
[ 'c', 'ች' ],
|
||||
[ 'ህh', 'ኅ' ],
|
||||
[ 'n', 'ን' ],
|
||||
[ 'N', 'ኝ' ],
|
||||
[ 'k', 'ክ' ],
|
||||
[ 'K', 'ኽ' ],
|
||||
[ 'w', 'ው' ],
|
||||
[ 'z', 'ዝ' ],
|
||||
[ 'Z', 'ዥ' ],
|
||||
[ '(y|Y)', 'ይ' ],
|
||||
[ '(d|D)', 'ድ' ],
|
||||
[ '(j|J)', 'ጅ' ],
|
||||
[ 'g', 'ግ' ],
|
||||
[ 'G', 'ጝ' ], // Blin
|
||||
[ 'T', 'ጥ' ],
|
||||
[ 'C', 'ጭ' ],
|
||||
[ 'P', 'ጵ' ],
|
||||
[ '(x|X)', 'ጽ' ],
|
||||
[ '(ጽx|ጽX)', 'ፅ' ],
|
||||
[ '(f|F)', 'ፍ' ],
|
||||
[ 'p', 'ፕ' ],
|
||||
|
||||
// consonant-vowel orders
|
||||
[ 'ህe', 'ሀ' ],
|
||||
[ 'ህu', 'ሁ' ],
|
||||
[ 'ህi', 'ሂ' ],
|
||||
[ 'ህa', 'ሃ' ],
|
||||
[ '(ሂe|ህE)', 'ሄ' ],
|
||||
[ 'ህo', 'ሆ' ],
|
||||
|
||||
[ 'ልe', 'ለ' ],
|
||||
[ 'ልu', 'ሉ' ],
|
||||
[ 'ልi', 'ሊ' ],
|
||||
[ 'ልa', 'ላ' ],
|
||||
[ '(ሊe|ልE)', 'ሌ' ],
|
||||
[ 'ልo', 'ሎ' ],
|
||||
[ 'ሉa', 'ሏ' ], // et
|
||||
|
||||
[ 'ሕe', 'ሐ' ],
|
||||
[ 'ሕu', 'ሑ' ],
|
||||
[ 'ሕi', 'ሒ' ],
|
||||
[ 'ሕa', 'ሓ' ],
|
||||
[ '(ሒe|ሕE)', 'ሔ' ],
|
||||
[ 'ሕo', 'ሖ' ],
|
||||
[ 'ሑa', 'ሗ' ], // et
|
||||
|
||||
[ 'ምe', 'መ' ],
|
||||
[ 'ምu', 'ሙ' ],
|
||||
[ 'ምi', 'ሚ' ],
|
||||
[ 'ምa', 'ማ' ],
|
||||
[ '(ሚe|ምE)', 'ሜ' ],
|
||||
[ 'ምo', 'ሞ' ],
|
||||
[ 'ሙa', 'ሟ' ], // et
|
||||
|
||||
[ 'ርe', 'ረ' ],
|
||||
[ 'ርu', 'ሩ' ],
|
||||
[ 'ርi', 'ሪ' ],
|
||||
[ 'ርa', 'ራ' ],
|
||||
[ '(ሪe|ርE)', 'ሬ' ],
|
||||
[ 'ርo', 'ሮ' ],
|
||||
[ 'ሩa', 'ሯ' ], // et
|
||||
|
||||
[ 'ሥe', 'ሠ' ],
|
||||
[ 'ሥu', 'ሡ' ],
|
||||
[ 'ሥi', 'ሢ' ],
|
||||
[ 'ሥa', 'ሣ' ],
|
||||
[ '(ሢe|ሥE)', 'ሤ' ],
|
||||
[ 'ሥo', 'ሦ' ],
|
||||
[ 'ሡa', 'ሧ' ], // et
|
||||
|
||||
[ 'ስe', 'ሰ' ],
|
||||
[ 'ስu', 'ሱ' ],
|
||||
[ 'ስi', 'ሲ' ],
|
||||
[ 'ስa', 'ሳ' ],
|
||||
[ '(ሲe|ስE)', 'ሴ' ],
|
||||
[ 'ስo', 'ሶ' ],
|
||||
[ 'ሱa', 'ሷ' ], // et
|
||||
|
||||
[ 'ሽe', 'ሸ' ],
|
||||
[ 'ሽu', 'ሹ' ],
|
||||
[ 'ሽi', 'ሺ' ],
|
||||
[ 'ሽa', 'ሻ' ],
|
||||
[ '(ሺe|ሽE)', 'ሼ' ],
|
||||
[ 'ሽo', 'ሾ' ],
|
||||
[ 'ሹa', 'ሿ' ], // et
|
||||
|
||||
[ 'ቅe', 'ቀ' ],
|
||||
[ 'ቅu', 'ቁ' ],
|
||||
[ 'ቅi', 'ቂ' ],
|
||||
[ 'ቅa', 'ቃ' ],
|
||||
[ '(ቂe|ቅE)', 'ቄ' ],
|
||||
[ 'ቅo', 'ቆ' ],
|
||||
|
||||
[ 'ቁe', 'ቈ' ],
|
||||
[ 'ቁi', 'ቊ' ],
|
||||
[ 'ቁa', 'ቋ' ],
|
||||
[ 'ቊe', 'ቌ' ],
|
||||
[ 'ቅW', 'ቍ' ],
|
||||
|
||||
[ 'ቕe', 'ቐ' ],
|
||||
[ 'ቕu', 'ቑ' ],
|
||||
[ 'ቕi', 'ቒ' ],
|
||||
[ 'ቕa', 'ቓ' ],
|
||||
[ '(ቒe|ቕE)', 'ቔ' ],
|
||||
[ 'ቕo', 'ቖ' ],
|
||||
|
||||
[ 'ቑe', 'ቘ' ],
|
||||
[ 'ቑi', 'ቚ' ],
|
||||
[ 'ቑa', 'ቛ' ],
|
||||
[ 'ቚe', 'ቜ' ],
|
||||
[ 'ቕW', 'ቝ' ],
|
||||
|
||||
[ 'ብe', 'በ' ],
|
||||
[ 'ብu', 'ቡ' ],
|
||||
[ 'ብi', 'ቢ' ],
|
||||
[ 'ብa', 'ባ' ],
|
||||
[ '(ቢe|ብE)', 'ቤ' ],
|
||||
[ 'ብo', 'ቦ' ],
|
||||
[ 'ቡa', 'ቧ' ], // et
|
||||
|
||||
[ 'ቭe', 'ቨ' ],
|
||||
[ 'ቭu', 'ቩ' ],
|
||||
[ 'ቭi', 'ቪ' ],
|
||||
[ 'ቭa', 'ቫ' ],
|
||||
[ '(ቪe|ቭE)', 'ቬ' ],
|
||||
[ 'ቭo', 'ቮ' ],
|
||||
[ 'ቩa', 'ቯ' ], // et
|
||||
|
||||
[ 'ትe', 'ተ' ],
|
||||
[ 'ትu', 'ቱ' ],
|
||||
[ 'ትi', 'ቲ' ],
|
||||
[ 'ትa', 'ታ' ],
|
||||
[ '(ቲe|ትE)', 'ቴ' ],
|
||||
[ 'ትo', 'ቶ' ],
|
||||
[ 'ቱa', 'ቷ' ], // et
|
||||
|
||||
[ 'ችe', 'ቸ' ],
|
||||
[ 'ችu', 'ቹ' ],
|
||||
[ 'ችi', 'ቺ' ],
|
||||
[ 'ችa', 'ቻ' ],
|
||||
[ '(ቺe|ችE)', 'ቼ' ],
|
||||
[ 'ችo', 'ቾ' ],
|
||||
[ 'ቹa', 'ቿ' ], // et
|
||||
|
||||
[ 'ኅe', 'ኀ' ],
|
||||
[ 'ኅu', 'ኁ' ],
|
||||
[ 'ኅi', 'ኂ' ],
|
||||
[ 'ኅa', 'ኃ' ],
|
||||
[ '(ኂe|ኅE)', 'ኄ' ],
|
||||
[ 'ኅo', 'ኆ' ],
|
||||
|
||||
[ 'ኁe', 'ኈ' ],
|
||||
[ 'ኈi', 'ኊ' ],
|
||||
[ 'ኈa', 'ኋ' ],
|
||||
[ 'ኊe', 'ኌ' ],
|
||||
[ 'ኅW', 'ኍ' ],
|
||||
|
||||
[ 'ንe', 'ነ' ],
|
||||
[ 'ንu', 'ኑ' ],
|
||||
[ 'ንi', 'ኒ' ],
|
||||
[ 'ንa', 'ና' ],
|
||||
[ '(ኒe|ንE)', 'ኔ' ],
|
||||
[ 'ንo', 'ኖ' ],
|
||||
[ 'ኑa', 'ኗ' ], // et
|
||||
|
||||
[ 'ኝe', 'ኘ' ],
|
||||
[ 'ኝu', 'ኙ' ],
|
||||
[ 'ኝi', 'ኚ' ],
|
||||
[ 'ኝa', 'ኛ' ],
|
||||
[ '(ኚe|ኝE)', 'ኜ' ],
|
||||
[ 'ኝo', 'ኞ' ],
|
||||
[ 'ኙa', 'ኟ' ], // et
|
||||
|
||||
[ 'ክe', 'ከ' ],
|
||||
[ 'ክu', 'ኩ' ],
|
||||
[ 'ክi', 'ኪ' ],
|
||||
[ 'ክa', 'ካ' ],
|
||||
[ '(ኪe|ክE)', 'ኬ' ],
|
||||
[ 'ክo', 'ኮ' ],
|
||||
|
||||
[ 'ኩe', 'ኰ' ],
|
||||
[ 'ኩi', 'ኲ' ],
|
||||
[ 'ኩa', 'ኳ' ],
|
||||
[ 'ኲe', 'ኴ' ],
|
||||
[ 'ክW', 'ኵ' ],
|
||||
|
||||
[ 'ኽe', 'ኸ' ],
|
||||
[ 'ኽu', 'ኹ' ],
|
||||
[ 'ኽi', 'ኺ' ],
|
||||
[ 'ኽa', 'ኻ' ],
|
||||
[ '(ኺe|ኽE)', 'ኼ' ],
|
||||
[ 'ኽo', 'ኾ' ],
|
||||
|
||||
[ 'ኹe', 'ዀ' ],
|
||||
[ 'ኹi', 'ዂ' ],
|
||||
[ 'ኹa', 'ዃ' ],
|
||||
[ 'ዂe', 'ዄ' ],
|
||||
[ 'ኽW', 'ዅ' ],
|
||||
|
||||
[ 'ውe', 'ወ' ],
|
||||
[ 'ውu', 'ዉ' ],
|
||||
[ 'ውi', 'ዊ' ],
|
||||
[ 'ውa', 'ዋ' ],
|
||||
[ '(ዊe|ውE)', 'ዌ' ],
|
||||
[ 'ውo', 'ዎ' ],
|
||||
|
||||
[ 'ዝe', 'ዘ' ],
|
||||
[ 'ዝu', 'ዙ' ],
|
||||
[ 'ዝi', 'ዚ' ],
|
||||
[ 'ዝa', 'ዛ' ],
|
||||
[ '(ዚe|ዝE)', 'ዜ' ],
|
||||
[ 'ዝo', 'ዞ' ],
|
||||
[ 'ዙa', 'ዟ' ], // et
|
||||
|
||||
[ 'ዥe', 'ዠ' ],
|
||||
[ 'ዥu', 'ዡ' ],
|
||||
[ 'ዥi', 'ዢ' ],
|
||||
[ 'ዥa', 'ዣ' ],
|
||||
[ '(ዢe|ዥE)', 'ዤ' ],
|
||||
[ 'ዥo', 'ዦ' ],
|
||||
[ 'ዡa', 'ዧ' ], // et
|
||||
|
||||
[ 'ይe', 'የ' ],
|
||||
[ 'ይu', 'ዩ' ],
|
||||
[ 'ይi', 'ዪ' ],
|
||||
[ 'ይa', 'ያ' ],
|
||||
[ '(ዪe|ይE)', 'ዬ' ],
|
||||
[ 'ይo', 'ዮ' ],
|
||||
|
||||
[ 'ድe', 'ደ' ],
|
||||
[ 'ድu', 'ዱ' ],
|
||||
[ 'ድi', 'ዲ' ],
|
||||
[ 'ድa', 'ዳ' ],
|
||||
[ '(ዲe|ድE)', 'ዴ' ],
|
||||
[ 'ድo', 'ዶ' ],
|
||||
[ 'ዱa', 'ዷ' ], // et
|
||||
|
||||
[ 'ጅe', 'ጀ' ],
|
||||
[ 'ጅu', 'ጁ' ],
|
||||
[ 'ጅi', 'ጂ' ],
|
||||
[ 'ጅa', 'ጃ' ],
|
||||
[ '(ጂe|ጅE)', 'ጄ' ],
|
||||
[ 'ጅo', 'ጆ' ],
|
||||
[ 'ጁa', 'ጇ' ], // et
|
||||
|
||||
[ 'ግe', 'ገ' ],
|
||||
[ 'ግu', 'ጉ' ],
|
||||
[ 'ግi', 'ጊ' ],
|
||||
[ 'ግa', 'ጋ' ],
|
||||
[ '(ጊe|ግE)', 'ጌ' ],
|
||||
[ 'ግo', 'ጎ' ],
|
||||
|
||||
[ 'ጉe', 'ጐ' ],
|
||||
[ 'ጉi', 'ጒ' ],
|
||||
[ 'ጉa', 'ጓ' ],
|
||||
[ 'ጒe', 'ጔ' ],
|
||||
[ 'ግW', 'ጕ' ],
|
||||
|
||||
[ 'ጝe', 'ጘ' ],
|
||||
[ 'ጝu', 'ጙ' ],
|
||||
[ 'ጝi', 'ጚ' ],
|
||||
[ 'ጝa', 'ጛ' ],
|
||||
[ '(ጚe|ጝE)', 'ጜ' ],
|
||||
[ 'ጝo', 'ጞ' ],
|
||||
|
||||
[ 'ጥe', 'ጠ' ],
|
||||
[ 'ጥu', 'ጡ' ],
|
||||
[ 'ጥi', 'ጢ' ],
|
||||
[ 'ጥa', 'ጣ' ],
|
||||
[ '(ጢe|ጥE)', 'ጤ' ],
|
||||
[ 'ጥo', 'ጦ' ],
|
||||
[ 'ጡa', 'ጧ' ], // et
|
||||
|
||||
[ 'ጭe', 'ጨ' ],
|
||||
[ 'ጭu', 'ጩ' ],
|
||||
[ 'ጭi', 'ጪ' ],
|
||||
[ 'ጭa', 'ጫ' ],
|
||||
[ '(ጪe|ጭE)', 'ጬ' ],
|
||||
[ 'ጭo', 'ጮ' ],
|
||||
[ 'ጩa', 'ጯ' ], // et
|
||||
|
||||
[ 'ጵe', 'ጰ' ],
|
||||
[ 'ጵu', 'ጱ' ],
|
||||
[ 'ጵi', 'ጲ' ],
|
||||
[ 'ጵa', 'ጳ' ],
|
||||
[ '(ጲe|ጵE)', 'ጴ' ],
|
||||
[ 'ጵo', 'ጶ' ],
|
||||
[ 'ጱa', 'ጷ' ],
|
||||
|
||||
[ 'ጽe', 'ጸ' ],
|
||||
[ 'ጽu', 'ጹ' ],
|
||||
[ 'ጽi', 'ጺ' ],
|
||||
[ 'ጽa', 'ጻ' ],
|
||||
[ '(ጺe|ጽE)', 'ጼ' ],
|
||||
[ 'ጽo', 'ጾ' ],
|
||||
[ 'ጹa', 'ጿ' ], // et
|
||||
|
||||
[ 'ፅe', 'ፀ' ],
|
||||
[ 'ፅu', 'ፁ' ],
|
||||
[ 'ፅi', 'ፂ' ],
|
||||
[ 'ፅa', 'ፃ' ],
|
||||
[ '(ፂe|ፅE)', 'ፄ' ],
|
||||
[ 'ፅo', 'ፆ' ],
|
||||
|
||||
[ 'ፍe', 'ፈ' ],
|
||||
[ 'ፍu', 'ፉ' ],
|
||||
[ 'ፍi', 'ፊ' ],
|
||||
[ 'ፍa', 'ፋ' ],
|
||||
[ '(ፈe|ፍE)', 'ፌ' ],
|
||||
[ 'ፍo', 'ፎ' ],
|
||||
[ 'ፉa', 'ፏ' ], // et
|
||||
|
||||
[ 'ፕe', 'ፐ' ],
|
||||
[ 'ፕu', 'ፑ' ],
|
||||
[ 'ፕi', 'ፒ' ],
|
||||
[ 'ፕa', 'ፓ' ],
|
||||
[ '(ፒe|ፕE)', 'ፔ' ],
|
||||
[ 'ፕo', 'ፖ' ],
|
||||
[ 'ፑa', 'ፗ' ], // et
|
||||
|
||||
// vowels
|
||||
[ 'A', 'እ' ],
|
||||
[ '(እu|u)', 'ኡ' ],
|
||||
[ '(እi|i)', 'ኢ' ],
|
||||
[ '(እa|a)', 'ኣ' ],
|
||||
[ '(ኢe|እE)', 'ኤ' ],
|
||||
[ '(እe|e)', 'አ' ],
|
||||
[ '(እo|o)', 'ኦ' ],
|
||||
[ 'አa', 'ኧ' ], // et
|
||||
|
||||
[ 'O', 'ዕ' ],
|
||||
[ 'ዕe', 'ዐ' ],
|
||||
[ 'ዕu', 'ዑ' ],
|
||||
[ 'ዕi', 'ዒ' ],
|
||||
[ 'ዕa', 'ዓ' ],
|
||||
[ '(ዒe|ዕE)', 'ዔ' ],
|
||||
[ 'ዕo', 'ዖ' ],
|
||||
|
||||
// punctuations
|
||||
[ ',', '፣' ],
|
||||
[ '።\\.', '.' ],
|
||||
[ '(\\.|፡;)', '።' ],
|
||||
[ '\\;', '፡' ],
|
||||
[ '\\?\\?', '፧' ],
|
||||
[ '፡-', '፦' ],
|
||||
[ '።-', '፨' ],
|
||||
[ '\\:', '፤' ],
|
||||
|
||||
// Geez Numerals
|
||||
[ '1^', '፩' ], // 1
|
||||
[ '2^', '፪' ], // 2
|
||||
[ '3^', '፫' ], // 3
|
||||
[ '4^', '፬' ], // 4
|
||||
[ '5^', '፭' ], // 5
|
||||
[ '6^', '፮' ], // 6
|
||||
[ '7^', '፯' ], // 7
|
||||
[ '8^', '፰' ], // 8
|
||||
[ '9^', '፱' ], // 9
|
||||
|
||||
[ '፩0', '፲' ], // 10
|
||||
[ '፪0', '፳' ], // 20
|
||||
[ '፫0', '፴' ], // 30
|
||||
[ '፬0', '፵' ], // 40
|
||||
[ '፭0', '፶' ], // 50
|
||||
[ '፮0', '፷' ], // 60
|
||||
[ '፯0', '፸' ], // 70
|
||||
[ '፰0', '፹' ], // 80
|
||||
[ '፱0', '፺' ], // 90
|
||||
|
||||
[ '፲0', '፻' ], // 100
|
||||
[ '፳0', '፪፻' ], // 200
|
||||
[ '፴0', '፫፻' ], // 300
|
||||
[ '፵0', '፬፻' ], // 400
|
||||
[ '፶0', '፭፻' ], // 500
|
||||
[ '፷0', '፮፻' ], // 600
|
||||
[ '፸0', '፯፻' ], // 700
|
||||
[ '፹0', '፰፻' ], // 800
|
||||
[ '፺0', '፱፻' ], // 900
|
||||
|
||||
[ '፻0', '፲፻' ], // 1000
|
||||
[ '፲፻0', '፼' ], // 10,000
|
||||
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( tiGeezim );
|
||||
}( jQuery ) );
|
||||
416
lib/jquery.ime/rules/tig/tig-geezim.js
Normal file
416
lib/jquery.ime/rules/tig/tig-geezim.js
Normal file
@@ -0,0 +1,416 @@
|
||||
( function ( $ ) {
|
||||
'use strict';
|
||||
|
||||
var tigGeezim = {
|
||||
id: 'tig-geezim',
|
||||
name: 'Tigre GeezIM',
|
||||
description: 'Tigre input method based on GeezIME scheme',
|
||||
date: '2017-01-22',
|
||||
URL: 'http://type.geezlab.com',
|
||||
author: 'Fitsum Gaim, <fitsum@geezlab.com>',
|
||||
license: 'GPLv3',
|
||||
version: '1.0',
|
||||
contextLength: 1,
|
||||
maxKeyLength: 2,
|
||||
patterns: [
|
||||
// consonants
|
||||
[ 'h', 'ህ' ],
|
||||
[ '(l|L)', 'ል' ],
|
||||
[ 'H', 'ሕ' ],
|
||||
[ '(m|M)', 'ም' ],
|
||||
[ '(r|R)', 'ር' ],
|
||||
[ 'ስs', 'ሥ' ],
|
||||
[ 's', 'ስ' ],
|
||||
[ 'S', 'ሽ' ],
|
||||
[ 'q', 'ቅ' ],
|
||||
[ 'Q', 'ቕ' ],
|
||||
[ '(b|B)', 'ብ' ],
|
||||
[ '(v|V)', 'ቭ' ],
|
||||
[ 't', 'ት' ],
|
||||
[ 'c', 'ች' ],
|
||||
[ 'ህh', 'ኅ' ],
|
||||
[ 'n', 'ን' ],
|
||||
[ 'N', 'ኝ' ],
|
||||
[ 'k', 'ክ' ],
|
||||
[ 'K', 'ኽ' ],
|
||||
[ 'w', 'ው' ],
|
||||
[ 'z', 'ዝ' ],
|
||||
[ 'Z', 'ዥ' ],
|
||||
[ '(y|Y)', 'ይ' ],
|
||||
[ '(d|D)', 'ድ' ],
|
||||
[ '(j|J)', 'ጅ' ],
|
||||
[ 'g', 'ግ' ],
|
||||
[ 'G', 'ጝ' ], // Blin
|
||||
[ 'T', 'ጥ' ],
|
||||
[ 'C', 'ጭ' ],
|
||||
[ 'P', 'ጵ' ],
|
||||
[ '(x|X)', 'ጽ' ],
|
||||
[ '(ጽx|ጽX)', 'ፅ' ],
|
||||
[ '(f|F)', 'ፍ' ],
|
||||
[ 'p', 'ፕ' ],
|
||||
|
||||
// consonant-vowel orders
|
||||
[ 'ህe', 'ሀ' ],
|
||||
[ 'ህu', 'ሁ' ],
|
||||
[ 'ህi', 'ሂ' ],
|
||||
[ 'ህa', 'ሃ' ],
|
||||
[ '(ሂe|ህE)', 'ሄ' ],
|
||||
[ 'ህo', 'ሆ' ],
|
||||
|
||||
[ 'ልe', 'ለ' ],
|
||||
[ 'ልu', 'ሉ' ],
|
||||
[ 'ልi', 'ሊ' ],
|
||||
[ 'ልa', 'ላ' ],
|
||||
[ '(ሊe|ልE)', 'ሌ' ],
|
||||
[ 'ልo', 'ሎ' ],
|
||||
[ 'ሉa', 'ሏ' ], // et
|
||||
|
||||
[ 'ሕe', 'ሐ' ],
|
||||
[ 'ሕu', 'ሑ' ],
|
||||
[ 'ሕi', 'ሒ' ],
|
||||
[ 'ሕa', 'ሓ' ],
|
||||
[ '(ሒe|ሕE)', 'ሔ' ],
|
||||
[ 'ሕo', 'ሖ' ],
|
||||
[ 'ሑa', 'ሗ' ], // et
|
||||
|
||||
[ 'ምe', 'መ' ],
|
||||
[ 'ምu', 'ሙ' ],
|
||||
[ 'ምi', 'ሚ' ],
|
||||
[ 'ምa', 'ማ' ],
|
||||
[ '(ሚe|ምE)', 'ሜ' ],
|
||||
[ 'ምo', 'ሞ' ],
|
||||
[ 'ሙa', 'ሟ' ], // et
|
||||
|
||||
[ 'ርe', 'ረ' ],
|
||||
[ 'ርu', 'ሩ' ],
|
||||
[ 'ርi', 'ሪ' ],
|
||||
[ 'ርa', 'ራ' ],
|
||||
[ '(ሪe|ርE)', 'ሬ' ],
|
||||
[ 'ርo', 'ሮ' ],
|
||||
[ 'ሩa', 'ሯ' ], // et
|
||||
|
||||
[ 'ሥe', 'ሠ' ],
|
||||
[ 'ሥu', 'ሡ' ],
|
||||
[ 'ሥi', 'ሢ' ],
|
||||
[ 'ሥa', 'ሣ' ],
|
||||
[ '(ሢe|ሥE)', 'ሤ' ],
|
||||
[ 'ሥo', 'ሦ' ],
|
||||
[ 'ሡa', 'ሧ' ], // et
|
||||
|
||||
[ 'ስe', 'ሰ' ],
|
||||
[ 'ስu', 'ሱ' ],
|
||||
[ 'ስi', 'ሲ' ],
|
||||
[ 'ስa', 'ሳ' ],
|
||||
[ '(ሲe|ስE)', 'ሴ' ],
|
||||
[ 'ስo', 'ሶ' ],
|
||||
[ 'ሱa', 'ሷ' ], // et
|
||||
|
||||
[ 'ሽe', 'ሸ' ],
|
||||
[ 'ሽu', 'ሹ' ],
|
||||
[ 'ሽi', 'ሺ' ],
|
||||
[ 'ሽa', 'ሻ' ],
|
||||
[ '(ሺe|ሽE)', 'ሼ' ],
|
||||
[ 'ሽo', 'ሾ' ],
|
||||
[ 'ሹa', 'ሿ' ], // et
|
||||
|
||||
[ 'ቅe', 'ቀ' ],
|
||||
[ 'ቅu', 'ቁ' ],
|
||||
[ 'ቅi', 'ቂ' ],
|
||||
[ 'ቅa', 'ቃ' ],
|
||||
[ '(ቂe|ቅE)', 'ቄ' ],
|
||||
[ 'ቅo', 'ቆ' ],
|
||||
|
||||
[ 'ቁe', 'ቈ' ],
|
||||
[ 'ቁi', 'ቊ' ],
|
||||
[ 'ቁa', 'ቋ' ],
|
||||
[ 'ቊe', 'ቌ' ],
|
||||
[ 'ቅW', 'ቍ' ],
|
||||
|
||||
[ 'ቕe', 'ቐ' ],
|
||||
[ 'ቕu', 'ቑ' ],
|
||||
[ 'ቕi', 'ቒ' ],
|
||||
[ 'ቕa', 'ቓ' ],
|
||||
[ '(ቒe|ቕE)', 'ቔ' ],
|
||||
[ 'ቕo', 'ቖ' ],
|
||||
|
||||
[ 'ቑe', 'ቘ' ],
|
||||
[ 'ቑi', 'ቚ' ],
|
||||
[ 'ቑa', 'ቛ' ],
|
||||
[ 'ቚe', 'ቜ' ],
|
||||
[ 'ቕW', 'ቝ' ],
|
||||
|
||||
[ 'ብe', 'በ' ],
|
||||
[ 'ብu', 'ቡ' ],
|
||||
[ 'ብi', 'ቢ' ],
|
||||
[ 'ብa', 'ባ' ],
|
||||
[ '(ቢe|ብE)', 'ቤ' ],
|
||||
[ 'ብo', 'ቦ' ],
|
||||
[ 'ቡa', 'ቧ' ], // et
|
||||
|
||||
[ 'ቭe', 'ቨ' ],
|
||||
[ 'ቭu', 'ቩ' ],
|
||||
[ 'ቭi', 'ቪ' ],
|
||||
[ 'ቭa', 'ቫ' ],
|
||||
[ '(ቪe|ቭE)', 'ቬ' ],
|
||||
[ 'ቭo', 'ቮ' ],
|
||||
[ 'ቩa', 'ቯ' ], // et
|
||||
|
||||
[ 'ትe', 'ተ' ],
|
||||
[ 'ትu', 'ቱ' ],
|
||||
[ 'ትi', 'ቲ' ],
|
||||
[ 'ትa', 'ታ' ],
|
||||
[ '(ቲe|ትE)', 'ቴ' ],
|
||||
[ 'ትo', 'ቶ' ],
|
||||
[ 'ቱa', 'ቷ' ], // et
|
||||
|
||||
[ 'ችe', 'ቸ' ],
|
||||
[ 'ችu', 'ቹ' ],
|
||||
[ 'ችi', 'ቺ' ],
|
||||
[ 'ችa', 'ቻ' ],
|
||||
[ '(ቺe|ችE)', 'ቼ' ],
|
||||
[ 'ችo', 'ቾ' ],
|
||||
[ 'ቹa', 'ቿ' ], // et
|
||||
|
||||
[ 'ኅe', 'ኀ' ],
|
||||
[ 'ኅu', 'ኁ' ],
|
||||
[ 'ኅi', 'ኂ' ],
|
||||
[ 'ኅa', 'ኃ' ],
|
||||
[ '(ኂe|ኅE)', 'ኄ' ],
|
||||
[ 'ኅo', 'ኆ' ],
|
||||
|
||||
[ 'ኁe', 'ኈ' ],
|
||||
[ 'ኈi', 'ኊ' ],
|
||||
[ 'ኈa', 'ኋ' ],
|
||||
[ 'ኊe', 'ኌ' ],
|
||||
[ 'ኅW', 'ኍ' ],
|
||||
|
||||
[ 'ንe', 'ነ' ],
|
||||
[ 'ንu', 'ኑ' ],
|
||||
[ 'ንi', 'ኒ' ],
|
||||
[ 'ንa', 'ና' ],
|
||||
[ '(ኒe|ንE)', 'ኔ' ],
|
||||
[ 'ንo', 'ኖ' ],
|
||||
[ 'ኑa', 'ኗ' ], // et
|
||||
|
||||
[ 'ኝe', 'ኘ' ],
|
||||
[ 'ኝu', 'ኙ' ],
|
||||
[ 'ኝi', 'ኚ' ],
|
||||
[ 'ኝa', 'ኛ' ],
|
||||
[ '(ኚe|ኝE)', 'ኜ' ],
|
||||
[ 'ኝo', 'ኞ' ],
|
||||
[ 'ኙa', 'ኟ' ], // et
|
||||
|
||||
[ 'ክe', 'ከ' ],
|
||||
[ 'ክu', 'ኩ' ],
|
||||
[ 'ክi', 'ኪ' ],
|
||||
[ 'ክa', 'ካ' ],
|
||||
[ '(ኪe|ክE)', 'ኬ' ],
|
||||
[ 'ክo', 'ኮ' ],
|
||||
|
||||
[ 'ኩe', 'ኰ' ],
|
||||
[ 'ኩi', 'ኲ' ],
|
||||
[ 'ኩa', 'ኳ' ],
|
||||
[ 'ኲe', 'ኴ' ],
|
||||
[ 'ክW', 'ኵ' ],
|
||||
|
||||
[ 'ኽe', 'ኸ' ],
|
||||
[ 'ኽu', 'ኹ' ],
|
||||
[ 'ኽi', 'ኺ' ],
|
||||
[ 'ኽa', 'ኻ' ],
|
||||
[ '(ኺe|ኽE)', 'ኼ' ],
|
||||
[ 'ኽo', 'ኾ' ],
|
||||
|
||||
[ 'ኹe', 'ዀ' ],
|
||||
[ 'ኹi', 'ዂ' ],
|
||||
[ 'ኹa', 'ዃ' ],
|
||||
[ 'ዂe', 'ዄ' ],
|
||||
[ 'ኽW', 'ዅ' ],
|
||||
|
||||
[ 'ውe', 'ወ' ],
|
||||
[ 'ውu', 'ዉ' ],
|
||||
[ 'ውi', 'ዊ' ],
|
||||
[ 'ውa', 'ዋ' ],
|
||||
[ '(ዊe|ውE)', 'ዌ' ],
|
||||
[ 'ውo', 'ዎ' ],
|
||||
|
||||
[ 'ዝe', 'ዘ' ],
|
||||
[ 'ዝu', 'ዙ' ],
|
||||
[ 'ዝi', 'ዚ' ],
|
||||
[ 'ዝa', 'ዛ' ],
|
||||
[ '(ዚe|ዝE)', 'ዜ' ],
|
||||
[ 'ዝo', 'ዞ' ],
|
||||
[ 'ዙa', 'ዟ' ], // et
|
||||
|
||||
[ 'ዥe', 'ዠ' ],
|
||||
[ 'ዥu', 'ዡ' ],
|
||||
[ 'ዥi', 'ዢ' ],
|
||||
[ 'ዥa', 'ዣ' ],
|
||||
[ '(ዢe|ዥE)', 'ዤ' ],
|
||||
[ 'ዥo', 'ዦ' ],
|
||||
[ 'ዡa', 'ዧ' ], // et
|
||||
|
||||
[ 'ይe', 'የ' ],
|
||||
[ 'ይu', 'ዩ' ],
|
||||
[ 'ይi', 'ዪ' ],
|
||||
[ 'ይa', 'ያ' ],
|
||||
[ '(ዪe|ይE)', 'ዬ' ],
|
||||
[ 'ይo', 'ዮ' ],
|
||||
|
||||
[ 'ድe', 'ደ' ],
|
||||
[ 'ድu', 'ዱ' ],
|
||||
[ 'ድi', 'ዲ' ],
|
||||
[ 'ድa', 'ዳ' ],
|
||||
[ '(ዲe|ድE)', 'ዴ' ],
|
||||
[ 'ድo', 'ዶ' ],
|
||||
[ 'ዱa', 'ዷ' ], // et
|
||||
|
||||
[ 'ጅe', 'ጀ' ],
|
||||
[ 'ጅu', 'ጁ' ],
|
||||
[ 'ጅi', 'ጂ' ],
|
||||
[ 'ጅa', 'ጃ' ],
|
||||
[ '(ጂe|ጅE)', 'ጄ' ],
|
||||
[ 'ጅo', 'ጆ' ],
|
||||
[ 'ጁa', 'ጇ' ], // et
|
||||
|
||||
[ 'ግe', 'ገ' ],
|
||||
[ 'ግu', 'ጉ' ],
|
||||
[ 'ግi', 'ጊ' ],
|
||||
[ 'ግa', 'ጋ' ],
|
||||
[ '(ጊe|ግE)', 'ጌ' ],
|
||||
[ 'ግo', 'ጎ' ],
|
||||
|
||||
[ 'ጉe', 'ጐ' ],
|
||||
[ 'ጉi', 'ጒ' ],
|
||||
[ 'ጉa', 'ጓ' ],
|
||||
[ 'ጒe', 'ጔ' ],
|
||||
[ 'ግW', 'ጕ' ],
|
||||
|
||||
[ 'ጝe', 'ጘ' ],
|
||||
[ 'ጝu', 'ጙ' ],
|
||||
[ 'ጝi', 'ጚ' ],
|
||||
[ 'ጝa', 'ጛ' ],
|
||||
[ '(ጚe|ጝE)', 'ጜ' ],
|
||||
[ 'ጝo', 'ጞ' ],
|
||||
|
||||
[ 'ጥe', 'ጠ' ],
|
||||
[ 'ጥu', 'ጡ' ],
|
||||
[ 'ጥi', 'ጢ' ],
|
||||
[ 'ጥa', 'ጣ' ],
|
||||
[ '(ጢe|ጥE)', 'ጤ' ],
|
||||
[ 'ጥo', 'ጦ' ],
|
||||
[ 'ጡa', 'ጧ' ], // et
|
||||
|
||||
[ 'ጭe', 'ጨ' ],
|
||||
[ 'ጭu', 'ጩ' ],
|
||||
[ 'ጭi', 'ጪ' ],
|
||||
[ 'ጭa', 'ጫ' ],
|
||||
[ '(ጪe|ጭE)', 'ጬ' ],
|
||||
[ 'ጭo', 'ጮ' ],
|
||||
[ 'ጩa', 'ጯ' ], // et
|
||||
|
||||
[ 'ጵe', 'ጰ' ],
|
||||
[ 'ጵu', 'ጱ' ],
|
||||
[ 'ጵi', 'ጲ' ],
|
||||
[ 'ጵa', 'ጳ' ],
|
||||
[ '(ጲe|ጵE)', 'ጴ' ],
|
||||
[ 'ጵo', 'ጶ' ],
|
||||
[ 'ጱa', 'ጷ' ],
|
||||
|
||||
[ 'ጽe', 'ጸ' ],
|
||||
[ 'ጽu', 'ጹ' ],
|
||||
[ 'ጽi', 'ጺ' ],
|
||||
[ 'ጽa', 'ጻ' ],
|
||||
[ '(ጺe|ጽE)', 'ጼ' ],
|
||||
[ 'ጽo', 'ጾ' ],
|
||||
[ 'ጹa', 'ጿ' ], // et
|
||||
|
||||
[ 'ፅe', 'ፀ' ],
|
||||
[ 'ፅu', 'ፁ' ],
|
||||
[ 'ፅi', 'ፂ' ],
|
||||
[ 'ፅa', 'ፃ' ],
|
||||
[ '(ፂe|ፅE)', 'ፄ' ],
|
||||
[ 'ፅo', 'ፆ' ],
|
||||
|
||||
[ 'ፍe', 'ፈ' ],
|
||||
[ 'ፍu', 'ፉ' ],
|
||||
[ 'ፍi', 'ፊ' ],
|
||||
[ 'ፍa', 'ፋ' ],
|
||||
[ '(ፈe|ፍE)', 'ፌ' ],
|
||||
[ 'ፍo', 'ፎ' ],
|
||||
[ 'ፉa', 'ፏ' ], // et
|
||||
|
||||
[ 'ፕe', 'ፐ' ],
|
||||
[ 'ፕu', 'ፑ' ],
|
||||
[ 'ፕi', 'ፒ' ],
|
||||
[ 'ፕa', 'ፓ' ],
|
||||
[ '(ፒe|ፕE)', 'ፔ' ],
|
||||
[ 'ፕo', 'ፖ' ],
|
||||
[ 'ፑa', 'ፗ' ], // et
|
||||
|
||||
// vowels
|
||||
[ 'A', 'እ' ],
|
||||
[ '(እu|u)', 'ኡ' ],
|
||||
[ '(እi|i)', 'ኢ' ],
|
||||
[ '(እa|a)', 'ኣ' ],
|
||||
[ '(ኢe|እE)', 'ኤ' ],
|
||||
[ '(እe|e)', 'አ' ],
|
||||
[ '(እo|o)', 'ኦ' ],
|
||||
[ 'አa', 'ኧ' ], // et
|
||||
|
||||
[ 'O', 'ዕ' ],
|
||||
[ 'ዕe', 'ዐ' ],
|
||||
[ 'ዕu', 'ዑ' ],
|
||||
[ 'ዕi', 'ዒ' ],
|
||||
[ 'ዕa', 'ዓ' ],
|
||||
[ '(ዒe|ዕE)', 'ዔ' ],
|
||||
[ 'ዕo', 'ዖ' ],
|
||||
|
||||
// punctuations
|
||||
[ ',', '፣' ],
|
||||
[ '።\\.', '.' ],
|
||||
[ '(\\.|፡;)', '።' ],
|
||||
[ '\\;', '፡' ],
|
||||
[ '\\?\\?', '፧' ],
|
||||
[ '፡-', '፦' ],
|
||||
[ '።-', '፨' ],
|
||||
[ '\\:', '፤' ],
|
||||
|
||||
// Geez Numerals
|
||||
[ '1^', '፩' ], // 1
|
||||
[ '2^', '፪' ], // 2
|
||||
[ '3^', '፫' ], // 3
|
||||
[ '4^', '፬' ], // 4
|
||||
[ '5^', '፭' ], // 5
|
||||
[ '6^', '፮' ], // 6
|
||||
[ '7^', '፯' ], // 7
|
||||
[ '8^', '፰' ], // 8
|
||||
[ '9^', '፱' ], // 9
|
||||
|
||||
[ '፩0', '፲' ], // 10
|
||||
[ '፪0', '፳' ], // 20
|
||||
[ '፫0', '፴' ], // 30
|
||||
[ '፬0', '፵' ], // 40
|
||||
[ '፭0', '፶' ], // 50
|
||||
[ '፮0', '፷' ], // 60
|
||||
[ '፯0', '፸' ], // 70
|
||||
[ '፰0', '፹' ], // 80
|
||||
[ '፱0', '፺' ], // 90
|
||||
|
||||
[ '፲0', '፻' ], // 100
|
||||
[ '፳0', '፪፻' ], // 200
|
||||
[ '፴0', '፫፻' ], // 300
|
||||
[ '፵0', '፬፻' ], // 400
|
||||
[ '፶0', '፭፻' ], // 500
|
||||
[ '፷0', '፮፻' ], // 600
|
||||
[ '፸0', '፯፻' ], // 700
|
||||
[ '፹0', '፰፻' ], // 800
|
||||
[ '፺0', '፱፻' ], // 900
|
||||
|
||||
[ '፻0', '፲፻' ], // 1000
|
||||
[ '፲፻0', '፼' ], // 10,000
|
||||
|
||||
]
|
||||
};
|
||||
|
||||
$.ime.register( tigGeezim );
|
||||
}( jQuery ) );
|
||||
Reference in New Issue
Block a user