tamil.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Tamil keyboard layouts
  2. * contains layout: 'tamil-qwerty'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/tamil.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'tamil-tamil99-mod' });
  7. *
  8. * Copyright 2013, Muthiah Annamalai
  9. *
  10. * Author : Muthiah Annamalai <ezhillang@gmail.com>
  11. *
  12. * This file derives from general keyboard jQuery plugin.
  13. * You may reuse this file under MIT License
  14. *
  15. * Acknowledgements : Thamiza project contributors Mugunth, Sethu have reference implementations of
  16. * of the keyboard
  17. */
  18. /* based on Tamil99 keyboard layout - modified Tamil 99 keyboard */
  19. jQuery.keyboard.layouts['tamil-tamil99-mod'] = {
  20. 'name' : 'tamil-tamil99-mod',
  21. 'lang' : ['ta'],
  22. 'normal' : [
  23. /* ா ி ீ ு ூ ெ ே ை ொ ோ ௌ ஃ */
  24. "\u0BBE \u0BBF \u0BC0 \u0BC1 \u0BC2 \u0BC6 \u0BC7 \u0BC8 \u0BCA \u0BCB \u0BCC \u0B83 {bksp}",
  25. /* ஆ ஈ ஊ ஐ ஏ ள ற ன ட ண ச ஞ \ */
  26. "{tab} \u0b86 \u0b88 \u0b8a \u0b90 \u0b8f \u0bb3 \u0bb1 \u0ba9 \u0b9f \u0ba3 \u0b9a \u0b9e ",
  27. /* அ இ உ ் எ க ப ம த ந ய */
  28. "\u0b85 \u0b87 \u0b89 \u0bcd \u0b8e \u0b95 \u0baa \u0bae \u0ba4 \u0ba8 \u0baf {enter}",
  29. /* ஔ ஒ ஓ வ ங ல ர , . ழ */
  30. "{shift} \u0b94 \u0b93 \u0b92 \u0bb5 \u0b99 \u0bb2 \u0bb0 , . \u0bb4 {shift}",
  31. "{accept} {alt} {space} {alt} {cancel}"
  32. ],
  33. 'shift' : [
  34. /* numeric key row */
  35. "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
  36. /* sanskrit row */
  37. /* ஸ ஷ ஜ ஹ ஶ்ரீ க்ஷ */
  38. "{tab} \u0bb8 \u0bb7 \u0b9c \u0bb9 \u0bb6\u0bcd\u0bb0\u0bc0 \u0b95\u0bcd\u0bb7 \u0020 [ ] { } ",
  39. /* ௹ ௺ ௸ ஃ \u0020 \u0020 \u0020 \" : ; \' {enter} */
  40. "\u0bf9 \u0bfa \u0bf8 \u0b83 \u0020 \u0020 \u0020 \" : ; \' {enter}",
  41. /* ௳ ௴ ௵ ௶ ௷ */
  42. "{shift} \u0bf3 \u0bf4 \u0bf5 \u0bf6 \u0bf7 \u0020 / \u0020 \u0020 / {shift}",
  43. "{accept} {alt} {space} {alt} {cancel}"
  44. ],
  45. 'alt' : [
  46. "\u0060 1 2 3 4 5 6 7 8 9 0 - \u003D {bksp}",
  47. "{tab} q w e r t y u i o p \u005B \u005D \u005C",
  48. "a s d f g h j k l ; \u0027 {enter}",
  49. "{shift} z x c v b n m , . / {shift}",
  50. "{accept} {alt} {space} {alt} {cancel}"
  51. ],
  52. 'alt-shift' : [
  53. "\u007E | @ # $ % \u00ac & * ( ) _ + {bksp}",
  54. "{tab} Q W E R T Y U I O P ! \u00a6 \u00a2",
  55. "A S D F G H J K L : \" {enter}",
  56. "{shift} Z X C V B N M { } ? {shift}",
  57. "{accept} {alt} {space} {alt} {cancel}"
  58. ]
  59. };