File: rs

package info (click to toggle)
xkeyboard-config 2.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,192 kB
  • sloc: sh: 4,369; makefile: 474; ansic: 433; perl: 382; ruby: 207
file content (329 lines) | stat: -rw-r--r-- 15,362 bytes parent folder | download
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
// Bosnian, Croatian, Serbian and Slovenian XKB keyboard mappings.
//
// Derived from "Danube" D.2 from 2003-05-12,
// which is available at http://srpski.org/dunav/.
//
// Original authors:
//  Danilo Segan (Данило Шеган) <danilo@kvota.net>
//  Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net>
//
// Danilo Segan <danilo@kvota.net>:
// - Modified for inclusion in XFree86.
// - Further modifications on 2005-08-18 to support Bosnian,
//   Croatian and Slovenian in xkeyboard-config.

default  partial alphanumeric_keys
xkb_symbols "basic" {

    name[Group1]= "Serbian";

    include "rs(cyrlevel3)"
    include "rs(common)"
    include "rs(cyralpha)"
    include "level3(ralt_switch)"
};

partial alphanumeric_keys
xkb_symbols "latin" {

    name[Group1]= "Serbian (Latin)";

    include "latin(type3)"
    include "rs(latalpha)"
    include "rs(latlevel3)"
    include "rs(common)"
    include "level3(ralt_switch)"
};

partial alphanumeric_keys
xkb_symbols "yz" {

    include "rs(basic)"
    name[Group1]= "Serbian (Cyrillic, ZE and ZHE swapped)";

    key <AD06> { [ Cyrillic_zhe,    Cyrillic_ZHE ] }; // y
    key <AB01> { [ Cyrillic_ze,     Cyrillic_ZE  ] }; // z
};

hidden partial alphanumeric_keys
xkb_symbols "common" {
    // "Common" keys: keys that are the same
    // for both latin and cyrillic keyboards.

    key <TLDE> { [ grave,          asciitilde    ] };
    key <AE01> { [ 1,              exclam        ] };
    key <AE02> { [ 2,              quotedbl      ] };
    key <AE03> { [ 3,              numbersign    ] };
    key <AE04> { [ 4,              dollar        ] };
    key <AE05> { [ 5,              percent       ] };
    key <AE06> { [ 6,              ampersand     ] };
    key <AE07> { [ 7,              slash         ] };
    key <AE08> { [ 8,              parenleft     ] };
    key <AE09> { [ 9,              parenright    ] };
    key <AE10> { [ 0,              equal         ] };
    key <AE11> { [ apostrophe,     question      ] };
    key <AE12> { [ plus,           asterisk      ] };

    key <AB08> { [ comma,          semicolon     ] };
    key <AB09> { [ period,         colon         ] };
    key <AB10> { [ minus,          underscore    ] };

    include "kpdl(comma)"
};

hidden partial alphanumeric_keys
xkb_symbols "cyralpha" {

    key <AD01> { [ Cyrillic_lje,   Cyrillic_LJE  ] }; // q
    key <AD02> { [ Cyrillic_nje,   Cyrillic_NJE  ] }; // w
    key <AD03> { [ Cyrillic_ie,    Cyrillic_IE   ] }; // e
    key <AD04> { [ Cyrillic_er,    Cyrillic_ER   ] }; // r
    key <AD05> { [ Cyrillic_te,    Cyrillic_TE   ] }; // t
    key <AD06> { [ Cyrillic_ze,    Cyrillic_ZE   ] }; // y
    key <AD07> { [ Cyrillic_u,     Cyrillic_U    ] }; // u
    key <AD08> { [ Cyrillic_i,     Cyrillic_I    ] }; // i
    key <AD09> { [ Cyrillic_o,     Cyrillic_O    ] }; // o
    key <AD10> { [ Cyrillic_pe,    Cyrillic_PE   ] }; // p
    key <AD11> { [ Cyrillic_sha,   Cyrillic_SHA  ] }; // [ {
    key <AD12> { [ Serbian_dje,    Serbian_DJE   ] }; // ] }

    key <AC01> { [ Cyrillic_a,     Cyrillic_A    ] }; // a
    key <AC02> { [ Cyrillic_es,    Cyrillic_ES   ] }; // s
    key <AC03> { [ Cyrillic_de,    Cyrillic_DE   ] }; // d
    key <AC04> { [ Cyrillic_ef,    Cyrillic_EF   ] }; // f
    key <AC05> { [ Cyrillic_ghe,   Cyrillic_GHE  ] }; // g
    key <AC06> { [ Cyrillic_ha,    Cyrillic_HA   ] }; // h
    key <AC07> { [ Cyrillic_je,    Cyrillic_JE   ] }; // j
    key <AC08> { [ Cyrillic_ka,    Cyrillic_KA   ] }; // k
    key <AC09> { [ Cyrillic_el,    Cyrillic_EL   ] }; // l
    key <AC10> { [ Cyrillic_che,   Cyrillic_CHE  ] }; // ; :
    key <AC11> { [ Serbian_tshe,   Serbian_TSHE  ] }; // ' "
    key <BKSL> { [ Cyrillic_zhe,   Cyrillic_ZHE  ] }; // \ |

    key <AB01> { [ Cyrillic_zhe,   Cyrillic_ZHE  ] }; // z
    key <AB02> { [ Cyrillic_dzhe,  Cyrillic_DZHE ] }; // x
    key <AB03> { [ Cyrillic_tse,   Cyrillic_TSE  ] }; // c
    key <AB04> { [ Cyrillic_ve,    Cyrillic_VE   ] }; // v
    key <AB05> { [ Cyrillic_be,    Cyrillic_BE   ] }; // b
    key <AB06> { [ Cyrillic_en,    Cyrillic_EN   ] }; // n
    key <AB07> { [ Cyrillic_em,    Cyrillic_EM   ] }; // m
};


