diff --git a/data/keyboards/terminal/es.yaml b/data/keyboards/terminal/es.yaml new file mode 100644 index 00000000..5ebb646e --- /dev/null +++ b/data/keyboards/terminal/es.yaml @@ -0,0 +1,208 @@ +--- +outlines: + default: { width: 35.33, height: 46 } + wide: { width: 55, height: 46 } + spaceline: { width: 125, height: 46 } + small: { width: 59, height: 22 } + action: { width: 59, height: 46} + +views: + base: + - "Ctrl Alt ↑ ↓ ← →" + - "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 show_actions Return" + upper: + - "Ctrl Alt PgUp PgDn Home End" + - "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 DelUp" + - "show_numbers show_eschars preferences space show_actions Return" + numbers: + - "Ctrl Alt ↑ ↓ ← →" + - "1 2 3 4 5 6 7 8 9 0" + - "* # € / & - _ + ( )" + - "show_symbols , \" ' colon ; ! ? BackSpace" + - "show_letters show_eschars preferences space . Return" + symbols: + - "Ctrl Alt ↑ ↓ ← →" + - "~ ` | · √ π τ ÷ × ¶" + - "© ® £ $ ¥ ^ ° @ { }" + - "show_numbers \\ % < > = [ ] BackSpace" + - "show_letters show_eschars preferences space . Return" + eschars: + - "Ctrl Alt ↑ ↓ ← →" + - "á é í ó ú Á É Í Ó Ú" + - "à è ì ò ù À È Ì Ò Ù" + - "show_numbers , ü ç ï Ü Ç ï BackSpace" + - "show_letters show_symbols preferences space show_actions Return" + actions: + - "Ctrl Alt PgUp PgDn Home End" + - "F1 F2 F3 F4 F5 F6" + - "F7 F8 F9 F10 F11 F12" + - "Esc Tab Pause Insert Up Del" + - "show_letters Menu Break Left Down Right" + +buttons: + Shift_L: + action: + locking: + lock_view: "upper" + unlock_view: "base" + outline: "wide" + icon: "key-shift" + BackSpace: + outline: "wide" + icon: "edit-clear-symbolic" + action: erase + preferences: + action: "show_prefs" + outline: "default" + icon: "keyboard-mode-symbolic" + show_numbers: + action: + set_view: "numbers" + outline: "wide" + label: "123" + show_letters: + action: + set_view: "base" + outline: "wide" + label: "ABC" + show_symbols: + action: + set_view: "symbols" + outline: "wide" + label: "τ=\\" + show_eschars: + action: + set_view: "eschars" + outline: "wide" + label: "áÁ" + show_actions: + action: + set_view: "actions" + outline: "default" + label: ">:" + ".": + outline: "default" + text: "." + space: + outline: "spaceline" + text: " " + Return: + outline: "wide" + icon: "key-enter" + keysym: "Return" + colon: + text: ":" + F1: + outline: "action" + keysym: "F1" + F2: + outline: "action" + keysym: "F2" + F3: + outline: "action" + keysym: "F3" + F4: + outline: "action" + keysym: "F4" + F5: + outline: "action" + keysym: "F5" + F6: + outline: "action" + keysym: "F6" + F7: + outline: "action" + keysym: "F7" + F8: + outline: "action" + keysym: "F8" + F9: + outline: "action" + keysym: "F9" + F10: + outline: "action" + keysym: "F10" + F11: + outline: "action" + keysym: "F11" + F12: + outline: "action" + keysym: "F12" + Esc: + outline: "action" + keysym: "Escape" + Tab: + outline: "action" + keysym: "Tab" + Del: + outline: "action" + keysym: "Delete" + DelUp: + outline: "wide" + keysym: "Delete" + label: "Del" + Insert: + outline: "action" + keysym: "Insert" + Menu: + outline: "action" + keysym: "Menu" + Pause: + outline: "action" + keysym: "Pause" + Break: + outline: "action" + keysym: "Break" + Home: + outline: "small" + keysym: "Home" + End: + outline: "small" + keysym: "End" + PgUp: + outline: "small" + keysym: "Page_Up" + PgDn: + outline: "small" + keysym: "Page_Down" + "↑": + outline: "small" + keysym: "Up" + "↓": + outline: "small" + keysym: "Down" + "←": + outline: "small" + keysym: "Left" + "→": + outline: "small" + keysym: "Right" + Up: + label: "↑" + outline: "action" + keysym: "Up" + Left: + label: "←" + outline: "action" + keysym: "Left" + Down: + label: "↓" + outline: "action" + keysym: "Down" + Right: + label: "→" + outline: "action" + keysym: "Right" + Ctrl: + modifier: "Control" + outline: "small" + label: "Ctrl" + Alt: + modifier: "Alt" + outline: "small" + label: "Alt" diff --git a/data/keyboards/terminal/es_wide.yaml b/data/keyboards/terminal/es_wide.yaml new file mode 100644 index 00000000..4f9906b6 --- /dev/null +++ b/data/keyboards/terminal/es_wide.yaml @@ -0,0 +1,216 @@ +--- +outlines: + default: { width: 54, height: 37 } + action: { width: 90, height: 37 } + wide: { width: 81, height: 37 } + spaceline: { width: 185, height: 37 } + small: { width: 67.4, height: 22 } + +views: + base: + - "EscSmall TabSmall Ctrl Alt ↑ ↓ ← →" + - "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 show_actions Return" + upper: + - "EscSmall TabSmall Ctrl Alt PgUp PgDn Home End" + - "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 DelUp" + - "show_numbers show_eschars preferences space show_actions Return" + numbers: + - "EscSmall TabSmall Ctrl Alt ↑ ↓ ← →" + - "1 2 3 4 5 6 7 8 9 0" + - "* # $ / & - _ + ( )" + - "show_symbols , \" ' colon ; ! ? BackSpace" + - "show_letters show_eschars preferences space . Return" + symbols: + - "EscSmall TabSmall Ctrl Alt ↑ ↓ ← →" + - "~ ` | · √ π τ ÷ × ¶" + - "© ® £ € ¥ ^ ° @ { }" + - "show_numbers \\ % < > = [ ] BackSpace" + - "show_letters show_eschars preferences space . Return" + eschars: + - "EscSmall TabSmall Ctrl Alt ↑ ↓ ← →" + - "á é í ó ú Á É Í Ó Ú" + - "à è ì ò ù À È Ì Ò Ù" + - "show_numbers ´ ü ç ï Ü Ç Ï BackSpace" + - "show_letters show_symbols preferences space show_actions Return" + actions: + - "EscSmall TabSmall Ctrl Alt PgUp PgDn Home End" + - "F1 F2 F3 F4 F5 F6" + - "F7 F8 F9 F10 F11 F12" + - "Esc Tab Pause Insert Up Del" + - "show_letters Menu Break Left Down Right" + +buttons: + Shift_L: + action: + locking: + lock_view: "upper" + unlock_view: "base" + outline: "wide" + icon: "key-shift" + BackSpace: + outline: "wide" + icon: "edit-clear-symbolic" + action: erase + preferences: + action: "show_prefs" + outline: "default" + icon: "keyboard-mode-symbolic" + show_numbers: + action: + set_view: "numbers" + outline: "wide" + label: "123" + show_letters: + action: + set_view: "base" + outline: "wide" + label: "ABC" + show_symbols: + action: + set_view: "symbols" + outline: "wide" + label: "τ=\\" + show_eschars: + action: + set_view: "eschars" + outline: "wide" + label: "áÁ" + show_actions: + action: + set_view: "actions" + outline: "default" + label: ">:" + ".": + outline: "default" + text: "." + space: + outline: "spaceline" + text: " " + Return: + outline: "wide" + icon: "key-enter" + keysym: "Return" + colon: + text: ":" + F1: + outline: "action" + keysym: "F1" + F2: + outline: "action" + keysym: "F2" + F3: + outline: "action" + keysym: "F3" + F4: + outline: "action" + keysym: "F4" + F5: + outline: "action" + keysym: "F5" + F6: + outline: "action" + keysym: "F6" + F7: + outline: "action" + keysym: "F7" + F8: + outline: "action" + keysym: "F8" + F9: + outline: "action" + keysym: "F9" + F10: + outline: "action" + keysym: "F10" + F11: + outline: "action" + keysym: "F11" + F12: + outline: "action" + keysym: "F12" + Esc: + outline: "action" + keysym: "Escape" + EscSmall: + outline: "small" + keysym: "Escape" + label: "Esc" + Tab: + outline: "action" + keysym: "Tab" + TabSmall: + outline: "small" + keysym: "Tab" + label: "Tab" + Del: + outline: "action" + keysym: "Delete" + DelUp: + outline: "wide" + keysym: "Delete" + label: "Del" + Insert: + outline: "action" + keysym: "Insert" + Menu: + outline: "action" + keysym: "Menu" + Pause: + outline: "action" + keysym: "Pause" + Break: + outline: "action" + keysym: "Break" + Home: + outline: "small" + keysym: "Home" + End: + outline: "small" + keysym: "End" + PgUp: + outline: "small" + keysym: "Page_Up" + PgDn: + outline: "small" + keysym: "Page_Down" + "↑": + outline: "small" + keysym: "Up" + "↓": + outline: "small" + keysym: "Down" + "←": + outline: "small" + keysym: "Left" + "→": + outline: "small" + keysym: "Right" + Up: + label: "↑" + outline: "action" + keysym: "Up" + Left: + label: "←" + outline: "action" + keysym: "Left" + Down: + label: "↓" + outline: "action" + keysym: "Down" + Right: + label: "→" + outline: "action" + keysym: "Right" + Ctrl: + modifier: "Control" + outline: "small" + label: "Ctrl" + Alt: + modifier: "Alt" + outline: "small" + label: "Alt" diff --git a/src/resources.rs b/src/resources.rs index 7ac8e23c..c351a2ba 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -109,6 +109,9 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[ ("pin/us", include_str!("../data/keyboards/pin/us.yaml")), // Terminal + ("terminal/es", include_str!("../data/keyboards/terminal/es.yaml")), + ("terminal/es_wide", include_str!("../data/keyboards/terminal/es_wide.yaml")), + ("terminal/fr", include_str!("../data/keyboards/terminal/fr.yaml")), ("terminal/fr_wide", include_str!("../data/keyboards/terminal/fr_wide.yaml")), diff --git a/tests/meson.build b/tests/meson.build index 67fea2b0..059a898a 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -97,6 +97,8 @@ foreach layout : [ 'us+dvorak', 'us+dvorak_wide', # Terminal keyboards + 'terminal/es', + 'terminal/es_wide', 'terminal/fr', 'terminal/fr_wide', 'terminal/us',