diff --git a/data/keyboards/fi.yaml b/data/keyboards/fi.yaml new file mode 100644 index 00000000..4c699625 --- /dev/null +++ b/data/keyboards/fi.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 9bb2905a..65a9612f 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -15,6 +15,7 @@ const KEYBOARDS: &[(*const str, *const str)] = &[ ("de", include_str!("../data/keyboards/de.yaml")), ("el", include_str!("../data/keyboards/el.yaml")), ("es", include_str!("../data/keyboards/es.yaml")), + ("fi", include_str!("../data/keyboards/fi.yaml")), ("it", include_str!("../data/keyboards/it.yaml")), ("ja+kana", include_str!("../data/keyboards/ja+kana.yaml")), ("no", include_str!("../data/keyboards/no.yaml")), diff --git a/tests/meson.build b/tests/meson.build index 51ca36d4..bd89b1a9 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -52,6 +52,7 @@ foreach layout : [ 'de', 'el', 'es', + 'fi', 'it', 'ja+kana', 'no',