hidden partial alphanumeric_keys
xkb_symbols "latalpha" {

    key <AD11> { [ scaron,         Scaron        ] }; // [ {
    key <AD12> { [ dstroke,        Dstroke       ] }; // ] }

    key <AC10> { [ ccaron,         Ccaron        ] }; // ; :
    key <AC11> { [ cacute,         Cacute        ] }; // ' "
    key <BKSL> { [ zcaron,         Zcaron        ] }; // \ |
};

hidden partial alphanumeric_keys
xkb_symbols "twoletter" {

    // Letters which are written in latin transcription with two characters.
    key <AD01> { type[Group1] = "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC",
               [ U1C9,           U1C8,          any, U1C7 ] }; // q
    key <AD02> { type[Group1] = "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC",
               [ U1CC,           U1CB,          any, U1CA ] }; // w
    key <AB02> { type[Group1] = "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC",
               [ U1C6,           U1C5,          any, U1C4 ] }; // x

    // Also replace letter Y with Zcaron, since Y is of no use any longer.
    key <AB01> { [ zcaron,         Zcaron        ] }; // z
};

hidden partial alphanumeric_keys
xkb_symbols "latlevel3" {
    key <TLDE> { [ any, any,   notsign,             notsign          ] }; // ` ~
    key <AE01> { [ any, any,   dead_tilde,          asciitilde       ] }; // 1 !
    key <AE02> { [ any, any,   dead_caron,          caron            ] }; // 2 @
    key <AE03> { [ any, any,   dead_circumflex,     asciicircum      ] }; // 3 #
    key <AE04> { [ any, any,   dead_breve,          breve            ] }; // 4 $
    key <AE05> { [ any, any,   dead_abovering,      degree           ] }; // 5 %
    key <AE06> { [ any, any,   dead_ogonek,         ogonek           ] }; // 6 ^
    key <AE07> { [ any, any,   dead_grave,          grave            ] }; // 7 &
    key <AE08> { [ any, any,   dead_abovedot,       abovedot         ] }; // 8 *
    key <AE09> { [ any, any,   dead_acute,          apostrophe       ] }; // 9 (
    key <AE10> { [ any, any,   dead_doubleacute,    doubleacute      ] }; // 0 )
    key <AE11> { [ any, any,   dead_diaeresis,      diaeresis        ] }; // - _
    key <AE12> { [ any, any,   dead_cedilla,        cedilla          ] }; // = +

    key <AD01> { [ any, any,   backslash,           Greek_OMEGA      ] }; // q
    key <AD02> { [ any, any,   bar,                 Lstroke          ] }; // w
    key <AD03> { [ any, any,   EuroSign,            EuroSign         ] }; // e
    key <AD04> { [ any, any,   paragraph,           registered       ] }; // r
    key <AD05> { type[Group1] = "FOUR_LEVEL_ALPHABETIC",
                 [ any, any,   tslash,              Tslash           ] }; // t
    key <AD06> { [ any, any,   leftarrow,           yen              ] }; // y
    key <AD07> { [ any, any,   downarrow,           uparrow          ] }; // u
    key <AD08> { [ any, any,   rightarrow,          idotless         ] }; // i
    key <AD09> { type[Group1] = "FOUR_LEVEL_ALPHABETIC",
                 [ any, any,   oslash,              Ooblique         ] }; // o
    key <AD10> { type[Group1] = "FOUR_LEVEL_ALPHABETIC",
                 [ any, any,   thorn,               THORN            ] }; // p
    key <AD11> { [ any, any,   division,            dead_abovering   ] }; // [
    key <AD12> { [ any, any,   multiply,            dead_macron      ] }; // ]

    key <AC01> { type[Group1] = "FOUR_LEVEL_ALPHABETIC",
                 [ any, any,   ae,                  AE               ] }; // a
    key <AC02> { [ any, any,   doublelowquotemark,  guillemotright   ] }; // s
    key <AC03> { [ any, any,   leftdoublequotemark, guillemotleft    ] }; // d
    key <AC04> { [ any, any,   bracketleft,         ordfeminine      ] }; // f
    key <AC05> { [ any, any,   bracketright,        ENG              ] }; // g
    key <AC06> { type[Group1] = "FOUR_LEVEL_ALPHABETIC",
                 [ any, any,   hstroke,             Hstroke          ] }; // h
    key <AC08> { [ any, any,   lstroke,             ampersand        ] }; // k
    key <AC09> { [ any, any,   lstroke,             Lstroke          ] }; // l
    key <AC10> { [ any, any,   dead_acute,          dead_doubleacute ] }; // ;
    key <AC11> { [ any, any,   ssharp,              dead_caron       ] }; // '
    key <BKSL> { [ any, any,   currency,            dead_breve       ] }; // \

    key <AB01> { [ any, any,   leftsinglequotemark, guillemotright   ] }; // z
    key <AB02> { [ any, any,   rightsinglequotemark,guillemotleft    ] }; // x
    key <AB03> { [ any, any,   cent,                copyright        ] }; // c
    key <AB04> { [ any, any,   at,                  grave            ] }; // v
    key <AB05> { [ any, any,   braceleft,           apostrophe       ] }; // b
    key <AB06> { [ any, any,   braceright,          braceright       ] }; // n
    key <AB07> { [ any, any,   asciicircum,         masculine        ] }; // m
    key <AB08> { [ any, any,   less,                multiply         ] }; // , <
    key <AB09> { [ any, any,   greater,             division         ] }; // . >
    key <AB10> { [ any, any,   emdash,              endash           ] }; // / ?
};

