forked from bombsquad-community/plugin-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharabic_keyboard.py
More file actions
32 lines (25 loc) · 991 Bytes
/
Copy patharabic_keyboard.py
File metadata and controls
32 lines (25 loc) · 991 Bytes
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
# ba_meta require api 9
import bauiv1
# Full Arabic characters (real Arabic keyboard layout simulation)
arabic_chars = [
list('ضصثقفغعهخحج'), # Row 1: QWERTY top
list('شسيبلاتنمكط'), # Row 2: QWERTY middle
list('ئءؤرلاىةوزظ'), # Row 3: QWERTY bottom (with 'لا' and more)
]
# Fill each row to exactly 10 characters
for row in arabic_chars:
while len(row) < 10:
row.append('') # Invisible char
# Arabic numerals and essential symbols
arabic_nums = list('١٢٣٤٥٦٧٨٩٠') + list('؟،؛ـ“”أإآًٍُِّْ')[:16]
while len(arabic_nums) < 26:
arabic_nums.append('')
# ba_meta export bauiv1.Keyboard
class ArabicKeyboard(bauiv1.Keyboard):
"""Arabic Keyboard by \ue048Freaku"""
name = 'Arabic Keyboard by yANES'
chars = arabic_chars
nums = arabic_nums
pages = {
'symbols': tuple('!@#$%^&*()-_=+[{]}\\|;:\'",<.>/?')[:26]
}