From e82e2565812a6de20c9d16e1c57af8f26081548b Mon Sep 17 00:00:00 2001 From: Myth <eng.dvir@gmail.com> Date: Sat, 6 Feb 2021 10:45:12 +0000 Subject: [PATCH] Added hebrew keyboard layout --- data/keyboards/il.yaml | 79 ++++++++++++++++++++++++++++++++++++++++++ data/langs/he_IL.txt | 0 src/resources.rs | 2 ++ tests/meson.build | 1 + 4 files changed, 82 insertions(+) create mode 100644 data/keyboards/il.yaml create mode 100644 data/langs/he_IL.txt diff --git a/data/keyboards/il.yaml b/data/keyboards/il.yaml new file mode 100644 index 00000000..68b34daa --- /dev/null +++ b/data/keyboards/il.yaml @@ -0,0 +1,79 @@ +--- +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: + - "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 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/data/langs/he_IL.txt b/data/langs/he_IL.txt new file mode 100644 index 00000000..e69de29b diff --git a/src/resources.rs b/src/resources.rs index 33944f83..c9812fd0 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -47,6 +47,8 @@ const KEYBOARDS: &[(*const str, *const str)] = &[ ("gr", include_str!("../data/keyboards/gr.yaml")), + ("il", include_str!("../data/keyboards/il.yaml")), + ("ir", include_str!("../data/keyboards/ir.yaml")), ("ir_wide", include_str!("../data/keyboards/ir_wide.yaml")), diff --git a/tests/meson.build b/tests/meson.build index 7ded8397..3cbcef32 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -70,6 +70,7 @@ foreach layout : [ 'fi', 'fr', 'fr_wide', 'gr', + 'il', 'ir', 'it', 'it+fur', -- GitLab