From d645c4b3cca8ba5f36ab571b6359cbf9c7c43316 Mon Sep 17 00:00:00 2001 From: imAnesYT Date: Wed, 28 May 2025 17:06:55 +0100 Subject: [PATCH] Add files via upload --- plugins/utilities/arabic_keyboard.py | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/utilities/arabic_keyboard.py diff --git a/plugins/utilities/arabic_keyboard.py b/plugins/utilities/arabic_keyboard.py new file mode 100644 index 0000000..d2e1143 --- /dev/null +++ b/plugins/utilities/arabic_keyboard.py @@ -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] + } \ No newline at end of file