bengali.js 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Scandinavian keyboard layouts
  2. * contains layout: 'bengali-qwerty-1' & 'bengali-qwerty-2'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/bengali.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'bengali-qwerty-1' });
  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/480 & http://www.gate2home.com/?language=bn&sec=2 */
  11. jQuery.keyboard.layouts['bengali-qwerty-1'] = {
  12. 'name' : 'bengali-qwerty-1',
  13. 'lang' : ['bn'],
  14. 'normal' : [
  15. "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  16. "{tab} q w e r t y u i o p [ ] \\",
  17. "a s d f g h j k l ; ' {enter}",
  18. "{shift} z x c v b n m , . / {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. "~ ! @ # $ % ^ & * ( ) _ + {bksp}",
  23. "{tab} Q W E R T Y U I O P { } |",
  24. 'A S D F G H J K L : " {enter}',
  25. "{shift} Z X C V B N M < > ? {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. '` \u09e7 \u09e8 \u09e9 \u09ea \u09eb \u09ec \u09ed \u09ee \u09ef \u09e6 - \u09c3 {bksp}',
  30. '{tab} \u09cc \u09c8 \u09be \u09c0 \u09c2 \u09ac \u09b9 \u0997 \u09a6 \u099c \u09a1 \u09bc \\',
  31. '\u09cb \u09c7 \u09cd \u09bf \u09c1 \u09aa \u09b0 \u0995 \u09a4 \u099a \u099f {enter}',
  32. '{shift} \u09ce \u0982 \u09ae \u09a8 \u09ac \u09b2 \u09b8 , . \u09df {shift}',
  33. '{accept} {alt} {space} {alt} {cancel}'
  34. ],
  35. 'alt-shift' : [
  36. '~ \u09e7 \u09e8 \u09b0 \u09cd \u099c \u09a4 \u0995 \u09b6 ( ) \u0983 \u09c3 {bksp}',
  37. '{tab} \u0994 \u0990 \u0986 \u0988 \u098a \u09ad \u0999 \u0998 \u09a7 \u099d \u09a2 \u099e |',
  38. '\u0993 \u098f \u0985 \u0987 \u0989 \u09ab \u09b0 \u0996 \u09a5 \u099b \u09a0 {enter}',
  39. '{shift} ? \u0981 \u09a3 \u09a8 \u09ac \u09b2 \u09b6 \u09b7 \u0964 \u09af {shift}',
  40. '{accept} {alt} {space} {alt} {cancel}'
  41. ]
  42. };
  43. /* based on http://www.google.com/webelements/#!/virtualkeyboard */
  44. jQuery.keyboard.layouts['bengali-qwerty-2'] = {
  45. 'name' : 'bengali-qwerty-2',
  46. 'lang' : ['bn'],
  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. '\u0982 \u0981 \u09bc \u0983 \u09fa \u09f8 \u09f9 \u09f2 \u09f3 \u09e6 \u09f4 \u09e7 \u09f5 {bksp}',
  63. '{tab} \u09e8 \u09f6 \u09e9 \u09f7 \u09ea \u09eb \u09ec \u09ed \u09ee \u09ef \u0985 \u0986 \u0987',
  64. '\u0988 \u0989 \u098a \u098b \u09e0 \u098c \u09e1 \u098f \u0990 \u0993 \u0994 {enter}',
  65. '{shift} \u0995 \u0996 \u0997 \u0998 \u0999 \u099a \u099b \u099c \u099d \u099e {shift}',
  66. '{accept} {alt} {space} {alt} {cancel}'
  67. ],
  68. 'alt-shift' : [
  69. '\u099f \u09a0 \u09a1 \u09dc \u09a2 \u09dd \u09a3 \u09a4 \u09ce \u09a5 \u09a6 \u09a7 \u09a8 {bksp}',
  70. '{tab} \u09aa \u09ab \u09ac \u09ad \u09ae \u09af \u09df \u09b0 \u09f0 \u09b2 \u09f1 \u09b6 \u09b7',
  71. '\u09b8 \u09b9 \u09bd \u09be \u09bf \u09c0 \u09c1 \u09c2 \u09c3 \u09c4 \u09e2 {enter}',
  72. '{shift} \u09e3 \u09c7 \u09c8 \u09cb \u09cc \u09cd \u09d7 {sp:3} {shift}',
  73. '{accept} {alt} {space} {alt} {cancel}'
  74. ]
  75. };