diff options
Diffstat (limited to 'srcs')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 32 | ||||
| -rw-r--r-- | srcs/layouts/sinhala_phonetic.xml | 107 |
2 files changed, 139 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index ecfdd94..ee7b415 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -769,6 +769,38 @@ public final class KeyValue implements Comparable<KeyValue> case "௲": case "௳": return makeStringKey(name, FLAG_SMALLER_FONT); + /* Sinhala letters to reduced size */ + case "අ": case "ආ": case "ඇ": case "ඈ": case "ඉ": + case "ඊ": case "උ": case "ඌ": case "ඍ": case "ඎ": + case "ඏ": case "ඐ": case "එ": case "ඒ": case "ඓ": + case "ඔ": case "ඕ": case "ඖ": case "ක": case "ඛ": + case "ග": case "ඝ": case "ඞ": case "ඟ": case "ච": + case "ඡ": case "ජ": case "ඣ": case "ඤ": case "ඥ": + case "ඦ": case "ට": case "ඨ": case "ඩ": case "ඪ": + case "ණ": case "ඬ": case "ත": case "ථ": case "ද": + case "ධ": case "න": case "ඳ": case "ප": case "ඵ": + case "බ": case "භ": case "ම": case "ඹ": case "ය": + case "ර": case "ල": case "ව": case "ශ": case "ෂ": + case "ස": case "හ": case "ළ": case "ෆ": + /* Astrological numbers */ + case "෦": case "෧": case "෨": case "෩": case "෪": + case "෫": case "෬": case "෭": case "෮": case "෯": + case "ෲ": case "ෳ": + /* Diacritics */ + case "\u0d81": case "\u0d82": case "\u0d83": case "\u0dca": + case "\u0dcf": case "\u0dd0": case "\u0dd1": case "\u0dd2": + case "\u0dd3": case "\u0dd4": case "\u0dd6": case "\u0dd8": + case "\u0dd9": case "\u0dda": case "\u0ddb": case "\u0ddc": + case "\u0ddd": case "\u0dde": case "\u0ddf": + /* Archaic digits */ + case "𑇡": case "𑇢": case "𑇣": case "𑇤": case "𑇥": + case "𑇦": case "𑇧": case "𑇨": case "𑇩": case "𑇪": + case "𑇫": case "𑇬": case "𑇭": case "𑇮": case "𑇯": + case "𑇰": case "𑇱": case "𑇲": case "𑇳": case "𑇴": + /* Exta */ + case "෴": case "₨": // Rupee is not exclusively Sinhala sign + return makeStringKey(name, FLAG_SMALLER_FONT); + /* Internal keys */ case "selection_mode": return makeInternalModifier(Modifier.SELECTION_MODE); diff --git a/srcs/layouts/sinhala_phonetic.xml b/srcs/layouts/sinhala_phonetic.xml new file mode 100644 index 0000000..d9ae23f --- /dev/null +++ b/srcs/layouts/sinhala_phonetic.xml @@ -0,0 +1,107 @@ +<?xml version='1.0' encoding='utf-8'?> +<!-- This file defines Sinhala layout. + +Based on XKB Sinhala (phonetic) layout. +--> +<keyboard name="සිංහල" script="sinhala"> + <row> + <key sw="loc esc" se="1" c="ඍ" ne="ඎ" /> + <key se="2" c="ඇ" nw="~" sw="\@" ne="ඈ" /> + <key se="3" c="එ" nw="!" sw="\#" ne="ඒ" /> + <key nw="loc €" se="4" c="ර" sw="$" /> + <key se="5" c="ත" sw="%" ne="ථ" /> + <key se="6" c="ය" sw="^" /> + <key se="7" c="උ" sw="&" ne="ඌ" /> + <key se="8" c="ඉ" sw="*" ne="ඊ" /> + <key se="9" c="ඔ" sw="(" ne="ඕ" /> + <key sw=")" se="0" c="ප" ne="ඵ" /> + </row> + <row> + <key nw="`" sw="loc tab" shift="0.5" c="අ" ne="ආ" /> + <key nw="loc §" c="ස" sw="loc ß" ne="ශ" /> + <key c="ද" ne="ධ" /> + <key c="ෆ" ne="ඓ" /> + <key nw="_" sw="-" c="ග" ne="ඝ" /> + <key nw="+" sw="=" c="හ" ne="ඃ" /> + <key c="ජ" se="}" sw="{" ne="ඣ" /> + <key c="ක" sw="[" se="]" ne="ඛ" /> + <key nw="|" c="ල" sw="\\" ne="ළ" /> + </row> + <row> + <key width="1.5" c="shift" ne="loc capslock" /> + <key c="ඤ" ne="ඥ" /> + <key nw="loc †" c="ඳ" ne="ඬ" /> + <key nw="<" c="ච" sw="." ne="ඡ" /> + <key c="ව" ne=">" sw="," /> + <key nw="\?" c="බ" sw="/" ne="භ" /> + <key nw=":" c="න" sw=";" ne="ණ" /> + <key nw=""" c="ම" sw="'" se="zwj" ne="ඹ" /> + <key width="1.5" c="backspace" ne="delete" /> + </row> + <modmap> + <shift a="ඍ" b="ෘ" /> + <shift a="ඎ" b="ෲ" /> + <shift a="ඇ" b="ැ" /> + <shift a="ඈ" b="ෑ" /> + <shift a="එ" b="ෙ" /> + <shift a="ඒ" b="ේ" /> + <shift a="ත" b="ට" /> + <shift a="ථ" b="ඨ" /> + <shift a="උ" b="ු" /> + <shift a="ඌ" b="ූ" /> + <shift a="ඉ" b="ි" /> + <shift a="ඊ" b="ී" /> + <shift a="ඔ" b="ො" /> + <shift a="ඕ" b="ෝ" /> + <shift a="අ" b="්" /> + <shift a="ආ" b="ා" /> + <shift a="ස" b="ෂ" /> + <shift a="ද" b="ඩ" /> + <shift a="ධ" b="ඪ" /> + <shift a="ඓ" b="ෛ" /> + <shift a="ග" b="ඟ" /> + <shift a="හ" b="ෞ" /> + <shift a="ඃ" b="ඖ" /> + <shift a="ජ" b="ඦ" /> + <shift a="ක" b="ඦ" /> + <shift a="ඛ" b="ඐ" /> + <shift a="ල" b="ෟ" /> + <shift a="ළ" b="ෳ" /> + <shift a="න" b="ං" /> + <shift a="ණ" b="ඞ" /> + <shift a="1" b="෧" /> + <shift a="2" b="෨" /> + <shift a="3" b="෩" /> + <shift a="4" b="෪" /> + <shift a="5" b="෫" /> + <shift a="6" b="෬" /> + <shift a="7" b="෭" /> + <shift a="8" b="෮" /> + <shift a="9" b="෯" /> + <shift a="0" b="෦" /> + <shift a="." b="෴" /> + <shift a="|" b="¦" /> + <shift a="zwj" b="zwnj" /> + <fn a="ඍ" b="𑇡" /> + <fn a="ඇ" b="𑇢" /> + <fn a="එ" b="𑇣" /> + <fn a="ර" b="𑇤" /> + <fn a="ත" b="𑇥" /> + <fn a="ය" b="𑇦" /> + <fn a="උ" b="𑇧" /> + <fn a="ඉ" b="𑇨" /> + <fn a="ඔ" b="𑇩" /> + <fn a="ප" b="𑇪" /> + <fn a="අ" b="𑇫" /> + <fn a="ස" b="𑇬" /> + <fn a="ද" b="𑇭" /> + <fn a="ෆ" b="𑇮" /> + <fn a="ග" b="𑇯" /> + <fn a="හ" b="𑇰" /> + <fn a="ජ" b="𑇱" /> + <fn a="ක" b="𑇲" /> + <fn a="ල" b="𑇳" /> + <fn a="ළ" b="𑇴" /> + <fn a="ණ" b="ඁ" /> + </modmap> +</keyboard> |
