summaryrefslogtreecommitdiff
path: root/quantum/keymap_extras/sendstring_danish.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-02-22 00:40:28 +1100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-03-24 16:04:05 +0900
commitff1a52360e3b7013a6b9694002543f89c05fd6ef (patch)
tree540f309f14384dcb2e0e65261b604fabf68ca7a7 /quantum/keymap_extras/sendstring_danish.h
parent9cd5fa0454d465ff3405f8cde55fb7db46122135 (diff)
Add Danish keymap and sendstring LUT (#8218)
Diffstat (limited to 'quantum/keymap_extras/sendstring_danish.h')
-rw-r--r--quantum/keymap_extras/sendstring_danish.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/quantum/keymap_extras/sendstring_danish.h b/quantum/keymap_extras/sendstring_danish.h
new file mode 100644
index 0000000000..3505a076bd
--- /dev/null
+++ b/quantum/keymap_extras/sendstring_danish.h
@@ -0,0 +1,99 @@
+/* Copyright 2019
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Sendstring lookup tables for Danish layouts
+
+#pragma once
+
+#include "keymap_danish.h"
+
+// clang-format off
+
+const bool ascii_to_shift_lut[128] PROGMEM = {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+
+ 0, 1, 1, 1, 0, 1, 1, 0,
+ 1, 1, 1, 0, 0, 0, 0, 1,
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0,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SUB ESC FS GS RS US
+ XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
+
+ // ! " # $ % & '
+ KC_SPC, DK_1, DK_2, DK_3, DK_4, DK_5, DK_6, DK_QUOT,
+ // ( ) * + , - . /
+ DK_8, DK_9, DK_QUOT, DK_PLUS, DK_COMM, DK_MINS, DK_DOT, DK_7,
+ // 0 1 2 3 4 5 6 7
+ DK_0, DK_1, DK_2, DK_3, DK_4, DK_5, DK_6, DK_7,
+ // 8 9 : ; < = > ?
+ DK_8, DK_9, DK_DOT, DK_COMM, DK_LABK, DK_0, DK_LABK, DK_PLUS,
+ // @ A B C D E F G
+ DK_2, DK_A, DK_B, DK_C, DK_D, DK_E, DK_F, DK_G,
+ // H I J K L M N O
+ DK_H, DK_I, DK_J, DK_K, DK_L, DK_M, DK_N, DK_O,
+ // P Q R S T U V W
+ DK_P, DK_Q, DK_R, DK_S, DK_T, DK_U, DK_V, DK_W,
+ // X Y Z [ \ ] ^ _
+ DK_X, DK_Y, DK_Z, DK_8, DK_LABK, DK_9, DK_DIAE, DK_MINS,
+ // ` a b c d e f g
+ DK_ACUT, DK_A, DK_B, DK_C, DK_D, DK_E, DK_F, DK_G,
+ // h i j k l m n o
+ DK_H, DK_I, DK_J, DK_K, DK_L, DK_M, DK_N, DK_O,
+ // p q r s t u v w
+ DK_P, DK_Q, DK_R, DK_S, DK_T, DK_U, DK_V, DK_W,
+ // x y z { | } ~ DEL
+ DK_X, DK_Y, DK_Z, DK_7, DK_ACUT, DK_0, DK_DIAE, KC_DEL
+};