hidden partial alphanumeric_keys
xkb_symbols "cyrlevel3" {
    key <TLDE> { [ any, any,   degree,              notsign          ] }; // ` ~
    key <AE03> { [ any, any,   dead_circumflex                       ] }; // 3 #
    key <AE07> { [ any, any,   dead_grave                            ] }; // 7 &
    key <AE08> { [ any, any,   dead_doublegrave                      ] }; // 8 *
    key <AE09> { [ any, any,   dead_acute                            ] }; // 9 (
    key <AE10> { [ any, any,   dead_invertedbreve                    ] }; // 0 )
    key <AE11> { [ any, any,   dead_macron                           ] }; // - _

    key <AD01> { [ any, any,   backslash                             ] }; // q
    key <AD02> { [ any, any,   bar                                   ] }; // w
    key <AD03> { [ any, any,   EuroSign,            sterling         ] }; // e
    key <AD04> { [ any, any,   paragraph,           registered       ] }; // r
    key <AD05> { [ any, any,   ellipsis                              ] }; // t
    key <AD06> { [ any, any,   leftarrow,           yen              ] }; // y
    key <AD07> { [ any, any,   downarrow,           uparrow          ] }; // u
    key <AD08> { [ any, any,   rightarrow                            ] }; // i
    key <AD09> { [ any, any,   section                               ] }; // o
    key <AD11> { [ any, any,   division                              ] }; // [
    key <AD12> { [ any, any,   multiply                              ] }; // ]

    key <AC02> { [ any, any,   doublelowquotemark,  guillemotright   ] }; // s
    key <AC03> { [ any, any,   leftdoublequotemark, guillemotleft    ] }; // d
    key <AC04> { [ any, any,   bracketleft                           ] }; // f
    key <AC05> { [ any, any,   bracketright                          ] }; // g
    key <BKSL> { [ any, any,   currency                              ] }; // \

    key <AB01> { [ any, any,   leftsinglequotemark                   ] }; // z
    key <AB02> { [ any, any,   rightsinglequotemark                  ] }; // x
    key <AB03> { [ any, any,   cent,                copyright        ] }; // c
    key <AB04> { [ any, any,   at                                    ] }; // v
    key <AB05> { [ any, any,   braceleft                             ] }; // b
    key <AB06> { [ any, any,   braceright                            ] }; // n
    key <AB07> { [ any, any,   asciicircum                           ] }; // m
    key <AB08> { [ any, any,   less                                  ] }; // , <
    key <AB09> { [ any, any,   greater                               ] }; // . >
    key <AB10> { [ any, any,   emdash,              endash           ] }; // / ?
};

