From a030f55a7ce48bc235f1be774b8b9ee1679f5155 Mon Sep 17 00:00:00 2001 From: Jordi Masip <jordi@masip.cat> Date: Sun, 7 Jun 2020 22:49:50 +0200 Subject: [PATCH] Catalan keyboard layout Modified by Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> --- data/keyboards/es+cat.yaml | 87 ++++++++++++++++++++++++++++++++++++++ src/resources.rs | 1 + tests/meson.build | 1 + 3 files changed, 89 insertions(+) create mode 100644 data/keyboards/es+cat.yaml diff --git a/data/keyboards/es+cat.yaml b/data/keyboards/es+cat.yaml new file mode 100644 index 00000000..9be53258 --- /dev/null +++ b/data/keyboards/es+cat.yaml @@ -0,0 +1,87 @@ +--- +outlines: + default: { width: 35.33, height: 52 } + altline: { width: 52.67, height: 52 } + wide: { width: 62, height: 52 } + spaceline: { width: 99.67, height: 52 } + special: { width: 44, height: 52 } + +views: + base: + - "q w e r t y u i o p" + - "a s d f g h j k l ç" + - "Shift_L z x c v b n m BackSpace" + - "show_numbers show_eschars preferences space ? period Return" + upper: + - "Q W E R T Y U I O P" + - "A S D F G H J K L Ç" + - "Shift_L Z X C V B N M BackSpace" + - "show_numbers show_eschars preferences space ¿ period Return" + numbers: + - "1 2 3 4 5 6 7 8 9 0" + - "@ # € % & - _ + ( )" + - "show_symbols , \" ' colon ; ! = BackSpace" + - "show_letters show_eschars preferences space ? period Return" + symbols: + - "~ ` | · √ π τ ÷ × ¶" + - "© ® £ $ ¥ ^ ° * { }" + - "show_numbers \\ / < > = [ ] BackSpace" + - "show_letters show_eschars preferences space ? period Return" + eschars: + - "á é à ó ú à É à Ó Ú" + - "à è ì ò ù À È Ì Ò Ù" + - "show_numbers ü ç ï Ü Ç à ¡ BackSpace" + - "show_letters show_eschars preferences space « » 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: "default" + icon: "keyboard-mode-symbolic" + show_numbers: + action: + set_view: "numbers" + outline: "altline" + label: "123" + show_letters: + action: + set_view: "base" + outline: "altline" + label: "abc" + show_symbols: + action: + set_view: "symbols" + outline: "altline" + label: "*/=" + show_eschars: + action: + locking: + lock_view: "eschars" + unlock_view: "base" + outline: "altline" + label: "à À" + + period: + outline: "default" + text: "." + space: + outline: "spaceline" + text: " " + Return: + outline: "altline" + icon: "key-enter" + keysym: "Return" + colon: + text: ":" + diff --git a/src/resources.rs b/src/resources.rs index 298877a6..dc07ed6d 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -39,6 +39,7 @@ const KEYBOARDS: &[(*const str, *const str)] = &[ ("epo", include_str!("../data/keyboards/epo.yaml")), ("es", include_str!("../data/keyboards/es.yaml")), + ("es+cat", include_str!("../data/keyboards/es+cat.yaml")), ("fi", include_str!("../data/keyboards/fi.yaml")), diff --git a/tests/meson.build b/tests/meson.build index 01f0dbe2..1ff09448 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -67,6 +67,7 @@ foreach layout : [ 'dk', 'epo', 'es', + 'es+cat', 'fi', 'fr', 'fr_wide', 'gr', -- GitLab