This file is indexed.

/usr/share/X11/xkb/symbols/ara is in xkb-data 2.23.1-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
default  partial alphanumeric_keys
xkb_symbols "basic" {

    name[Group1]= "Arabic";

    key.type[Group1]="FOUR_LEVEL";
    
    key <TLDE> {  [     Arabic_thal,        Arabic_shadda,            Arabic_percent,               U0609 ]};  // ‎ذ‎ ‎◌ّ‎     ‎٪‎ ‎؉‎
    key <AE01> {  [               1,               exclam,                  Arabic_1,            NoSymbol ]};  // 1 !     ١
    key <AE02> {  [               2,                   at,                  Arabic_2,            NoSymbol ]};  // 2 @     ٢
    key <AE03> {  [               3,           numbersign,                  Arabic_3,            NoSymbol ]};  // 3 #     ٣
    key <AE04> {  [               4,               dollar,                  Arabic_4,            NoSymbol ]};  // 4 $     ٤
    key <AE05> {  [               5,              percent,                  Arabic_5,               U2030 ]};  // 5 %     ٥ ‰
    key <AE06> {  [               6,          asciicircum,                  Arabic_6,            NoSymbol ]};  // 6 ^     ٦
    key <AE07> {  [               7,            ampersand,                  Arabic_7,            NoSymbol ]};  // 7 &     ٧
    key <AE08> {  [               8,             asterisk,                  Arabic_8,            NoSymbol ]};  // 8 *     ٨
    key <AE09> {  [               9,           parenright,                  Arabic_9,            NoSymbol ]};  // 9 )     ٩
    key <AE10> {  [               0,            parenleft,                  Arabic_0,            NoSymbol ]};  // 0 (      ٠
    key <AE11> {  [           minus,           underscore,                    endash,               U2011 ]};  // - _     – Non-Breaking-Hyphen
    key <AE12> {  [           equal,                 plus,                  notequal,               U2248 ]};  // = +     ≠ ≈ 

    key <AD01> {  [      Arabic_dad,         Arabic_fatha,                  NoSymbol,               U2066 ]};  // ‎ض‎ ‎◌َ       LEFT‑TO‑RIGHT ISOLATE
    key <AD02> {  [      Arabic_sad,      Arabic_fathatan,                  NoSymbol,               U2067 ]};  // ‎ص‎ ‎◌ً       RIGHT‑TO‑LEFT ISOLATE
    key <AD03> {  [     Arabic_theh,         Arabic_damma,                  NoSymbol,               U2068 ]};  // ‎ث‎ ‎◌ُ       FIRST STRONG ISOLATE
    key <AD04> {  [      Arabic_qaf,      Arabic_dammatan,                  NoSymbol,               U2069 ]};  // ‎ق‎ ‎◌ٌ       POP DIRECTIONAL ISOLATE
    key <AD05> {  [      Arabic_feh,                UFEF9,                Arabic_veh,            NoSymbol ]};  // ‎ف‎ ‎ﻹ     ‎ڤ
    key <AD06> {  [    Arabic_ghain,Arabic_hamzaunderalef,                  NoSymbol,               U202A ]};  // ‎غ‎ ‎إ‎       LEFT-TO-RIGHT-EMBEDDING
    key <AD07> {  [      Arabic_ain,                grave,                  NoSymbol,               U202B ]};  // ‎ع‎ `       RIGHT-TO-LEFT EMBEDDING
    key <AD08> {  [       Arabic_ha,             division,                  NoSymbol,               U202C ]};  // ‎ه‎ ÷       POP DIRECTIONAL FORMATTING
    key <AD09> {  [     Arabic_khah,             multiply,                  NoSymbol,            NoSymbol ]};  // ‎خ‎ ×
    key <AD10> {  [      Arabic_hah,     Arabic_semicolon,                  NoSymbol,               U200E ]};  // ‎ح‎ ؛       LEFT-TO-RIGHT MARK
    key <AD11> {  [     Arabic_jeem,                 less,              Arabic_tcheh,               U200F ]};  // ‎ج‎ <     ‎چ‎ RIGHT-TO-LEFT MARK
    key <AD12> {  [      Arabic_dal,              greater,                  NoSymbol,               U061C ]};  // ‎د‎ >       ARABIC LETTER MARK

    key <AC01> {  [    Arabic_sheen,         Arabic_kasra,                  NoSymbol,            NoSymbol ]};  // ‎ش‎ ‎◌ِ‎
    key <AC02> {  [     Arabic_seen,      Arabic_kasratan,                  NoSymbol,            NoSymbol ]};  // ‎س‎ ‎◌ٍ‎
    key <AC03> {  [      Arabic_yeh,         bracketright,                  NoSymbol,            NoSymbol ]};  // ‎ي‎ ]
    key <AC04> {  [      Arabic_beh,          bracketleft,                Arabic_peh,            NoSymbol ]};  // ‎ب‎ [     ‎پ‎ 
    key <AC05> {  [      Arabic_lam,               U0FEF7,                  NoSymbol,            NoSymbol ]};  // ‎ل‎ ‎ﻷ‎
    key <AC06> {  [     Arabic_alef,   Arabic_hamzaonalef,                     U0671,            NoSymbol ]};  // ‎ا‎ ‎أ     ‎ٱ‎ 
    key <AC07> {  [      Arabic_teh,       Arabic_tatweel,                  NoSymbol,            NoSymbol ]};  // ‎ت‎ ‎ـ‎
    key <AC08> {  [     Arabic_noon,         Arabic_comma,                     U066B,            NoSymbol ]};  // ‎ن‎ ‎،‎     ‎٫‎
    key <AC09> {  [     Arabic_meem,                slash,                  NoSymbol,            NoSymbol ]};  // ‎م‎ /
    key <AC10> {  [      Arabic_kaf,                colon,                Arabic_gaf,            NoSymbol ]};  // ‎ك‎ :     ‎گ‎
    key <AC11> {  [      Arabic_tah,             quotedbl,                     U27E9,               U200D ]};  // ‎ط‎ "     ⟩ ZWJ
    key <BKSL> {  [       backslash,             ellipsis,                     U27E8,               U202F ]};  // \ …     ⟨ NNBSP

    key <LSGT> {  [             bar,            brokenbar,                  NoSymbol,            NoSymbol ]};  // | ¦ 
    key <AB01> { [Arabic_hamzaonyeh,           asciitilde,            guillemotright,               U203A ]};  // ‎ئ‎ ~     » ›
    key <AB02> {  [    Arabic_hamza,         Arabic_sukun,             guillemotleft,               U2039 ]};  // ‎ء‎ ◌ْ     « ‹
    key <AB03> { [Arabic_hamzaonwaw,           braceright,                  NoSymbol,            NoSymbol ]};  // ‎ؤ }
    key <AB04> {  [       Arabic_ra,            braceleft,                  NoSymbol,            NoSymbol ]};  // ‎ر‎ {
    key <AB05> {  [           UFEFB,                UFEF5,                  NoSymbol,            NoSymbol ]};  // ‎ﻻ‎ ‎ﻵ‎
    key <AB06> {[Arabic_alefmaksura,   Arabic_maddaonalef,   Arabic_superscript_alef,            NoSymbol ]};  // ‎ى‎ ‎آ‎     ‎◌ٰ‎ 
    key <AB07> { [Arabic_tehmarbuta,           apostrophe,                  NoSymbol,            NoSymbol ]};  // ‎ة‎ '
    key <AB08> {  [      Arabic_waw,                comma,                     U066C,            NoSymbol ]};  // ‎و‎ ,     ‎٬
    key <AB09> {  [     Arabic_zain,               period,                Arabic_jeh,            NoSymbol ]};  // ‎ز‎ .     ‎ژ‎
    key <AB10> {  [      Arabic_zah, Arabic_question_mark,                     U066D,               U200C ]};  // ‎ظ‎ ‎؟‎     ‎٭‎ ZWNJ
    
    include       "level3(ralt_switch)"
};

