From a09a51ada90e228ac1085a61409bf1c61e453ab5 Mon Sep 17 00:00:00 2001 From: Newbyte Date: Wed, 14 Sep 2022 19:48:01 +0200 Subject: [PATCH] Add wide Swedish layout Closes https://gitlab.gnome.org/World/Phosh/squeekboard/-/issues/351 --- data/keyboards/se_wide.yaml | 164 ++++++++++++++++++++++++++++++++++++ src/resources.rs | 1 + tests/meson.build | 2 +- 3 files changed, 166 insertions(+), 1 deletion(-) create mode 100644 data/keyboards/se_wide.yaml diff --git a/data/keyboards/se_wide.yaml b/data/keyboards/se_wide.yaml new file mode 100644 index 00000000..edb50346 --- /dev/null +++ b/data/keyboards/se_wide.yaml @@ -0,0 +1,164 @@ +--- +outlines: + default: { width: 50, height: 42 } + altline: { width: 81, height: 42 } + wide: { width: 108, height: 42 } + spaceline: { width: 216, height: 42 } + special: { width: 60, height: 42 } + + +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 preferences space . 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 . Return" + numbers: + - "§ 1 2 3 4 5 6 7 8 9 0" + - "at numbersign EuroSign dollar percent ampersand minus underscore plus parenleft parenright" + - "show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace" + - "show_letters preferences space . Return" + symbols: + - "µ asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph" + - "½ ¤ copyright U00AE U00A3 U00A5 asciicircum degree asterisk braceleft braceright" + - "show_numbers_from_symbols backslash slash less greater equal bracketleft bracketright BackSpace" + - "show_letters 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: + outline: "wide" + action: + set_view: "numbers" + label: "123" + show_numbers_from_symbols: + action: + set_view: "numbers" + outline: altline + label: "123" + show_letters: + outline: "wide" + action: + set_view: "base" + label: "ABC" + show_symbols: + action: + set_view: "symbols" + outline: "altline" + label: "*/=" + ".": + outline: "special" + space: + outline: spaceline + text: " " + Return: + outline: "wide" + icon: "key-enter" + keysym: "Return" + asterisk: + text: "*" + asciitilde: + text: "~" + quoteleft: + text: "`" + bar: + text: "|" + U00B7: + text: "·" + squareroot: + text: "√" + Greek_pi: + text: "π" + division: + text: "÷" + multiply: + text: "×" + paragraph: + text: "¶" + Greek_tau: + text: "τ" + copyright: + text: "©" + numbersign: + text: "#" + U00AE: + text: "®" + at: + text: "@" + dollar: + text: "$" + U00A3: + text: "£" + percent: + text: "%" + EuroSign: + text: "€" + ampersand: + text: "&" + U00A5: + text: "¥" + minus: + text: "-" + asciicircum: + text: "^" + underscore: + text: "_" + degree: + text: "°" + plus: + text: "+" + equal: + text: "=" + parenleft: + text: "(" + parenright: + text: ")" + braceleft: + text: "{" + braceright: + text: "}" + comma: + text: "," + backslash: + text: "\\" + slash: + text: "/" + quotedbl: + text: "\"" + quoteright: + text: "'" + less: + text: "<" + greater: + text: ">" + colon: + text: ":" + semicolon: + text: ";" + exclam: + text: "!" + question: + text: "?" + bracketleft: + text: "[" + bracketright: + text: "]" diff --git a/src/resources.rs b/src/resources.rs index 1a924120..6e4561c9 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -82,6 +82,7 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[ ("ru", include_str!("../data/keyboards/ru.yaml")), ("se", include_str!("../data/keyboards/se.yaml")), + ("se_wide", include_str!("../data/keyboards/se_wide.yaml")), ("th", include_str!("../data/keyboards/th.yaml")), ("th_wide", include_str!("../data/keyboards/th_wide.yaml")), diff --git a/tests/meson.build b/tests/meson.build index ae726442..6a4705c8 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -89,7 +89,7 @@ foreach layout : [ 'pl', 'pl_wide', 'ro', 'ro_wide', 'ru', - 'se', + 'se', 'se_wide', 'th', 'th_wide', 'ua', 'us+colemak', 'us+colemak_wide',