Add colemak layout (#135)

This commit is contained in:
Djuric 2022-06-04 10:23:52 -03:00 committed by GitHub
parent 646ff4834d
commit 9b154a2495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 0 deletions

View File

@ -15,6 +15,7 @@
<item>qwertz_hu</item>
<item>bgph1</item>
<item>dvorak</item>
<item>colemak</item>
<item>neo2</item>
</string-array>
<string-array name="pref_layout_entries">
@ -32,17 +33,20 @@
<item>QWERTZ (Hungarian)</item>
<item>Bulgarian (Phonetic Traditional)</item>
<item>Dvorak</item>
<item>Colemak</item>
<item>Neo 2</item>
</string-array>
<string-array name="pref_programming_layout_values">
<item>none</item>
<item>qwerty</item>
<item>dvorak</item>
<item>colemak</item>
</string-array>
<string-array name="pref_programming_layout_entries">
<item>@string/pref_programming_layout_none</item>
<item>QWERTY</item>
<item>Dvorak</item>
<item>Colemak</item>
</string-array>
<string-array name="pref_accents_entries">
<item>@string/pref_accents_e_all_installed</item>

42
res/xml/colemak.xml Normal file
View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<keyboard>
<row>
<key key0="q" key1="esc" key2="accent_aigu" key3="accent_tilde" shift="0.5"/>
<key key0="w" key1="accent_grave" key2=" ́" key3="~" />
<key key0="f" key1="`" key2="-" key3="+" />
<key key0="p" key1="\£" key2="=" key3="%"/>
<key key0="g" key1="!" key2="/" key3="\\"/>
<key key0="j" key1="accent_caron" key2="accent_trema" />
<key key0="l" key1="f11_placeholder" key2="f12_placeholder"/>
<key key0="u" key1="accent_double_aigu" key2="accent_ring" />
<key key0="y" key1="&quot;" key2="'"/>
</row>
<row>
<key key0="a" key2="1" key4="tab"/>
<key key0="r" key1="\@" key2="2" />
<key key0="s" key1="\#" key2="3" key4="ß"/>
<key key0="t" key1="$" key2="4" key4="accent_ogonek" />
<key key0="d" key1="€" key2="5" key4="accent_dot_above"/>
<key key0="h" key1="&amp;" key2="6" />
<key key0="n" key1="*" key2="7" />
<key key0="e" key1="accent_circonflexe" key2="8" key4="^"/>
<key key0="i" key1="_" key2="9" />
<key key0="o" key1="0" key3="accent_macron"/>
</row>
<row>
<key key0="shift" width="1.5" />
<key key0="z" key1="," key2="."/>
<key key0="x" key1="&gt;" key2="&lt;"/>
<key key0="c" key1="{" key2="}" key3="accent_cedille"/>
<key key0="v" key1="[" key2="]"/>
<key key0="b" key1="(" key2=")"/>
<key key0="k" key1=";" key2=":"/>
<key key0="m" key1="|" key2="\?" />
<key key0="backspace" key1="delete" shift="0.25" width="1.25"/>
</row>
</keyboard>

View File

@ -234,6 +234,7 @@ final class Config
{
case "azerty": return R.xml.azerty;
case "bgph1": return R.xml.local_bgph1;
case "colemak": return R.xml.colemak;
case "dvorak": return R.xml.dvorak;
case "neo2": return R.xml.neo2;
case "qwerty_es": return R.xml.qwerty_es;