diff options
| author | Ryan <fauxpark@gmail.com> | 2020-03-08 15:43:05 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-08 15:43:05 +1100 |
| commit | 829906969c4affbe7ba306e59b2fb84d966eba39 (patch) | |
| tree | a9cdfe9f9e3eb954fb5242334136493088b19b3c /quantum/keymap_extras/keymap_norwegian.h | |
| parent | e0d15e6182a331ed27535f81539f2d7243d02bc0 (diff) | |
| download | qmk_firmware-829906969c4affbe7ba306e59b2fb84d966eba39.tar.gz qmk_firmware-829906969c4affbe7ba306e59b2fb84d966eba39.zip | |
Update Norwegian keymap and add sendstring LUT (#8300)
Diffstat (limited to 'quantum/keymap_extras/keymap_norwegian.h')
| -rw-r--r-- | quantum/keymap_extras/keymap_norwegian.h | 187 |
1 files changed, 153 insertions, 34 deletions
diff --git a/quantum/keymap_extras/keymap_norwegian.h b/quantum/keymap_extras/keymap_norwegian.h index eb3b0b040..6eab4163b 100644 --- a/quantum/keymap_extras/keymap_norwegian.h +++ b/quantum/keymap_extras/keymap_norwegian.h | |||
| @@ -13,44 +13,163 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #ifndef KEYMAP_NORWEGIAN_H | ||
| 17 | #define KEYMAP_NORWEGIAN_H | ||
| 18 | 16 | ||
| 19 | #include "keymap_nordic.h" | 17 | #pragma once |
| 20 | 18 | ||
| 21 | // There are slight differrences in the keyboards in the nordic contries | 19 | #include "keymap.h" |
| 22 | 20 | ||
| 23 | // Norwegian redifinitions from the nordic keyset | 21 | // clang-format off |
| 24 | #undef NO_ACUT | 22 | |
| 25 | #define NO_ACUT ALGR(NO_BSLS) // ´ | 23 | /* |
| 26 | #undef NO_AE | 24 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ |
| 27 | #define NO_AE KC_QUOT // æ | 25 | * │ | │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ + │ \ │ │ |
| 28 | #undef NO_BSLS | 26 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ |
| 29 | #define NO_BSLS KC_EQL // '\' | 27 | * │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Å │ ¨ │ │ |
| 30 | #undef NO_CIRC | 28 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ |
| 31 | #define NO_CIRC LSFT(KC_RBRC) // ^ | 29 | * │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ø │ Æ │ ' │ │ |
| 32 | #undef NO_GRV | 30 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ |
| 33 | #define NO_GRV LSFT(NO_BSLS) // | 31 | * │ │ < │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ - │ │ |
| 34 | #undef NO_OSLH | 32 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ |
| 35 | #define NO_OSLH KC_SCLN // ø | 33 | * │ │ │ │ │ │ │ │ │ |
| 36 | #undef NO_PIPE | 34 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ |
| 35 | */ | ||
| 36 | // Row 1 | ||
| 37 | #define NO_PIPE KC_GRV // | | 37 | #define NO_PIPE KC_GRV // | |
| 38 | #define NO_1 KC_1 // 1 | ||
| 39 | #define NO_2 KC_2 // 2 | ||
| 40 | #define NO_3 KC_3 // 3 | ||
| 41 | #define NO_4 KC_4 // 4 | ||
| 42 | #define NO_5 KC_5 // 5 | ||
| 43 | #define NO_6 KC_6 // 6 | ||
| 44 | #define NO_7 KC_7 // 7 | ||
| 45 | #define NO_8 KC_8 // 8 | ||
| 46 | #define NO_9 KC_9 // 9 | ||
| 47 | #define NO_0 KC_0 // 0 | ||
| 48 | #define NO_PLUS KC_MINS // + | ||
| 49 | #define NO_BSLS KC_EQL // (backslash) | ||
| 50 | // Row 2 | ||
| 51 | #define NO_Q KC_Q // Q | ||
| 52 | #define NO_W KC_W // W | ||
| 53 | #define NO_E KC_E // E | ||
| 54 | #define NO_R KC_R // R | ||
| 55 | #define NO_T KC_T // T | ||
| 56 | #define NO_Y KC_Y // Y | ||
| 57 | #define NO_U KC_U // U | ||
| 58 | #define NO_I KC_I // I | ||
| 59 | #define NO_O KC_O // O | ||
| 60 | #define NO_P KC_P // P | ||
| 61 | #define NO_ARNG KC_LBRC // Å | ||
| 62 | #define NO_DIAE KC_RBRC // ¨ (dead) | ||
| 63 | // Row 3 | ||
| 64 | #define NO_A KC_A // A | ||
| 65 | #define NO_S KC_S // S | ||
| 66 | #define NO_D KC_D // D | ||
| 67 | #define NO_F KC_F // F | ||
| 68 | #define NO_G KC_G // G | ||
| 69 | #define NO_H KC_H // H | ||
| 70 | #define NO_J KC_J // J | ||
| 71 | #define NO_K KC_K // K | ||
| 72 | #define NO_L KC_L // L | ||
| 73 | #define NO_OSTR KC_SCLN // Ø | ||
| 74 | #define NO_AE KC_QUOT // Æ | ||
| 75 | #define NO_QUOT KC_NUHS // ' | ||
| 76 | // Row 4 | ||
| 77 | #define NO_LABK KC_NUBS // < | ||
| 78 | #define NO_Z KC_Z // Z | ||
| 79 | #define NO_X KC_X // X | ||
| 80 | #define NO_C KC_C // C | ||
| 81 | #define NO_V KC_V // V | ||
| 82 | #define NO_B KC_B // B | ||
| 83 | #define NO_N KC_N // N | ||
| 84 | #define NO_M KC_M // M | ||
| 85 | #define NO_COMM KC_COMM // , | ||
| 86 | #define NO_DOT KC_DOT // . | ||
| 87 | #define NO_MINS KC_SLSH // - | ||
| 38 | 88 | ||
| 39 | // Additional norwegian keys not defined in the nordic keyset | 89 | /* Shifted symbols |
| 40 | #define NO_AA KC_LBRC // å | 90 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ |
| 41 | #define NO_ASTR LSFT(KC_BSLS) // * | 91 | * │ § │ ! │ " │ # │ ¤ │ % │ & │ / │ ( │ ) │ = │ ? │ ` │ │ |
| 92 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
| 93 | * │ │ │ │ │ │ │ │ │ │ │ │ │ ^ │ │ | ||
| 94 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ | ||
| 95 | * │ │ │ │ │ │ │ │ │ │ │ │ │ * │ │ | ||
| 96 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ | ||
| 97 | * │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │ | ||
| 98 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ | ||
| 99 | * │ │ │ │ │ │ │ │ │ | ||
| 100 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
| 101 | */ | ||
| 102 | // Row 1 | ||
| 103 | #define NO_SECT S(NO_PIPE) // § | ||
| 104 | #define NO_EXLM S(NO_1) // ! | ||
| 105 | #define NO_DQUO S(NO_2) // " | ||
| 106 | #define NO_HASH S(NO_3) // # | ||
| 107 | #define NO_CURR S(NO_4) // ¤ | ||
| 108 | #define NO_PERC S(NO_5) // % | ||
| 109 | #define NO_AMPR S(NO_6) // & | ||
| 110 | #define NO_SLSH S(NO_7) // / | ||
| 111 | #define NO_LPRN S(NO_8) // ( | ||
| 112 | #define NO_RPRN S(NO_9) // ) | ||
| 113 | #define NO_EQL S(NO_0) // = | ||
| 114 | #define NO_QUES S(NO_PLUS) // ? | ||
| 115 | #define NO_GRV S(NO_BSLS) // ` (dead) | ||
| 116 | // Row 2 | ||
| 117 | #define NO_CIRC S(NO_DIAE) // ^ (dead) | ||
| 118 | // Row 3 | ||
| 119 | #define NO_ASTR S(NO_QUOT) // * | ||
| 120 | // Row 4 | ||
| 121 | #define NO_RABK S(NO_LABK) // > | ||
| 122 | #define NO_SCLN S(NO_COMM) // ; | ||
| 123 | #define NO_COLN S(NO_DOT) // : | ||
| 124 | #define NO_UNDS S(NO_MINS) // _ | ||
| 42 | 125 | ||
| 43 | // Norwegian unique MAC characters | 126 | /* AltGr symbols |
| 44 | #define NO_ACUT_MAC KC_EQL // = | 127 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ |
| 45 | #define NO_APOS_MAC KC_NUBS // ' | 128 | * │ │ │ @ │ £ │ $ │ € │ │ { │ [ │ ] │ } │ │ ´ │ │ |
| 46 | #define NO_AT_MAC KC_BSLS // @ | 129 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ |
| 47 | #define NO_BSLS_MAC ALGR(LSFT(KC_7)) // '\' | 130 | * │ │ │ │ │ │ │ │ │ │ │ │ │ ~ │ │ |
| 48 | #define NO_DLR_MAC LSFT(KC_4) // $ | 131 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ |
| 49 | #define NO_GRV_MAC ALGR(NO_BSLS) // ` | 132 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ |
| 50 | #define NO_GRTR_MAC LSFT(KC_GRV) // > | 133 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ |
| 51 | #define NO_LCBR_MAC ALGR(LSFT(KC_8)) // } | 134 | * │ │ │ │ │ │ │ │ │ µ │ │ │ │ │ |
| 52 | #define NO_LESS_MAC KC_GRV // > | 135 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ |
| 53 | #define NO_PIPE_MAC ALGR(KC_7) // | | 136 | * │ │ │ │ │ │ │ │ │ |
| 54 | #define NO_RCBR_MAC ALGR(LSFT(KC_9)) // } | 137 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ |
| 138 | */ | ||
| 139 | // Row 1 | ||
| 140 | #define NO_AT ALGR(NO_2) // @ | ||
| 141 | #define NO_PND ALGR(NO_3) // £ | ||
| 142 | #define NO_DLR ALGR(NO_4) // $ | ||
| 143 | #define NO_EURO ALGR(NO_5) // € | ||
| 144 | #define NO_LCBR ALGR(NO_7) // { | ||
| 145 | #define NO_LBRC ALGR(NO_8) // [ | ||
| 146 | #define NO_RBRC ALGR(NO_9) // ] | ||
| 147 | #define NO_RCBR ALGR(NO_0) // } | ||
| 148 | #define NO_ACUT ALGR(NO_BSLS) // ´ (dead) | ||
| 149 | // Row 2 | ||
| 150 | #define NO_TILD ALGR(NO_DIAE) // ~ (dead) | ||
| 151 | // Row 4 | ||
| 152 | #define NO_MICR ALGR(NO_M) // µ | ||
| 55 | 153 | ||
| 56 | #endif | 154 | // DEPRECATED |
| 155 | #define NO_AM NO_ARNG | ||
| 156 | #define NO_AA NO_ARNG | ||
| 157 | #define NO_OSLH NO_OSTR | ||
| 158 | #define NO_APOS NO_QUOT | ||
| 159 | #define NO_LESS NO_LABK | ||
| 160 | #define NO_QUO2 NO_DQUO | ||
| 161 | #define NO_BULT NO_CURR | ||
| 162 | #define NO_GRTR NO_RABK | ||
| 163 | #define NO_MU NO_MICR | ||
| 164 | // Norwegian macOS symbols | ||
| 165 | #define NO_ACUT_MAC NO_BSLS // ´ | ||
| 166 | #define NO_APOS_MAC NO_LABK // ' | ||
| 167 | #define NO_AT_MAC NO_QUOT // @ | ||
| 168 | #define NO_BSLS_MAC S(ALGR(NO_7)) // (backslash) | ||
| 169 | #define NO_DLR_MAC S(NO_4) // $ | ||
| 170 | #define NO_GRV_MAC ALGR(NO_BSLS) // ` | ||
| 171 | #define NO_GRTR_MAC S(NO_PIPE) // > | ||
| 172 | #define NO_LCBR_MAC S(ALGR(NO_8)) // { | ||
| 173 | #define NO_LESS_MAC NO_PIPE // < | ||
| 174 | #define NO_PIPE_MAC ALGR(NO_7) // | | ||
| 175 | #define NO_RCBR_MAC S(ALGR(NO_9)) // } | ||
