From 8f93e2f7aba59e785c9eee46eaa3c8cbf36766a7 Mon Sep 17 00:00:00 2001 From: fmrtn Date: Sun, 29 Aug 2021 13:29:29 +0200 Subject: [PATCH] Add Spanish keyboard layout --- contrib/Settings-sample.toml | 2 +- keyboard-layouts/spanish.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 keyboard-layouts/spanish.json diff --git a/contrib/Settings-sample.toml b/contrib/Settings-sample.toml index b1ccdb63..7826e62d 100644 --- a/contrib/Settings-sample.toml +++ b/contrib/Settings-sample.toml @@ -1,5 +1,5 @@ # selected-library = 0 -# Possible values: "English", "Russian". +# Possible values: "English", "Russian", "Spanish". keyboard-layout = "English" frontlight = true wifi = false diff --git a/keyboard-layouts/spanish.json b/keyboard-layouts/spanish.json new file mode 100644 index 00000000..53b3e2f8 --- /dev/null +++ b/keyboard-layouts/spanish.json @@ -0,0 +1,32 @@ +{ + "name": "Spanish", + "outputs": [ + [["q", "w", "e", "r", "t", "y", "u", "i", "o", "p"], + ["a", "s", "d", "f", "g", "h", "j", "k", "l","ñ"], + ["z", "x", "c", "v", "b", "n", "m"]], + + [["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P"], + ["A", "S", "D", "F", "G", "H", "J", "K", "L","Ñ"], + ["Z", "X", "C", "V", "B", "N", "M"]], + + [["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"], + ["\\", "=", ",", "'", "_","\"", ".", "*", "/"," "], + ["!", "-", "(", ":", ")", "+", "?"]], + + [["·", "“", "%", "^", "#", "$", "~", "×", "”", "°"], + ["‘", "@", "[", "`", "|", "…", "]", "&", "’"," "], + ["–", "<", "{", ";", "}", ">", "—"]] + ], + "keys": [ + ["▢", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "▢"], + ["DB", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "DF"], + ["Shift", "▢", "▢", "▢", "▢", "▢", "▢", "▢", "Return"], + ["MoveB", "Cmb", "Space", "Alt", "MoveF"] + ], + "widths": [ + [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], + [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], + [2.06, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.06], + [1.53, 1.53, 4.18, 1.53, 1.53] + ] +}