Skip to content

Commit

Permalink
Fixed Firefox Crash Bug; Better handling ZW
Browse files Browse the repository at this point in the history
  - The rule '്' + 'r' > '്ര്' caused the Keyboards to break in FireFox. Fixed
it by disabling it.
  - Reogranized the order of characters in some classes to be more natural
order
  - Prevented having an unwanted ZWNJ between a Chillu and a consonant
  • Loading branch information
beniza committed Sep 17, 2018
1 parent a4f9265 commit 298878b
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions release/m/mozhi_malayalam/source/mozhi_malayalam.kmn
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ c 'ഩ്' + '\' > 'ന' '്' U+200D

c The following rule is an experimental rule to prevent chillu r formation
c (instead it will form vattu ra form) if it follows a chandrakkala. By Ben
'്' + 'r' > '്ര്'
c any(consonants) '്' + 'r' > index(consonants, 1) '്ര്' c Disabled this rule as it caused the keyboard to brake in FireFox

c produce vowels
store(vDirectSmallValues) "അഎഇഒഉ"
Expand Down Expand Up @@ -194,15 +194,25 @@ dk(2) + 'u' > 'ൗ'
'്' + 'o' > 'ൂ'

c Consonants
store(thinConsonants) "കഗചജടഡതദപബസശ"
store(thickConsonants) "ഖഘഛഝഠഢഥധഫഭഷഴ"

store(cDirectSmallValues) 'ബദഫഗഹജകമപസവവയശ'
c store(cDirectSmallKeys) 'kgjdpfbmyvwzsh'
c store(cDirectSmallValues) 'കഗജദപഫബമയവവശസഹ'
store(cDirectSmallKeys) 'bdfghjkmpsvwyz'
store(cDirectCapsValues) 'ഡശടഫ'
store(cDirectSmallValues) 'ബദഫഗഹജകമപസവവയശ'
+ any(cDirectSmallKeys) > index(cDirectSmallValues,1) '്'

store(cDirectCapsKeys) 'DSTF'
store(cDirectCapsValues) 'ഡശടഫ'
+ any(cDirectCapsKeys) > index(cDirectCapsValues,1) '്'

c To cleanup any unwanted zwnj between Chillu and a consonant
any(chills) U+200C + any(cDirectSmallKeys) > index(chills,1) index(cDirectSmallValues,3) '്'
any(chills) U+200C + any(cDirectCapsKeys) > index(chills,1) index(cDirectCapsValues,3) '്'

c Aspiration and certain fluids are obtained by typing an 'h' after the unaspirated counterparts and സ, ശ
store(thinConsonants) "കഗചജടഡതദപബസശ"
store(thickConsonants) "ഖഘഛഝഠഢഥധഫഭഷഴ"
any(thinConsonants) '്' + 'h' > index(thickConsonants,1) '്'

any(consonants) '്' + 'a' > index(consonants,1)
any(consonants) '്' + 'A' > index(consonants,1) 'ാ'
any(consonants) + 'a' > index(consonants,1) 'ാ'
Expand All @@ -223,11 +233,6 @@ any(consonants) '്' + 'o' > index(consonants,1) 'ൊ'
any(consonants) '്' + 'O' > index(consonants,1) 'ോ'
any(consonants) + 'u' > index(consonants,1) 'ൗ'

+ any(cDirectSmallKeys) > index(cDirectSmallValues,1) '്'
any(chills) U+200C + any(cDirectSmallKeys) > index(chills,1) index(cDirectSmallValues,3) '്'
+ any(cDirectCapsKeys) > index(cDirectCapsValues,1) '്'
any(chills) U+200C + any(cDirectCapsKeys) > index(chills,1) index(cDirectCapsValues,3) '്'

store(nonSa) "കഖഗഘങചഛജഝഞടഠഡഢണതഥദധനപഫബഭമയരലവശഷഹളഴറ"

'ൻ' + 'g' > 'ങ്'
Expand Down

0 comments on commit 298878b

Please sign in to comment.