// Synonym for the default
partial alphanumeric_keys
xkb_symbols "qwerty" {
    include "ara(basic)"
    name[Group1]= "Arabic (QWERTY)";
};



// Replaces the Western numeral signs with Arabic-script digits on the keypad, pushing the Western digits to the third level accessible by the right alt key.
// As this set of definitions is unlisted, it is not usable without parallel mapping on the numeric row in the ara(digits) layout which includes it.
partial hidden keypad_keys
xkb_symbols "digits_KP" {
    
    key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD";

    key <KP7>  { [ KP_Home,   Arabic_7, 7, NoSymbol ] };
    key <KP8>  { [ KP_Up,     Arabic_8, 8, NoSymbol ] };
    key <KP9>  { [ KP_Prior,  Arabic_9, 9, NoSymbol ] };

    key <KP4>  { [ KP_Left,   Arabic_4, 4, NoSymbol ] };
    key <KP5>  { [ KP_Begin,  Arabic_5, 5, NoSymbol ] };
    key <KP6>  { [ KP_Right,  Arabic_6, 6, NoSymbol ] };

    key <KP1>  { [ KP_End,    Arabic_1, 1, NoSymbol ] };
    key <KP2>  { [ KP_Down,   Arabic_2, 2, NoSymbol ] };
    key <KP3>  { [ KP_Next,   Arabic_3, 3, NoSymbol ] };

    key <KP0>  { [ KP_Insert, Arabic_0, 0, NoSymbol ] };
    
    include       "kpdl(momayyezoss)"
};

