Key types local to the group, b.fd.o#8121
[xorg/xkeyboard-config] / symbols / ir
1 // $XKeyboardConfig$
2 // Iranian keyboard layout,
3 // based on National Iranian Keyboard Standard (ISIRI 2901:1994),
4 // with additions.
5 //
6 // Copyright (C) 2004,2005  Sharif FarsiWeb, Inc.
7 //
8 // Author: Behnam Esfahbod <behnam@esfahbod.info>
9 //
10
11
12 // 3-Level layout
13
14 partial default alphanumeric_keys
15 xkb_symbols "basic" {
16     name[Group1]= "Iran";
17
18     // Persian digits
19     key <AE01> { [ 0x10006f1,   exclam,         quoteleft               ] };
20     key <AE02> { [ 0x10006f2,   0x100066c,      at                      ] };
21     key <AE03> { [ 0x10006f3,   0x100066b,      numbersign              ] };
22     key <AE04> { [ 0x10006f4,   0x100fdfc,      dollar                  ] };
23     key <AE05> { [ 0x10006f5,   0x100066a,      percent                 ] };
24     key <AE06> { [ 0x10006f6,   multiply,       asciicircum             ] };
25     key <AE07> { [ 0x10006f7,   Arabic_comma,   ampersand               ] };
26     key <AE08> { [ 0x10006f8,   asterisk,       enfilledcircbullet      ] };
27     key <AE09> { [ 0x10006f9,   parenright,     0x100200e               ] };
28     key <AE10> { [ 0x10006f0,   parenleft,      0x100200f               ] };
29
30     // Other 3-Level symbols
31     key <TLDE> { [ 0x100200d,           division,               asciitilde      ] };
32     key <AE11> { [ minus,               Arabic_tatweel,         underscore      ] };
33     key <AE12> { [ equal,               plus,                   0x1002212       ] };
34     key <BKSL> { [ backslash,           bar,                    0x1002010       ] };
35     key <SPCE> { [ space,               0x100200c,              nobreakspace    ] };
36
37     key <AD01> { [ Arabic_dad,          Arabic_sukun,           degree          ] };
38     key <AD02> { [ Arabic_sad,          Arabic_dammatan,        VoidSymbol      ] };
39     key <AD03> { [ Arabic_theh,         Arabic_kasratan,        0x13a4          ] };
40     key <AD04> { [ Arabic_qaf,          Arabic_fathatan,        VoidSymbol      ] };
41     key <AD05> { [ Arabic_feh,          Arabic_damma,           VoidSymbol      ] };
42     key <AD06> { [ Arabic_ghain,        Arabic_kasra,           VoidSymbol      ] };
43     key <AD07> { [ Arabic_ain,          Arabic_fatha,           VoidSymbol      ] };
44     key <AD08> { [ Arabic_heh,          Arabic_shadda,          0x100202d       ] };
45     key <AD09> { [ Arabic_khah,         bracketright,           0x100202e       ] };
46     key <AD10> { [ Arabic_hah,          bracketleft,            0x100202c       ] };
47     key <AD11> { [ Arabic_jeem,         braceright,             0x100202a       ] };
48     key <AD12> { [ 0x1000686,           braceleft,              0x100202b       ] };
49
50     key <AC01> { [ Arabic_sheen,        Arabic_hamzaonwaw,      VoidSymbol      ] };
51     key <AC02> { [ Arabic_seen,         Arabic_hamzaonyeh,      VoidSymbol      ] };
52     key <AC03> { [ 0x10006cc,           Arabic_yeh,             Arabic_alefmaksura ] };
53     key <AC04> { [ Arabic_beh,          Arabic_hamzaunderalef,  VoidSymbol      ] };
54     key <AC05> { [ Arabic_lam,          Arabic_hamzaonalef,     VoidSymbol      ] };
55     key <AC06> { [ Arabic_alef,         Arabic_maddaonalef,     0x1000671       ] };
56     key <AC07> { [ Arabic_teh,          Arabic_tehmarbuta,      VoidSymbol      ] };
57     key <AC08> { [ Arabic_noon,         guillemotright,         0x100fd3e       ] };
58     key <AC09> { [ Arabic_meem,         guillemotleft,          0x100fd3f       ] };
59     key <AC10> { [ 0x10006a9,           colon,                  semicolon       ] };
60     key <AC11> { [ 0x10006af,           Arabic_semicolon,       quotedbl        ] };
61
62     key <AB01> { [ Arabic_zah,          Arabic_kaf,             VoidSymbol      ] };
63     key <AB02> { [ Arabic_tah,          0x1000653,              VoidSymbol      ] };
64     key <AB03> { [ Arabic_zain,         0x1000698,              VoidSymbol      ] };
65     key <AB04> { [ Arabic_ra,           0x1000670,              0x1000656       ] };
66     key <AB05> { [ Arabic_thal,         0x100200c,              0x100200d       ] };
67     key <AB06> { [ Arabic_dal,          0x1000654,              0x1000655       ] };
68     key <AB07> { [ 0x100067e,           Arabic_hamza,           ellipsis        ] };
69     key <AB08> { [ Arabic_waw,          greater,                comma           ] };
70     key <AB09> { [ period,              less,                   apostrophe      ] };
71     key <AB10> { [ slash,               Arabic_question_mark,   question        ] };
72
73     include "level3(ralt_switch)"
74 };
75
76
77 partial hidden alphanumeric_keys
78 xkb_symbols "part_pro" {
79
80     // Persian and English (ASCII) digits
81     key <AE01> { [ 0x10006f1,   exclam,         quoteleft,              1       ] };
82     key <AE02> { [ 0x10006f2,   0x100066c,      at,                     2       ] };
83     key <AE03> { [ 0x10006f3,   0x100066b,      numbersign,             3       ] };
84     key <AE04> { [ 0x10006f4,   0x100fdfc,      dollar,                 4       ] };
85     key <AE05> { [ 0x10006f5,   0x100066a,      percent,                5       ] };
86     key <AE06> { [ 0x10006f6,   multiply,       asciicircum,            6       ] };
87     key <AE07> { [ 0x10006f7,   Arabic_comma,   ampersand,              7       ] };
88     key <AE08> { [ 0x10006f8,   asterisk,       enfilledcircbullet,     8       ] };
89     key <AE09> { [ 0x10006f9,   parenright,     0x100200e,              9       ] };
90     key <AE10> { [ 0x10006f0,   parenleft,      0x100200f,              0       ] };
91 };
92
93 partial hidden alphanumeric_keys
94 xkb_symbols "part_keypad" {
95
96     // Persian digits and Mathematical operators
97     key <KPDV> { [ division,    XF86_Ungrab     ] };
98     key <KPMU> { [ multiply,    XF86_ClearGrab  ] };
99     key <KPSU> { [ 0x1002212,   XF86_Prev_VMode ] };
100     key <KPAD> { [ plus,        XF86_Next_VMode ] };
101
102     key <KPEN> { [ KP_Enter     ] };
103     key <KPEQ> { [ equal        ] };
104
105     key <KP7>  { [ KP_Home,     0x10006f7       ] };
106     key <KP8>  { [ KP_Up,       0x10006f8       ] };
107     key <KP9>  { [ KP_Prior,    0x10006f9       ] };
108
109     key <KP4>  { [ KP_Left,     0x10006f4       ] };
110     key <KP5>  { [ KP_Begin,    0x10006f5       ] };
111     key <KP6>  { [ KP_Right,    0x10006f6       ] };
112
113     key <KP1>  { [ KP_End,      0x10006f1       ] };
114     key <KP2>  { [ KP_Down,     0x10006f2       ] };
115     key <KP3>  { [ KP_Next,     0x10006f3       ] };
116
117     key <KP0>  { [ KP_Insert,   0x10006f0       ] };
118     key <KPDL> { [ KP_Delete,   0x100066b       ] };
119 };
120
121 // 4-Level leyout
122
123 partial alphanumeric_keys
124 xkb_symbols "pro" {
125     include "ir(basic)"
126     include "ir(part_pro)"
127
128     name[Group1]= "Iran - Pro";
129 };
130
131
132 // Persian Keypad leyout
133
134 partial alphanumeric_keys
135 xkb_symbols "keypad" {
136     include "ir(basic)"
137     include "ir(part_keypad)"
138
139     name[Group1]= "Iran - Keypad";
140 };
141
142
143 // 4-Level leyout with Persian Keypad leyout
144
145 partial alphanumeric_keys
146 xkb_symbols "pro_keypad" {
147     include "ir(basic)"
148     include "ir(part_keypad)"
149     include "ir(part_pro)"
150
151     name[Group1]= "Iran - Pro Keypad";
152
153 };
154
155 partial alphanumeric_keys
156 xkb_symbols "ku" {
157     include "tr(ku)"
158     name[Group1]= "Iran - Kurdish, Latin Q";
159 };
160
161 partial alphanumeric_keys
162 xkb_symbols "ku_f" {
163     include "tr(ku_f)"
164     name[Group1]= "Iran - Kurdish, (F)";
165 };
166
167 partial alphanumeric_keys
168 xkb_symbols "ku_alt" {
169     include "tr(ku_alt)"
170     name[Group1]= "Iran - Kurdish, Latin Alt-Q";
171 };
172
173 // Kurdish Soranî Bahdînî (Arabic) keyboard layout,
174 // based on the Kurdî Soranî Bahdînî keyboard from KurdITGroup
175 // which is based on National Iranian Keyboard Standard (ISIRI 2901:1994),
176 // with additions.
177 //
178 // Copyright (C) 2006 Erdal Ronahî, published under the GPL v2
179 //
180 // Author: Erdal Ronahî  <erdal.ronahi@gmail.com>
181 //
182 // Kurdish Arabic-Latin Layout for Soranî
183 partial alphanumeric_keys
184 xkb_symbols "ku_ara" {
185     name[Group1]= "Iran - Kurdish, Arabic-Latin";
186
187     // Other 3-Level symbols
188     key <TLDE> { [ 0x100200d,           division,               asciitilde      ] };
189     key <BKSL> { [ backslash,           bar,                    ccedilla, Ccedilla      ] };
190     key <SPCE> { [ space,               0x100200c,              nobreakspace    ] };
191
192     // Digits
193     key <AE01> { [ 1,   exclam,         0x10006f1,      quoteleft       ] };
194     key <AE02> { [ 2,   at,             0x10006f2,      at              ] };
195     key <AE03> { [ 3,   numbersign,     0x10006f3,      0x100066b       ] };
196     key <AE04> { [ 4,   dollar,         0x10006f4,      0x100fdfc       ] };
197     key <AE05> { [ 5,   percent,        0x10006f5,      0x100066a       ] };
198     key <AE06> { [ 6,   asciicircum,    0x10006f6,      multiply        ] };
199     key <AE07> { [ 7,   ampersand,      0x10006f7,      Arabic_comma    ] };
200     key <AE08> { [ 8,   asterisk,       0x10006f8,      enfilledcircbullet      ] };
201     key <AE09> { [ 9,   parenright,     0x10006f9,      0x100200e       ] };
202     key <AE10> { [ 0,   parenleft,      0x10006f0,      0x100200f       ] };
203     key <AE11> { [ minus,               Arabic_tatweel,         underscore      ] };
204     key <AE12> { [ equal,               plus,                   0x1002212       ] };
205
206     key <AD01> { [         Arabic_qaf,            X,  q,  Q ] };
207     key <AD02> { [         Arabic_waw,            X,  w,  W ] };
208     key <AD03> { [          0x10006d5,   Arabic_heh,  e,  E ] };
209     key <AD04> { [         Arabic_ra ,    0x1000695,  r,  R ] };
210     key <AD05> { [         Arabic_teh,   Arabic_tah,  t,  T ] };
211     key <AD06> { [          0x10006cc,    0x10006ce,  y,  Y ] };
212     key <AD07> { [  Arabic_hamzaonyeh, Arabic_hamza,  u,  U ] };
213     key <AD08> { [         Arabic_hah,   Arabic_ain,  i,  I ] };
214     key <AD09> { [          0x10006c6, Arabic_hamzaonwaw,  o,  O ] };
215     key <AD10> { [          0x100067e,  Arabic_theh,  p,  P ] };
216     key <AD11> { [ bracketright,        braceright,     ucircumflex, Ucircumflex        ] };
217     key <AD12> { [ bracketleft,         braceleft,      scedilla, Scedilla      ] };
218
219     key <AC01> { [ Arabic_alef, Arabic_maddaonalef,     a, A    ] };
220     key <AC02> { [ Arabic_seen,         Arabic_sheen,   s, S    ] };
221     key <AC03> { [  Arabic_dal,         Arabic_thal,    d, D    ] };
222     key <AC04> { [  Arabic_feh, Arabic_hamzaunderalef,  f, F    ] };
223     key <AC05> { [   0x10006af,         Arabic_ghain,   g, G    ] };
224     key <AC06> { [  Arabic_heh,         0x100200c,      h, H    ] };
225     key <AC07> { [   0x1000698, Arabic_hamzaonalef,     j, J    ] };
226     key <AC08> { [   0x10006a9,         Arabic_kaf,     k, K    ] };
227     key <AC09> { [  Arabic_lam,         0x10006b5,      l, L    ] };
228     key <AC10> { [  Arabic_semicolon,   colon,          ecircumflex, Ecircumflex        ] };
229     key <AC11> { [  apostrophe,         quotedbl,       icircumflex, Icircumflex        ] };
230
231     key <AB01> { [ Arabic_zain,         Arabic_dad,     z, Z    ] };
232     key <AB02> { [ Arabic_khah,         Arabic_sad,     x, X    ] };
233     key <AB03> { [ Arabic_jeem,         0x1000686,      c, C    ] };
234     key <AB04> { [   0x10006a4,         Arabic_zah,     v, V    ] };
235     key <AB05> { [ Arabic_beh,          0x1000649,      b, B    ] };
236     key <AB06> { [ Arabic_noon, Arabic_tehmarbuta,      n, N    ] };
237     key <AB07> { [ Arabic_meem, Arabic_tatweel,         m, M    ] };
238     key <AB08> { [ Arabic_comma,        greater,        comma           ] };
239     key <AB09> { [ period,              less,           apostrophe      ] };
240     key <AB10> { [ slash,               Arabic_question_mark,   question        ] };
241
242     include "level3(ralt_switch)"
243
244 };