arabic.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /* Arabic keyboard layouts
  2. * contains layout: 'arabic-azerty', 'arabic-qwerty-1', 'arabic-qwerty-2', 'arabic-qwerty-3', 'arabic-qwerty-4'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/arabic.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'arabic-azerty' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. */
  10. /* based on http://ascii-table.com/keyboard.php/462 */
  11. jQuery.keyboard.layouts['arabic-azerty'] = {
  12. 'name': 'Arabic-azerty',
  13. 'lang': ['ar'],
  14. 'normal' : [
  15. '\u00b2 & \u00e9 " \' ( - \u00e8 _ \u00e7 \u00e0 ) = {bksp}',
  16. "{tab} a z e r t y u i o p ` $",
  17. "q s d f g h j k l m \u00f9 \u066d {enter}",
  18. "{shift} < w x c v b n , ; : ! {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. "\u00b2 1 2 3 4 5 6 7 8 9 0 \u00b0 + {bksp}",
  23. "{tab} A Z E R T Y U I O P \u0308 \u00a3",
  24. "Q S D F G H J K L M \u066a \u00b5 {enter}",
  25. "{shift} > W X C V B N ? . / \u00a7 {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. '> & \u00e9 # { [ | \u0300 \\ ^ @ ] } {bksp}',
  30. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u0647 \u062e \u062d \u062c \u062f',
  31. '\u0634 \u0633 \u064a \u0628 \u0644 \u0627 \u062a \u0646 \u0645 \u0643 \u0637 \u0630 {enter}',
  32. '{shift} \u0640 \u0626 \u0621 \u0624 \u0631 \ufefb \u0649 \u0629 \u0648 \u0632 \u0638 {shift}',
  33. '{accept} {alt} {space} {alt} {cancel}'
  34. ],
  35. 'alt-shift' : [
  36. '< 1 2 3 4 5 6 7 8 9 0 \u00b0 + {bksp}',
  37. '{tab} \u064e \u064b \u064f \u064c \ufef9 \u0625 \u0060 \u00f7 \u00d7 \u061b \u062c \u00a4',
  38. '\\ \u0633 [ ] \ufef7 \u0623 \u0640 \u060c / : \u00a8 \u0651 {enter}',
  39. '{shift} | ~ \u0652 \u0650 \u064d \ufef5 \u0622 \' , . \u061f {shift}',
  40. '{accept} {alt} {space} {alt} {cancel}'
  41. ]
  42. };
  43. /* based on http://ascii-table.com/keyboard.php/470 */
  44. jQuery.keyboard.layouts['arabic-qwerty-1'] = {
  45. 'name': 'Arabic-qwerty-1',
  46. 'lang': ['ar'],
  47. 'normal' : [
  48. '` 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
  49. "{tab} q w e r t y u i o p [ ] \\",
  50. "a s d f g h j k l ; ' {enter}",
  51. "{shift} z x c v b n m , . / {shift}",
  52. "{accept} {alt} {space} {alt} {cancel}"
  53. ],
  54. 'shift' : [
  55. "~ ! @ # $ % ^ & * ( ) _ + {bksp}",
  56. "{tab} Q W E R T Y U I O P { } |",
  57. 'A S D F G H J K L : " {enter}',
  58. "{shift} Z X C V B N M < > ? {shift}",
  59. "{accept} {alt} {space} {alt} {cancel}"
  60. ],
  61. 'alt' : [
  62. '\u0630 \u0661 \u0662 \u0663 \u0664 \u0665 \u0666 \u0667 \u0668 \u0669 \u0660 - = {bksp}',
  63. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u0647 \u062e \u062d \u062c \u062f \\',
  64. '\u0634 \u0633 \u064a \u0628 \u0644 \u0627 \u062a \u0646 \u0645 \u0643 \u0637 {enter}',
  65. '{shift} \u0626 \u0621 \u0624 \u0631 \ufefb \u0649 \u0629 \u0648 \u0632 \u0638 {shift}',
  66. '{accept} {alt} {space} {alt} {cancel}'
  67. ],
  68. 'alt-shift' : [
  69. '\u0651 ! @ # $ % ^ & * ( ) _ + {bksp}',
  70. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u00f7 \u00d7 \u061b > < |',
  71. '\u0634 \u0633 \u064a \u0628 \u0644 \u0623 \u0640 \u060c / : " {enter}',
  72. '{shift} \u0626 \u0621 \u0624 \u0631 \ufef5 \u0622 \u0629 , . \u061f {shift}',
  73. '{accept} {alt} {space} {alt} {cancel}'
  74. ]
  75. };
  76. /* based on keyboard layout from http://ascii-table.com/keyboard.php/238 */
  77. jQuery.keyboard.layouts['arabic-qwerty-2'] = {
  78. 'name': 'Arabic-qwerty-2',
  79. 'lang': ['ar'],
  80. 'normal' : [
  81. '< 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
  82. "{tab} q w e r t y u i o p [ ]",
  83. "a s d f g h j k l ; ' ` {enter}",
  84. "{shift} \\ z x c v b n m , . / {shift}",
  85. "{accept} {alt} {space} {alt} {cancel}"
  86. ],
  87. 'shift' : [
  88. "> ! @ # $ % ^ & * ( ) _ + {bksp}",
  89. "{tab} Q W E R T Y U I O P { }",
  90. 'A S D F G H J K L : " ~ {enter}',
  91. "{shift} | Z X C V B N M , . ? {shift}",
  92. "{accept} {alt} {space} {alt} {cancel}"
  93. ],
  94. 'alt' : [
  95. '< \u0661 \u0662 \u0663 \u0664 \u0665 \u0666 \u0667 \u0668 \u0669 \u0660 - = {bksp}',
  96. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u0647 \u062e \u062d \u062c \u062f',
  97. '\u0634 \u0633 \u064a \u0628 \u0644 \u0627 \u062a \u0646 \u0645 \u0643 \u0637 \u0630 {enter}',
  98. '{shift} \u0640 \u0626 \u0621 \u0624 \u0631 \ufefb \u0649 \u0629 \u0648 \u0632 \u0638 {shift}',
  99. '{accept} {alt} {space} {alt} {cancel}'
  100. ],
  101. 'alt-shift' : [
  102. '> ! @ # $ % ^ & * ( ) _ + {bksp}',
  103. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u00f7 \u00d7 \u061b { }',
  104. '\\ \u0633 \u064a \u0628 \ufef7 \u0623 \u062a \u060c \u0645 : " \u0651 {enter}',
  105. '{shift} | \u0626 \u0621 \u0624 \u0631 \ufef5 \u0622 \u0629 , . \u061f {shift}',
  106. '{accept} {alt} {space} {alt} {cancel}'
  107. ]
  108. };
  109. /* based on keyboard layout from http://ascii-table.com/keyboard.php/239 */
  110. jQuery.keyboard.layouts['arabic-qwerty-3'] = {
  111. 'name': 'Arabic-qwerty-3',
  112. 'lang': ['ar'],
  113. 'normal' : [
  114. '< 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
  115. "{tab} q w e r t y u i o p \u00a2 |",
  116. "a s d f g h j k l ; ' ` {enter}",
  117. "{shift} \u0640 z x c v b n m , . / {shift}",
  118. "{accept} {alt} {space} {alt} {cancel}"
  119. ],
  120. 'shift' : [
  121. "> ! @ # $ % \u00ac & * ( ) _ + {bksp}",
  122. "{tab} Q W E R T Y U I O P \u00a3 |",
  123. 'A S D F G H J K L : " ~ {enter}',
  124. "{shift} \u00a6 Z X C V B N M , . ? {shift}",
  125. "{accept} {alt} {space} {alt} {cancel}"
  126. ],
  127. 'alt' : [
  128. '< \u0661 \u0662 \u0663 \u0664 \u0665 \u0666 \u0667 \u0668 \u0669 \u0660 - = {bksp}',
  129. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u0647 \u062e \u062d \u062c \u062f',
  130. '\u0634 \u0633 \u064a \u0628 \u0644 \u0627 \u062a \u0646 \u0645 \u0643 \u0637 \u0630 {enter}',
  131. '{shift} \u0640 \u0626 \u0621 \u0624 \u0631 \ufefb \u0649 \u0629 \u0648 \u0632 \u0638 {shift}',
  132. '{accept} {alt} {space} {alt} {cancel}'
  133. ],
  134. 'alt-shift' : [
  135. '> ! @ # $ % \u00ac & * ( ) _ + {bksp}',
  136. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u00f7 \u00d7 \u061b \u00a3 |',
  137. '\u0634 \u0633 \u064a \u0628 \ufef7 \u0623 \u062a \u060c / : " \u0651 {enter}',
  138. '{shift} \u00a6 \u0626 \u0621 \u0624 \u0631 \ufef5 \u0622 \u0629 , . \u061f {shift}',
  139. '{accept} {alt} {space} {alt} {cancel}'
  140. ]
  141. };
  142. /* based on keyboard layout from http://ascii-table.com/keyboard.php/253 */
  143. jQuery.keyboard.layouts['arabic-qwerty-4'] = {
  144. 'name': 'Arabic-qwerty-4',
  145. 'lang': ['ar'],
  146. 'normal' : [
  147. '< 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
  148. "{tab} q w e r t y u i o p [ ]",
  149. "a s d f g h j k l ; ' ` {enter}",
  150. "{shift} \\ z x c v b n m , . / {shift}",
  151. "{accept} {alt} {space} {alt} {cancel}"
  152. ],
  153. 'shift' : [
  154. "> ! @ # $ % ^ & * ( ) _ + {bksp}",
  155. "{tab} Q W E R T Y U I O P { }",
  156. 'A S D F G H J K L : " ~ {enter}',
  157. "{shift} | Z X C V B N M , . ? {shift}",
  158. "{accept} {alt} {space} {alt} {cancel}"
  159. ],
  160. 'alt' : [
  161. '< \u0661 \u0662 \u0663 \u0664 \u0665 \u0666 \u0667 \u0668 \u0669 \u0660 - = {bksp}',
  162. '{tab} \u0636 \u0635 \u062b \u0642 \u0641 \u063a \u0639 \u0647 \u062e \u062d \u062c \u062f',
  163. '\u0634 \u0633 \u064a \u0628 \u0644 \u0627 \u062a \u0646 \u0645 \u0643 \u0637 \u0630 {enter}',
  164. '{shift} \u0640 \u0626 \u0621 \u0624 \u0631 \ufefb \u0649 \u0629 \u0648 \u0632 \u0638 {shift}',
  165. '{accept} {alt} {space} {alt} {cancel}'
  166. ],
  167. 'alt-shift' : [
  168. '> ! @ # $ % ^ & * ( ) _ + {bksp}',
  169. '{tab} \u064e \u064b \u064f \u064c \ufef9 \u0625 \u0639 \u00f7 \u00d7 \u061b { }',
  170. '\\ \u0633 \u064a \u0628 \ufef7 \u0623 \u062a \u060c \u002f : " \u0651 {enter}',
  171. '{shift} | \u0626 \u0652 \u0650 \u064d \ufef5 \u0622 \u0629 , . \u061f {shift}',
  172. '{accept} {alt} {space} {alt} {cancel}'
  173. ]
  174. };