chinese.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Chinese keyboard layouts
  2. * contains layout: 'chinese'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/chinese.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'chinese' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. */
  10. jQuery.keyboard.layouts['chinese'] = {
  11. 'name' : 'chinese',
  12. 'lang' : ['zh'],
  13. 'normal' : [
  14. '\u20AC 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
  15. '{tab} \u624B \u7530 \u6C34 \u53E3 \u5EFF \u535C \u5C71 \u6208 \u4EBA \u5FC3 [ ] \\',
  16. '\u65E5 \u5C38 \u6728 \u706B \u571F \u7AF9 \u5341 \u5927 \u4E2D ; \' {enter}',
  17. '{shift} \uFF3A \u96E3 \u91D1 \u5973 \u6708 \u5F13 \u4E00 . - / {shift}',
  18. '{accept} {alt} {space} {alt} {cancel}'
  19. ],
  20. 'shift' : [
  21. '~ ! @ # $ % ^ & * ) ( _ + {bksp}',
  22. '{tab} q w e r t y u i o p { } |',
  23. 'a s d f g h j k l : " {enter}',
  24. '{shift} z x c v b n m , < > ? {shift}',
  25. '{accept} {alt} {space} {alt} {cancel}'
  26. ],
  27. 'alt' : [
  28. "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  29. "{tab} q w e r t y u i o p [ ] \\",
  30. "a s d f g h j k l ; ' {enter}",
  31. "{shift} z x c v b n m , . / {shift}",
  32. "{accept} {alt} {space} {alt} {cancel}"
  33. ],
  34. 'alt-shift' : [
  35. "~ ! @ # $ % ^ & * ( ) _ + {bksp}",
  36. "{tab} Q W E R T Y U I O P { } |",
  37. 'A S D F G H J K L : " {enter}',
  38. "{shift} Z X C V B N M < > ? {shift}",
  39. "{accept} {alt} {space} {alt} {cancel}"
  40. ]
  41. };