From 4f3fcfe64bfdf85d52fea0e179dc8b647b237d07 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 1 Nov 2022 21:24:54 +0100 Subject: [PATCH] Add the 'qwertz_de' layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to 'qwertz' but is wider to show äöü on dedicated keys. Some punctuations are rebalanced to use the space better. The default layout for de_DE is changed. --- res/values/arrays.xml | 2 ++ res/xml/method.xml | 2 +- res/xml/qwertz_de.xml | 40 ++++++++++++++++++++++++++++++++ srcs/juloo.keyboard2/Config.java | 17 +++++++------- 4 files changed, 52 insertions(+), 9 deletions(-) create mode 100644 res/xml/qwertz_de.xml diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 7dc5a96..5519c80 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -15,6 +15,7 @@ qwerty_tr ru_jcuken qwertz + qwertz_de qwertz_hu bgph1 dvorak @@ -40,6 +41,7 @@ QWERTY (Türkçe) ЙЦУКЕН (Русский) QWERTZ + QWERTZ (Deutsch) QWERTZ (Hungarian) Bulgarian (Phonetic Traditional) Dvorak diff --git a/res/xml/method.xml b/res/xml/method.xml index f22b3f0..9ce5ed7 100644 --- a/res/xml/method.xml +++ b/res/xml/method.xml @@ -3,7 +3,7 @@ - + diff --git a/res/xml/qwertz_de.xml b/res/xml/qwertz_de.xml new file mode 100644 index 0000000..2181716 --- /dev/null +++ b/res/xml/qwertz_de.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index ad79920..a016fb1 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -254,27 +254,28 @@ final class Config { case "azerty": return R.xml.azerty; case "bangla": return R.xml.bangla; - case "hindi": return R.xml.hindi; case "bgph1": return R.xml.local_bgph1; case "bone": return R.xml.bone; case "colemak": return R.xml.colemak; case "dvorak": return R.xml.dvorak; + case "hindi": return R.xml.hindi; + case "jcuken_ua": return R.xml.jcuken_ua; case "neo2": return R.xml.neo2; - case "qwerty_es": return R.xml.qwerty_es; + case "qwerty": return R.xml.qwerty; case "qwerty_el": return R.xml.qwerty_el; + case "qwerty_es": return R.xml.qwerty_es; case "qwerty_hu": return R.xml.qwerty_hu; case "qwerty_ko": return R.xml.qwerty_ko; case "qwerty_lv": return R.xml.qwerty_lv; - case "qwerty_pt": return R.xml.qwerty_pt; - case "qwerty_tr": return R.xml.qwerty_tr; - case "qwerty": return R.xml.qwerty; case "qwerty_no": return R.xml.qwerty_no; + case "qwerty_pt": return R.xml.qwerty_pt; case "qwerty_sv_se": return R.xml.qwerty_sv_se; - case "qwertz_hu": return R.xml.qwertz_hu; - case "qwertz_cs": return R.xml.qwertz_cs; + case "qwerty_tr": return R.xml.qwerty_tr; case "qwertz": return R.xml.qwertz; + case "qwertz_cs": return R.xml.qwertz_cs; + case "qwertz_de": return R.xml.qwertz_de; + case "qwertz_hu": return R.xml.qwertz_hu; case "ru_jcuken": return R.xml.local_ru_jcuken; - case "jcuken_ua": return R.xml.jcuken_ua; default: return R.xml.qwerty; // The config might store an invalid layout, don't crash } }