aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/symbols/ir
blob: 2559e7f14894dfccd073571709bbe52ca4606fe3 (plain)
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
// $XKeyboardConfig$

// Iranian keyboard layout

////////////////////////////////////////
// Persian layout,
// based on
// Information Technology – Layout of Persian Letters and Symbols on Computer Keyboards
// ISIRI 9147 – 1st Edition
// Institute of Standards and Industrial Research of Iran
// http://www.isiri.org/UserStd/DownloadStd.aspx?id=9147
// http://behnam.esfahbod.info/standards/isiri-keyboard-9147.pdf
//
// Author: Behnam Esfahbod <behnam@esfahbod.info>
//

partial default alphanumeric_keys
xkb_symbols "pes" {
    name[Group1]= "Iran";

    include "ir(pes_part_basic)";
    include "ir(pes_part_ext)";

    include "nbsp(zwnj2nb3nnb4)";
    include "level3(ralt_switch)";
};


partial alphanumeric_keys
xkb_symbols "pes_keypad" {
    name[Group1]= "Iran - Persian, with Persian Keypad";

    include "ir(pes_part_basic)";
    include "ir(pes_part_keypad)";

    include "nbsp(zwnj2nb3nnb4)";
    include "level3(ralt_switch)";
};

partial hidden alphanumeric_keys
xkb_symbols "pes_part_basic" {

    // Persian digits
    key <AE01> { [ 0x10006f1,	exclam,		quoteleft		] };
    key <AE02> { [ 0x10006f2,	0x100066c,	at			] };
    key <AE03> { [ 0x10006f3,	0x100066b,	numbersign		] };
    key <AE04> { [ 0x10006f4,	0x100fdfc,	dollar			] };
    key <AE05> { [ 0x10006f5,	0x100066a,	percent			] };
    key <AE06> { [ 0x10006f6,	multiply,	asciicircum		] };
    key <AE07> { [ 0x10006f7,	Arabic_comma,	ampersand		] };
    key <AE08> { [ 0x10006f8,	asterisk,	enfilledcircbullet	] };
    key <AE09> { [ 0x10006f9,	parenright,	0x100200e		] };
    key <AE10> { [ 0x10006f0,	parenleft,	0x100200f		] };

    // Persian letters and symbols
    key <AD01> { [ Arabic_dad,		Arabic_sukun,		degree		] };
    key <AD02> { [ Arabic_sad,		Arabic_dammatan,	VoidSymbol	] };
    key <AD03> { [ Arabic_theh,		Arabic_kasratan,	0x13a4		] };
    key <AD04> { [ Arabic_qaf,		Arabic_fathatan,	VoidSymbol	] };
    key <AD05> { [ Arabic_feh,		Arabic_damma,		VoidSymbol	] };
    key <AD06> { [ Arabic_ghain,	Arabic_kasra,		VoidSymbol	] };
    key <AD07> { [ Arabic_ain,		Arabic_fatha,		VoidSymbol	] };
    key <AD08> { [ Arabic_heh,		Arabic_shadda,		0x100202d	] };
    key <AD09> { [ Arabic_khah,		bracketright,		0x100202e	] };
    key <AD10> { [ Arabic_hah,		bracketleft,		0x100202c	] };
    key <AD11> { [ Arabic_jeem,		braceright,		0x100202a	] };
    key <AD12> { [ 0x1000686,		braceleft,		0x100202b	] };

    key <AC01> { [ Arabic_sheen,	Arabic_hamzaonwaw,	VoidSymbol	] };
    key <AC02> { [ Arabic_seen,		Arabic_hamzaonyeh,	VoidSymbol	] };
    key <AC03> { [ 0x10006cc,		Arabic_yeh,		Arabic_alefmaksura ] };
    key <AC04> { [ Arabic_beh,		Arabic_hamzaunderalef,	VoidSymbol	] };
    key <AC05> { [ Arabic_lam,		Arabic_hamzaonalef,	VoidSymbol	] };
    key <AC06> { [ Arabic_alef,		Arabic_maddaonalef,	0x1000671	] };
    key <AC07> { [ Arabic_teh,		Arabic_tehmarbuta,	VoidSymbol	] };
    key <AC08> { [ Arabic_noon,		guillemotright,		0x100fd3e	] };
    key <AC09> { [ Arabic_meem,		guillemotleft,		0x100fd3f	] };
    key <AC10> { [ 0x10006a9,		colon,			semicolon	] };
    key <AC11> { [ 0x10006af,		Arabic_semicolon,	quotedbl	] };

    key <AB01> { [ Arabic_zah,		Arabic_kaf,		VoidSymbol	] };
    key <AB02> { [ Arabic_tah,		0x1000653,		VoidSymbol	] };
    key <AB03> { [ Arabic_zain,		0x1000698,		VoidSymbol	] };
    key <AB04> { [ Arabic_ra,		0x1000670,		0x1000656	] };
    key <AB05> { [ Arabic_thal,		0x100200c,		0x100200d	] };
    key <AB06> { [ Arabic_dal,		0x1000654,		0x1000655	] };
    key <AB07> { [ 0x100067e,		Arabic_hamza,		ellipsis	] };
    key <AB08> { [ Arabic_waw,		greater,		comma		] };
    key <AB09> { [ period,		less,			apostrophe	] };
    key <AB10> { [ slash,		Arabic_question_mark,	question	] };

    key <TLDE> { [ 0x100200d,		division,		asciitilde	] };
    key <AE11> { [ minus,		Arabic_tatweel,		underscore	] };
    key <AE12> { [ equal,		plus,			0x1002212	] };
    key <BKSL> { [ backslash,		bar,			0x1002010	] };
};

