aboutsummaryrefslogtreecommitdiff
path: root/quantum/keymap_extras/keymap_swedish.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-03-13 11:09:30 +1100
committerGitHub <noreply@github.com>2020-03-12 17:09:30 -0700
commit2b63896466d611bd05912af8b1abb524315a9169 (patch)
tree298fef6c52ebb5aa4422aa3b4722071d2ad5ef6c /quantum/keymap_extras/keymap_swedish.h
parent6734a398117c6877819d673f6b21efb6a42fa97b (diff)
downloadqmk_firmware-2b63896466d611bd05912af8b1abb524315a9169.tar.gz
qmk_firmware-2b63896466d611bd05912af8b1abb524315a9169.zip
Update Swedish keymap and add sendstring LUT (#8365)
Diffstat (limited to 'quantum/keymap_extras/keymap_swedish.h')
-rw-r--r--quantum/keymap_extras/keymap_swedish.h215
1 files changed, 153 insertions, 62 deletions
diff --git a/quantum/keymap_extras/keymap_swedish.h b/quantum/keymap_extras/keymap_swedish.h
index 96fd0c5c6..86e0761f2 100644
--- a/quantum/keymap_extras/keymap_swedish.h
+++ b/quantum/keymap_extras/keymap_swedish.h
@@ -14,74 +14,165 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#ifndef KEYMAP_SWEDISH_H 17#pragma once
18#define KEYMAP_SWEDISH_H
19 18
20#include "keymap.h" 19#include "keymap.h"
21 20
22// Normal characters 21// clang-format off
23#define SE_HALF KC_GRV
24#define SE_PLUS KC_MINS
25#define SE_ACUT KC_EQL
26 22
27#define SE_AM KC_LBRC 23/*
28#define SE_QUOT KC_RBRC // this is the "umlaut" char on Nordic keyboards, Apple layout 24 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
29#define SE_AE KC_QUOT // ä 25 * │ § │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ + │ ´ │       │
30#define SE_OSLH KC_SCLN // ö 26 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
31#define SE_APOS KC_NUHS 27 * │     │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Å │ ¨ │     │
32 28 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐    │
33#define SE_LESS KC_NUBS 29 * │      │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ö │ Ä │ ' │    │
34#define SE_MINS KC_SLSH 30 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
35 31 * │    │ < │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ - │          │
36// Shifted characters 32 * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
37#define SE_SECT LSFT(SE_HALF) 33 * │    │    │    │                        │    │    │    │    │
38#define SE_QUO2 LSFT(KC_2) 34 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
39#define SE_BULT LSFT(KC_4) 35 */
40#define SE_AMPR LSFT(KC_6) 36// Row 1
41#define SE_SLSH LSFT(KC_7) 37#define SE_SECT KC_GRV // §
42#define SE_LPRN LSFT(KC_8) 38#define SE_1 KC_1 // 1
43#define SE_RPRN LSFT(KC_9) 39#define SE_2 KC_2 // 2
44#define SE_EQL LSFT(KC_0) 40#define SE_3 KC_3 // 3
45#define SE_QUES LSFT(SE_PLUS) 41#define SE_4 KC_4 // 4
46#define SE_GRV LSFT(SE_ACUT) 42#define SE_5 KC_5 // 5
47 43#define SE_6 KC_6 // 6
48#define SE_CIRC LSFT(KC_RBRC) // ^ 44#define SE_7 KC_7 // 7
49 45#define SE_8 KC_8 // 8
50#define SE_GRTR LSFT(SE_LESS) 46#define SE_9 KC_9 // 9
51#define SE_SCLN LSFT(KC_COMM) 47#define SE_0 KC_0 // 0
52#define SE_COLN LSFT(KC_DOT) 48#define SE_PLUS KC_MINS // +
53#define SE_UNDS LSFT(SE_MINS) 49#define SE_ACUT KC_EQL // ´ (dead)
54 50// Row 2
55// Alt Gr-ed characters 51#define SE_Q KC_Q // Q
56#define SE_AT ALGR(KC_2) 52#define SE_W KC_W // W
57#define SE_PND ALGR(KC_3) 53#define SE_E KC_E // E
58#define SE_DLR ALGR(KC_4) 54#define SE_R KC_R // R
59#define SE_LCBR ALGR(KC_7) 55#define SE_T KC_T // T
60#define SE_LBRC ALGR(KC_8) 56#define SE_Y KC_Y // Y
61#define SE_RBRC ALGR(KC_9) 57#define SE_U KC_U // U
62#define SE_RCBR ALGR(KC_0) 58#define SE_I KC_I // I
63#define SE_PIPE ALGR(KC_NUBS) 59#define SE_O KC_O // O
60#define SE_P KC_P // P
61#define SE_ARNG KC_LBRC // Å
62#define SE_DIAE KC_RBRC // ¨ (dead)
63// Row 3
64#define SE_A KC_A // A
65#define SE_S KC_S // S
66#define SE_D KC_D // D
67#define SE_F KC_F // F
68#define SE_G KC_G // G
69#define SE_H KC_H // H
70#define SE_J KC_J // J
71#define SE_K KC_K // K
72#define SE_L KC_L // L
73#define SE_ODIA KC_SCLN // Ö
74#define SE_ADIA KC_QUOT // Ä
75#define SE_QUOT KC_NUHS // '
76// Row 4
77#define SE_LABK KC_NUBS // <
78#define SE_Z KC_Z // Z
79#define SE_X KC_X // X
80#define SE_C KC_C // C
81#define SE_V KC_V // V
82#define SE_B KC_B // B
83#define SE_N KC_N // N
84#define SE_M KC_M // M
85#define SE_COMM KC_COMM // ,
86#define SE_DOT KC_DOT // .
87#define SE_MINS KC_SLSH // -
64 88
65#define SE_EURO ALGR(KC_E) 89/* Shifted symbols
66#define SE_TILD ALGR(SE_QUOT) 90 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
91 * │ ½ │ ! │ " │ # │ ¤ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │       │
92 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
93 * │     │   │   │   │   │   │   │   │   │   │   │   │ ^ │     │
94 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐    │
95 * │      │   │   │   │   │   │   │   │   │   │   │   │ * │    │
96 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
97 * │    │ > │   │   │   │   │   │   │   │ ; │ : │ _ │          │
98 * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
99 * │    │    │    │                        │    │    │    │    │
100 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
101 */
102// Row 1
103#define SE_HALF S(SE_SECT) // ½
104#define SE_EXLM S(SE_1) // !
105#define SE_DQUO S(SE_2) // "
106#define SE_HASH S(SE_3) // #
107#define SE_CURR S(SE_4) // ¤
108#define SE_PERC S(SE_5) // %
109#define SE_AMPR S(SE_6) // &
110#define SE_SLSH S(SE_7) // /
111#define SE_LPRN S(SE_8) // (
112#define SE_RPRN S(SE_9) // )
113#define SE_EQL S(SE_0) // =
114#define SE_QUES S(SE_PLUS) // ?
115#define SE_GRV S(SE_ACUT) // ` (dead)
116// Row 2
117#define SE_CIRC S(SE_DIAE) // ^ (dead)
118// Row 3
119#define SE_ASTR S(SE_QUOT) // *
120// Row 4
121#define SE_RABK S(SE_LABK) // >
122#define SE_SCLN S(SE_COMM) // ;
123#define SE_COLN S(SE_DOT) // :
124#define SE_UNDS S(SE_MINS) // _
67 125
68#define SE_BSLS ALGR(KC_MINS) 126/* AltGr symbols
69#define SE_MU ALGR(KC_M) 127 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
128 * │   │   │ @ │ £ │ $ │ € │   │ { │ [ │ ] │ } │ \ │   │       │
129 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
130 * │     │   │   │   │   │   │   │   │   │   │   │   │ ~ │     │
131 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐    │
132 * │      │   │   │   │   │   │   │   │   │   │   │   │   │    │
133 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
134 * │    │ | │   │   │   │   │   │   │ µ │   │   │   │          │
135 * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
136 * │    │    │    │                        │    │    │    │    │
137 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
138 */
139// Row 1
140#define SE_AT ALGR(SE_2) // @
141#define SE_PND ALGR(SE_3) // £
142#define SE_DLR ALGR(SE_4) // $
143#define SE_EURO ALGR(SE_5) // €
144#define SE_LCBR ALGR(SE_7) // {
145#define SE_LBRC ALGR(SE_8) // [
146#define SE_RBRC ALGR(SE_9) // ]
147#define SE_RCBR ALGR(SE_0) // }
148#define SE_BSLS ALGR(SE_PLUS) // (backslash)
149// Row 2
150#define SE_TILD ALGR(SE_DIAE) // ~ (dead)
151// Row 4
152#define SE_PIPE ALGR(SE_LABK) // |
153#define SE_MICR ALGR(SE_M) // µ
70 154
71#define SE_AA KC_LBRC // å 155// DEPRECATED
72#define SE_ASTR LSFT(KC_BSLS) // * 156#include "keymap_nordic.h"
73 157
74// Norwegian unique MAC characters (not vetted for Swedish) 158#undef NO_AE
75#define SE_ACUT_MAC KC_EQL // = 159#undef NO_CIRC
76#define SE_APOS_MAC KC_NUBS // ' 160#undef NO_OSLH
77#define SE_AT_MAC KC_BSLS // @
78#define SE_BSLS_MAC ALGR(LSFT(KC_7)) // '\'
79#define SE_DLR_MAC ALGR(KC_4) // $
80#define SE_GRV_MAC ALGR(SE_BSLS) // `
81#define SE_GRTR_MAC LSFT(KC_GRV) // >
82#define SE_LCBR_MAC ALGR(LSFT(KC_8)) // {
83#define SE_LESS_MAC KC_GRV // <
84#define SE_PIPE_MAC ALGR(KC_7) // |
85#define SE_RCBR_MAC ALGR(LSFT(KC_9)) // }
86 161
87#endif 162#define NO_AE SE_AE
163#define NO_CIRC SE_CIRC
164#define NO_OSLH SE_ODIA
165#define NO_AA SE_ARNG
166#define NO_ASTR SE_ASTR
167// Swedish macOS symbols (not vetted)
168#define NO_ACUT_MAC SE_ACUT
169#define NO_APOS_MAC SE_LABK
170#define NO_AT_MAC SE_ADIA
171#define NO_BSLS_MAC S(SE_LCBR)
172#define NO_DLR_MAC SE_CURR
173#define NO_GRV_MAC SE_BSLS
174#define NO_GRTR_MAC SE_HALF
175#define NO_LCBR_MAC S(SE_LBRC)
176#define NO_LESS_MAC SE_SECT
177#define NO_PIPE_MAC SE_LCBR
178#define NO_RCBR_MAC S(SE_RBRC)