// Replaces the Western numeral signs with Arabic-script digits on the numeric row, pushing the Western digits to the third level accessible by the right alt key.
partial alphanumeric_keys
xkb_symbols "digits" {

    include       "ara(basic)"
    
    name[Group1]= "Arabic (digits)";

    key <TLDE> { [Arabic_thal,Arabic_shadda, percent,U2030]};
    key <AE01> { [ Arabic_1,         exclam, 1, NoSymbol ] };
    key <AE02> { [ Arabic_2,             at, 2, NoSymbol ] };
    key <AE03> { [ Arabic_3,     numbersign, 3, NoSymbol ] };
    key <AE04> { [ Arabic_4,         dollar, 4, NoSymbol ] };
    key <AE05> { [ Arabic_5, Arabic_percent, 5, U0609    ] };
    key <AE06> { [ Arabic_6,    asciicircum, 6, NoSymbol ] };
    key <AE07> { [ Arabic_7,      ampersand, 7, NoSymbol ] };
    key <AE08> { [ Arabic_8,       asterisk, 8, NoSymbol ] };
    key <AE09> { [ Arabic_9,     parenright, 9, NoSymbol ] };
    key <AE10> { [ Arabic_0,      parenleft, 0, NoSymbol ] };

    include       "ara(digits_KP)"
};

// Synonym for the layout with the Latin-script and Arabic-script digits switched
partial alphanumeric_keys
xkb_symbols "qwerty_digits" {
    include "ara(digits)"
    name[Group1]= "Arabic (qwerty/digits)";
};



partial alphanumeric_keys
xkb_symbols "azerty" {
    include "ara(basic)"
    name[Group1]= "Arabic (AZERTY)";

	// The North African Arabic keyboard differs from the Middle East one
	// by the numeric row; it follows French keyboard style.
	//
	// PROBLEM: some characters are inaccessible: ! @ # $ % ^ *
	// Should they go elsewhere?  Replacing " ' that are now doubled?
	// Also, dead_circumflex and dead_diaeresis from French keyboard
	// as well as ugrave are missing, which questions the utility of the
	// other accentuated Latin letters. Maybe this is useful only with
	// a French keyboard in Group1? Then, shouldn't Group1 be filled?

    key <AE01> {  [       ampersand,               1      ]       };
    key <AE02> {  [          eacute,               2      ]       };
    key <AE03> {  [        quotedbl,               3      ]       };
    key <AE04> {  [      apostrophe,               4      ]       };
    key <AE05> {  [       parenleft,               5      ]       };
    key <AE06> {  [           minus,               6      ]       };
    key <AE07> {  [          egrave,               7      ]       };
    key <AE08> {  [      underscore,               8      ]       };
    key <AE09> {  [        ccedilla,               9      ]       };
    key <AE10> {  [          agrave,               0      ]       };
    key <AE11> {  [      parenright,          degree      ]       };
};

partial alphanumeric_keys
xkb_symbols "azerty_digits" {
    include "ara(azerty)"
    name[Group1]= "Arabic (AZERTY/digits)";

    key <AE01> { [      ampersand, Arabic_1, 1, NoSymbol ] };
    key <AE02> { [         eacute, Arabic_2, 2, NoSymbol ] };
    key <AE03> { [       quotedbl, Arabic_3, 3, NoSymbol ] };
    key <AE04> { [     apostrophe, Arabic_4, 4, NoSymbol ] };
    key <AE05> { [      parenleft, Arabic_5, 5, NoSymbol ] };
    key <AE06> { [          minus, Arabic_6, 6, NoSymbol ] };
    key <AE07> { [         egrave, Arabic_7, 7, NoSymbol ] };
    key <AE08> { [     underscore, Arabic_8, 8, NoSymbol ] };
    key <AE09> { [       ccedilla, Arabic_9, 9, NoSymbol ] };
    key <AE10> { [         agrave, Arabic_0, 0, NoSymbol ] };
};




// Arabic keyboard using Buckwalter transliteration
// http://www.qamus.org/transliteration.htm
// Martin Vidner

