bn-unijoy.mim 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. ;; bn-unijoy.mim -- Bengali input method simulating Unijoy keyboard.
  2. ;; Copyright (C) 2005, 2008
  3. ;; National Institute of Advanced Industrial Science and Technology (AIST)
  4. ;; Registration Number H15PRO112
  5. ;; This file is part of the m17n database; a sub-part of the m17n
  6. ;; library.
  7. ;; The m17n library is free software; you can redistribute it and/or
  8. ;; modify it under the terms of the GNU Lesser General Public License
  9. ;; as published by the Free Software Foundation; either version 2.1 of
  10. ;; the License, or (at your option) any later version.
  11. ;; The m17n library is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. ;; Lesser General Public License for more details.
  15. ;; You should have received a copy of the GNU Lesser General Public
  16. ;; License along with the m17n library; if not, write to the Free
  17. ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. ;; Boston, MA 02110-1301, USA.
  19. (input-method bn unijoy)
  20. (description "Bengali input method simulating Unijoy keyboard layout.
  21. <http://ekushey.org/?page/uni_joy_layout>
  22. ")
  23. (title "ক")
  24. (map
  25. (livekey
  26. ("`" "‌") ;; ZERO WIDTH NON-JOINER
  27. ("1" "১") ;; BENGALI DIGIT ONE
  28. ("2" "২") ;; BENGALI DIGIT TWO
  29. ("3" "৩") ;; BENGALI DIGIT THREE
  30. ("4" "৪") ;; BENGALI DIGIT FOUR
  31. ("5" "৫") ;; BENGALI DIGIT FIVE
  32. ("6" "৬") ;; BENGALI DIGIT SIX
  33. ("7" "৭") ;; BENGALI DIGIT SEVEN
  34. ("8" "৮") ;; BENGALI DIGIT EIGHT
  35. ("9" "৯") ;; BENGALI DIGIT NINE
  36. ("0" "০") ;; BENGALI DIGIT ZERO
  37. ("q" "ঙ") ;; BENGALI LETTER NGA
  38. ("w" "য") ;; BENGALI LETTER YA
  39. ("e" "ড") ;; BENGALI LETTER DDA
  40. ("r" "প") ;; BENGALI LETTER PA
  41. ("t" "ট") ;; BENGALI LETTER TTA
  42. ("y" "চ") ;; BENGALI LETTER CA
  43. ("u" "জ") ;; BENGALI LETTER JA
  44. ("i" "হ") ;; BENGALI LETTER HA
  45. ("o" "গ") ;; BENGALI LETTER GA
  46. ("p" "ড়") ;; BENGALI LETTER RRA
  47. ("\\" "ঃ") ;; BENGALI SIGN VISARGA
  48. ("a" "ৃ") ;; BENGALI VOWEL SIGN VOCALIC R
  49. ("s" "ু") ;; BENGALI VOWEL SIGN U
  50. ("d" "ি") ;; BENGALI VOWEL SIGN I
  51. ("f" "া") ;; BENGALI VOWEL SIGN AA
  52. ("h" "ব") ;; BENGALI LETTER BA
  53. ("j" "ক") ;; BENGALI LETTER KA
  54. ("k" "ত") ;; BENGALI LETTER TA
  55. ("l" "দ") ;; BENGALI LETTER DA
  56. ("z" "্র") ;; BENGALI SIGN VIRAMA + BENGALI LETTER RA
  57. ("x" "ো") ;; BENGALI VOWEL SIGN O
  58. ("c" "ে") ;; BENGALI VOWEL SIGN E
  59. ("v" "র") ;; BENGALI LETTER RA
  60. ("b" "ন") ;; BENGALI LETTER NA
  61. ("n" "স") ;; BENGALI LETTER SA
  62. ("m" "ম") ;; BENGALI LETTER MA
  63. ("~" "‍") ;; ZERO WIDTH JOINER
  64. ("$" "৳") ;; BENGALI RUPEE SIGN
  65. ("^" "÷") ;; DIVISION SIGN
  66. ("&" "ঁ") ;; BENGALI SIGN CANDRABINDU
  67. ("*" "×") ;; MULTIPLICATION SIGN
  68. ("Q" "ং") ;; BENGALI SIGN ANUSVARA
  69. ("W" "য়") ;; BENGALI LETTER YYA
  70. ("E" "ঢ") ;; BENGALI LETTER DDHA
  71. ("R" "ফ") ;; BENGALI LETTER PHA
  72. ("T" "ঠ") ;; BENGALI LETTER TTHA
  73. ("Y" "ছ") ;; BENGALI LETTER CHA
  74. ("U" "ঝ") ;; BENGALI LETTER JHA
  75. ("I" "ঞ") ;; BENGALI LETTER NYA
  76. ("O" "ঘ") ;; BENGALI LETTER GHA
  77. ("P" "ঢ়") ;; BENGALI LETTER RHA
  78. ("|" "ৎ") ;; BENGALI SIGN KHANDATA
  79. ("A" "র্") ;; BENGALI LETTER RA + BENGALI SIGN VIRAMA
  80. ("S" "ূ") ;; BENGALI VOWEL SIGN UU
  81. ("D" "ী") ;; BENGALI VOWEL SIGN II
  82. ("F" "অ") ;; BENGALI LETTER A
  83. ("G" "।") ;; DEVANAGARI DANDA
  84. ("H" "ভ") ;; BENGALI LETTER BHA
  85. ("J" "খ") ;; BENGALI LETTER KHA
  86. ("K" "থ") ;; BENGALI LETTER THA
  87. ("L" "ধ") ;; BENGALI LETTER DHA
  88. ("Z" "্য") ;; BENGALI SIGN VIRAMA + BENGALI LETTER YA
  89. ("X" "ৌ") ;; BENGALI VOWEL SIGN AU
  90. ("C" "ৈ") ;; BENGALI VOWEL SIGN AI
  91. ("V" "ল") ;; BENGALI LETTER LA
  92. ("B" "ণ") ;; BENGALI LETTER NNA
  93. ("N" "ষ") ;; BENGALI LETTER SSA
  94. ("M" "শ") ;; BENGALI LETTER SHA
  95. ((A-=) "≠") ;; NOT EQUAL TO
  96. ((A-e) "ঈ") ;; BENGALI LETTER II
  97. ((A-u) "ঊ") ;; BENGALI LETTER UU
  98. ((A-i) "ঐ") ;; BENGALI LETTER AI
  99. ((A-o) "ঔ") ;; BENGALI LETTER AU
  100. ((A-a) "ঋ") ;; BENGALI LETTER VOCALIC R
  101. ((A-s) "উ") ;; BENGALI LETTER U
  102. ((A-d) "ই") ;; BENGALI LETTER I
  103. ((A-f) "আ") ;; BENGALI LETTER AA
  104. ((A-g) "্") ;; BENGALI SIGN VIRAMA //not a dead key now
  105. ((A-h) "ৰ") ;; BENGALI LETTER RA WITH MIDDLE DIAGONAL
  106. ((A-x) "ও") ;; BENGALI LETTER O
  107. ((A-c) "এ") ;; BENGALI LETTER E
  108. ((A-v) "ৱ") ;; BENGALI LETTER RA WITH LOWER DIAGONAL
  109. ((A-.) "়") ;; BENGALI SIGN NUKTA
  110. ((A-!) "৴") ;; BENGALI CURRENCY NUMERATOR ONE
  111. ((A-@) "৵") ;; BENGALI CURRENCY NUMERATOR TWO
  112. ((A-\#) "৶") ;; BENGALI CURRENCY NUMERATOR THREE
  113. ((A-$) "৷") ;; BENGALI CURRENCY NUMERATOR FOUR
  114. ((A-%) "৲") ;; BENGALI RUPEE MARK
  115. ((A-&) "৺") ;; BENGALI ISSHAR
  116. ((A-\)) "৸") ;;BENGALI CURRENCY NUMERATOR ONE LESS THAN THE DENOMINATOR
  117. ((A-_) "৹") ;; BENGALI CURRENCY DENOMINATOR SIXTEEN
  118. ((A-Q) "ঌ") ;; BENGALI LETTER VOCALIC L
  119. ((A-W) "ৡ") ;; BENGALI LETTER VOCALIC LL
  120. ((A-I) "ঽ") ;; BENGALI LETTER AVAGRAHA
  121. ((A-Z) "ৢ") ;; BENGALI VOWEL SIGN VOCALIC L
  122. ((A-X) "ৗ") ;; BENGALI AU LENGTH MARK
  123. ((A-C) "ৠ") ;; BENGALI LETTER VOCALIC RR
  124. ((A-V) "ৣ") ;; BENGALI VOWEL SIGN VOCALIC LL
  125. ((A-B) "ৄ") ;; BENGALI VOWEL SIGN VOCALIC RR
  126. ((A-<) "≤") ;; LESS-THAN OR EQUAL TO
  127. ((A->) "≥") ;; GREATER-THAN OR EQUAL TO
  128. )
  129. (deadkey
  130. ("g" "্") ;; BENGALI SIGN VIRAMA
  131. )
  132. (independent
  133. ("f" (delete @-) "আ") ;; BENGALI LETTER AA
  134. ("d" (delete @-) "ই") ;; BENGALI LETTER I
  135. ("D" (delete @-) "ঈ") ;; BENGALI LETTER II
  136. ("s" (delete @-) "উ") ;; BENGALI LETTER U
  137. ("S" (delete @-) "ঊ") ;; BENGALI LETTER UU
  138. ("a" (delete @-) "ঋ") ;; BENGALI LETTER VOCALIC R
  139. ("c" (delete @-) "এ") ;; BENGALI LETTER E
  140. ("C" (delete @-) "ঐ") ;; BENGALI LETTER AI
  141. ("x" (delete @-) "ও") ;; BENGALI LETTER O
  142. ("X" (delete @-) "ঔ") ;; BENGALI LETTER AU
  143. ("G" (delete @-) "॥") ;; DEVANAGARI DOUBLE DANDA
  144. ))
  145. (state
  146. (init
  147. (livekey)
  148. (deadkey (shift virama)))
  149. (virama
  150. (independent (shift init))
  151. (nil (shift init))))
  152. ;; Local Variables:
  153. ;; coding: utf-8
  154. ;; mode: lisp
  155. ;; End: