-
Notifications
You must be signed in to change notification settings - Fork 0
/
czed
258 lines (226 loc) · 10.8 KB
/
czed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
// 2010-2018 Jan Pacner <pacnerjan@volny.cz>
// etaoin shrdlu!
// FIXME add symbols from https://ilyabirman.net/typography-layout/
// copyright C
// trademark TM
// promile
// approximate equals
// +-
// patent "r in circle"
// maybe other symbols for lawyers?
// The concept of this keyboard layout
// motto: be as much compatible with ISO dvorak as possible
// 4. level is the same as 3. level
// 2. level of ISO dvorak goes without modifications to the 3. level
// the whole national alphabet is accessible directly from 1. and 2. level
// without any exception
// 3. level has some additional non-alphabet characters (e.g. numbers)
// 3. level is accessible only by pressing both Shifts at once (and
// holding either of them)
// there are 2 variants which differ in placement and/or availability of
// characters ' " < > „ “ en_dash
// in `ltgt`, characters „ “ are not available and ' " < > are at their
// original dvorak places and ! is duplicated for better reachability
// in `writer`, all characters are available, but " < > are in
// the 3. level, thus less reachable
// ----------- standard ISO dvorak, 1. and 2. level
// ~ ! @ # $ % ^ & * ( ) { }
// ` 1 2 3 4 5 6 7 8 9 0 [ ]
//
// " < > P Y F G C R L ? + |
// ' , . p y f g c r l / = \
//
// A O E U I D H T N S _ CR
// a o e u i d h t n s - LF
//
// : Q J K X B M W V Z
// ; q j k x b m w v z
//
// space
// space
// ----------- czech dvorak ltgt, 1. and 2. level
// Ú É Á Ó Ě Ů Ý Ď Í Č Ř Š Ž
// ú é á ó ě ů ý ď í č ř š ž
//
// " < > P Y F G C R L ? Ť Ň
// ' , . p y f g c r l / ť ň
//
// A O E U I D H T N S _ LF
// a o e u i d h t n s - LF
//
// : Q J K X B M W V Z
// ; q j k x b m w v z
//
// space
// space
// ----------- czech dvorak ltgt, 3. level
// ~ ! @ # $ % ^ & * ( ) { }
//
// en ! § , 7 8 9 [ ] + |
// dash
//
// @ ° ` : 4 5 6 = \ CR
//
// 0 1 2 3 .
//
// NBSP
// ----------- czech dvorak writer, 1. and 2. level
// Ú É Á Ó Ě Ů Ý Ď Í Č Ř Š Ž
// ú é á ó ě ů ý ď í č ř š ž
//
// “ en ' P Y F G C R L ? Ť Ň
// dash
// „ , . p y f g c r l / ť ň
//
// A O E U I D H T N S _ LF
// a o e u i d h t n s - LF
//
// : Q J K X B M W V Z
// ; q j k x b m w v z
//
// space
// space
// ----------- czech dvorak writer, 3. level
// ~ ! @ # $ % ^ & * ( ) { }
//
// " < > § , 7 8 9 [ ] + |
//
// @ ° ` : 4 5 6 = \ CR
//
// 0 1 2 3 .
//
// NBSP
//default // wtf is this?
//hidden // wtf is this?
//partial // wtf is this? (not necessary for include)
//alphanumeric_keys // wtf is this?
//modifier_keys // wtf is this?
//xkb_compatibility "some_xkb_symbols_id" // wtf is this?
// do NOT use individually but only in "include ..."
xkb_symbols "base" {
//virtual_modifiers LevelThree, Lock;
//interpret ISO_Level3_Shift + Lock {
// action = SetMods(modifiers = LevelThree);
//};
//key.type[Group1] = "FOUR_LEVEL_ALPHABETIC";
//name[Group1] = "Czech Dvorak for writers/typography";
//key <SPCE> { [ level1, level2, level3, level... ], // Group 1
// [ U2423, emspace, U2420, ... ] }; // Group 2
// | | | level3-shift + shift + key
// | | level3-shift + key
// | shift + key
// plain key
//replace key <...> {...}
//(int)NoSymbol results to the previously defined character
//(int)VoidSymbol results in "nothing"
//(int)Any
// topmost row
key <TLDE> {[ uacute, Uacute, asciitilde, asciitilde ]};
key <AE01> {[ eacute, Eacute, exclam, exclam ]};
key <AE02> {[ aacute, Aacute, at, at ]};
key <AE03> {[ oacute, Oacute, numbersign, numbersign ]};
key <AE04> {[ ecaron, Ecaron, dollar, dollar ]};
key <AE05> {[ uring, Uring, percent, percent ]};
key <AE06> {[ yacute, Yacute, asciicircum, asciicircum ]};
key <AE07> {[ dcaron, Dcaron, ampersand, ampersand ]};
key <AE08> {[ iacute, Iacute, asterisk, asterisk ]};
key <AE09> {[ ccaron, Ccaron, parenleft, parenleft ]};
key <AE10> {[ rcaron, Rcaron, parenright, parenright ]};
key <AE11> {[ scaron, Scaron, braceleft, braceleft ]};
key <AE12> {[ zcaron, Zcaron, braceright, braceright ]};
// FIXME wtf is this key?
key <AE13> {[ VoidSymbol, VoidSymbol, VoidSymbol, VoidSymbol ]};
key <BKSP> {[ BackSpace, BackSpace, BackSpace, BackSpace ]};
// top row
// ISO_Left_Tab
key <TAB> {[ Tab, Tab, Tab, Tab ]};
//key <AD01> see specific variants
//key <AD02> see specific variants
//key <AD03> see specific variants
key <AD04> {[ p, P, section, section ]};
key <AD05> {[ y, Y, VoidSymbol, VoidSymbol ]};
key <AD06> {[ f, F, comma, comma ]};
key <AD07> {[ g, G, 7, 7 ]};
key <AD08> {[ c, C, 8, 8 ]};
key <AD09> {[ r, R, 9, 9 ]};
key <AD10> {[ l, L, bracketleft, bracketleft ]};
key <AD11> {[ slash, question, bracketright, bracketright ]};
key <AD12> {[ tcaron, Tcaron, plus, plus ]};
key <BKSL> {[ ncaron, Ncaron, bar, bar ]};
// home/middle row
key <CAPS> {[ Escape, Escape, Escape, Escape ]};
key <AC01> {[ a, A, at, at ]};
key <AC02> {[ o, O, degree, degree ]};
key <AC03> {[ e, E, VoidSymbol, VoidSymbol ]};
key <AC04> {[ u, U, grave, grave ]};
key <AC05> {[ i, I, VoidSymbol, VoidSymbol ]};
key <AC06> {[ d, D, colon, colon ]};
key <AC07> {[ h, H, 4, 4 ]};
key <AC08> {[ t, T, 5, 5 ]};
key <AC09> {[ n, N, 6, 6 ]};
key <AC10> {[ s, S, equal, equal ]};
key <AC11> {[ minus, underscore, backslash, backslash ]};
// FIXME wtf is this key?
//key <ENTR> {[ KP_Enter, KP_Enter, KP_Enter, KP_Enter ]};
key <RTRN> {[ Return, Return, cr, cr ]};
// bottom row
// Shift_Lock
key <LFSH> {[ Shift_L, ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Shift ]};
// left bottom key, right from <LFSH>, which does not follow kbd standard
key <LSGT> {[ VoidSymbol, VoidSymbol, VoidSymbol, VoidSymbol ]};
key <AB01> {[ semicolon, colon, VoidSymbol, VoidSymbol ]};
key <AB02> {[ q, Q, VoidSymbol, VoidSymbol ]};
key <AB03> {[ j, J, VoidSymbol, VoidSymbol ]};
key <AB04> {[ k, K, VoidSymbol, VoidSymbol ]};
key <AB05> {[ x, X, VoidSymbol, VoidSymbol ]};
key <AB06> {[ b, B, 0, 0 ]};
key <AB07> {[ m, M, 1, 1 ]};
key <AB08> {[ w, W, 2, 2 ]};
key <AB09> {[ v, V, 3, 3 ]};
key <AB10> {[ z, Z, period, period ]};
// FIXME wtf is this key?
key <AB11> {[ VoidSymbol, VoidSymbol, VoidSymbol, VoidSymbol ]};
key <RTSH> {[ Shift_R, ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Shift ]};
// bottom-most row
key <LCTL> {[ Control_L, Control_L, Control_L, Control_L ]};
// SUPR
key <LWIN> {[ Super_L, Super_L, Super_L, Super_L ]};
// META
key <LALT> { type[Group1] = "FOUR_LEVEL", symbols[Group1] =
[ Alt_L, VoidSymbol, VoidSymbol, VoidSymbol ]};
key <SPCE> {[ space, space, nobreakspace, nobreakspace ]};
// META
key <RALT> { type[Group1] = "FOUR_LEVEL", symbols[Group1] =
[ Alt_R, VoidSymbol, VoidSymbol, VoidSymbol ]};
// SUPR
key <RWIN> {[ Super_R, Super_R, Super_R, Super_R ]};
//key <RWIN> {[ Hyper_R, Hyper_R, Hyper_R, Hyper_R ]};
key <MENU> {[ Menu, VoidSymbol, VoidSymbol, VoidSymbol ]};
key <RCTL> {[ Control_R, Control_R, Control_R, Control_R ]};
// ISO_Next_Group
key <SCLK> {[ Scroll_Lock, Scroll_Lock, Scroll_Lock, Scroll_Lock ]};
//shift, lock, control, mod1=Meta, mod2, mod3=Alt?, mod4, mod5=Alt
//Mode_switch, Meta_L, Meta_R, LevelThree,
//Shift_Lock, ISO_Prev_Group, ISO_First_Group, ISO_Last_Group
// this could be useful for some window managers which utilize the
// Meta key, but it could have bad impact on level3 of some keys
//modifier_map Mod1 { ISO_Level3_Shift };
};
xkb_symbols "ltgt" {
include "czed(base)"
name[Group1] = "Czech Dvorak ltgt (useful for text with lots of <>)";
key <AD01> {[ apostrophe, quotedbl, VoidSymbol, VoidSymbol ]};
// en dash (pomlcka)
key <AD02> {[ comma, less, U2013, U2013 ]};
key <AD03> {[ period, greater, exclam, exclam ]};
};
xkb_symbols "writer" {
include "czed(base)"
name[Group1] = "Czech Dvorak writer (useful for text with lower/upper UTF-8 double quotes)";
// lower/upper UTF-8 double quotes
key <AD01> {[ U201E, U201C, quotedbl, quotedbl ]};
// en dash (pomlcka)
key <AD02> {[ comma, U2013, less, less ]};
key <AD03> {[ period, apostrophe, greater, greater ]};
};
// vim:syn=xkb