partial hidden alphanumeric_keys
xkb_symbols "pes_part_ext" {

    // Persian and ASCII digits
    key <AE01> { [ 0x10006f1,	exclam,		quoteleft,		1	] };
    key <AE02> { [ 0x10006f2,	0x100066c,	at,			2	] };
    key <AE03> { [ 0x10006f3,	0x100066b,	numbersign,		3	] };
    key <AE04> { [ 0x10006f4,	0x100fdfc,	dollar,			4	] };
    key <AE05> { [ 0x10006f5,	0x100066a,	percent,		5	] };
    key <AE06> { [ 0x10006f6,	multiply,	asciicircum,		6	] };
    key <AE07> { [ 0x10006f7,	Arabic_comma,	ampersand,		7	] };
    key <AE08> { [ 0x10006f8,	asterisk,	enfilledcircbullet,	8	] };
    key <AE09> { [ 0x10006f9,	parenright,	0x100200e,		9	] };
    key <AE10> { [ 0x10006f0,	parenleft,	0x100200f,		0	] };
};

partial hidden alphanumeric_keys
xkb_symbols "pes_part_keypad" {

    // Persian digits and Mathematical operators
    key <KPDV> { [ division,	XF86_Ungrab	] };
    key <KPMU> { [ multiply,	XF86_ClearGrab	] };
    key <KPSU> { [ 0x1002212,	XF86_Prev_VMode	] };
    key <KPAD> { [ plus,	XF86_Next_VMode	] };

    key <KPEN> { [ KP_Enter	] };
    key <KPEQ> { [ equal	] };

    key <KP7>  { [ KP_Home,	0x10006f7	] };
    key <KP8>  { [ KP_Up,	0x10006f8	] };
    key <KP9>  { [ KP_Prior,	0x10006f9	] };

    key <KP4>  { [ KP_Left,	0x10006f4	] };
    key <KP5>  { [ KP_Begin,	0x10006f5	] };
    key <KP6>  { [ KP_Right,	0x10006f6	] };

    key <KP1>  { [ KP_End,	0x10006f1	] };
    key <KP2>  { [ KP_Down,	0x10006f2	] };
    key <KP3>  { [ KP_Next,	0x10006f3	] };

    key <KP0>  { [ KP_Insert,	0x10006f0	] };
    key <KPDL> { [ KP_Delete,	0x100066b	] };
};


////////////////////////////////////////
// Kurdish Layout

partial alphanumeric_keys
xkb_symbols "ku" {
    include "tr(ku)"
    name[Group1]= "Iran - Kurdish, Latin Q";
};

partial alphanumeric_keys
xkb_symbols "ku_f" {
    include "tr(ku_f)"
    name[Group1]= "Iran - Kurdish, (F)";
};

partial alphanumeric_keys
xkb_symbols "ku_alt" {
    include "tr(ku_alt)"
    name[Group1]= "Iran - Kurdish, Latin Alt-Q";
};

////////////////////////////////////////
// Kurdish Soranî Bahdînî (Arabic) keyboard layout,
// based on the Kurdî Soranî Bahdînî keyboard from KurdITGroup
// which is based on National Iranian Keyboard Standard (ISIRI 2901:1994),
// with additions.
//
// Copyright (C) 2006 Erdal Ronahî, published under the GPL v2
//
// Special copyright note: author explicitly permitted to license this 
// layout under MIT/X11 license, for details see
// https://bugs.freedesktop.org/show_bug.cgi?id=9541
//
// Author: Erdal Ronahî  <erdal.ronahi@gmail.com>
//
// Kurdish Arabic-Latin Layout for Soranî

