catalan.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Catalan keyboard layouts
  2. * contains layout: 'catalan-qwerty'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/catalan.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'catalan-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. /* based on http://ascii-table.com/keyboard.php/173-1 */
  11. jQuery.keyboard.layouts['catalan-qwerty'] = {
  12. 'name' : 'catalan-qwerty',
  13. 'lang' : ['ca'],
  14. 'normal' : [
  15. "\u00ba 1 2 3 4 5 6 7 8 9 0 ' \u00a1 {bksp}",
  16. "{tab} q w e r t y u i o p \u0300 +",
  17. "a s d f g h j k l \u00f1 \u0301 \u00e7 {enter}",
  18. "{shift} < z x c v b n m , . - {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. '\u00aa ! " \u00b7 $ % & / ( ) = ? \u00bf {bksp}',
  23. "{tab} Q W E R T Y U I O P \u0302 *",
  24. "A S D F G H J K L \u00d1 \u0308 \u00c7 {enter}",
  25. "{shift} > Z X C V B N M ; : _ {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. '\\ \u007c @ # \u0303 5 \u00ac 7 8 9 0 \u0027 \u00a1 {bksp}',
  30. "{tab} q w \u20ac r t y u i o p [ ]",
  31. "a s d f g h j k l \u00f1 { } {enter}",
  32. "{shift} \u007c z x c v b n m , . - {shift}",
  33. "{accept} {alt} {space} {alt} {cancel}"
  34. ],
  35. 'alt-shift' : [
  36. '\u00aa ! " \u00b7 $ % & / ( ) = ? \u00bf {bksp}',
  37. "{tab} Q W E R T Y U I O P [ ]",
  38. "A S D F G H J K L \u00d1 { } {enter}",
  39. "{shift} > Z X C V B N M ; : _ {shift}",
  40. "{accept} {alt} {space} {alt} {cancel}"
  41. ]
  42. };