partial alphanumeric_keys
xkb_symbols "buckwalter" {
    name[Group1]= "Arabic (Buckwalter)";

    // ARABIC LETTER SUPERSCRIPT ALEF
    key <TLDE> {  [       0x1000670,  Arabic_shadda       ]       };

    // Arabic_0 .. Arabic_9 do not work in Kate,
    // Unicode never seems to work worse.
    key <AE01> {  [       0x1000661,   VoidSymbol         ]       };
    key <AE02> {  [       0x1000662,   VoidSymbol         ]       };
    key <AE03> {  [       0x1000663,   VoidSymbol         ]       };
    key <AE04> {  [       0x1000664,   Arabic_sheen       ]       };
    key <AE05> {  [       0x1000665,   Arabic_percent     ]       };
    key <AE06> {  [       0x1000666,   VoidSymbol         ]       };
    key <AE07> {  [       0x1000667,   Arabic_hamzaonwaw  ]       };
    key <AE08> {  [       0x1000668,   Arabic_thal        ]       };
    // ORNATE LEFT PARENTHESIS
    key <AE09> {  [       0x1000669,   0x100fd3e          ]       };
    // ORNATE RIGHT PARENTHESIS
    key <AE10> {  [       0x1000660,   0x100fd3f          ]       };
    key <AE11> {  [       minus,       Arabic_tatweel     ]       };
    key <AE12> {  [       equal,       plus               ]       };

    key <AD01> {  [      Arabic_qaf,   VoidSymbol         ]       };
    key <AD02> {  [      Arabic_waw,   Arabic_hamzaonwaw  ]       };
    key <AD03> {  [      VoidSymbol,   Arabic_ain         ]       };
    key <AD04> {  [      Arabic_ra,    VoidSymbol         ]       };
    key <AD05> {  [      Arabic_teh,   Arabic_tah         ]       };
    key <AD06> {  [      Arabic_yeh,   Arabic_alefmaksura ]       };
    key <AD07> {  [      Arabic_damma, VoidSymbol         ]       };
    key <AD08> {  [      Arabic_kasra, Arabic_hamzaunderalef ]    };
    key <AD09> {  [      Arabic_sukun, Arabic_hamzaonalef ]       };
    key <AD10> {  [      Arabic_tehmarbuta, VoidSymbol    ]       };
    // ARABIC LETTER ALEF WASLA
    key <AD11> {  [      VoidSymbol,   0x1000671          ]       };
    key <AD12> {  [      VoidSymbol,   Arabic_hamzaonyeh  ]       };

    key <AC01> {  [    Arabic_fatha,   Arabic_alef        ]       };
    key <AC02> {  [    Arabic_seen,    Arabic_sad         ]       };
    key <AC03> {  [    Arabic_dal,     Arabic_dad         ]       };
    key <AC04> {  [    Arabic_feh,     Arabic_fathatan    ]       };
    key <AC05> {  [    Arabic_ghain,   VoidSymbol         ]       };
    key <AC06> {  [    Arabic_ha,      Arabic_hah         ]       };
    key <AC07> {  [    Arabic_jeem,    VoidSymbol         ]       };
    key <AC08> {  [    Arabic_kaf,     Arabic_kasratan    ]       };
    key <AC09> {  [    Arabic_lam,     VoidSymbol         ]       };
    key <AC10> {  [    Arabic_semicolon, VoidSymbol       ]       };
    key <AC11> {  [    Arabic_hamza,   VoidSymbol         ]       };

    key <BKSL> {  [    VoidSymbol,     Arabic_maddaonalef ]       };

    key <AB01> {  [    Arabic_zain,    Arabic_zah         ]       };
    key <AB02> {  [    Arabic_khah,    VoidSymbol         ]       };
    key <AB03> {  [    VoidSymbol,     VoidSymbol         ]       };
    key <AB04> {  [    Arabic_theh,    VoidSymbol         ]       };
    key <AB05> {  [    Arabic_beh,     VoidSymbol         ]       };
    key <AB06> {  [    Arabic_noon,    Arabic_dammatan    ]       };
    key <AB07> {  [    Arabic_meem,    VoidSymbol         ]       };
    key <AB08> {  [    Arabic_comma,   Arabic_hamzaunderalef ]    };
    // ARABIC FULL STOP (Urdu)
    key <AB09> {  [    0x10006d4,      Arabic_hamzaonalef ]       };
    key <AB10> {  [    VoidSymbol,     Arabic_question_mark ]     };
};

partial alphanumeric_keys
xkb_symbols "olpc" {
    name[Group1]= "Arabic (OLPC)";

    include "ara(basic)"

    // This OLPC layout comprises the following changes in comparison to the default Arabic one:
    //  ‣ Arabic and European digits are swapped (which entails swapping of the percent and permille signs).
    //  ‣ Lām-ʾalif is eliminated. People type as they pronounce, and lam-alef is just a visual formatting of the
    //    sequence and thus arguably not used on the keyboard. This frees four slots which are used for the following three changes.
    //  ‣ The <TLDE> characters move:
    //     • Thal from <TLDE> to <AB05>
    //     • Shadda from <TLDE> to <AD05>
    //  ‣ £ and € obtain the <AE06> and <AE07> keys, the ^ and & signs previously occupying them take seat at <AB05> and <AC05>.
    //  ‣ The <TLDE> key gets grave ` and asciitilde ~ as on English keyboards.
    //  ‣ In sum the grave and asciitilde are present twice, as their erstwhile places are not removed.
    //  ‣ The braces }{ take the place of the less-than and greater-than >< signs,
    //    but these the place of kasra and kasratan which establish themselves in the braces’ former steads.
    //  ‣ The … character on <BKSL> is replaced by |, because OLPC laptops have no <LSGT> key installed where the bar is else placed.
    
    key <TLDE> {  [           grave,      asciitilde, percent, U2030     ] };

    key <AE01> {  [       Arabic_1,          exclam,  1                  ] };
    key <AE02> {  [       Arabic_2,              at,  2                  ] };
    key <AE03> {  [       Arabic_3,      numbersign,  3                  ] };
    key <AE04> {  [       Arabic_4,          dollar,  4                  ] };
    key <AE05> {  [       Arabic_5,  Arabic_percent,  5,       U0609     ] };
    key <AE06> {  [       Arabic_6,        sterling,  6                  ] };
    key <AE07> {  [       Arabic_7,        EuroSign,  7                  ] };
    key <AE08> {  [       Arabic_8,        asterisk,  8                  ] };
    key <AE09> {  [       Arabic_9,      parenright,  9                  ] };
    key <AE10> {  [       Arabic_0,       parenleft,  0                  ] };

    key <AD05> {  [      Arabic_feh,   Arabic_shadda  ] };

    key <AD11> {  [     Arabic_jeem,      braceright  ] };
    key <AD12> {  [      Arabic_dal,       braceleft  ] };

    key <AC01> {  [    Arabic_sheen,         greater  ] };
    key <AC02> {  [     Arabic_seen,            less  ] };
    key <AC05> {  [      Arabic_lam,       ampersand  ] };
    key <BKSL> {  [       backslash,             bar  ] };

    key <AB03> {  [ Arabic_hamzaonwaw,   Arabic_kasra ] };
    key <AB04> {  [       Arabic_ra,  Arabic_kasratan ] };
    key <AB05> {  [     Arabic_thal,      asciicircum ] };

    include "group(olpc)"
};

