diff --git a/data/keyboards/hu.yaml b/data/keyboards/hu.yaml new file mode 100644 index 00000000..f4d3e794 --- /dev/null +++ b/data/keyboards/hu.yaml @@ -0,0 +1,82 @@ +# Maintained by: soyer +--- +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: 35.33, height: 52 } + +views: + base: + - "q w e r t z u i o p" + - "a s d f g h j k l" + - "Shift_L y x c v b n m BackSpace" + - "show_numbers show_eschars preferences space , . - Return" + upper: + - "Q W E R T Z U I O P" + - "A S D F G H J K L" + - "Shift_L Y X C V B N M BackSpace" + - "show_numbers show_eschars preferences space ? : ! Return" + numbers: + - "1 2 3 4 5 6 7 8 9 0" + - "@ # € % & - _ + ( )" + - "show_symbols ; \" ' : = < > BackSpace" + - "show_letters show_eschars preferences space , . - Return" + symbols: + - "~ ` ´ | · √ µ ÷ × ¶" + - "© ® £ $ ¥ ^ ° * { }" + - "show_numbers \\ / § π τ [ ] BackSpace" + - "show_letters show_eschars preferences space , . - 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: "special" + 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: "éá" + space: + outline: "spaceline" + label: " " + text: " " + Return: + outline: "altline" + icon: "key-enter" + keysym: "Return" diff --git a/data/keyboards/hu_wide.yaml b/data/keyboards/hu_wide.yaml new file mode 100644 index 00000000..aac5acd7 --- /dev/null +++ b/data/keyboards/hu_wide.yaml @@ -0,0 +1,82 @@ +# Maintained by: soyer +--- +outlines: + default: { width: 48, height: 42 } + altline: { width: 81, height: 42 } + wide: { width: 108, height: 42 } + spaceline: { width: 216, height: 42 } + special: { width: 48, height: 42 } + +views: + base: + - "q w e r t z u i o p ő ú" + - "a s d f g h j k l é á ű" + - "Shift_L í y x c v b n m BackSpace" + - "show_numbers show_eschars preferences space , . - Return" + upper: + - "Q W E R T Z U I O P Ő Ú" + - "A S D F G H J K L É Á Ű" + - "Shift_L Í Y X C V B N M BackSpace" + - "show_numbers show_eschars preferences space ? : ! Return" + numbers: + - "1 2 3 4 5 6 7 8 9 0" + - "@ # € % & - _ + ( )" + - "show_symbols ; \" ' : = < > BackSpace" + - "show_letters show_eschars preferences space , . - Return" + symbols: + - "~ ` ´ | · √ µ ÷ × ¶" + - "© ® £ $ ¥ ^ ° * { }" + - "show_numbers \\ / § π τ [ ] BackSpace" + - "show_letters show_eschars preferences space , . - 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: "special" + 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: "éá" + space: + outline: "spaceline" + label: " " + text: " " + Return: + outline: "altline" + icon: "key-enter" + keysym: "Return" diff --git a/src/resources.rs b/src/resources.rs index 6e4561c9..7ac8e23c 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -60,6 +60,9 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[ ("gr_wide", include_str!("../data/keyboards/gr_wide.yaml")), ("gr+polytonic", include_str!("../data/keyboards/gr+polytonic.yaml")), + ("hu", include_str!("../data/keyboards/hu.yaml")), + ("hu_wide", include_str!("../data/keyboards/hu_wide.yaml")), + ("il", include_str!("../data/keyboards/il.yaml")), ("ir", include_str!("../data/keyboards/ir.yaml")), diff --git a/tests/meson.build b/tests/meson.build index b8d6c9d5..67fea2b0 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -80,6 +80,7 @@ foreach layout : [ 'gr', 'gr_wide', 'gr+polytonic', 'fr+bepo', 'fr+bepo_wide', + 'hu', 'hu_wide', 'il', 'ir', 'it', @@ -137,4 +138,4 @@ if get_option('find_orphans') timeout: timeout, workdir: meson.build_root(), ) -endif \ No newline at end of file +endif