VulpesOS/gaia/apps/keyboard/js/layouts/ar.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

73 lines
1.7 KiB
JavaScript
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Keyboards.ar = {
label: 'Arabic',
shortLabel: 'Ar',
menuLabel: 'العربية',
secondLayout: true,
specificCssRule: true,
types: ['text', 'url', 'email'],
alternateLayoutKey: '123',
basicLayoutKey: 'أ ب ج',
width: 11,
lang: 'ar',
alt : {
'غ': 'إ آ',
'ا': 'أ ء',
'ى': 'ئ',
'و': 'ؤ',
'ط': 'ظ'
},
keys: [
[
{ value: 'ض' }, { value: 'ص' }, { value: 'ث' }, { value: 'ق' },
{ value: 'ف' }, { value: 'غ' } , { value: 'ع' }, { value: 'ه' },
{ value: 'خ' }, { value: 'ح' }, { value: 'ج' }
], [
{ value: 'ش' }, { value: 'س' }, { value: 'ي' }, { value: 'ب' },
{ value: 'ل' } , { value: 'ا' }, { value: 'ت' }, { value: 'ن' },
{ value: 'م' }, { value: 'ك' }
], [
{ value: '⇪', ratio: 1.5, keyCode: KeyEvent.DOM_VK_CAPS_LOCK },
{ value: 'ذ' }, { value: 'د' }, { value: 'ر' }, { value: 'ى' },
{ value: 'ة' }, { value: 'و' }, { value: 'ز' }, { value: 'ط' },
{ value: '⌫', ratio: 1.5, keyCode: KeyEvent.DOM_VK_BACK_SPACE }
], [
{ value: '&nbsp', ratio: 9, keyCode: KeyboardEvent.DOM_VK_SPACE },
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN }
]
],
upperCase: {
ض: 'َ',
ص: 'ً',
ث: 'ُ',
ق: 'ٌ',
ف: 'ْ',
غ: 'ّ',
ع: 'ِ',
ه: 'ٍ',
خ: '’',
ح: ',',
ج: '؛',
ش: '\\',
س: ']',
ي: '[',
ب: 'ـ',
ل: 'إ',
ا: 'أ',
ت: 'آ',
ن: '،',
م: '/',
ك: ':',
ة: '\"',
ء: 'ئ',
ظ: 'ؤ',
ط: '؟',
ذ: '=',
د: '-',
ز: '×',
ر: '÷',
و: '+'
},
textLayoutOverwrite: {
',': '،'
}
};