partial alphanumeric_keys
xkb_symbols "latinunicode" {
    // This mapping supports the Unicode characters 0x1c4-0x1cc (dz, lj, and nj
    // as single character). You get the title form with AltGr+Shift.

    include "rs(latin)"
    name[Group1]= "Serbian (Latin, Unicode)";

    include "rs(twoletter)"
};

partial alphanumeric_keys
xkb_symbols "latinyz" {
    // For those who insist on using "english-position" Z and Y.

    include "rs(latin)"
    name[Group1]= "Serbian (Latin, QWERTY)";

    key <AD06> { [ y,              Y             ] }; // y
    key <AB01> { [ z,              Z             ] }; // z
};

partial alphanumeric_keys
xkb_symbols "latinunicodeyz" {
    // Unicode, ZHE and Z swapped.

    include "rs(latinunicode)"
    name[Group1]= "Serbian (Latin, Unicode, QWERTY)";

    key <AD06> { [ zcaron,         Zcaron        ] }; // y
    key <AB01> { [ z,              Z             ] }; // z
};

xkb_symbols "alternatequotes" {
    // Another acceptable »pair of quotes« for Serbian.

    include "rs(basic)"
    name[Group1]= "Serbian (Cyrillic with guillemets)";

    key <AC02> { [ any, any,   guillemotright    ] }; // s
    key <AC03> { [ any, any,   guillemotleft     ] }; // d
};

xkb_symbols "latinalternatequotes" {
    // Another acceptable »pair of quotes« for Serbian.

    include "rs(latin)"
    name[Group1]= "Serbian (Latin with guillemets)";

    key <AC02> { [ any, any,   guillemotright    ] }; // s
    key <AC03> { [ any, any,   guillemotleft     ] }; // d
};

xkb_symbols "rue" {
    // Layout for Pannonian Rusyn (spoken mainly in Serbia and Croatia
    // by the Rusyn people), based on Serbian Cyrillic layout.
    // Authors:
    //   Ljubomir J. Papuga (Любомир Я. Папуґа) <papuga@zoho.com>
    //   Mihajlo Hornjak <smeceiotpad@gmail.com>

    include "rs(basic)"
    name[Group1]= "Pannonian Rusyn";

    key <TLDE> { [ Cyrillic_softsign,         Cyrillic_SOFTSIGN         ] }; // `

    key <AD01> { [ Cyrillic_ya,               Cyrillic_YA               ] }; // q
    key <AD02> { [ Ukrainian_ie,              Ukrainian_IE              ] }; // w
    key <AD12> { [ Cyrillic_shcha,            Cyrillic_SHCHA            ] }; // ]

    key <AC05> { [ Ukrainian_ghe_with_upturn, Ukrainian_GHE_WITH_UPTURN ] }; // g
    key <AC07> { [ Cyrillic_shorti,           Cyrillic_SHORTI           ] }; // j
    key <AC11> { [ Cyrillic_ghe,              Cyrillic_GHE              ] }; // '

    key <AB01> { [ Cyrillic_yu,               Cyrillic_YU               ] }; // z
    key <AB02> { [ Ukrainian_yi,              Ukrainian_YI              ] }; // x
};

// EXTRAS:

xkb_symbols "combiningkeys" {
    // Raw combining characters instead of dead keys,
    // especially good for post-accenting texts.

    include "rs(basic)"
    name[Group1]= "Serbian (combining accents instead of dead keys)";

    key <AE03> { [ any, any,   U0302, dead_circumflex ] }; // 3, U0302 = COMBINING CIRCUMFLEX ACCENT
    key <AE07> { [ any, any,   U0300                  ] }; // 7, U0300 = COMBINING GRAVE ACCENT
    key <AE08> { [ any, any,   U030F                  ] }; // 8, U030F = COMBINING DOUBLE GRAVE ACCENT
    key <AE09> { [ any, any,   U0301                  ] }; // 9, U0301 = COMBINING ACUTE ACCENT
    key <AE10> { [ any, any,   U0311                  ] }; // 0, U0311 = COMBINING INVERTED BREVE
    key <AE11> { [ any, any,   U0304                  ] }; // -, U0304 = COMBINING MACRON
};