albanian.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* Albanian keyboard layouts
  2. * contains layout: 'albanian-qwertz' & 'albanian-qwerty'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/albanian.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: jQuery('input').keyboard({ layout: 'albanian-qwertz' });
  7. *
  8. * To do: add combos appropriate to the Albanian language
  9. * missing caron, breve, ring, ogonek, double acute accent, diaeresis and cedilla accents.
  10. *
  11. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  12. */
  13. /* qwertz-albanian
  14. combined from http://en.wikipedia.org/wiki/File:Albanian_keyboard_layout.jpg,
  15. http://ascii-table.com/keyboard.php/448 & http://www.google.com/webelements/ */
  16. jQuery.keyboard.layouts['albanian-qwertz'] = {
  17. 'name' : 'Albanian-qwertz',
  18. 'lang' : ['sq'],
  19. 'normal' : [
  20. "\\ 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  21. "{tab} q w e r t z u i o p \u00e7 '",
  22. "a s d f g h j k l \u00eb [ ] {enter}",
  23. "{shift} < y x c v b n m , . / {shift}",
  24. "{accept} {alt} {space} {alt} {cancel}"
  25. ],
  26. 'shift' : [
  27. '| ! " # $ % ^ & * ( ) _ + {bksp}',
  28. "{tab} Q W E R T Z U I O P \u00c7 @",
  29. "A S D F G H J K L \u00cb { } {enter}",
  30. "{shift} > Y X C V B N M ; : ? {shift}",
  31. "{accept} {alt} {space} {alt} {cancel}"
  32. ],
  33. 'alt' : [
  34. "\\ ~ \u02c7 ^ \u02d8 \u00b0 \u02db ` \u02d9 \u00b4 \u02dd \u00a8 \u00b8 {bksp}",
  35. "{tab} q w \u20ac r t z u i o p \u00f7 \u00d7",
  36. "\u00e4 \u0111:Shortcut_(\/d) \u0110:Shortcut_(\/D) f g h j \u0142:Shortcut_(\/l) \u0141:Shortcut_(\/L) $ \u00df \u00a4 {enter}",
  37. "{shift} < y x c @ { } \u00a7 < > / {shift}",
  38. "{accept} {alt} {space} {alt} {cancel}"
  39. ]
  40. };
  41. /* based on http://ascii-table.com/keyboard.php/452 */
  42. jQuery.keyboard.layouts['albanian-qwerty'] = {
  43. 'name' : 'Albanian-qwerty',
  44. 'lang' : ['sq'],
  45. 'normal' : [
  46. "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  47. "{tab} q w e r t y u i o p \u00eb '",
  48. "a s d f g h j k l ; \u00e7 # {enter}",
  49. "{shift} \\ z x c v b n m , . / {shift}",
  50. "{accept} {alt} {space} {alt} {cancel}"],
  51. 'shift' : [
  52. '\u00ac ! " \u00a7 $ % ^ & * ( ) _ + {bksp}',
  53. "{tab} Q W E R T Y U I O P \u00cb @",
  54. "A S D F G H J K L : \u00c7 ~ {enter}",
  55. "{shift} \u00a6 Z X C V B N M < > ? {shift}",
  56. "{accept} {alt} {space} {alt} {cancel}"
  57. ],
  58. 'alt' : [
  59. "| 1 2 3 4 5 6 { } [ ] - = {bksp}",
  60. "{tab} q w \u20ac r t y u i o p \u00f7 \u00d7",
  61. "a s d f g h j k l ; \u00e7 # {enter}",
  62. "{shift} \\ z x c v b n m , . / {shift}",
  63. "{accept} {alt} {space} {alt} {cancel}"
  64. ],
  65. 'alt-shift' : [
  66. '| ! " \u00a7 $ % ^ & * ( ) _ + {bksp}',
  67. "{tab} Q W \u20AC R T Y U I O P \u00cb @",
  68. "A S D F G H J K L : \u00c7 ~ {enter}",
  69. "{shift} \u00a6 Z X C V B N M < > ? {shift}",
  70. "{accept} {alt} {space} {alt} {cancel}"
  71. ]
  72. };