forked from extern/Unexpected-Keyboard
Gujarati phonetic layout (#562)
added shift modifier characters Add support for gujarati numerals Co-authored-by: yogesh-b <yogesh@improwised.com>
This commit is contained in:
parent
5e5937b0f4
commit
a1de69bcc4
@ -50,6 +50,10 @@ Layout doesn't define some important keys, missing: f11_placeholder, f12_placeho
|
||||
# grek_qwerty
|
||||
Duplicate keys: ;
|
||||
1 warnings
|
||||
# guj_phonetic_in
|
||||
Duplicate keys: ટ, ડ
|
||||
Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder
|
||||
2 warnings
|
||||
# hang_dubeolsik_kr
|
||||
0 warnings
|
||||
# hebr_1_il
|
||||
|
@ -22,6 +22,7 @@
|
||||
<item>deva_alt</item>
|
||||
<item>deva_inscript</item>
|
||||
<item>grek_qwerty</item>
|
||||
<item>guj_phonetic_in</item>
|
||||
<item>hang_dubeolsik_kr</item>
|
||||
<item>hebr_1_il</item>
|
||||
<item>hebr_2_il</item>
|
||||
@ -74,6 +75,7 @@
|
||||
<item>देवनागरी (हिंदी)-2</item>
|
||||
<item>देवनागरी (हिंदी)-1</item>
|
||||
<item>QWERTY (Greek)</item>
|
||||
<item>ગુજરાતી ફોનેટિક - Gujarati Phonetic</item>
|
||||
<item>두벌식 (Korean)</item>
|
||||
<item>Hebrew 1</item>
|
||||
<item>Hebrew 2</item>
|
||||
@ -126,6 +128,7 @@
|
||||
<item>@xml/deva_alt</item>
|
||||
<item>@xml/deva_inscript</item>
|
||||
<item>@xml/grek_qwerty</item>
|
||||
<item>@xml/guj_phonetic_in</item>
|
||||
<item>@xml/hang_dubeolsik_kr</item>
|
||||
<item>@xml/hebr_1_il</item>
|
||||
<item>@xml/hebr_2_il</item>
|
||||
|
@ -103,6 +103,7 @@ public final class KeyModifier
|
||||
case "bengali": return map_char_numpad_bengali;
|
||||
case "devanagari": return map_char_numpad_devanagari;
|
||||
case "persian": return map_char_numpad_persian;
|
||||
case "gujarati": return map_char_numpad_gujarati;
|
||||
default: return map_char_none;
|
||||
}
|
||||
}
|
||||
@ -503,6 +504,31 @@ public final class KeyModifier
|
||||
has the inconvenient of swapping i and ı on the keyboard. */
|
||||
case 'ı': return 'İ';
|
||||
case '₹': return '₨';
|
||||
// Gujarati alternate characters
|
||||
case 'અ': return 'આ';
|
||||
case 'ઇ': return 'ઈ';
|
||||
case 'િ': return 'ી';
|
||||
case 'ઉ': return 'ઊ';
|
||||
case 'ુ': return 'ૂ';
|
||||
case 'એ': return 'ઐ';
|
||||
case 'ે': return 'ૈ';
|
||||
case 'ઓ': return 'ઔ';
|
||||
case 'ો': return 'ૌ';
|
||||
case 'ક': return 'ખ';
|
||||
case 'ગ': return 'ઘ';
|
||||
case 'ચ': return 'છ';
|
||||
case 'જ': return 'ઝ';
|
||||
case 'ટ': return 'ઠ';
|
||||
case 'ડ': return 'ઢ';
|
||||
case 'ન': return 'ણ';
|
||||
case 'ત': return 'થ';
|
||||
case 'દ': return 'ધ';
|
||||
case 'પ': return 'ફ';
|
||||
case 'બ': return 'ભ';
|
||||
case 'મ': return 'ં';
|
||||
case 'લ': return 'ળ';
|
||||
case 'સ': return 'શ';
|
||||
case 'હ': return 'ઃ';
|
||||
default: return c;
|
||||
}
|
||||
}
|
||||
@ -1098,4 +1124,25 @@ public final class KeyModifier
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private static final Map_char map_char_numpad_gujarati =
|
||||
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;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
37
srcs/layouts/guj_phonetic_in.xml
Normal file
37
srcs/layouts/guj_phonetic_in.xml
Normal file
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<keyboard name="ગુજરાતી ફોનેટિક - Gujarati Phonetic" script="gujarati">
|
||||
<row>
|
||||
<key key0="ટ" key1="`" key2="1" key3="!" key4="esc"/>
|
||||
<key key0="ડ" key1="~" key2="2" key3="\@" key4="\#"/>
|
||||
<key key0="ે" key1="એ" key2="3" key3="$" key4="૱"/>
|
||||
<key key0="ર" key1="ઋ" key2="4" key3="ૃ" key4="₹"/>
|
||||
<key key0="ત" key1="ટ" key2="5" key3="%"/>
|
||||
<key key0="ય" key2="6" key3="^"/>
|
||||
<key key0="ુ" key1="ઉ" key2="7" key3="&"/>
|
||||
<key key0="િ" key1="ઇ" key2="8" key3="*" key4="ઁ"/>
|
||||
<key key0="ો" key1="ઓ" key2="9" key3="(" key4=")"/>
|
||||
<key key0="પ" key1="૰" key2="0" key4="॒"/>
|
||||
</row>
|
||||
<row>
|
||||
<key shift="0.5" key0="ા" key1="tab" key3="અ"/>
|
||||
<key key0="સ" key1="“" key4="”"/>
|
||||
<key key0="દ" key1="ડ"/>
|
||||
<key key0="્" key1="ૠ" key3="ૄ"/>
|
||||
<key key0="ગ" key2="-" key3="_"/>
|
||||
<key key0="હ" key2="=" key3="+"/>
|
||||
<key key0="જ" key3="{" key4="}"/>
|
||||
<key key0="ક" key1="ૢ" key2="ૡ" key3="[" key4="]"/>
|
||||
<key key0="લ" key1="।" key2="|" key3="\\" key4="॥"/>
|
||||
</row>
|
||||
<row>
|
||||
<key width="1.5" key0="shift" key2="loc capslock"/>
|
||||
<key key0="ઞ" key1="જ્ઞ" key2="ૅ" key3="ઙ" key4="ઍ"/>
|
||||
<key key0="ષ" key1="ક્ષ" key2="ૉ" key3="઼" key4="ઑ"/>
|
||||
<key key0="ચ" key2="<" key3="."/>
|
||||
<key key0="વ" key2=">" key3=","/>
|
||||
<key key0="બ" key2="\?" key3="/"/>
|
||||
<key key0="ન" key2=":" key3=";"/>
|
||||
<key key0="મ" key1="ૐ" key2=""" key3="'" key4="॑" key6="ઽ"/>
|
||||
<key width="1.5" key0="backspace" key2="delete"/>
|
||||
</row>
|
||||
</keyboard>
|
Loading…
Reference in New Issue
Block a user