diff --git a/data/keyboards/se.yaml b/data/keyboards/se.yaml new file mode 100644 index 00000000..4c699625 --- /dev/null +++ b/data/keyboards/se.yaml @@ -0,0 +1,177 @@ +--- +bounds: { x: 0, y: 0.33, width: 360, height: 210 } + +outlines: + default: + bounds: { x: 0, y: 0, width: 32, height: 52 } + altline: + bounds: { x: 0, y: 0, width: 48.39024, height: 52 } + wide: + bounds: { x: 0, y: 0, width: 62, height: 52 } + outline7: + bounds: { x: 0, y: 0, width: 88.97561, height: 52 } + spaceline: + bounds: { x: 0, y: 0, width: 150.5853, height: 52 } + +views: + base: + - "q w e r t y u i o p aring" + - "a s d f g h j k l ouml auml" + - "Shift_L z x c v b n m BackSpace" + - "show_numbers preferences space period Return" + upper: + - "Q W E R T Y U I O P Aring" + - "A S D F G H J K L Ouml Auml" + - "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" + - "at numbersign dollar percent ampersand minus underscore plus parenleft parenright" + - "show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace" + - "show_letters preferences space period Return" + symbols: + - "asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph" + - "copyright U00AE U00A3 EuroSign U00A5 asciicircum degree asterisk braceleft braceright" + - "show_numbers backslash slash less greater equal bracketleft bracketright 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" + preferences: + action: "show_prefs" + outline: "altline" + 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: "*/=" + period: + outline: altline + label: "." + space: + outline: spaceline + label: " " + Return: + outline: "wide" + icon: "key-enter" + aring: + label: "å" + Aring: + label: "Å" + ouml: + label: "ö" + Ouml: + label: "Ö" + auml: + label: "ä" + Auml: + label: "Ä" + asterisk: + label: "*" + asciitilde: + label: "~" + quoteleft: + label: "`" + bar: + label: "|" + U00B7: + label: "·" + squareroot: + label: "√" + Greek_pi: + label: "π" + division: + label: "÷" + multiply: + label: "×" + paragraph: + label: "¶" + Greek_tau: + label: "τ" + copyright: + label: "©" + numbersign: + label: "#" + U00AE: + label: "®" + at: + label: "@" + dollar: + label: "$" + U00A3: + label: "£" + percent: + label: "%" + EuroSign: + label: "€" + ampersand: + label: "&" + U00A5: + label: "¥" + minus: + label: "-" + asciicircum: + label: "^" + underscore: + label: "_" + degree: + label: "°" + plus: + label: "+" + equal: + label: "=" + parenleft: + label: "(" + parenright: + label: ")" + braceleft: + label: "{" + braceright: + label: "}" + comma: + label: "," + backslash: + label: "\\" + slash: + label: "/" + quotedbl: + label: "\"" + quoteright: + label: "'" + less: + label: "<" + greater: + label: ">" + colon: + label: ":" + semicolon: + label: ";" + exclam: + label: "!" + question: + label: "?" + bracketleft: + label: "[" + bracketright: + label: "]" + diff --git a/src/resources.rs b/src/resources.rs index e33ff433..c5840873 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -12,6 +12,7 @@ const KEYBOARDS: &[(*const str, *const str)] = &[ ("ja+kana", include_str!("../data/keyboards/ja+kana.yaml")), ("nb", include_str!("../data/keyboards/nb.yaml")), ("number", include_str!("../data/keyboards/number.yaml")), + ("se", include_str!("../data/keyboards/se.yaml")), ]; pub fn get_keyboard(needle: &str) -> Option<&'static str> { diff --git a/tests/meson.build b/tests/meson.build index 2e3074b4..b22be954 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -56,6 +56,7 @@ foreach layout : [ 'ja+kana', 'nb', 'number', + 'se', ] test( 'test_layout_' + layout,