diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-07-09 12:50:53 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | 51ee2449060517a96cedb7c38b86a7de0be2ecab (patch) | |
| tree | f02b42b9701b9dc7d56ff34291c265d35c7b7c6c /quantum | |
| parent | ac1672689599ff7180b3baaaa9a1356e0e23021e (diff) | |
| download | qmk_firmware-51ee2449060517a96cedb7c38b86a7de0be2ecab.tar.gz qmk_firmware-51ee2449060517a96cedb7c38b86a7de0be2ecab.zip | |
Language Keymap extras backport from ZSA fork (#6198)
* Swedish extra keymap refactor
* Fix swedish $ sign definition (#81)
* Fix br abnt2 keymap compilation error
* Add PR changelog doc
* Update PR6198.md
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/keymap_extras/keymap_br_abnt2.h | 2 | ||||
| -rw-r--r-- | quantum/keymap_extras/keymap_swedish.h | 84 |
2 files changed, 62 insertions, 24 deletions
diff --git a/quantum/keymap_extras/keymap_br_abnt2.h b/quantum/keymap_extras/keymap_br_abnt2.h index b001139dd..63b917d8f 100644 --- a/quantum/keymap_extras/keymap_br_abnt2.h +++ b/quantum/keymap_extras/keymap_br_abnt2.h | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | #ifndef KEYMAP_BR_ABNT2_H | 17 | #ifndef KEYMAP_BR_ABNT2_H |
| 18 | #define KEYMAP_BR_ABNT2_H | 18 | #define KEYMAP_BR_ABNT2_H |
| 19 | 19 | ||
| 20 | #include "keymap_common.h" | 20 | #include "keymap.h" |
| 21 | 21 | ||
| 22 | /* Scan codes for the Brazilian ABNT2 keyboard layout */ | 22 | /* Scan codes for the Brazilian ABNT2 keyboard layout */ |
| 23 | 23 | ||
diff --git a/quantum/keymap_extras/keymap_swedish.h b/quantum/keymap_extras/keymap_swedish.h index d1a0f4f22..cc359efcd 100644 --- a/quantum/keymap_extras/keymap_swedish.h +++ b/quantum/keymap_extras/keymap_swedish.h | |||
| @@ -17,34 +17,72 @@ | |||
| 17 | #ifndef KEYMAP_SWEDISH_H | 17 | #ifndef KEYMAP_SWEDISH_H |
| 18 | #define KEYMAP_SWEDISH_H | 18 | #define KEYMAP_SWEDISH_H |
| 19 | 19 | ||
| 20 | #include "keymap_nordic.h" | 20 | #include "keymap.h" |
| 21 | 21 | ||
| 22 | // There are slight differrences in the keyboards in the nordic contries | 22 | // Normal characters |
| 23 | #define SE_HALF KC_GRV | ||
| 24 | #define SE_PLUS KC_MINS | ||
| 25 | #define SE_ACUT KC_EQL | ||
| 23 | 26 | ||
| 24 | // Swedish redifinitions from the nordic keyset | 27 | #define SE_AM KC_LBRC |
| 25 | #undef NO_AE | 28 | #define SE_QUOT KC_RBRC // this is the "umlaut" char on Nordic keyboards, Apple layout |
| 26 | #define NO_AE KC_QUOT // ä | 29 | #define SE_AE KC_QUOT // ä |
| 27 | #undef NO_CIRC | 30 | #define SE_OSLH KC_SCLN // ö |
| 28 | #define NO_CIRC LSFT(KC_RBRC) // ^ | 31 | #define SE_APOS KC_NUHS |
| 29 | #undef NO_OSLH | ||
| 30 | #define NO_OSLH KC_SCLN // ö | ||
| 31 | 32 | ||
| 32 | // Additional Swedish keys not defined in the nordic keyset | 33 | #define SE_LESS KC_NUBS |
| 33 | #define NO_AA KC_LBRC // å | 34 | #define SE_MINS KC_SLSH |
| 34 | #define NO_ASTR LSFT(KC_BSLS) // * | 35 | |
| 36 | // Shifted characters | ||
| 37 | #define SE_SECT LSFT(SE_HALF) | ||
| 38 | #define SE_QUO2 LSFT(KC_2) | ||
| 39 | #define SE_BULT LSFT(KC_4) | ||
| 40 | #define SE_AMPR LSFT(KC_6) | ||
| 41 | #define SE_SLSH LSFT(KC_7) | ||
| 42 | #define SE_LPRN LSFT(KC_8) | ||
| 43 | #define SE_RPRN LSFT(KC_9) | ||
| 44 | #define SE_EQL LSFT(KC_0) | ||
| 45 | #define SE_QUES LSFT(SE_PLUS) | ||
| 46 | #define SE_GRV LSFT(SE_ACUT) | ||
| 47 | |||
| 48 | #define SE_CIRC LSFT(KC_RBRC) // ^ | ||
| 49 | |||
| 50 | #define SE_GRTR LSFT(SE_LESS) | ||
| 51 | #define SE_SCLN LSFT(KC_COMM) | ||
| 52 | #define SE_COLN LSFT(KC_DOT) | ||
| 53 | #define SE_UNDS LSFT(SE_MINS) | ||
| 54 | |||
| 55 | // Alt Gr-ed characters | ||
| 56 | #define SE_AT ALGR(KC_2) | ||
| 57 | #define SE_PND ALGR(KC_3) | ||
| 58 | #define SE_DLR ALGR(KC_4) | ||
| 59 | #define SE_LCBR ALGR(KC_7) | ||
| 60 | #define SE_LBRC ALGR(KC_8) | ||
| 61 | #define SE_RBRC ALGR(KC_9) | ||
| 62 | #define SE_RCBR ALGR(KC_0) | ||
| 63 | #define SE_PIPE ALGR(KC_NUBS) | ||
| 64 | |||
| 65 | #define SE_EURO ALGR(KC_E) | ||
| 66 | #define SE_TILD ALGR(SE_QUOT) | ||
| 67 | |||
| 68 | #define SE_BSLS ALGR(KC_MINS) | ||
| 69 | #define SE_MU ALGR(KC_M) | ||
| 70 | |||
| 71 | #define SE_AA KC_LBRC // å | ||
| 72 | #define SE_ASTR LSFT(KC_BSLS) // * | ||
| 35 | 73 | ||
| 36 | // Norwegian unique MAC characters (not vetted for Swedish) | 74 | // Norwegian unique MAC characters (not vetted for Swedish) |
| 37 | #define NO_ACUT_MAC KC_EQL // = | 75 | #define SE_ACUT_MAC KC_EQL // = |
| 38 | #define NO_APOS_MAC KC_NUBS // ' | 76 | #define SE_APOS_MAC KC_NUBS // ' |
| 39 | #define NO_AT_MAC KC_BSLS // @ | 77 | #define SE_AT_MAC KC_BSLS // @ |
| 40 | #define NO_BSLS_MAC ALGR(LSFT(KC_7)) // '\' | 78 | #define SE_BSLS_MAC ALGR(LSFT(KC_7)) // '\' |
| 41 | #define NO_DLR_MAC LSFT(KC_4) // $ | 79 | #define SE_DLR_MAC ALGR(KC_4) // $ |
| 42 | #define NO_GRV_MAC ALGR(NO_BSLS) // ` | 80 | #define SE_GRV_MAC ALGR(SE_BSLS) // ` |
| 43 | #define NO_GRTR_MAC LSFT(KC_GRV) // > | 81 | #define SE_GRTR_MAC LSFT(KC_GRV) // > |
| 44 | #define NO_LCBR_MAC ALGR(LSFT(KC_8)) // { | 82 | #define SE_LCBR_MAC ALGR(LSFT(KC_8)) // { |
| 45 | #define NO_LESS_MAC KC_GRV // < | 83 | #define SE_LESS_MAC KC_GRV // < |
| 46 | #define NO_PIPE_MAC ALGR(KC_7) // | | 84 | #define SE_PIPE_MAC ALGR(KC_7) // | |
| 47 | #define NO_RCBR_MAC ALGR(LSFT(KC_9)) // } | 85 | #define SE_RCBR_MAC ALGR(LSFT(KC_9)) // } |
| 48 | 86 | ||
| 49 | #endif | 87 | #endif |
| 50 | 88 | ||
