From 7f9baa8021722706ac1991083ee89308c14c07c5 Mon Sep 17 00:00:00 2001 From: skysphr Date: Fri, 24 Jun 2022 18:28:21 +0000 Subject: [PATCH] Added Georgian layout --- data/keyboards/ge.yaml | 78 ++++++++++++++++++++++++++++++++++++++++++ src/resources.rs | 1 + tests/meson.build | 1 + 3 files changed, 80 insertions(+) create mode 100644 data/keyboards/ge.yaml diff --git a/data/keyboards/ge.yaml b/data/keyboards/ge.yaml new file mode 100644 index 00000000..fc961499 --- /dev/null +++ b/data/keyboards/ge.yaml @@ -0,0 +1,78 @@ +--- +outlines: + default: { width: 35.33, height: 52 } + altline: { width: 52.67, height: 52 } + wide: { width: 62, height: 52 } + spaceline: { width: 142, height: 52 } + special: { width: 44, height: 52 } + +views: + base: + - "ქ წ ე რ ტ ყ უ ი ო პ" + - "ა ს დ ფ გ ჰ ჯ კ ლ" + - "Shift_L ზ ხ ც ვ ბ ნ მ BackSpace" + - "show_numbers preferences space period Return" + upper: + - "ქ ჭ ე ღ თ ყ უ ი ო პ" + - "ა შ დ ფ გ ჰ ჟ კ ლ" + - "Shift_L ძ ხ ჩ ვ ბ ნ მ BackSpace" + - "show_numbers preferences space period Return" + numbers: + - "1 2 3 4 5 6 7 8 9 0" + - "! @ # $ % ^ & * ( )" + - "show_symbols - ' \" colon ; , ? BackSpace" + - "show_letters preferences space period Return" + symbols: + - "+ ⨯ ÷ = / _ € £ ¥ ₾" + - "~ ` | · √ π τ ° { }" + - "show_numbers_from_symbols \\ / < > = [ ] BackSpace" + - "show_letters preferences space period Return" + +buttons: + Shift_L: + action: + locking: + lock_view: "upper" + unlock_view: "base" + outline: "altline" + icon: "key-shift" + BackSpace: + outline: "altline" + icon: "edit-clear-symbolic" + action: "erase" + preferences: + action: "show_prefs" + outline: "special" + icon: "keyboard-mode-symbolic" + show_numbers: + action: + set_view: "numbers" + outline: "wide" + label: "123" + show_numbers_from_symbols: + action: + set_view: "numbers" + outline: "altline" + label: "123" + show_letters: + action: + set_view: "base" + outline: "wide" + label: "ABC" + show_symbols: + action: + set_view: "symbols" + outline: "altline" + label: "*/=" + period: + outline: "special" + text: "." + space: + outline: "spaceline" + text: " " + Return: + outline: "wide" + icon: "key-enter" + keysym: "Return" + colon: + text: ":" diff --git a/src/resources.rs b/src/resources.rs index 56ed19c2..2326a816 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -55,6 +55,7 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[ ("fr+bepo", include_str!("../data/keyboards/fr+bepo.yaml")), ("fr+bepo_wide", include_str!("../data/keyboards/fr+bepo_wide.yaml")), + ("ge", include_str!("../data/keyboards/ge.yaml")), ("gr", include_str!("../data/keyboards/gr.yaml")), ("gr_wide", include_str!("../data/keyboards/gr_wide.yaml")), ("gr+polytonic", include_str!("../data/keyboards/gr+polytonic.yaml")), diff --git a/tests/meson.build b/tests/meson.build index a25afdd5..d56daeb3 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -76,6 +76,7 @@ foreach layout : [ 'es+cat', 'fi', 'fr', 'fr_wide', + 'ge', 'gr', 'gr_wide', 'gr+polytonic', 'fr+bepo', 'fr+bepo_wide',