abouttreesummaryrefslogcommitdiff
path: root/srcs
diff options
context:
space:
mode:
Diffstat (limited to 'srcs')
-rw-r--r--srcs/juloo.keyboard2/KeyModifier.java22
-rw-r--r--srcs/layouts/kann_kannada.xml30
2 files changed, 52 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java
index 138c060..34590a2 100644
--- a/srcs/juloo.keyboard2/KeyModifier.java
+++ b/srcs/juloo.keyboard2/KeyModifier.java
@@ -115,6 +115,7 @@ public final class KeyModifier
case "devanagari": return map_char_numpad_devanagari;
case "persian": return map_char_numpad_persian;
case "gujarati": return map_char_numpad_gujarati;
+ case "kannada": return map_char_numpad_kannada;
default: return map_char_none;
}
}
@@ -475,6 +476,27 @@ public final class KeyModifier
}
};
+ private static final Map_char map_char_numpad_kannada =
+ new Map_char() {
+ public String apply(char c)
+ {
+ switch (c)
+ {
+ case '0': return "೦";
+ case '1': return "೧";
+ case '2': return "೨";
+ case '3': return "೩";
+ case '4': return "೪";
+ case '5': return "೫";
+ case '6': return "೬";
+ case '7': return "೭";
+ case '8': return "೮";
+ case '9': return "೯";
+ default: return null;
+ }
+ }
+ };
+
/** Compose the precomposed initial with the medial [kv]. */
private static KeyValue combine_hangul_initial(KeyValue kv, int precomposed)
{
diff --git a/srcs/layouts/kann_kannada.xml b/srcs/layouts/kann_kannada.xml
new file mode 100644
index 0000000..07f04d8
--- /dev/null
+++ b/srcs/layouts/kann_kannada.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<keyboard name="ಕನ್ನಡ" script="kannada">
+ <row>
+ <key key0="ಕ" key1="ಖ" key2="ಘ" key3="ಙ" key4="ಗ"/>
+ <key key0="ಚ" key1="ಛ" key2="ಝ" key3="ಞ" key4="ಜ"/>
+ <key key0="ಟ" key1="ಠ" key2="ಢ" key3="ಣ" key4="ಡ"/>
+ <key key0="ತ" key1="ಥ" key2="ಧ" key3="ನ" key4="ದ"/>
+ <key key0="ಪ" key1="ಫ" key2="ಭ" key3="ಮ" key4="ಬ"/>
+ <key key0="ಯ" key1="ರ" key2="ವ" key3="ಱ" key4="ಲ" key8="ೞ"/>
+ <key key0="ಶ" key1="ಷ" key2="ಹ" key3="ಳ" key4="ಸ" key8="※"/>
+ </row>
+ <row>
+ <key key0="ಾ" key1="ಅ" key2="ಆ"/>
+ <key key0="ಿ" key1="ಇ" key2="ಈ" key4="ೀ"/>
+ <key key0="ು" key1="ಉ" key2="ಊ" key4="ೂ"/>
+ <key key0="ೃ" key1="ಋ" key2="ೠ" key3="ಌ" key4="ೄ" key5="ೡ" key6="ೣ" key8="ೢ"/>
+ <key key0="ೆ" key1="ಎ" key2="ಏ" key4="ೇ" key6="ೕ"/>
+ <key key0="ೈ" key1="ಐ" key2="ಒ" key4="ೊ" key5="ೖ"/>
+ <key key0="ೋ" key1="ಓ" key2="ಔ" key4="ೌ"/>
+ </row>
+ <row>
+ <key key0="್" key1="\@" key2="&amp;" key8="಼"/>
+ <key key0="ಂ" key1="₹" key2="卐" key3="!" key4="\?" key7="ॐ"/>
+ <key key0="ಃ" key5="ೲ" key6="ೱ" key7="ಽ"/>
+ <key key0="।" key1="'" key2="&quot;" key3="." key4="," key5="∪" key6="॥" key8="॰"/>
+ <key key0="೦" key3="-" key4="_" key5=":" key6=";" key8="•"/>
+ <key key0="೫" key1="೧" key2="೩" key3="೭" key4="೯" key5="೪" key6="೬" key7="೨" key8="೮"/>
+ <key key0="backspace" key2="delete"/>
+ </row>
+</keyboard>