partial alphanumeric_keys
xkb_symbols "mac" {
    
    //This is a layout that is compatible with macbooks

    include "ara(digits)"
    name[Group1]= "Arabic (Macintosh)";
    
    key <AE11> {  [            minus,      underscore      ]     };
    key <AE12> {  [            equal,            plus      ]     };
    
    key <TLDE> {  [   Arabic_tatweel,     VoidSymbol       ]	 };
    key <AD03> {  [      Arabic_theh,     Arabic_kasra     ]     };
    key <AD04> {  [       Arabic_qaf,     Arabic_kasratan  ]     };
    key <AD05> {  [       Arabic_feh,     Arabic_damma     ]     };
    key <AD06> {  [     Arabic_ghain,     Arabic_dammatan  ]     };
    key <AD07> {  [       Arabic_ain,     Arabic_sukun     ]     };
    key <AD08> {  [        Arabic_ha,     Arabic_shadda    ]     };
    key <AD09> {  [      Arabic_khah,     bracketright     ]     };
    key <AD10> {  [       Arabic_hah,     bracketleft      ]     };
    key <AD11> {  [      Arabic_jeem,     braceright        ]     };
    key <AD12> {  [Arabic_tehmarbuta,     braceleft       ]     };
    
    key <AC01> {  [    Arabic_sheen,     guillemotright     ]     };
    key <AC02> {  [     Arabic_seen,     guillemotleft    ]     };
    key <AC03> {  [      Arabic_yeh,     Arabic_alefmaksura]     };
    key <AC04> {  [      Arabic_beh,     0x1000670         ]     };
    key <AC05> {  [      Arabic_lam,     VoidSymbol        ]     };
    key <AC06> {  [     Arabic_alef,   Arabic_maddaonalef  ]     };
    key <AC07> {  [      Arabic_teh,     0x1000671         ]     };
    key <AC08> {  [     Arabic_noon,     VoidSymbol        ]     };
    key <AC09> {  [     Arabic_meem,     VoidSymbol        ]     };
    key <AC10> {  [      Arabic_kaf,            colon      ]     };
    key <AC11> {  [      Arabic_semicolon,      quotedbl   ]     };
    
    key <BKSL> {  [       backslash,             bar       ]     };
    
    key <LSGT> {  [   Arabic_tatweel,     VoidSymbol               ]     };
    key <AB01> {  [       Arabic_zah,     VoidSymbol               ]     };
    key <AB02> {  [       Arabic_tah,     VoidSymbol               ]     };
    key <AB03> {  [      Arabic_thal,     Arabic_hamzaonyeh        ]     };
    key <AB04> {  [       Arabic_dal,     Arabic_hamza             ]     };
    key <AB05> {  [      Arabic_zain,     Arabic_hamzaonalef       ]     };
    key <AB06> {  [        Arabic_ra,     Arabic_hamzaunderalef    ]     };
    key <AB07> {  [       Arabic_waw,     Arabic_hamzaonwaw        ]     };
    key <AB08> {  [     Arabic_comma,     greater                     ]     };
    key <AB09> {  [           period,     less                  ]     };
    key <AB10> {  [            slash,     Arabic_question_mark     ]     };
    
};

// EXTRAS:

partial alphanumeric_keys
	xkb_symbols "sun_type6" {
	include "sun_vndr/ara(sun_type6)"
};