partial alphanumeric_keys
xkb_symbols "ku_ara" {
    name[Group1]= "Iran - Kurdish, Arabic-Latin";

    // Other 3-Level symbols
    key <TLDE> { [ 0x100200d,		division,		asciitilde	] };
    key <BKSL> { [ backslash,		bar,			ccedilla, Ccedilla	] };

    // Digits
    key <AE01> { [ 1,	exclam,		0x10006f1,	quoteleft	] };
    key <AE02> { [ 2,	at, 		0x10006f2,	at		] };
    key <AE03> { [ 3,	numbersign,	0x10006f3,	0x100066b	] };
    key <AE04> { [ 4,	dollar,		0x10006f4, 	0x100fdfc	] };
    key <AE05> { [ 5,	percent,	0x10006f5,	0x100066a	] };
    key <AE06> { [ 6,	asciicircum,	0x10006f6,	multiply	] };
    key <AE07> { [ 7,	ampersand,	0x10006f7, 	Arabic_comma	] };
    key <AE08> { [ 8,	asterisk,	0x10006f8,	enfilledcircbullet	] };
    key <AE09> { [ 9,	parenright,	0x10006f9,	0x100200e	] };
    key <AE10> { [ 0,	parenleft,	0x10006f0,	0x100200f	] };
    key <AE11> { [ minus,		Arabic_tatweel,		underscore	] };
    key <AE12> { [ equal,		plus,			0x1002212	] };

    key <AD01> { [         Arabic_qaf,            X,  q,  Q ] };
    key <AD02> { [         Arabic_waw,            X,  w,  W ] };
    key <AD03> { [          0x10006d5,   Arabic_heh,  e,  E ] };
    key <AD04> { [         Arabic_ra ,    0x1000695,  r,  R ] };
    key <AD05> { [         Arabic_teh,   Arabic_tah,  t,  T ] };
    key <AD06> { [          0x10006cc,    0x10006ce,  y,  Y ] };
    key <AD07> { [  Arabic_hamzaonyeh, Arabic_hamza,  u,  U ] };
    key <AD08> { [         Arabic_hah,   Arabic_ain,  i,  I ] };
    key <AD09> { [          0x10006c6, Arabic_hamzaonwaw,  o,  O ] };
    key <AD10> { [          0x100067e,  Arabic_theh,  p,  P ] };
    key <AD11> { [ bracketright,	braceright,	ucircumflex, Ucircumflex	] };
    key <AD12> { [ bracketleft,		braceleft,	scedilla, Scedilla	] };

    key <AC01> { [ Arabic_alef,	Arabic_maddaonalef,	a, A	] };
    key <AC02> { [ Arabic_seen,		Arabic_sheen,	s, S	] };
    key <AC03> { [  Arabic_dal,		Arabic_thal,	d, D	] };
    key <AC04> { [  Arabic_feh,	Arabic_hamzaunderalef,	f, F	] };
    key <AC05> { [   0x10006af,		Arabic_ghain,	g, G	] };
    key <AC06> { [  Arabic_heh,		0x100200c,	h, H	] };
    key <AC07> { [   0x1000698,	Arabic_hamzaonalef,	j, J	] };
    key <AC08> { [   0x10006a9,		Arabic_kaf,	k, K	] };
    key <AC09> { [  Arabic_lam,		0x10006b5,	l, L	] };
    key <AC10> { [  Arabic_semicolon, 	colon,		ecircumflex, Ecircumflex	] };
    key <AC11> { [  apostrophe, 	quotedbl,	icircumflex, Icircumflex	] };

    key <AB01> { [ Arabic_zain,		Arabic_dad,	z, Z	] };
    key <AB02> { [ Arabic_khah,		Arabic_sad,	x, X	] };
    key <AB03> { [ Arabic_jeem,		0x1000686,	c, C	] };
    key <AB04> { [   0x10006a4,		Arabic_zah,	v, V	] };
    key <AB05> { [ Arabic_beh,		0x1000649,	b, B	] };
    key <AB06> { [ Arabic_noon,	Arabic_tehmarbuta,	n, N	] };
    key <AB07> { [ Arabic_meem,	Arabic_tatweel,		m, M	] };
    key <AB08> { [ Arabic_comma,	greater,	comma		] };
    key <AB09> { [ period,		less,		apostrophe	] };
    key <AB10> { [ slash,		Arabic_question_mark, 	question	] };

    include "nbsp(zwnj2nb3)"
    include "level3(ralt_switch)"
};