spanish.js 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Spanish keyboard layouts
  2. * contains layouts: 'spanish-qwerty' and 'spanish-qwerty-sp'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/spanish.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'spanish-qwerty' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. *
  10. * Spanish layouts by Paco Alcantara (https://github.com/pacoalcantara)
  11. * Based on: http://ascii-table.com/keyboard.php/171 and http://ascii-table.com/keyboard.php/071-2
  12. */
  13. jQuery.keyboard.layouts['spanish-qwerty'] = {
  14. 'name' : 'spanish-qwerty',
  15. 'lang' : ['es'],
  16. 'normal' : [
  17. "\u007c 1 2 3 4 5 6 7 8 9 0 \' \u00bf {bksp}",
  18. "{tab} q w e r t y u i o p \u0301 +",
  19. "a s d f g h j k l \u00f1 \u007b \u007d {enter}",
  20. "{shift} < z x c v b n m , . - {shift}",
  21. "{accept} {alt} {space} {alt} {cancel}"
  22. ],
  23. 'shift' : [
  24. "\u00b0 ! \" # $ % & / ( ) = ? \u00a1 {bksp}",
  25. "{tab} Q W E R T Y U I O P \u0308 *",
  26. "A S D F G H J K L \u00d1 \u005b \u005d {enter}",
  27. "{shift} > Z X C V B N M ; : _ {shift}",
  28. "{accept} {alt} {space} {alt} {cancel}"
  29. ],
  30. 'alt' : [
  31. "\u00ac 1 2 3 4 5 6 7 8 9 0 \\ \u00bf {bksp}",
  32. "{tab} @ w e r t y u i o p \u0301 \u0303",
  33. "a s d f g h j k l \u00f1 \u0302 \u0300 {enter}",
  34. "{shift} < z x c v b n m , . - {shift}",
  35. "{accept} {alt} {space} {alt} {cancel}"
  36. ],
  37. 'alt-shift' : [
  38. "\u00b0 ! \" # $ % & / ( ) = ? \u00a1 {bksp}",
  39. "{tab} Q W E R T Y U I O P \u0308 *",
  40. "A S D F G H J K L \u00d1 \u005b \u005d {enter}",
  41. "{shift} > Z X C V B N M ; : _ {shift}",
  42. "{accept} {alt} {space} {alt} {cancel}"
  43. ]
  44. };
  45. jQuery.keyboard.layouts['spanish-qwerty-sp'] = {
  46. 'name' : 'spanish-qwerty-sp',
  47. 'lang' : ['es'],
  48. 'normal' : [
  49. "\u00ba 1 2 3 4 5 6 7 8 9 0 \' \u00a1 {bksp}",
  50. "{tab} q w e r t y u i o p \u0300 +",
  51. "a s d f g h j k l \u00f1 \u0301 \u00e7 {enter}",
  52. "{shift} < z x c v b n m , . - {shift}",
  53. "{accept} {alt} {space} {alt} {cancel}"
  54. ],
  55. 'shift' : [
  56. "\u00aa ! \" \u00b7 $ % & / ( ) = ? \u00bf {bksp}",
  57. "{tab} Q W E R T Y U I O P \u005e *",
  58. "A S D F G H J K L \u00d1 \u0308 \u00c7 {enter}",
  59. "{shift} > Z X C V B N M ; : _ {shift}",
  60. "{accept} {alt} {space} {alt} {cancel}"
  61. ],
  62. 'alt' : [
  63. "\\ \u007c @ # 4 5 \u00ac 7 8 9 0 \u0027 \u00a1 {bksp}",
  64. "{tab} q w e r t y u i o p [ ]",
  65. "a s d f g h j k l \u00f1 { } {enter}",
  66. "{shift} \u007c z x c v b n m , . - {shift}",
  67. "{accept} {alt} {space} {alt} {cancel}"
  68. ],
  69. 'alt-shift' : [
  70. "\u00aa ! \" \u00b7 $ % & / ( ) = ? \u00bf {bksp}",
  71. "{tab} Q W E R T Y U I O P [ ]",
  72. "A S D F G H J K L \u00d1 { } {enter}",
  73. "{shift} > Z X C V B N M ; : _ {shift}",
  74. "{accept} {alt} {space} {alt} {cancel}"
  75. ]
  76. };