partial alphanumeric_keys
xkb_symbols "basic_ext" {

    name[Group1]= "Arabic (with extensions for Arabic-written other languages and European digits preferred)";

    key.type[Group1]="FOUR_LEVEL";
    
    key <TLDE> {  [     Arabic_thal,        Arabic_shadda,            Arabic_percent,         Arabic_ddal ]};  // ‎ذ‎ ‎◌ّ‎      ‎٪‎ ‎ڈ‎
    key <AE01> {  [               1,               exclam,                  Arabic_1,             Farsi_1 ]};  // 1 !      ١ ۱
    key <AE02> {  [               2,                   at,                  Arabic_2,             Farsi_2 ]};  // 2 @      ٢ ۲
    key <AE03> {  [               3,           numbersign,                  Arabic_3,             Farsi_3 ]};  // 3 #      ٣ ۳
    key <AE04> {  [               4,               dollar,                  Arabic_4,             Farsi_4 ]};  // 4 $      ٤ ۴
    key <AE05> {  [               5,              percent,                  Arabic_5,             Farsi_5 ]};  // 5 %      ٥ ۵
    key <AE06> {  [               6,            Farsi_yeh,                  Arabic_6,             Farsi_6 ]};  // 6 ‎ی‎      ٦ ۶
    key <AE07> {  [               7,            ampersand,                  Arabic_7,             Farsi_7 ]};  // 7 &      ٧ ۷
    key <AE08> {  [               8,             asterisk,                  Arabic_8,             Farsi_8 ]};  // 8 *      ٨ ۸
    key <AE09> {  [               9,           parenright,                  Arabic_9,             Farsi_9 ]};  // 9 )      ٩ ۹
    key <AE10> {  [               0,            parenleft,                  Arabic_0,             Farsi_0 ]};  // 0 (      ٠ ۰
    key <AE11> {  [           minus,           underscore,                    endash,               U2011 ]};  // - _     – Non-Breaking-Hyphen
    key <AE12> {  [           equal,                 plus,                  notequal,               U2248 ]};  // = +     ≠ ≈ 

    key <AD01> {  [      Arabic_dad,         Arabic_fatha,                     U0689,               U2066 ]};  // ‎ض‎ ‎◌َ     ډ LEFT‑TO‑RIGHT ISOLATE
    key <AD02> {  [      Arabic_sad,      Arabic_fathatan,                     U06D5,               U2067 ]};  // ‎ص‎ ‎◌ً     ە RIGHT‑TO‑LEFT ISOLATE
    key <AD03> {  [     Arabic_theh,         Arabic_damma,                     U067F,               U2068 ]};  // ‎ث‎ ‎◌ُ     ٿ FIRST STRONG ISOLATE
    key <AD04> {  [      Arabic_qaf,      Arabic_dammatan,                     U06A6,               U2069 ]};  // ‎ق‎ ‎◌ٌ     ڦ POP DIRECTIONAL ISOLATE
    key <AD05> {  [      Arabic_feh,                UFEF9,                Arabic_veh,               U068D ]};  // ‎ف‎ ‎ﻹ     ‎ڤ ‎ڍ‎
    key <AD06> {  [    Arabic_ghain,Arabic_hamzaunderalef,                     U0685,               U202A ]};  // ‎غ‎ ‎إ‎     ‎څ‎ LEFT-TO-RIGHT-EMBEDDING
    key <AD07> {  [      Arabic_ain,          Arabic_rreh,           Arabic_heh_goal,               U202B ]};  // ‎ع‎ ‎ڑ‎     ‎ہ‎ RIGHT-TO-LEFT EMBEDDING
    key <AD08> {  [       Arabic_ha,             division,    Arabic_heh_doachashmee,               U202C ]};  // ‎ه‎ ÷     ‎ھ‎ POP DIRECTIONAL FORMATTING
    key <AD09> {  [     Arabic_khah,             multiply,                     U0681,               U0687 ]};  // ‎خ‎ ×     ‎ځ‎ ‎ڇ‎
    key <AD10> {  [      Arabic_hah,     Arabic_semicolon,                     U0683,               U200E ]};  // ‎ح‎ ؛     ‎ڃ‎ LEFT-TO-RIGHT MARK
    key <AD11> {  [     Arabic_jeem,                 less,              Arabic_tcheh,               U200F ]};  // ‎ج‎ <     ‎چ‎ RIGHT-TO-LEFT MARK
    key <AD12> {  [      Arabic_dal,              greater,                     U0684,               U061C ]};  // ‎د‎ >     ‎ڄ‎ ARABIC LETTER MARK

    key <AC01> {  [    Arabic_sheen,         Arabic_kasra,                     U06C6,               U06C9 ]};  // ‎ش‎ ‎◌ِ‎     ‎ۆ‎ ‎ۉ‎
    key <AC02> {  [     Arabic_seen,      Arabic_kasratan,                     U067C,               U0680 ]};  // ‎س‎ ‎◌ٍ‎     ‎ټ‎ ‎ڀ‎
    key <AC03> {  [      Arabic_yeh,         bracketright,                     U06D0,               U06CD ]};  // ‎ي‎ ]     ‎ې‎ ‎ۍ‎
    key <AC04> {  [      Arabic_beh,          bracketleft,                Arabic_peh,               U067B ]};  // ‎ب‎ [     ‎پ‎ ‎ٻ‎
    key <AC05> {  [      Arabic_lam,               U0FEF7,                     U076A,               U0658 ]};  // ‎ل‎ ‎ﻷ‎     ‎ݪ‎  ٘‎◌‎
    key <AC06> {  [     Arabic_alef,   Arabic_hamzaonalef,                     U0671,  Arabic_noon_ghunna ]};  // ‎ا‎ ‎أ     ‎ٱ‎ ‎ں‎
    key <AC07> {  [      Arabic_teh,       Arabic_tatweel,                     U067D,               U067A ]};  // ‎ت‎ ‎ـ‎     ‎ٽ‎ ٺ‎ 
    key <AC08> {  [     Arabic_noon,         Arabic_comma,                     U066B,               U06BB ]};  // ‎ن‎ ‎،‎     ‎٫‎ ڻ‎
    key <AC09> {  [     Arabic_meem,                slash,                     U06B3,               U06B1 ]};  // ‎م‎ /     ‎ڳ‎ ‎ڱ‎
    key <AC10> {  [      Arabic_kaf,                colon,                Arabic_gaf,        Arabic_keheh ]};  // ‎ك‎ :     ‎گ‎ ‎ک‎
    key <AC11> {  [      Arabic_tah,             quotedbl,                     U27E9,               U200D ]};  // ‎ط‎ "     ⟩ ZWJ
    key <BKSL> {  [       backslash,             ellipsis,                     U27E8,               U202F ]};  // \ …     ⟨ NNBSP

    key <LSGT> {  [             bar,            brokenbar,                     U06C0,               U0620 ]};  // | ¦     ‎ۀ‎ ‎ؠ‎
    key <AB01> { [Arabic_hamzaonyeh,           asciitilde,            guillemotright,               U203A ]};  // ‎ئ‎ ~     » ›
    key <AB02> {  [    Arabic_hamza,         Arabic_sukun,             guillemotleft,               U2039 ]};  // ‎ء‎ ◌ْ     « ‹
    key <AB03> { [Arabic_hamzaonwaw,           braceright,                     U06C7,               U0677 ]};  // ‎ؤ }     ‎ۇ‎ ‎ٷ‎
    key <AB04> {  [       Arabic_ra,            braceleft,                     U0693,               U0699 ]};  // ‎ر‎ {     ‎ړ ‎ڙ‎
    key <AB05> {  [           UFEFB,                UFEF5,                     U06AB,               U06AD ]};  // ‎ﻻ‎ ‎ﻵ‎     ‎ګ‎ ‎ڭ‎
    key <AB06> {[Arabic_alefmaksura,   Arabic_maddaonalef,   Arabic_superscript_alef,    Arabic_yeh_baree ]};  // ‎ى‎ ‎آ‎     ‎◌ٰ‎ ‎ے‎
    key <AB07> { [Arabic_tehmarbuta,           apostrophe,           Arabic_fullstop,               U06AA ]};  // ‎ة‎ '     ۔ ‎ڪ‎
    key <AB08> {  [      Arabic_waw,                comma,                     U066C,               U06CB ]};  // ‎و‎ ,     ‎٬‎ ‎ۋ‎
    key <AB09> {  [     Arabic_zain,               period,                Arabic_jeh,               U0696 ]};  // ‎ز‎ .     ‎ژ‎ ‎ږ‎
    key <AB10> {  [      Arabic_zah, Arabic_question_mark,               Arabic_tteh,               U200C ]};  // ‎ظ‎ ‎؟‎     ‎ٹ‎ ZWNJ
    
    include       "level3(ralt_switch)"
};

