diff options
| author | Joshua Diamond <josh@windowoffire.com> | 2020-06-24 01:35:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-23 22:35:43 -0700 |
| commit | 4b80ee46f80360f9f14ff8a88f3f610d0cf74544 (patch) | |
| tree | 025c4b512df7ba20d9c18b5186d3f3e94595bb6a /quantum/keymap_extras/keymap_hebrew.h | |
| parent | 9b398a8f31e31cd8aed60a2d90ada306213f70f5 (diff) | |
| download | qmk_firmware-4b80ee46f80360f9f14ff8a88f3f610d0cf74544.tar.gz qmk_firmware-4b80ee46f80360f9f14ff8a88f3f610d0cf74544.zip | |
Add Hebrew keymap aliases (#9383)
* Add Hebrew keymap aliases
* Use NBSP for internal space in box drawings
* Apply suggestions from code review
* More whitespace fixes
* IL_DVAV, IL_DYOD and IL_VYOD were incorrect
* Add IL_DEG, IL_MUL, IL_DIV
* Hebrew is now ISO (no more BAE)
* Use ISO left shift
* Apply suggestions from code review
* DYOD and VYOD were reversed in diagram.
Oops!
Diffstat (limited to 'quantum/keymap_extras/keymap_hebrew.h')
| -rw-r--r-- | quantum/keymap_extras/keymap_hebrew.h | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/quantum/keymap_extras/keymap_hebrew.h b/quantum/keymap_extras/keymap_hebrew.h new file mode 100644 index 000000000..ea9ac5ed4 --- /dev/null +++ b/quantum/keymap_extras/keymap_hebrew.h | |||
| @@ -0,0 +1,151 @@ | |||
| 1 | /* Copyright 2020 | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "keymap.h" | ||
| 20 | |||
| 21 | // clang-format off | ||
| 22 | |||
| 23 | /* | ||
| 24 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 25 | * │ ; │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │ | ||
| 26 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
| 27 | * │ │ / │ ' │ פ │ ם │ ן │ ו │ ט │ א │ ר │ ק │ ] │ [ │ │ | ||
| 28 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ | ||
| 29 | * │ │ ף │ ך │ ל │ ח │ י │ ע │ כ │ ג │ ד │ ש │ , │ \ │ │ | ||
| 30 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ | ||
| 31 | * │ │ │ ץ │ ת │ צ │ מ │ נ │ ה │ ב │ ס │ ז │ . │ │ | ||
| 32 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ | ||
| 33 | * │ │ │ │ │ │ │ │ │ | ||
| 34 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
| 35 | */ | ||
| 36 | // Row 1 | ||
| 37 | #define IL_SCLN KC_GRV // ; | ||
| 38 | #define IL_1 KC_1 // 1 | ||
| 39 | #define IL_2 KC_2 // 2 | ||
| 40 | #define IL_3 KC_3 // 3 | ||
| 41 | #define IL_4 KC_4 // 4 | ||
| 42 | #define IL_5 KC_5 // 5 | ||
| 43 | #define IL_6 KC_6 // 6 | ||
| 44 | #define IL_7 KC_7 // 7 | ||
| 45 | #define IL_8 KC_8 // 8 | ||
| 46 | #define IL_9 KC_9 // 9 | ||
| 47 | #define IL_0 KC_0 // 0 | ||
| 48 | #define IL_MINS KC_MINS // - | ||
| 49 | #define IL_EQL KC_EQL // = | ||
| 50 | // Row 2 | ||
| 51 | #define IL_SLSH KC_Q // / | ||
| 52 | #define IL_QUOT KC_W // ' | ||
| 53 | #define IL_QOF KC_E // ק | ||
| 54 | #define IL_RESH KC_R // ר | ||
| 55 | #define IL_ALEF KC_T // א | ||
| 56 | #define IL_TET KC_Y // ט | ||
| 57 | #define IL_VAV KC_U // ו | ||
| 58 | #define IL_FNUN KC_I // ן | ||
| 59 | #define IL_FMEM KC_O // ם | ||
| 60 | #define IL_PE KC_P // פ | ||
| 61 | #define IL_RBRC KC_LBRC // ] | ||
| 62 | #define IL_LBRC KC_RBRC // [ | ||
| 63 | // Row 3 | ||
| 64 | #define IL_SHIN KC_A // ש | ||
| 65 | #define IL_DALT KC_S // ד | ||
| 66 | #define IL_GIML KC_D // ג | ||
| 67 | #define IL_KAF KC_F // כ | ||
| 68 | #define IL_AYIN KC_G // ע | ||
| 69 | #define IL_YOD KC_H // י | ||
| 70 | #define IL_HET KC_J // ח | ||
| 71 | #define IL_LAMD KC_K // ל | ||
| 72 | #define IL_FKAF KC_L // ך | ||
| 73 | #define IL_FPE KC_SCLN // ף | ||
| 74 | #define IL_COMM KC_QUOT // , | ||
| 75 | #define IL_BSLS KC_NUHS // (backslash) | ||
| 76 | // Row 4 | ||
| 77 | #define IL_ZAYN KC_Z // ז | ||
| 78 | #define IL_SMKH KC_X // ס | ||
| 79 | #define IL_BET KC_C // ב | ||
| 80 | #define IL_HE KC_V // ה | ||
| 81 | #define IL_NUN KC_B // נ | ||
| 82 | #define IL_MEM KC_N // מ | ||
| 83 | #define IL_TSDI KC_M // צ | ||
| 84 | #define IL_TAV KC_COMM // ת | ||
| 85 | #define IL_FTSD KC_DOT // ץ | ||
| 86 | #define IL_DOT KC_SLSH // . | ||
| 87 | |||
| 88 | /* Shifted symbols | ||
| 89 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 90 | * │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ) │ ( │ _ │ + │ │ | ||
| 91 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
| 92 | * │ │ │ │ │ │ │ │ │ │ │ │ } │ { │ │ | ||
| 93 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ | ||
| 94 | * │ │ │ │ │ │ │ │ │ │ │ : │ " │ | │ │ | ||
| 95 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ | ||
| 96 | * │ │ │ │ │ │ │ │ │ │ > │ < │ ? │ │ | ||
| 97 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ | ||
| 98 | * │ │ │ │ │ │ │ │ │ | ||
| 99 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
| 100 | */ | ||
| 101 | // Row 1 | ||
| 102 | #define IL_TILD S(IL_SCLN) // ~ | ||
| 103 | #define IL_EXLM S(IL_1) // ! | ||
| 104 | #define IL_AT S(IL_2) // @ | ||
| 105 | #define IL_PND S(IL_3) // # | ||
| 106 | #define IL_DLR S(IL_4) // $ | ||
| 107 | #define IL_PERC S(IL_5) // % | ||
| 108 | #define IL_CIRC S(IL_6) // ^ | ||
| 109 | #define IL_AMPR S(IL_7) // & | ||
| 110 | #define IL_ASTR S(IL_8) // * | ||
| 111 | #define IL_RPRN S(IL_9) // ) | ||
| 112 | #define IL_LPRN S(IL_0) // ( | ||
| 113 | #define IL_UNDS S(IL_MINS) // _ | ||
| 114 | #define IL_PLUS S(IL_EQL) // + | ||
| 115 | // Row 2 | ||
| 116 | #define IL_RCBR S(IL_RBRC) // } | ||
| 117 | #define IL_LCBR S(IL_LBRC) // { | ||
| 118 | // Row 3 | ||
| 119 | #define IL_COLN S(IL_FPE) // : | ||
| 120 | #define IL_DQUO S(IL_COMM) // " | ||
| 121 | #define IL_PIPE S(IL_BSLS) // | | ||
| 122 | // Row 4 | ||
| 123 | #define IL_RABK S(IL_TAV) // > | ||
| 124 | #define IL_LABK S(IL_FTSD) // < | ||
| 125 | #define IL_QUES S(IL_DOT) // ? | ||
| 126 | |||
| 127 | /* AltGr symbols | ||
| 128 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
| 129 | * │ │ │ │ € │ ₪ │ ° │ │ │ × │ │ │ │ │ │ | ||
| 130 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
| 131 | * │ │ │ │ │ │ │ װ │ │ │ │ │ │ │ │ | ||
| 132 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │ | ||
| 133 | * │ │ │ │ │ │ ײ │ ױ │ │ │ │ │ │ │ │ | ||
| 134 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤ | ||
| 135 | * │ │ │ │ │ │ │ │ │ │ │ │ ÷ │ │ | ||
| 136 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ | ||
| 137 | * │ │ │ │ │ │ │ │ │ | ||
| 138 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
| 139 | */ | ||
| 140 | // Row 1 | ||
| 141 | #define IL_EURO ALGR(IL_3) // € | ||
| 142 | #define IL_SHKL ALGR(IL_4) // ₪ | ||
| 143 | #define IL_DEG ALGR(IL_5) // ° | ||
| 144 | #define IL_MUL ALGR(IL_8) // × | ||
| 145 | // Row 2 | ||
| 146 | #define IL_DVAV ALGR(IL_TET) // װ | ||
| 147 | // Row 3 | ||
| 148 | #define IL_VYOD ALGR(IL_AYIN) // ױ | ||
| 149 | #define IL_DYOD ALGR(IL_YOD) // ײ | ||
| 150 | // Row 4 | ||
| 151 | #define IL_DIV ALGR(IL_DOT) // ÷ | ||
