Debian Codegraph @

symbols/gb

raw
1 // Keyboard layouts for Great Britain.
2
3 default partial alphanumeric_keys
4 xkb_symbols "basic" {
5
6 // The basic UK layout, also known as the IBM 166 layout,
7 // but with the useless brokenbar pushed two levels up.
8
9 include "latin"
10
11 name[Group1]="English (UK)";
12
13 key <TLDE> { [ grave, notsign, bar, bar ] };
14 key <AE02> { [ 2, quotedbl, twosuperior, oneeighth ] };
15 key <AE03> { [ 3, sterling, threesuperior, sterling ] };
16 key <AE04> { [ 4, dollar, EuroSign, onequarter ] };
17
18 key <AC11> { [apostrophe, at, dead_circumflex, dead_caron] };
19 key <BKSL> { [numbersign, asciitilde, dead_grave, dead_breve ] };
20
21 key <LSGT> { [ backslash, bar, bar, brokenbar ] };
22
23 include "level3(ralt_switch)"
24 };
25
26 partial alphanumeric_keys
27 xkb_symbols "intl" {
28
29 // A UK layout but with five accents made into dead keys:
30 // grave, diaeresis, circumflex, acute, and tilde.
31 // By Phil Jones <philjones1 at blueyonder.co.uk>.
32
33 include "latin"
34
35 name[Group1]="English (UK, intl., with dead keys)";
36
37 key <TLDE> { [ dead_grave, notsign, bar, bar ] };
38 key <AE02> { [ 2, dead_diaeresis, twosuperior, onehalf ] };
39 key <AE03> { [ 3, sterling, threesuperior, onethird ] };
40 key <AE04> { [ 4, dollar, EuroSign, onequarter ] };
41 key <AE06> { [ 6, dead_circumflex, threequarters, onesixth ] };
42
43 key <AC11> { [ dead_acute, at, apostrophe, bar ] };
44 key <BKSL> { [ numbersign, dead_tilde, bar, bar ] };
45
46 key <LSGT> { [ backslash, bar, bar, bar ] };
47 key <AB08> { [ comma, less, ccedilla, Ccedilla ] };
48
49 include "level3(ralt_switch)"
50 };
51
52 partial alphanumeric_keys
53 xkb_symbols "extd" {
54 // Clone of the Microsoft "United Kingdom Extended" layout, which
55 // includes dead keys for: grave; diaeresis; circumflex; tilde; and
56 // accute. It also enables direct access to accute characters using
57 // the Multi_key (Alt Gr).
58 //
59 // Taken from...
60 // "Windows Keyboard Layouts"
61 // https://docs.microsoft.com/en-gb/globalization/windows-keyboard-layouts#U
62 //
63 // -- Jonathan Miles <[email protected]>
64
65 include "latin"
66
67 name[Group1]="English (UK, extended, Windows)";
68
69 key <TLDE> { [ dead_grave, notsign, brokenbar, NoSymbol ] };
70 key <AE02> { [ 2, quotedbl, dead_diaeresis, onehalf ] };
71 key <AE03> { [ 3, sterling, threesuperior, onethird ] };
72 key <AE04> { [ 4, dollar, EuroSign, onequarter ] };
73 key <AE06> { [ 6, asciicircum, dead_circumflex, NoSymbol ] };
74
75 key <AD02> { [ w, W, wacute, Wacute ] };
76 key <AD03> { [ e, E, eacute, Eacute ] };
77 key <AD06> { [ y, Y, yacute, Yacute ] };
78 key <AD07> { [ u, U, uacute, Uacute ] };
79 key <AD08> { [ i, I, iacute, Iacute ] };
80 key <AD09> { [ o, O, oacute, Oacute ] };
81 key <AD12> { [ bracketright, braceright, NoSymbol, bar ] };
82
83 key <AC01> { [ a, A, aacute, Aacute ] };
84 key <AC11> { [ apostrophe, at, dead_acute, grave ] };
85 key <BKSL> { [ numbersign, asciitilde, dead_tilde, backslash ] };
86
87 key <LSGT> { [ backslash, bar, NoSymbol, NoSymbol ] };
88 key <AB03> { [ c, C, ccedilla, Ccedilla ] };
89
90 include "level3(ralt_switch)"
91 };
92
93 // Describe the differences between the US Colemak layout
94 // and a UK variant. By Andy Buckley ([email protected])
95
96 partial alphanumeric_keys
97 xkb_symbols "colemak" {
98 include "us(colemak)"
99
100 name[Group1]="English (UK, Colemak)";
101
102 key <TLDE> { [ grave, notsign, bar, asciitilde ] };
103 key <AE02> { [ 2, quotedbl, twosuperior, oneeighth ] };
104 key <AE03> { [ 3, sterling, threesuperior, sterling ] };
105 key <AE04> { [ 4, dollar, EuroSign, onequarter ] };
106
107 key <AC11> { [apostrophe, at, dead_circumflex, dead_caron] };
108 key <BKSL> { [numbersign, asciitilde, dead_grave, dead_breve ] };
109
110 key <LSGT> { [ backslash, bar, asciitilde, brokenbar ] };
111 };
112
113 // Colemak-DH (ISO) layout, UK Variant, https://colemakmods.github.io/mod-dh/
114
115 partial alphanumeric_keys
116 xkb_symbols "colemak_dh" {
117 include "us(colemak_dh)"
118
119 name[Group1]="English (UK, Colemak-DH)";
120
121 key <TLDE> { [ grave, notsign, bar, asciitilde ] };
122 key <AE02> { [ 2, quotedbl, twosuperior, oneeighth ] };
123 key <AE03> { [ 3, sterling, threesuperior, sterling ] };
124 key <AE04> { [ 4, dollar, EuroSign, onequarter ] };
125
126 key <AC11> { [apostrophe, at, dead_circumflex, dead_caron] };
127 key <BKSL> { [numbersign, asciitilde, dead_grave, dead_breve ] };
128
129 key <AB05> { [ backslash, bar, asciitilde, brokenbar ] };
130 };
131
132
133 // Dvorak (UK) keymap (by odaen) allowing the usage of
134 // the £ and ? key and swapping the @ and " keys.
135
136 partial alphanumeric_keys
137 xkb_symbols "dvorak" {
138 include "us(dvorak-alt-intl)"
139
140 name[Group1]="English (UK, Dvorak)";
141
142 key <TLDE> { [ grave, notsign, bar, bar ] };
143 key <AE02> { [ 2, quotedbl, twosuperior, NoSymbol ] };
144 key <AE03> { [ 3, sterling, threesuperior, NoSymbol ] };
145 key <AD01> { [ apostrophe, at ] };
146 key <BKSL> { [ numbersign, asciitilde ] };
147 key <LSGT> { [ backslash, bar ] };
148 };
149
150 // Dvorak letter positions, but punctuation all in the normal UK positions.
151
152 partial alphanumeric_keys
153 xkb_symbols "dvorakukp" {
154 include "gb(dvorak)"
155
156 name[Group1]="English (UK, Dvorak, with UK punctuation)";
157
158 key <AE11> { [ minus, underscore ] };
159 key <AE12> { [ equal, plus ] };
160 key <AD11> { [ bracketleft, braceleft ] };
161 key <AD12> { [ bracketright, braceright ] };
162 key <AD01> { [ slash, question ] };
163 key <AC11> { [apostrophe, at, dead_circumflex, dead_caron] };
164 };
165
166 partial alphanumeric_keys
167 xkb_symbols "mac" {
168
169 include "latin"
170
171 name[Group1]= "English (UK, Macintosh)";
172
173 key <TLDE> { [ section, plusminus ] };
174 key <AE02> { [ 2, at, EuroSign ] };
175 key <AE03> { [ 3, sterling, numbersign ] };
176 key <LSGT> { [ grave, asciitilde ] };
177
178 include "level3(ralt_switch)"
179 include "level3(enter_switch)"
180 };
181
182
183 partial alphanumeric_keys
184 xkb_symbols "mac_intl" {
185
186 include "latin"
187
188 name[Group1]="English (UK, Macintosh, intl.)";
189
190 key <TLDE> { [ section, plusminus, notsign, notsign ] }; //dead_grave
191 key <AE02> { [ 2, at, EuroSign, onehalf ] };
192 key <AE03> { [ 3, sterling, twosuperior, onethird ] };
193 key <AE04> { [ 4, dollar, threesuperior, onequarter ] };
194 key <AE06> { [ 6, dead_circumflex, NoSymbol, onesixth ] };
195 key <AD09> { [ o, O, oe, OE ] };
196
197 key <AC11> { [ dead_acute, dead_diaeresis, dead_diaeresis, bar ] }; //dead_doubleacute
198 key <BKSL> { [ backslash, bar, numbersign, bar ] };
199
200 key <LSGT> { [ dead_grave, dead_tilde, brokenbar, bar ] };
201
202 include "level3(ralt_switch)"
203 };
204
205 partial alphanumeric_keys
206 xkb_symbols "pl" {
207
208 // Polish accented letters on upper levels of corresponding base letters.
209 // Idea from Wawrzyniec Niewodniczański, adapted by Aleksander Kowalski.
210
211 include "gb(basic)"
212
213 name[Group1]="Polish (British keyboard)";
214
215 key <AD03> { [ e, E, eogonek, Eogonek ] };
216 key <AD09> { [ o, O, oacute, Oacute ] };
217
218 key <AC01> { [ a, A, aogonek, Aogonek ] };
219 key <AC02> { [ s, S, sacute, Sacute ] };
220
221 key <AB01> { [ z, Z, zabovedot, Zabovedot ] };
222 key <AB02> { [ x, X, zacute, Zacute ] };
223 key <AB03> { [ c, C, cacute, Cacute ] };
224 key <AB06> { [ n, N, nacute, Nacute ] };
225 };
226
227 partial alphanumeric_keys
228 xkb_symbols "gla" {
229
230 // Grave-accented letters on the upper levels of the relevant vowels.
231
232 include "gb(basic)"
233
234 name[Group1]="Scottish Gaelic";
235
236 key <AD03> { [ e, E, egrave, Egrave ] };
237 key <AD07> { [ u, U, ugrave, Ugrave ] };
238 key <AD08> { [ i, I, igrave, Igrave ] };
239 key <AD09> { [ o, O, ograve, Ograve ] };
240
241 key <AC01> { [ a, A, agrave, Agrave ] };
242 };
243
244 // EXTRAS:
245
246 partial alphanumeric_keys
247 xkb_symbols "sun_type6" {
248 include "sun_vndr/gb(sun_type6)"
249 };