diff options
| author | Didier Loiseau <didierloiseau+git@gmail.com> | 2016-02-26 00:55:39 +0100 |
|---|---|---|
| committer | Didier Loiseau <didierloiseau+git@gmail.com> | 2016-04-02 18:16:31 +0200 |
| commit | 911222892ecb1c01551e0abdfbe98ed1dbf82139 (patch) | |
| tree | 993edb22c5defd8d43a3b5889c001784289dd7f0 /quantum/keymap_extras/keymap_canadian_multilingual.h | |
| parent | fbf1333d87aa4487692f068881ab1ce46fa79be5 (diff) | |
| download | qmk_firmware-911222892ecb1c01551e0abdfbe98ed1dbf82139.tar.gz qmk_firmware-911222892ecb1c01551e0abdfbe98ed1dbf82139.zip | |
BÉPO over CSA: GR2A characters in AltGr layer
- define aliases for all GR2A characters (unshifted)
- use the available characters in the BÉPO over CSA AltGr layer
Diffstat (limited to 'quantum/keymap_extras/keymap_canadian_multilingual.h')
| -rw-r--r-- | quantum/keymap_extras/keymap_canadian_multilingual.h | 81 |
1 files changed, 77 insertions, 4 deletions
diff --git a/quantum/keymap_extras/keymap_canadian_multilingual.h b/quantum/keymap_extras/keymap_canadian_multilingual.h index e30419b5b..9b13b1e4e 100644 --- a/quantum/keymap_extras/keymap_canadian_multilingual.h +++ b/quantum/keymap_extras/keymap_canadian_multilingual.h | |||
| @@ -103,14 +103,87 @@ | |||
| 103 | #define CM_NBSP CM_NON_BREAKING_SPACE | 103 | #define CM_NBSP CM_NON_BREAKING_SPACE |
| 104 | 104 | ||
| 105 | // GR2A-ed characters (non-exhaustive list) | 105 | // GR2A-ed characters (non-exhaustive list) |
| 106 | // second row | 106 | // First row |
| 107 | #define CM_OE_LIGATURE GR2A(KC_E) // œ | 107 | #define CM_SUPERSCRIPT_ONE GR2A(KC_1) // ¹ |
| 108 | #define CM_OE CM_OE_LIGATURE | 108 | #define CM_SUP1 CM_SUPERSCRIPT_ONE |
| 109 | #define CM_SUPERSCRIPT_TWO GR2A(KC_2) // ² | ||
| 110 | #define CM_SUP2 CM_SUPERSCRIPT_TWO | ||
| 111 | #define CM_SUPERSCRIPT_THREE GR2A(KC_3) // ³ | ||
| 112 | #define CM_SUP3 CM_SUPERSCRIPT_THREE | ||
| 113 | #define CM_ONE_QUARTER GR2A(KC_4) // ¼ | ||
| 114 | #define CM_1QRT CM_ONE_QUARTER | ||
| 115 | #define CM_ONE_HALF GR2A(KC_5) // ½ | ||
| 116 | #define CM_1HLF CM_ONE_HALF | ||
| 117 | #define CM_THREE_QUARTERS GR2A(KC_6) // ¾ | ||
| 118 | #define CM_3QRT CM_THREE_QUARTERS | ||
| 119 | // nothing on 7-0 and - | ||
| 120 | #define CM_DEAD_CEDILLA GR2A(KC_EQUAL) // dead ¸ | ||
| 121 | #define CM_DCED CM_DEAD_CEDILLA | ||
| 122 | |||
| 123 | // Second row | ||
| 124 | #define CM_OMEGA GR2A(KC_Q) // ω | ||
| 125 | #define CM_OMEG CM_OMEGA | ||
| 126 | #define CM_L_STROKE GR2A(KC_W) // ł | ||
| 127 | #define CM_LSTK CM_L_STROKE | ||
| 128 | #define CM_OE_LIGATURE GR2A(KC_E) // œ | ||
| 129 | #define CM_OE CM_OE_LIGATURE | ||
| 130 | #define CM_PARAGRAPH GR2A(KC_R) // ¶ | ||
| 131 | #define CM_PARG CM_PARAGRAPH | ||
| 132 | #define CM_T_STROKE GR2A(KC_T) // ŧ | ||
| 133 | #define CM_LEFT_ARROW GR2A(KC_Y) // ← | ||
| 134 | #define CM_LARW CM_LEFT_ARROW | ||
| 135 | #define CM_DOWN_ARROW GR2A(KC_U) // ↓ | ||
| 136 | #define CM_DARW CM_DOWN_ARROW | ||
| 137 | #define CM_RIGHT_ARROW GR2A(KC_I) // → | ||
| 138 | #define CM_RARW CM_RIGHT_ARROW | ||
| 139 | #define CM_O_STROKE GR2A(KC_O) // ø | ||
| 140 | #define CM_OSTK CM_O_STROKE | ||
| 141 | #define CM_THORN GR2A(KC_P) // þ | ||
| 142 | #define CM_THRN CM_THORN | ||
| 143 | // nothing on ^ | ||
| 144 | #define CM_DEAD_TILDE GR2A(CM_C_CEDILLA) // dead ~ | ||
| 145 | #define CM_DTLD CM_DEAD_TILDE | ||
| 109 | 146 | ||
| 110 | // third row | 147 | // Third row |
| 111 | #define CM_AE_LIGATURE GR2A(KC_A) // æ | 148 | #define CM_AE_LIGATURE GR2A(KC_A) // æ |
| 112 | #define CM_AE CM_AE_LIGATURE | 149 | #define CM_AE CM_AE_LIGATURE |
| 150 | #define CM_SHARP_S GR2A(KC_S) // ß | ||
| 151 | #define CM_SRPS CM_SHARP_S | ||
| 152 | #define CM_ETH GR2A(KC_D) // ð | ||
| 153 | // nothing on F | ||
| 154 | #define CM_ENG GR2A(KC_G) // ŋ | ||
| 155 | #define CM_H_SRTOKE GR2A(KC_H) // ħ | ||
| 156 | #define CM_HSTK CM_H_SRTOKE | ||
| 157 | #define CM_IJ_LIGATURE GR2A(KC_J) // ij | ||
| 158 | #define CM_IJ CM_IJ_LIGATURE | ||
| 159 | #define CM_KRA GR2A(KC_K) // ĸ | ||
| 160 | #define CM_L_FLOWN_DOT GR2A(KC_L) // ŀ | ||
| 161 | #define CM_LFLD CM_L_FLOWN_DOT | ||
| 113 | #define CM_DEAD_ACUTE GR2A(KC_SCLN) // dead acute accent | 162 | #define CM_DEAD_ACUTE GR2A(KC_SCLN) // dead acute accent |
| 114 | #define CM_DACT CM_DEAD_ACUTE | 163 | #define CM_DACT CM_DEAD_ACUTE |
| 164 | // nothing on È & À | ||
| 165 | |||
| 166 | // Fourth row | ||
| 167 | #define CM_CENT GR2A(KC_C) // ¢ | ||
| 168 | #define CM_LEFT_DOUBLE_QUOTE GR2A(KC_V) // “ | ||
| 169 | #define CM_LDQT CM_LEFT_DOUBLE_QUOTE | ||
| 170 | #define CM_RIGHT_DOUBLE_QUOTE GR2A(KC_B) // ” | ||
| 171 | #define CM_RDQT CM_RIGHT_DOUBLE_QUOTE | ||
| 172 | #define CM_N_APOSTROPHE GR2A(KC_N) // ʼn (deprecated unicode codepoint) | ||
| 173 | #define CM_NAPO CM_N_APOSTROPHE | ||
| 174 | #define CM_MU GR2A(KC_M) // μ | ||
| 175 | // ─ TODO box drawing character? | ||
| 176 | #define CM_HYPHENATION_POINT GR2A(CM_DOT) // ‧ TODO not an interpunct ? | ||
| 177 | |||
| 178 | // GR2A-shifted characters (non-exhaustive list) | ||
| 179 | // First row | ||
| 180 | #define CM_PLUS_MINUS LSFT(GR2A(KC_9)) // ± | ||
| 181 | #define CM_PSMS CM_PLUS_MINUS | ||
| 182 | |||
| 183 | // Fourth row | ||
| 184 | #define CM_LEFT_QUOTE LSFT(GR2A(KC_V)) // ‘ | ||
| 185 | #define CM_LQOT CM_LEFT_QUOTE | ||
| 186 | #define CM_RIGHT_QUOTE LSFT(GR2A(KC_B)) // ’ | ||
| 187 | #define CM_RQOT CM_RIGHT_QUOTE | ||
| 115 | 188 | ||
| 116 | #endif | 189 | #endif |
