Remove RCS tags
[xorg/xkeyboard-config] / symbols / pl
1 // based on a keyboard map from an 'xkb/symbols/pl' file
2
3 partial default alphanumeric_keys
4 xkb_symbols "basic" {
5
6     include "latin"
7
8     name[Group1]="Poland";
9
10     key <AD01>  { [         q,          Q ] };
11     key <AD02>  { [         w,          W ] };
12     key <AD03>  { [         e,          E,      eogonek,      Eogonek ] };
13     key <AD09>  { [         o,          O,       oacute,       Oacute ] };
14
15     key <AC01>  { [         a,          A,      aogonek,      Aogonek ] };
16     key <AC02>  { [         s,          S,       sacute,       Sacute ] };
17     key <AC04>  { [         f,          F ] };
18
19     key <AB01>  { [         z,          Z,    zabovedot,    Zabovedot ] };
20     key <AB02>  { [         x,          X,       zacute,       Zacute ] };
21     key <AB03>  { [         c,          C,       cacute,       Cacute ] };
22     key <AB06>  { [         n,          N,       nacute,       Nacute ] };
23
24     include "kpdl(comma)"
25
26     include "level3(ralt_switch)"
27 };
28
29 partial alphanumeric_keys
30 xkb_symbols "qwertz" {
31
32     // Describes the differences between a very simple en_US
33     // keyboard and a very simple QWERTZ Polish keybaord
34
35     include "latin(type3)"
36
37     name[Group1]="Poland - qwertz";
38
39     key <AE01>  { [         1,     exclam,   asciitilde,   exclamdown ] };
40     key <AE02>  { [         2,   quotedbl,   dead_caron,    oneeighth ] };
41     key <AE03>  { [         3, numbersign, dead_circumflex,  sterling ] };
42     key <AE04>  { [         4,     dollar,   dead_breve,       dollar ] };
43     key <AE05>  { [         5,    percent,       degree, threeeighths ] };
44     key <AE06>  { [         6,  ampersand,  dead_ogonek,  fiveeighths ] };
45     key <AE07>  { [         7,      slash,   dead_grave, seveneighths ] };
46     key <AE08>  { [         8,  parenleft, dead_abovedot,   trademark ] };
47     key <AE09>  { [         9, parenright,   dead_acute,    plusminus ] };
48     key <AE10>  { [         0,      equal, dead_doubleacute,   degree ] };
49     key <AE11>  { [      plus,   question, dead_diaeresis, questiondown ] };
50     key <AE12>  { [apostrophe,   asterisk, dead_cedilla,  dead_ogonek ] };
51
52     key <AD01>  { [         q,          Q ] };
53     key <AD02>  { [         w,          W ] };
54     key <AD03>  { [         e,          E,     EuroSign,         cent ] };
55     key <AD11>  { [ zabovedot,     nacute,     division, dead_abovering ] };
56     key <AD12>  { [    sacute,     cacute,     multiply,  dead_macron ] };
57
58     key <AC02>  { [         s,          S,      dstroke,      section ] };
59     key <AC03>  { [         d,          D,      Dstroke,          ETH ] };
60     key <AC04>  { [         f,          F ] };
61     key <AC08>  { [         k,          K,          kra,    ampersand ] };
62     key <AC09>  { [         l,          L,      lstroke,      Lstroke ] };
63     key <AC10>  { [   lstroke,    Lstroke,       dollar, dead_doubleacute ] };
64     key <AC11>  { [   aogonek,    eogonek,       ssharp,   dead_caron ] };
65     key <TLDE>  { [  abovedot, dead_ogonek,     notsign,      notsign ] };
66
67     key <BKSL>  { [    oacute,     zacute,   dead_grave,   dead_breve ] };
68     key <AB03>  { [         c,          C,         cent,    copyright ] };
69     key <AB10>  { [     minus, underscore, dead_belowdot, dead_abovedot ] };
70
71     include "kpdl(comma)"
72
73     include "level3(ralt_switch)"
74 };
75
76 // Polish Dvorak keymaps
77 // by Rafal Rzepecki <divide@users.sf.net>
78
79 // The base keymap "pl" places Polish quotes on quotemark key and 
80 // moves the dead symbols from there to "1/!" key. If you are used to common 
81 // dead keys placement, you could use "pl_altquotes"; in this layout 
82 // dead keys remain in the old place, whereas Polish quotes are placed on the
83 // "1/!" key. If you do not use Polish quotes at all, you can use "pl_basic" map.
84
85 // Basic Polish keymap (without Polish quotes)
86 partial alphanumeric_keys 
87 xkb_symbols "dvorak" {
88     include "us(dvorak)"
89     
90     name[Group1] = "Poland - Dvorak";
91
92     key <AD08> { [          c,  C,      cacute, Cacute          ]       };
93     key <AD10> { [          l,  L,     lstroke, Lstroke         ]       };
94     key <AC01> { [          a,  A,     aogonek, Aogonek         ]       };
95     key <AC02> { [          o,  O,      oacute, Oacute          ]       };
96     key <AC03> { [          e,  E,     eogonek, Eogonek         ]       };
97     key <AC09> { [          n,  N,      nacute, Nacute          ]       };
98     key <AC10> { [          s,  S,      sacute, Sacute          ]       };
99     key <AB09> { [          v,  V,      zacute, Zacute          ]       };
100     key <AB10> { [          z,  Z,   zabovedot, Zabovedot       ]       };
101     
102     include "kpdl(comma)"
103
104     // this to allow writing ALL CAPS with a Shift key
105     include "level3(ralt_switch)"
106
107     // use one of compose:* options to choose Multi_key, if you will,
108     // or layout +level3(ralt_switch_multikey) to revert standard behaviour
109 };
110
111 // Default Polish keymap with Polish quotes on quotemark key
112 partial alphanumeric_keys
113 xkb_symbols "dvorak_quotes" {
114     include "pl(dvorak)"
115     
116     name[Group1] = "Poland - Dvorak, Polish quotes on quotemark key";
117
118     key <AD01> { [  apostrophe, quotedbl, doublelowquotemark, rightdoublequotemark      ] };
119
120     // Dead symbols moved to this key
121     key <AE01> { [          1,  exclam, dead_acute, dead_diaeresis              ]       };
122 };
123
124 // Polish keymap with Polish quotes on key "1/!"
125 partial alphanumeric_keys
126 xkb_symbols "dvorak_altquotes" {
127     include "pl(dvorak)"
128
129     name[Group1] = "Poland - Dvorak, Polish quotes on key 1";
130
131     key <AE01> { [          1,  exclam, doublelowquotemark, rightdoublequotemark        ]       };
132 };
133
134 // Polish Programmer Dvorak keymap  by Michal Nazarewicz <mina86@mina86.com>
135 // based on Programmer Dvorak  by Roland Kaufmann <rlndkfmn at gmail dot com>
136 //      and Polish Dvorak keymaps  by Rafal Rzepecki <divide@users.sf.net
137 //      and latin(basic)
138 //
139 // * Numbers are in shift position (like French).
140 // * Symbols have been placed in locations that give good
141 //   hand-alternation and finger rolling with symbols that usually
142 //   follows.
143 // * Polish diacritics on AltGr+"acelnosxz" (same as in basic pl(basic)).
144 // * Aditionaly, zacute on AltGr+"v" so that both zacute and zabovedot
145 //   next to each other same as in pl(basic).
146 // * Polish open and close quotes on AltGr+& (same location as in
147 //   pl(dvp_altquotes)).
148 // * English open quote on AltGr+k (same location as in latin(basic))
149 // * English/Polish close quote on AltGr+b (similar location as in
150 //   latin(basic) but moved right because AltGr+x is taken for zacute).
151 // * Polish open and close quote on AltGr+j.
152 //
153 // Those rules overwrite only the following rules from us(dvp):
154 // * ccedilla on AltGr+c
155 // * aring on Alt+a
156 // * oslash/Ooblique on Alt+o
157 // * ae on Alt+e
158 // * ntilde on Alt+n
159 //
160 partial alphanumeric_keys
161 xkb_symbols "dvp" {
162     include "us(dvp)"
163
164     name[Group1] = "Poland - Programmer Dvorak";
165
166     //             Unmodified    Shift           AltGr            Shift+AltGr
167     // symbols row, left side
168     key <AE01> { [ ampersand,    percent,        doublelowquotemark, rightdoublequotemark ] };
169
170     // symbols row, right side
171
172     // upper row, left side
173
174     // // upper row, right side
175     key <AD08> { [ c,            C,              cacute,          Cacute     ] };
176     key <AD10> { [ l,            L,              lstroke,         Lstroke    ] };
177
178     // home row, left side
179     key <AC01> { [ a,            A,              aogonek,         Aogonek    ], type[Group1] = "EIGHT_LEVEL_ALPHABETIC" };
180     key <AC02> { [ o,            O,              oacute,          Oacute     ] };
181     key <AC03> { [ e,            E,              eogonek,         Eogonek    ] };
182
183     // home row, right side
184     key <AC09> { [ n,            N,              nacute,          Nacute     ] };
185     key <AC10> { [ s,            S,              sacute,          Sacute     ] };
186     key <AC11> { [ minus,        underscore,     hyphen                      ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" };
187     key <BKSL> { [ backslash,    bar                                         ] };
188
189     // lower row, left side
190     key <AB03> { [ j,            J,              doublelowquotemark, rightdoublequotemark ] };
191     key <AB04> { [ k,            K,              leftdoublequotemark, leftsinglequotemark ] };
192     key <AB05> { [ x,            X,              zacute,          Zacute     ] };
193
194     // lower row, right side
195     key <AB06> { [ b,            B,              rightdoublequotemark, rightsinglequotemark ] };
196     key <AB09> { [ v,            V,              zacute,          Zacute     ] };
197     key <AB10> { [ z,            Z,              zabovedot,       Zabovedot  ] };
198
199     include "kpdl(comma)"
200
201     // this to allow writing ALL CAPS with a Shift key
202     include "level3(ralt_switch)"
203
204     // use one of compose:* options to choose Multi_key, if you will,
205     // or layout +level3(ralt_switch_multikey) to revert standard behaviour
206 };
207
208
209 partial alphanumeric_keys
210 xkb_symbols "csb" {
211
212     include "latin"
213
214     name[Group1]="Poland - Kashubian";
215
216     key <AD01>  { [         q,          Q ] };
217     key <AD02>  { [         w,          W ] };
218     key <AD03>  { [         e,          E,      eacute,      Eacute ]   };
219     key <AD04>  { [         r,           R,      ediaeresis,      Ediaeresis ]  };
220     key <AD06>      { [         y,          Y,      EuroSign,         cent ]        };
221     key <AD07>  { [          u,          U,       ugrave,       Ugrave ]        };
222     key <AD08>  { [         i,            I,       ograve,       Ograve ]       };
223     key <AD09>  { [         o,          O,       oacute,       Oacute ] };
224     key <AD10>  { [         p,          P,       ocircumflex,       Ocircumflex ]       };
225
226     key <AC01>  { [         a,          A,      aogonek,      Aogonek ] };
227     key <AC02>  { [         s,          S,      atilde,      Atilde ]         };
228     key <AC04>  { [         f,          F ] };
229     key <AC09>  { [         l,          L,      lstroke,      Lstroke ]      };
230
231     key <AB01>  { [         z,          Z,    zabovedot,    Zabovedot ] };
232     key <AB06>  { [         n,          N,       nacute,       Nacute ] };
233
234     include "kpdl(comma)"
235
236     include "level3(ralt_switch)"
237 };
238
239 // Russian Polish-phonetic Dvorak
240 // by Adrian Dziubek <adrian.dziubek@gmail.com>
241 //
242 // This layout aims to enable Polish Dvorak users to type with Russian
243 // Cyrillic alphabet by using the sound correspondence between Polish and
244 // Russian languages.
245 //
246 // This keyboard should be intuitive. Please let me know, if my intuition
247 // lets You down.
248 //
249 // The guidelines used:
250 // - no Cyrillic symbols are placed on punctuation symbols,
251 // - visual similarities are ignored if there is a sound correspondence:
252 //   no Cyrillic_es on c, no Cyrillic_er on p, no Cyrillic_ha on x etc.,
253 // - the Latin symbols that have close sound correspondence (as read in Polish)
254 //   to Cyrillic symbols (as read in Russian) are mapped respectively:
255 //         * j -> Cyrillic_shorti,
256 //         * k -> Cyrillic_ka,
257 //         * b -> Cyrillic_be,
258 //         * m -> Cyrillic_em,
259 //         * w -> Cyrillic_ve,
260 //         * z -> Cyrillic_ze
261 //         * a -> Cyrillic_a,
262 //         * o -> Cyrillic_o,
263 //         * u -> Cyrillic_u,
264 //         * i -> Cyrillic_i,
265 //         * d -> Cyrillic_de,
266 //         * h -> Cyrillic_ha,
267 //         * t -> Cyrillic_te,
268 //         * n -> Cyrillic_en,
269 //         * s -> Cyrillic_es,
270 //         * p -> Cyrillic_pe,
271 //         * y -> Cyrillic_yeru,
272 //         * f -> Cyrillic_ef,
273 //         * g -> Cyrillic_ghe,
274 //         * c -> Cyrillic_tse,
275 //         * r -> Cyrillic_er,
276 //         * l -> Cyrillic_el,
277 // - ...and little more distant:
278 //         * AltGr + s (sacute) -> Cyrillic_sha,
279 //         * AltGr + z (zabovedot) -> Cyrillic_zhe,
280 //         * AltGr + c (cacute) -> Cyrillic_che,
281 // - the soft versions of Russian vowels are accessible through AltGr + vowel:
282 //         * AltGr + a -> Cyrillic_ya,
283 //         * AltGr + o -> Cyrillic_io,
284 //         * AltGr + u -> Cyrillic_yu,
285 // - ...except for Cyrillic_ie which is more frequently used than Cyrillic_e:
286 //         * AltGr + e -> Cyrillic_e,
287 //         * e -> Cyrillic_ie,
288 // - q is also mapped to Cyrillic_ya, following the US phonetic keyboard
289 //   choice, as Cyrillic_ya and Cyrillic_a are both often used:
290 //         * q -> Cyrillic_ya,
291 // - the soft and hard symbols that have no Polish counterparts are mapped
292 //   to rarely used in Polish x character:
293 //         * x -> Cyrillic_softsign
294 //         * AltGr + x -> Cyrillic_hardsign,
295 // - the soft sign is additionally available as AltGr + consonant combination
296 //   for every consonant that can be softened or separated by soft sign:
297 //         * AltGr + l -> Cyrillic_softsign,
298 //         * AltGr + d -> Cyrillic_softsign,
299 //         * AltGr + n -> Cyrillic_softsign,
300 //         * AltGr + r -> Cyrillic_softsign,
301 //         * AltGr + t -> Cyrillic_softsign,
302 //         * AltGr + p -> Cyrillic_softsign,
303 // - ...and also because of visual similarity under level3 b:
304 //         * AltGr + b -> Cyrillic_softsign,
305 //         * Shift + AltGr + b -> Cyrillic_hardsign,
306 // - the Cyrillic_shcha symbol is placed under AltGr + w (visual similarity):
307 //         * AltGr + w -> Cyrillic_shcha
308 // - v, also rarely unused in Polish is mapped like w:
309 //         * v -> Cyrillic_ve,
310 //
311 partial alphanumeric_keys
312 xkb_symbols "ru_phonetic_dvorak" {
313    include "us(dvorak)"
314
315    name[Group1] = "Poland - Russian phonetic Dvorak";
316
317    // lower row
318    key <AB02> { [ Cyrillic_ya, Cyrillic_YA ] };
319    key <AB03> { [ Cyrillic_shorti, Cyrillic_SHORTI ] };
320    key <AB04> { [ Cyrillic_ka, Cyrillic_KA ] };
321    key <AB05> { [ Cyrillic_shcha, Cyrillic_SHCHA ] };
322    key <AB06> { [ Cyrillic_be, Cyrillic_BE, Cyrillic_hardsign, Cyrillic_HARDSIGN ] };
323    key <AB07> { [ Cyrillic_em, Cyrillic_EM ] };
324    key <AB08> { [ Cyrillic_ve, Cyrillic_VE, Cyrillic_shcha, Cyrillic_SHCHA ] };
325    key <AB09> { [ Cyrillic_ve, Cyrillic_VE, Cyrillic_shcha, Cyrillic_SHCHA ] };
326    key <AB10> { [ Cyrillic_ze, Cyrillic_ZE, Cyrillic_zhe, Cyrillic_ZHE ] };
327    // home row
328    key <AC01> { [ Cyrillic_a, Cyrillic_A, Cyrillic_ya, Cyrillic_YA  ] };
329    key <AC02> { [ Cyrillic_o, Cyrillic_O, Cyrillic_io, Cyrillic_IO ] };
330    key <AC03> { [ Cyrillic_ie, Cyrillic_IE, Cyrillic_e, Cyrillic_E ] };
331    key <AC04> { [ Cyrillic_u, Cyrillic_U, Cyrillic_yu, Cyrillic_YU  ] };
332    key <AC05> { [ Cyrillic_i, Cyrillic_I ] };
333    key <AC06> { [ Cyrillic_de, Cyrillic_DE, Cyrillic_softsign, Cyrillic_SOFTSIGN ] };
334    key <AC07> { [ Cyrillic_ha, Cyrillic_HA ] };
335    key <AC08> { [ Cyrillic_te, Cyrillic_TE, Cyrillic_softsign, Cyrillic_SOFTSIGN ] };
336    key <AC09> { [ Cyrillic_en, Cyrillic_EN, Cyrillic_softsign, Cyrillic_SOFTSIGN ] };
337    key <AC10> { [ Cyrillic_es, Cyrillic_ES, Cyrillic_sha, Cyrillic_SHA ] };
338    // upper row
339    key <AD04> { [ Cyrillic_pe, Cyrillic_PE, Cyrillic_softsign, Cyrillic_SOFTSIGN ] };
340    key <AD05> { [ Cyrillic_yeru, Cyrillic_YERU ] };
341    key <AD06> { [ Cyrillic_ef, Cyrillic_EF ] };
342    key <AD07> { [ Cyrillic_ghe, Cyrillic_GHE ] };
343    key <AD08> { [ Cyrillic_tse, Cyrillic_TSE, Cyrillic_che, Cyrillic_CHE ] };
344    key <AD09> { [ Cyrillic_er, Cyrillic_ER, Cyrillic_softsign, Cyrillic_SOFTSIGN ] };
345    key <AD10> { [ Cyrillic_el, Cyrillic_EL, Cyrillic_softsign, Cyrillic_SOFTSIGN ] };
346
347    include "kpdl(comma)"
348
349    include "level3(ralt_switch)"
350 };