From ce51df6f5a8da4b86e4ee92fd78803c5b264ffc9 Mon Sep 17 00:00:00 2001 From: Mostafa Ayesh Date: Sat, 11 Mar 2023 10:54:20 -0500 Subject: [PATCH] Add Arabic layout (#314) * add arabic keyboard * use unicode values for special characters * add alternate layout * use arabic numbers --- res/values/arrays.xml | 4 +++ res/xml/ar_alt.xml | 42 ++++++++++++++++++++++++++++++ res/xml/ar_pc.xml | 44 ++++++++++++++++++++++++++++++++ res/xml/method.xml | 1 + srcs/juloo.keyboard2/Config.java | 2 ++ 5 files changed, 93 insertions(+) create mode 100644 res/xml/ar_alt.xml create mode 100644 res/xml/ar_pc.xml diff --git a/res/values/arrays.xml b/res/values/arrays.xml index dacc0b4..a43f747 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -32,6 +32,8 @@ devanagari_2 he_il_1452_1 he_il_1452_2 + ar_pc + ar_alt custom @@ -66,6 +68,8 @@ देवनागरी (हिंदी)-2 Hebrew SI-1452-1 Hebrew SI-1452-2 + Arabic PC + Arabic ALT @string/pref_layout_e_custom diff --git a/res/xml/ar_alt.xml b/res/xml/ar_alt.xml new file mode 100644 index 0000000..f3beb8e --- /dev/null +++ b/res/xml/ar_alt.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/xml/ar_pc.xml b/res/xml/ar_pc.xml new file mode 100644 index 0000000..f92ee43 --- /dev/null +++ b/res/xml/ar_pc.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/xml/method.xml b/res/xml/method.xml index 8e91024..baf88f4 100644 --- a/res/xml/method.xml +++ b/res/xml/method.xml @@ -1,5 +1,6 @@ + diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index a596f09..4ad0893 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -372,6 +372,8 @@ final class Config case "ru_jcuken": id = R.xml.local_ru_jcuken; break; case "he_il_1452_1": id = R.xml.he_il_1452_1; break; case "he_il_1452_2": id = R.xml.he_il_1452_2; break; + case "ar_pc": id = R.xml.ar_pc; break; + case "ar_alt": id = R.xml.ar_alt; break; } return KeyboardData.load(res, id); }