3505a076bd305272b85e2dce00fb0ea2209d6daf
[jackhill/qmk/firmware.git] / quantum / keymap_extras / sendstring_danish.h
1 /* Copyright 2019
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 // Sendstring lookup tables for Danish layouts
18
19 #pragma once
20
21 #include "keymap_danish.h"
22
23 // clang-format off
24
25 const bool ascii_to_shift_lut[128] PROGMEM = {
26 0, 0, 0, 0, 0, 0, 0, 0,
27 0, 0, 0, 0, 0, 0, 0, 0,
28 0, 0, 0, 0, 0, 0, 0, 0,
29 0, 0, 0, 0, 0, 0, 0, 0,
30
31 0, 1, 1, 1, 0, 1, 1, 0,
32 1, 1, 1, 0, 0, 0, 0, 1,
33 0, 0, 0, 0, 0, 0, 0, 0,
34 0, 0, 1, 1, 0, 1, 1, 1,
35 0, 1, 1, 1, 1, 1, 1, 1,
36 1, 1, 1, 1, 1, 1, 1, 1,
37 1, 1, 1, 1, 1, 1, 1, 1,
38 1, 1, 1, 0, 0, 0, 1, 1,
39 1, 0, 0, 0, 0, 0, 0, 0,
40 0, 0, 0, 0, 0, 0, 0, 0,
41 0, 0, 0, 0, 0, 0, 0, 0,
42 0, 0, 0, 0, 0, 0, 0, 0
43 };
44
45 const bool ascii_to_altgr_lut[128] PROGMEM = {
46 0, 0, 0, 0, 0, 0, 0, 0,
47 0, 0, 0, 0, 0, 0, 0, 0,
48 0, 0, 0, 0, 0, 0, 0, 0,
49 0, 0, 0, 0, 0, 0, 0, 0,
50
51 0, 0, 0, 0, 1, 0, 0, 0,
52 0, 0, 0, 0, 0, 0, 0, 0,
53 0, 0, 0, 0, 0, 0, 0, 0,
54 0, 0, 0, 0, 0, 0, 0, 0,
55 1, 0, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 0, 0, 0, 0,
57 0, 0, 0, 0, 0, 0, 0, 0,
58 0, 0, 0, 1, 1, 1, 0, 0,
59 0, 0, 0, 0, 0, 0, 0, 0,
60 0, 0, 0, 0, 0, 0, 0, 0,
61 0, 0, 0, 0, 0, 0, 0, 0,
62 0, 0, 0, 1, 1, 1, 1, 0
63 };
64
65 const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
66 // NUL SOH STX ETX EOT ENQ ACK BEL
67 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
68 // BS TAB LF VT FF CR SO SI
69 KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
70 // DLE DC1 DC2 DC3 DC4 NAK SYN ETB
71 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
72 // CAN EM SUB ESC FS GS RS US
73 XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
74
75 // ! " # $ % & '
76 KC_SPC, DK_1, DK_2, DK_3, DK_4, DK_5, DK_6, DK_QUOT,
77 // ( ) * + , - . /
78 DK_8, DK_9, DK_QUOT, DK_PLUS, DK_COMM, DK_MINS, DK_DOT, DK_7,
79 // 0 1 2 3 4 5 6 7
80 DK_0, DK_1, DK_2, DK_3, DK_4, DK_5, DK_6, DK_7,
81 // 8 9 : ; < = > ?
82 DK_8, DK_9, DK_DOT, DK_COMM, DK_LABK, DK_0, DK_LABK, DK_PLUS,
83 // @ A B C D E F G
84 DK_2, DK_A, DK_B, DK_C, DK_D, DK_E, DK_F, DK_G,
85 // H I J K L M N O
86 DK_H, DK_I, DK_J, DK_K, DK_L, DK_M, DK_N, DK_O,
87 // P Q R S T U V W
88 DK_P, DK_Q, DK_R, DK_S, DK_T, DK_U, DK_V, DK_W,
89 // X Y Z [ \ ] ^ _
90 DK_X, DK_Y, DK_Z, DK_8, DK_LABK, DK_9, DK_DIAE, DK_MINS,
91 // ` a b c d e f g
92 DK_ACUT, DK_A, DK_B, DK_C, DK_D, DK_E, DK_F, DK_G,
93 // h i j k l m n o
94 DK_H, DK_I, DK_J, DK_K, DK_L, DK_M, DK_N, DK_O,
95 // p q r s t u v w
96 DK_P, DK_Q, DK_R, DK_S, DK_T, DK_U, DK_V, DK_W,
97 // x y z { | } ~ DEL
98 DK_X, DK_Y, DK_Z, DK_7, DK_ACUT, DK_0, DK_DIAE, KC_DEL
99 };