mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Add files via upload
This commit is contained in:
parent
5724c6870b
commit
d645c4b3cc
1 changed files with 30 additions and 0 deletions
30
plugins/utilities/arabic_keyboard.py
Normal file
30
plugins/utilities/arabic_keyboard.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# 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]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue