Skip to content

Commit

Permalink
Create the 11 letters Persian keyboard
Browse files Browse the repository at this point in the history
Create the 11 letters Persian keyboard, need to try and compare with the 10 letters before choosing the best option.
  • Loading branch information
Thatoo committed Sep 2, 2015
1 parent d2e7dde commit 339a1ac
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions apps/keyboard/js/layouts/fa-11.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Keyboards.fa = {
label: 'Persian',
shortLabel: 'Fa',
menuLabel: 'فارسی',
secondLayout: true,
specificCssRule: true,
types: ['text', 'url', 'email'],
autoCorrectLanguage: 'fa',
alternateLayoutKey: '123',
basicLayoutKey: 'أ ب ج',
lang: 'fa',
alt : {
'ع': 'غ',
'ا': 'آ',
'گ': 'ئ',
'.' :',?!-;:…'
},
keys: [
[
{ value: 'ض' }, { value: 'ص' }, { value: 'ث' }, { value: 'ق' },
{ value: 'ف' }, { value: 'ع' }, { value: 'ه' },
{ value: 'خ' }, { value: 'ح' }, { 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 },
{ value: '⌫', ratio: 1.5, keyCode: KeyEvent.DOM_VK_BACK_SPACE }
], [
{ value: '&nbsp', ratio: 8, keyCode: KeyboardEvent.DOM_VK_SPACE },
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN }
]
],
};

0 comments on commit 339a1ac

Please sign in to comment.