logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

lk (8198B)


  1. // X Keyboard Extension file for Sinhala (Sri Lanka) (2004-04-22)
  2. // Maintainer : Harshula Jayasuriya <harshula@gmail.com>
  3. // Last Updated: 2011-05-25
  4. // This is a phonetic static mapping for a standard US-English keyboard
  5. // (QWERTY)
  6. // http://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_3.html
  7. // Repaya, Rakaransaya and Yansaya aren't inserted with A-r, R and Y,
  8. // respectively. The problem lies with the XKB infrastructure which
  9. // only allows a one-to-one mapping of keycodes to Unicode codepoints.
  10. // Unfortunately, the 3 mentioned glyphs actually consists of 3
  11. // Unicode codepoints each. The result is that the user must
  12. // manually construct the glyph by typing each of the 3 codepoints.
  13. // ALT-, represents the 'JOIN' key, it requires
  14. // two codepoints, hence it also has to be manually constructed.
  15. // Similarly, ALT-/ representing the 'TOUCH' key requires
  16. // two codepoints.
  17. // Repaya = rayanna,AL,ZWJ
  18. // Rakaransaya = AL,ZWJ,rayanna
  19. // Yansaya = AL,ZWJ,yayanna
  20. // JOIN = AL,ZWJ
  21. // TOUCH = ZWJ,AL
  22. // Where,
  23. // AL = Al Lakuna = ALT-a
  24. // ZWJ = Zero Width Joiner = ALT-/
  25. // rayanna = r
  26. // yayanna = y
  27. default partial alphanumeric_keys
  28. xkb_symbols "sin_phonetic" {
  29. include "us"
  30. name[Group1] = "Sinhala (phonetic)";
  31. key.type[Group1] = "FOUR_LEVEL";
  32. // q - p
  33. key <AD01> { [ Sinh_ri, Sinh_rii, Sinh_ru2, Sinh_ruu2 ] };
  34. key <AD02> { [ Sinh_ae, Sinh_aee, Sinh_ae2, Sinh_aee2 ] };
  35. key <AD03> { [ Sinh_e, Sinh_ee, Sinh_e2, Sinh_ee2 ] };
  36. key <AD04> { [ Sinh_ra, Sinh_al, Sinh_ra, NoSymbol ] };
  37. key <AD05> { [ Sinh_tha, Sinh_thha, Sinh_tta, Sinh_ttha ] };
  38. key <AD06> { [ Sinh_ya, Sinh_al, NoSymbol, NoSymbol ] };
  39. key <AD07> { [ Sinh_u, Sinh_uu, Sinh_u2, Sinh_uu2 ] };
  40. key <AD08> { [ Sinh_i, Sinh_ii, Sinh_i2, Sinh_ii2 ] };
  41. key <AD09> { [ Sinh_o, Sinh_oo, Sinh_o2, Sinh_oo2 ] };
  42. key <AD10> { [ Sinh_pa, Sinh_pha, NoSymbol, NoSymbol ] };
  43. // a - l
  44. key <AC01> { [ Sinh_a, Sinh_aa, Sinh_al, Sinh_aa2 ] };
  45. key <AC02> { [ Sinh_sa, Sinh_sha, Sinh_ssha, NoSymbol ] };
  46. key <AC03> { [ Sinh_dha, Sinh_dhha, Sinh_dda, Sinh_ddha ] };
  47. key <AC04> { [ Sinh_fa, NoSymbol, Sinh_ai2, Sinh_ai ] };
  48. key <AC05> { [ Sinh_ga, Sinh_gha, Sinh_nga, NoSymbol ] };
  49. key <AC06> { [ Sinh_ha, Sinh_h2, Sinh_au2, Sinh_au ] };
  50. key <AC07> { [ Sinh_ja, Sinh_jha, Sinh_nja, NoSymbol ] };
  51. key <AC08> { [ Sinh_ka, Sinh_kha, Sinh_lu, Sinh_luu ] };
  52. key <AC09> { [ Sinh_la, Sinh_lla, Sinh_lu2, Sinh_luu2 ] };
  53. // z - ?
  54. key <AB01> { [ Sinh_nya, Sinh_jnya, NoSymbol, NoSymbol ] };
  55. key <AB02> { [ Sinh_ndha, Sinh_ndda, NoSymbol, NoSymbol ] };
  56. key <AB03> { [ Sinh_ca, Sinh_cha, NoSymbol, NoSymbol ] };
  57. key <AB04> { [ Sinh_va, NoSymbol, NoSymbol, NoSymbol ] };
  58. key <AB05> { [ Sinh_ba, Sinh_bha, NoSymbol, NoSymbol ] };
  59. key <AB06> { [ Sinh_na, Sinh_nna, Sinh_ng, Sinh_ng2 ] };
  60. key <AB07> { [ Sinh_ma, Sinh_mba, NoSymbol, NoSymbol ] };
  61. key <AB08> { [ any, any, Sinh_al, NoSymbol ] };
  62. key <AB09> { [ any, any, Sinh_kunddaliya, NoSymbol ] };
  63. key <AB10> { [ any, any, 0x100200d, NoSymbol ] };
  64. // Space
  65. include "nbsp(nb2zwnj3s)"
  66. include "level3(ralt_switch)"
  67. };
  68. partial alphanumeric_keys
  69. xkb_symbols "tam_unicode" {
  70. include "in(tam_tamilnet)"
  71. name[Group1]= "Tamil (Sri Lanka, TamilNet '99)";
  72. };
  73. partial alphanumeric_keys
  74. xkb_symbols "tam_TAB" {
  75. include "in(tam_tamilnet_TAB)"
  76. name[Group1]= "Tamil (Sri Lanka, TamilNet '99, TAB encoding)";
  77. };
  78. // SINHALA - US, SUBSTITUTES SOME AND ADDS SOME
  79. // =============================================
  80. //
  81. // This started as an upgrade to the first romanized version of
  82. // Sinhala called PTS Pali created in the 1860s. PTS requires
  83. // dots and bars on letters that are rare in fonts, and impossible
  84. // to type. Its singular purpose was to print Tripitaka, the
  85. // collection of Buddhist discourses.
  86. //
  87. // This version covers the entire newer Sinhala phoneme chart
  88. // (Hodiya) that became standard just before the end of the 19th
  89. // century. All the phonemes map to the SBCS. It is easy and
  90. // faster than English to type. It overcomes the setback of
  91. // Unicode Sinhala that it is not compatible with Pali and
  92. // Sanskrit because it encodes two ligatures as base letters and
  93. // the SLS1134 specification matching shape and morpheme sets
  94. // violating Sanskrit orthography.
  95. //
  96. // Most importantly, this romanized version of Sinhala has a
  97. // companion orthographic font that displays the text in the
  98. // native script and a JavaScript converts it to Unicode Sinhala
  99. // and back dramatically increasing Sinhala seen on the web due
  100. // to its ease of use
  101. //
  102. // Dedication:
  103. // Thomas William Rhys Davids, Ven. Udagama Sumangala
  104. // Rev. Fr. A. M. Gunasekara, Rev. Fr. Theodore G. Perera
  105. // Ven. Mettavihari
  106. //
  107. // Maintainer:
  108. // JC Ahangama - sing@ahangama.com
  109. //
  110. partial alphanumeric_keys modifier_keys
  111. xkb_symbols "us" {
  112. include "us(basic)"
  113. name[Group1]= "Sinhala (US)";
  114. //
  115. // UNSHIFTED, SHIFT, ALT
  116. // --------------------------------------------
  117. //
  118. key <AB01> { [ z, VoidSymbol, VoidSymbol ] };
  119. key <AB02> { [ x, VoidSymbol, VoidSymbol ] };
  120. key <AB03> { [ c, ccedilla, VoidSymbol ] };
  121. key <AB04> { [ v, VoidSymbol, VoidSymbol ] };
  122. key <AB05> { [ b, B, VoidSymbol ] };
  123. key <AB06> { [ n, N, ntilde ] };
  124. key <AB07> { [ m, VoidSymbol, VoidSymbol ] };
  125. key <AB08> { [ comma, less, UAB ] };
  126. key <AB09> { [ period, greater, UBB ] };
  127. key <AB10> { [ slash, question, U200C ] };
  128. key <AC01> { [ a, aacute, adiaeresis ] };
  129. key <AC02> { [ s, VoidSymbol, VoidSymbol ] };
  130. key <AC03> { [ eth, ETH, VoidSymbol ] };
  131. key <AC04> { [ thorn, f, VoidSymbol ] };
  132. key <AC05> { [ g, G, VoidSymbol ] };
  133. key <AC06> { [ h, VoidSymbol, VoidSymbol ] };
  134. key <AC07> { [ j, ccedilla, VoidSymbol ] };
  135. key <AC08> { [ k, VoidSymbol, VoidSymbol ] };
  136. key <AC09> { [ l, L, ocircumflex ] };
  137. key <AC10> { [ semicolon, colon, VoidSymbol ] };
  138. key <AC11> { [ apostrophe, quotedbl, VoidSymbol ] };
  139. key <AD01> { [ d, D, q ] };
  140. key <AD02> { [ ae, acute, VoidSymbol ] };
  141. key <AD03> { [ e, eacute, ediaeresis ] };
  142. key <AD04> { [ r, ucircumflex, VoidSymbol ] };
  143. key <AD05> { [ t, VoidSymbol, VoidSymbol ] };
  144. key <AD06> { [ y, VoidSymbol, VoidSymbol ] };
  145. key <AD07> { [ u, uacute, udiaeresis ] };
  146. key <AD08> { [ i, iacute, idiaeresis ] };
  147. key <AD09> { [ o, oacute, odiaeresis ] };
  148. key <AD10> { [ p, VoidSymbol, VoidSymbol ] };
  149. key <AD11> { [ bracketleft, braceleft, VoidSymbol ] };
  150. key <AD12> { [ bracketright, braceright, VoidSymbol ] };
  151. key <AE01> { [ 1, exclam, dead_macron ] };
  152. key <AE02> { [ 2, at, dead_belowdot ] };
  153. key <AE03> { [ 3, numbersign, dead_abovedot ] };
  154. key <AE04> { [ 4, dollar, currency ] };
  155. key <AE05> { [ 5, percent, UB0 ] };
  156. key <AE06> { [ 6, asciicircum, onequarter ] };
  157. key <AE07> { [ 7, ampersand, onehalf ] };
  158. key <AE08> { [ 8, asterisk, threequarters ] };
  159. key <AE09> { [ 9, parenleft, VoidSymbol ] };
  160. key <AE10> { [ 0, parenright, VoidSymbol ] };
  161. key <AE11> { [ minus, underscore, U2014 ] };
  162. key <AE12> { [ equal, plus, VoidSymbol ] };
  163. key <BKSL> { [ backslash, bar, VoidSymbol ] };
  164. key <SPCE> { [ space, nobreakspace, VoidSymbol ] };
  165. key <TLDE> { [ grave, asciitilde, VoidSymbol ] };
  166. include "level3(alt_switch)"
  167. };