// Replaces the Western numeral signs with Arabic-script digits on the keypad, pushing the Western digits to the third level accessible by the right alt key.
// As this set of definitions is unlisted, it is not usable without parallel mapping on the numeric row in the ara(basic_ext_digits) layout which includes it.
partial hidden keypad_keys
xkb_symbols "basic_ext_digits_KP" {
    
    key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD";

    key <KP7>  { [ KP_Home,   Arabic_7, 7, Farsi_7 ] };
    key <KP8>  { [ KP_Up,     Arabic_8, 8, Farsi_8 ] };
    key <KP9>  { [ KP_Prior,  Arabic_9, 9, Farsi_9 ] };

    key <KP4>  { [ KP_Left,   Arabic_4, 4, Farsi_4 ] };
    key <KP5>  { [ KP_Begin,  Arabic_5, 5, Farsi_5 ] };
    key <KP6>  { [ KP_Right,  Arabic_6, 6, Farsi_6 ] };

    key <KP1>  { [ KP_End,    Arabic_1, 1, Farsi_1 ] };
    key <KP2>  { [ KP_Down,   Arabic_2, 2, Farsi_2 ] };
    key <KP3>  { [ KP_Next,   Arabic_3, 3, Farsi_3 ] };

    key <KP0>  { [ KP_Insert, Arabic_0, 0, Farsi_0 ] };
    
    include       "kpdl(momayyezoss)"
};

