russian.js 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* Russian keyboard layouts
  2. * contains layout: 'russian-qwerty' & 'russian-mac'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/russian.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'russian-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. /* Thanks to Yury Kotlyarov (https://github.com/yura) */
  11. jQuery.keyboard.layouts['russian-qwerty'] = {
  12. 'name' : 'Russian-qwerty',
  13. 'lang' : ['ru'],
  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. "\u0451 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  30. "{tab} \u0439 \u0446 \u0443 \u043a \u0435 \u043d \u0433 \u0448 \u0449 \u0437 \u0445 \u044a \\",
  31. "\u0444 \u044b \u0432 \u0430 \u043f \u0440 \u043e \u043b \u0434 \u0436 \u044d {enter}",
  32. "{shift} \u044f \u0447 \u0441 \u043c \u0438 \u0442 \u044c \u0431 \u044e . {shift}",
  33. "{accept} {alt} {space} {alt} {cancel}"
  34. ],
  35. 'alt-shift' : [
  36. '\u0401 ! " \u2116 ; \u20ac : ? * ( ) _ + {bksp}',
  37. "{tab} \u0419 \u0426 \u0423 \u041a \u0415 \u041d \u0413 \u0428 \u0429 \u0417 \u0425 \u042a /",
  38. "\u0424 \u042b \u0412 \u0410 \u041f \u0420 \u041e \u041b \u0414 \u0416 \u042d {enter}",
  39. "{shift} \u042f \u0427 \u0421 \u041c \u0418 \u0422 \u042c \u0411 \u042e , {shift}",
  40. "{accept} {alt} {space} {alt} {cancel}"
  41. ]
  42. };
  43. jQuery.keyboard.layouts["russian-mac"] = {
  44. 'name' : 'Russian-mac',
  45. 'lang' : ['ru'],
  46. "default": [
  47. "] 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  48. "{tab} \u0439 \u0446 \u0443 \u043a \u0435 \u043d \u0433 \u0448 \u0449 \u0437 \u0445 \u044a \u0451",
  49. "\u0444 \u044b \u0432 \u0430 \u043f \u0440 \u043e \u043b \u0434 \u0436 \u044d {enter}",
  50. "{shift} \u044f \u0447 \u0441 \u043c \u0438 \u0442 \u044c \u0431 \u044e / {shift}",
  51. "{accept} {alt} {space} {alt} {cancel}"
  52. ],
  53. shift: [
  54. '[ ! " \u2116 % : , . ; ( ) _ + {bksp}',
  55. "{tab} \u0419 \u0426 \u0423 \u041a \u0415 \u041d \u0413 \u0428 \u0429 \u0417 \u0425 \u042a \u0401",
  56. "\u0424 \u042b \u0412 \u0410 \u041f \u0420 \u041e \u041b \u0414 \u0416 \u042d {enter}",
  57. "{shift} \u042f \u0427 \u0421 \u041c \u0418 \u0422 \u042c \u0411 \u042e ? {shift}",
  58. "{accept} {alt} {space} {alt} {cancel}"
  59. ],
  60. alt: [
  61. "] ! @ # $ % ^ & * ( ) \u2013 \u00bb {bksp}",
  62. "{tab} \u0458 \u045f \u045c \u00ae \u2020 \u045a \u0453 \u0455 \u045e \u2018 \u201c \u044a \u0451",
  63. "\u0192 \u044b \u045b \u00f7 \u00a9 } \u00b0 \u0459 \u2206 \u2026 \u044d {enter}",
  64. "{shift} \u0452 \u2248 \u2260 \u00b5 \u0438 \u2122 ~ \u2264 \u2265 \u201c {shift}",
  65. "{accept} {alt} {space} {alt} {cancel}"
  66. ],
  67. "alt-shift": [
  68. "[ | \" \u00a3 \u20ac \u221e \u00ac \u00b6 \u221a ' ` \u2014 \u00ab {bksp}",
  69. "{tab} \u0408 \u040f \u040c \u00ae \u2020 \u040a \u0403 \u0405 \u040e \u2019 \u201d \u042a \u0401 ",
  70. "\u0192 \u042b \u040b \u00f7 \u00a9 { \u2022 \u0409 \u2206 \u2026 \u042d {enter}",
  71. "{shift} \u0402 \u2248 \u2260 \u00b5 \u0418 \u2122 ~ < > \u201e {shift}",
  72. "{accept} {alt} {space} {alt} {cancel}"
  73. ]
  74. };