diff options
author | Drashna Jaelre <drashna@live.com> | 2020-04-05 00:53:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 00:53:52 -0700 |
commit | ccb37f673a63941da986263880f4545be4c7b0e3 (patch) | |
tree | 57d733f3ae9065ce85b55ddd3ae2f3a9c6dde279 | |
parent | c5efbc45a1484669acf5492955106f756413b406 (diff) | |
parent | 781308507d3a1c086aeb6061e3b550b48148ca4b (diff) | |
download | qmk_firmware-ccb37f673a63941da986263880f4545be4c7b0e3.tar.gz qmk_firmware-ccb37f673a63941da986263880f4545be4c7b0e3.zip |
Add Russian keymap (#8638)
* Add Russian keymap
* Switch to ANSI layout
-rw-r--r-- | quantum/keymap_extras/keymap_russian.h | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/quantum/keymap_extras/keymap_russian.h b/quantum/keymap_extras/keymap_russian.h new file mode 100644 index 000000000..eb0581147 --- /dev/null +++ b/quantum/keymap_extras/keymap_russian.h | |||
@@ -0,0 +1,133 @@ | |||
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 RU_YO KC_GRV // Ё | ||
38 | #define RU_1 KC_1 // 1 | ||
39 | #define RU_2 KC_2 // 2 | ||
40 | #define RU_3 KC_3 // 3 | ||
41 | #define RU_4 KC_4 // 4 | ||
42 | #define RU_5 KC_5 // 5 | ||
43 | #define RU_6 KC_6 // 6 | ||
44 | #define RU_7 KC_7 // 7 | ||
45 | #define RU_8 KC_8 // 8 | ||
46 | #define RU_9 KC_9 // 9 | ||
47 | #define RU_0 KC_0 // 0 | ||
48 | #define RU_MINS KC_MINS // - | ||
49 | #define RU_EQL KC_EQL // = | ||
50 | // Row 2 | ||
51 | #define RU_SHTI KC_Q // Й | ||
52 | #define RU_TSE KC_W // Ц | ||
53 | #define RU_U KC_E // У | ||
54 | #define RU_KA KC_R // К | ||
55 | #define RU_IE KC_T // Е | ||
56 | #define RU_EN KC_Y // Н | ||
57 | #define RU_GHE KC_U // Г | ||
58 | #define RU_SHA KC_I // Ш | ||
59 | #define RU_SHCH KC_O // Щ | ||
60 | #define RU_ZE KC_P // З | ||
61 | #define RU_HA KC_LBRC // Х | ||
62 | #define RU_HARD KC_RBRC // Ъ | ||
63 | #define RU_BSLS KC_BSLS // (backslash) | ||
64 | // Row 3 | ||
65 | #define RU_EF KC_A // Ф | ||
66 | #define RU_YERU KC_S // Ы | ||
67 | #define RU_VE KC_D // В | ||
68 | #define RU_A KC_F // А | ||
69 | #define RU_PE KC_G // П | ||
70 | #define RU_ER KC_H // Р | ||
71 | #define RU_O KC_J // О | ||
72 | #define RU_EL KC_K // Л | ||
73 | #define RU_DE KC_L // Д | ||
74 | #define RU_ZHE KC_SCLN // Ж | ||
75 | #define RU_E KC_QUOT // Э | ||
76 | // Row 4 | ||
77 | #define RU_YA KC_Z // Я | ||
78 | #define RU_CHE KC_X // Ч | ||
79 | #define RU_ES KC_C // С | ||
80 | #define RU_EM KC_V // М | ||
81 | #define RU_I KC_B // И | ||
82 | #define RU_TE KC_N // Т | ||
83 | #define RU_SOFT KC_M // Ь | ||
84 | #define RU_BE KC_COMM // Б | ||
85 | #define RU_YU KC_DOT // Ю | ||
86 | #define RU_DOT KC_SLSH // . | ||
87 | |||
88 | /* Shifted symbols | ||
89 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
90 | * │ │ ! │ " │ № │ ; │ % │ : │ ? │ * │ ( │ ) │ _ │ + │ │ | ||
91 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
92 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ / │ | ||
93 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | ||
94 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
95 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ | ||
96 | * │ │ │ │ │ │ │ │ │ │ │ , │ │ | ||
97 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ | ||
98 | * │ │ │ │ │ │ │ │ │ | ||
99 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
100 | */ | ||
101 | // Row 1 | ||
102 | #define RU_EXLM S(RU_1) // ! | ||
103 | #define RU_DQUO S(RU_2) // " | ||
104 | #define RU_NUM S(RU_3) // № | ||
105 | #define RU_SCLN S(RU_4) // ; | ||
106 | #define RU_PERC S(RU_5) // % | ||
107 | #define RU_COLN S(RU_6) // : | ||
108 | #define RU_QUES S(RU_7) // ? | ||
109 | #define RU_ASTR S(RU_8) // * | ||
110 | #define RU_LPRN S(RU_9) // ( | ||
111 | #define RU_RPRN S(RU_0) // ) | ||
112 | #define RU_UNDS S(RU_MINS) // _ | ||
113 | #define RU_PLUS S(RU_EQL) // + | ||
114 | // Row 2 | ||
115 | #define RU_SLSH S(RU_BSLS) // / | ||
116 | // Row 4 | ||
117 | #define RU_COMM S(RU_DOT) // , | ||
118 | |||
119 | /* AltGr symbols | ||
120 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ | ||
121 | * │ │ │ │ │ │ │ │ │ ₽ │ │ │ │ │ │ | ||
122 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ | ||
123 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
124 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ | ||
125 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
126 | * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ | ||
127 | * │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
128 | * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ | ||
129 | * │ │ │ │ │ │ │ │ │ | ||
130 | * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ | ||
131 | */ | ||
132 | // Row 1 | ||
133 | #define RU_RUBL ALGR(RU_8) // ₽ | ||