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