diff options
author | kuel <kuelbit@gmail.com> | 2016-08-07 11:01:12 -0500 |
---|---|---|
committer | kuel <kuelbit@gmail.com> | 2016-08-07 11:01:12 -0500 |
commit | c5ee24a6c3ea39e9725dfc276c92d5bce726ca78 (patch) | |
tree | b97d5c7c728b958a4a0418364f73b4e67c826af6 | |
parent | 8d8709fb79010fc692fa792bcaf634cdae86a46c (diff) | |
download | qmk_firmware-c5ee24a6c3ea39e9725dfc276c92d5bce726ca78.tar.gz qmk_firmware-c5ee24a6c3ea39e9725dfc276c92d5bce726ca78.zip |
Add keymap_russian.h, a software implementation of Russian
rename keymap_cyrillic.h to keymap_unicode_cyrillic.h
changed CY_RUBLE and CY_NUMERO to CY_RUBL and CY_NMRO in
keymap_unicode_cyrillic.h
-rw-r--r-- | quantum/keymap_extras/keymap_russian.h | 79 | ||||
-rw-r--r-- | quantum/keymap_extras/keymap_unicode_cyrillic.h (renamed from quantum/keymap_extras/keymap_cyrillic.h) | 6 |
2 files changed, 83 insertions, 2 deletions
diff --git a/quantum/keymap_extras/keymap_russian.h b/quantum/keymap_extras/keymap_russian.h new file mode 100644 index 000000000..efb63a5cc --- /dev/null +++ b/quantum/keymap_extras/keymap_russian.h | |||
@@ -0,0 +1,79 @@ | |||
1 | #ifndef KEYMAP_RUSSIAN_H | ||
2 | #define KEYMAP_RUSSIAN_H | ||
3 | |||
4 | #include "keymap.h" | ||
5 | |||
6 | // rename ruble and numero in keymap_cyrillic.c | ||
7 | |||
8 | // Normal Chracters // reg SHIFT | ||
9 | #define RU_A KC_F // а and А | ||
10 | #define RU_BE KC_COMM // б and Б | ||
11 | #define RU_VE KC_D // в and В | ||
12 | #define RU_GHE KC_U // г and Г | ||
13 | #define RU_DE KC_L // д and Д | ||
14 | #define RU_IE KC_T // е and Е | ||
15 | #define RU_IO KC_GRV // ё and Ё | ||
16 | #define RU_ZHE KC_SCLN // ж and Ж | ||
17 | #define RU_ZE KC_P // з and З | ||
18 | #define RU_I KC_B // и and И | ||
19 | #define RU_SRT_I KC_Q // й and Й | ||
20 | #define RU_KA KC_R // к and К | ||
21 | #define RU_EL KC_K // л and Л | ||
22 | #define RU_EM KC_V // м and М | ||
23 | #define RU_EN KC_Y // н and Н | ||
24 | #define RU_O KC_J // о and О | ||
25 | #define RU_PE KC_G // п and П | ||
26 | #define RU_ER KC_H // р and Р | ||
27 | #define RU_ES KC_C // с and С | ||
28 | #define RU_TE KC_N // т and Т | ||
29 | #define RU_U KC_E // у and У | ||
30 | #define RU_EF KC_A // ф and Ф | ||
31 | #define RU_HA KC_LBRC // х and Х | ||
32 | #define RU_TSE KC_W // ц and Ц | ||
33 | #define RU_CHE KC_X // ч and Ч | ||
34 | #define RU_SHA KC_I // ш and Ш | ||
35 | #define RU_SHCHA KC_O // щ and Щ | ||
36 | #define RU_HSIGN KC_RBRC // ъ and Ъ | ||
37 | #define RU_YERU KC_S // ы and Ы | ||
38 | #define RU_SSIGN KC_M // ь and Ь | ||
39 | #define RU_E KC_QUOT // э and Э | ||
40 | #define RU_YU KC_DOT // ю and Ю | ||
41 | #define RU_YA KC_Z // я and Я | ||
42 | |||
43 | #define RU_1 KC_1 // 1 and ! | ||
44 | #define RU_2 KC_2 // 2 and " | ||
45 | #define RU_3 KC_3 // 3 and № | ||
46 | #define RU_4 KC_4 // 4 and ; | ||
47 | #define RU_5 KC_5 // 5 and % | ||
48 | #define RU_6 KC_6 // 6 and : | ||
49 | #define RU_7 KC_7 // 7 and ? | ||
50 | #define RU_8 KC_8 // 8 and * | ||
51 | #define RU_9 KC_9 // 9 and ( | ||
52 | #define RU_0 KC_0 // 0 and ) | ||
53 | |||
54 | #define RU_MINS KC_MINS // - and _ | ||
55 | #define RU_EQL KC_EQL // = and + | ||
56 | #define RU_BSLS KC_BSLS // \ and / | ||
57 | #define RU_DOT KC_SLSH // . and , | ||
58 | |||
59 | // Shifted Chracters | ||
60 | #define RU_EXLM LSFT(RU_1) // ! | ||
61 | #define RU_DQUT LSFT(RU_2) // " | ||
62 | #define RU_NMRO LSFT(RU_3) // № | ||
63 | #define RU_SCLN LSFT(RU_4) // ; | ||
64 | #define RU_PERC LSFT(RU_5) // % | ||
65 | #define RU_COLN LSFT(RU_6) // : | ||
66 | #define RU_QUES LSFT(RU_7) // ? | ||
67 | #define RU_ASTR LSFT(RU_8) // * | ||
68 | #define RU_LPRN LSFT(RU_9) // ( | ||
69 | #define RU_RPRN LSFT(RU_0) // ) | ||
70 | |||
71 | #define RU_UNDR LSFT(RU_MINS) // _ | ||
72 | #define RU_PLUS LSFT(RU_EQL) // + | ||
73 | #define RU_SLSH LSFT(RU_BSLS) // / | ||
74 | #define RU_COMM LSFT(RU_DOT) // , | ||
75 | |||
76 | // Alt Gr-ed characters | ||
77 | #define RU_RUBL RALT(RU_8) // ₽ | ||
78 | |||
79 | #endif | ||
diff --git a/quantum/keymap_extras/keymap_cyrillic.h b/quantum/keymap_extras/keymap_unicode_cyrillic.h index d5390afff..a40626d91 100644 --- a/quantum/keymap_extras/keymap_cyrillic.h +++ b/quantum/keymap_extras/keymap_unicode_cyrillic.h | |||
@@ -6,6 +6,8 @@ | |||
6 | /* | 6 | /* |
7 | * This is based off of | 7 | * This is based off of |
8 | * https://en.wikipedia.org/wiki/Cyrillic_script | 8 | * https://en.wikipedia.org/wiki/Cyrillic_script |
9 | * | ||
10 | * Unicode is iffy, a software implementation is preferred | ||
9 | */ | 11 | */ |
10 | 12 | ||
11 | // Capital Char russian/ukrainian/bulgarian | 13 | // Capital Char russian/ukrainian/bulgarian |
@@ -153,8 +155,8 @@ | |||
153 | #define CY_thsign UC(0x1c86) // ᲆ CYRILLIC SMALL LETTER TALL HARD SIGN | 155 | #define CY_thsign UC(0x1c86) // ᲆ CYRILLIC SMALL LETTER TALL HARD SIGN |
154 | #define CY_YERUBY UC(0xa650) // Ꙑ CYRILLIC CAPITAL LETTER YERU WITH BACK YER | 156 | #define CY_YERUBY UC(0xa650) // Ꙑ CYRILLIC CAPITAL LETTER YERU WITH BACK YER |
155 | #define CY_yeruby UC(0xa651) // ꙑ CYRILLIC SMALL LETTER YERU WITH BACK YER | 157 | #define CY_yeruby UC(0xa651) // ꙑ CYRILLIC SMALL LETTER YERU WITH BACK YER |
156 | #define CY_RUBLE UC(0x20bd) // ₽ | 158 | #define CY_RUBL UC(0x20bd) // ₽ |
157 | #define CY_NUMERO UC(0x2116) // № | 159 | #define CY_NMRO UC(0x2116) // № |
158 | 160 | ||
159 | // The letters Zje and Sje are made for other letters and accent marks | 161 | // The letters Zje and Sje are made for other letters and accent marks |
160 | 162 | ||