// Replaces the Western numeral signs with Arabic-script digits on the numeric row, pushing the Western digits to the third level accessible by the right alt key.
// The alternative numeral glyphs used in some languages that employ the Arabic script are featured in the fourth layer.
partial alphanumeric_keys
xkb_symbols "basic_ext_digits" {

    include       "ara(basic_ext)"
    
    name[Group1]= "Arabic (with extensions for Arabic-written other languages and Arabic digits preferred)";

    key <TLDE> { [Arabic_thal,Arabic_shadda, percent, Arabic_ddal ]};
    key <AE01> { [ Arabic_1,         exclam, 1, Farsi_1 ] };
    key <AE02> { [ Arabic_2,             at, 2, Farsi_2 ] };
    key <AE03> { [ Arabic_3,     numbersign, 3, Farsi_3 ] };
    key <AE04> { [ Arabic_4,         dollar, 4, Farsi_4 ] };
    key <AE05> { [ Arabic_5, Arabic_percent, 5, Farsi_5 ] };
    key <AE06> { [ Arabic_6,      Farsi_yeh, 6, Farsi_6 ] };
    key <AE07> { [ Arabic_7,      ampersand, 7, Farsi_7 ] };
    key <AE08> { [ Arabic_8,       asterisk, 8, Farsi_8 ] };
    key <AE09> { [ Arabic_9,     parenright, 9, Farsi_9 ] };
    key <AE10> { [ Arabic_0,      parenleft, 0, Farsi_0 ] };

    include       "ara(basic_ext_digits_KP)"
};

// In this layout the Ugaritic characters get the places of the Arabic characters with the matching sound values.
partial alphanumeric_keys
xkb_symbols "uga" {

    name[Group1]= "Ugaritic instead of Arabic";

    key.type[Group1]="TWO_LEVEL";

    key <TLDE> { [   U1038F,      NoSymbol       ]};  // 𐎏
    key <AE01> { [        1,      exclam         ]};  // 1 !
    key <AE02> { [        2,      at             ]};  // 2 @
    key <AE03> { [        3,      numbersign     ]};  // 3 #
    key <AE04> { [        4,      dollar         ]};  // 4 $
    key <AE05> { [        5,      percent        ]};  // 5 %
    key <AE06> { [        6,      asciicircum    ]};  // 6 ^
    key <AE07> { [        7,      ampersand      ]};  // 7 &
    key <AE08> { [        8,      asterisk       ]};  // 8 *
    key <AE09> { [        9,      parenleft      ]};  // 9 (
    key <AE10> { [        0,      parenright     ]};  // 0 )
    key <AE11> { [    minus,      underscore     ]};  // - _
    key <AE12> { [    equal,      plus           ]};  // = +

    key <AD01> { [   U1039D,      NoSymbol       ]};  // 𐎝
    key <AD02> { [   U10395,      NoSymbol       ]};  // 𐎕
    key <AD03> { [   U10398,      NoSymbol       ]};  // 𐎘
    key <AD04> { [   U10396,      NoSymbol       ]};  // 𐎖
    key <AD05> { [   U10394,      NoSymbol       ]};  // 𐎔
    key <AD06> { [   U10399,      NoSymbol       ]};  // 𐎙
    key <AD07> { [   U10393,      grave          ]};  // 𐎓 `
    key <AD08> { [   U10385,      division       ]};  // 𐎅 ÷
    key <AD09> { [   U10383,      multiply       ]};  // 𐎃 ×
    key <AD10> { [   U10388,      semicolon      ]};  // 𐎈 ;
    key <AD11> { [   U10382,      greater        ]};  // 𐎂 >
    key <AD12> { [   U10384,      less           ]};  // 𐎄 <

    key <AC01> { [   U1038C,      U27E8          ]};  // 𐎌 ⟨
    key <AC02> { [   U10392,      U27E9          ]};  // 𐎒 ⟩
    key <AC03> { [   U1038A,      bracketleft    ]};  // 𐎊 [
    key <AC04> { [   U10381,      bracketright   ]};  // 𐎁 ]
    key <AC05> { [   U1038D,      NoSymbol       ]};  // 𐎍
    key <AC06> { [   U10380,      NoSymbol       ]};  // 𐎀
    key <AC07> { [   U1039A,      NoSymbol       ]};  // 𐎚
    key <AC08> { [   U10390,      NoSymbol       ]};  // 𐎐
    key <AC09> { [   U1038E,      slash          ]};  // 𐎎 /
    key <AC10> { [   U1038B,      colon          ]};  // 𐎋:
    key <AC11> { [   U10389,      quotedbl       ]};  // 𐎉  "
    key <BKSL> { [backslash,      ellipsis       ]};  // \ …

    key <LSGT> { [      bar,      endash         ]};  // | –
    key <AB01> { [   U1039B,      guillemotleft  ]};  // 𐎛 «
    key <AB02> { [ NoSymbol,      guillemotright ]};  //   »
    key <AB03> { [   U1039C,      braceleft      ]};  // 𐎜 {
    key <AB04> { [   U10397,      braceright     ]};  // 𐎗 }
    key <AB05> { [   U1039F,      U2039          ]};  // 𐎟 ‹
    key <AB06> { [ question,      U203A          ]};  // ? ›
    key <AB07> { [   U002BC,      apostrophe     ]};  // ʼ '
    key <AB08> { [   U10386,      comma          ]};  // 𐎆 ,
    key <AB09> { [   U10387,      period         ]};  // 𐎇 .
    key <AB10> { [   U10391,      periodcentered ]};  // 𐎑 ·

};