interscript 0.1.2 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +250 -17
  3. data/lib/g2pwrapper.py +34 -0
  4. data/lib/interscript.rb +142 -20
  5. data/lib/interscript/command.rb +28 -0
  6. data/lib/interscript/fs.rb +69 -0
  7. data/lib/interscript/mapping.rb +142 -0
  8. data/lib/interscript/opal.rb +57 -0
  9. data/lib/interscript/opal/entrypoint.rb +12 -0
  10. data/lib/interscript/opal/map_translate.rb +7 -0
  11. data/lib/interscript/opal/maps.js.erb +10 -0
  12. data/lib/interscript/version.rb +1 -1
  13. data/lib/model-7 +0 -0
  14. data/lib/tha-pt-b-7 +0 -0
  15. data/maps/acadsin-zho-Hani-Latn-2002.yaml +38916 -0
  16. data/maps/alalc-amh-Ethi-Latn-1997.yaml +513 -0
  17. data/maps/alalc-amh-Ethi-Latn-2011.yaml +138 -0
  18. data/maps/alalc-ara-Arab-Latn-1997.yaml +1287 -0
  19. data/maps/alalc-asm-Deva-Latn-1997.yaml +165 -0
  20. data/maps/alalc-asm-Deva-Latn-2012.yaml +40 -0
  21. data/maps/alalc-aze-Cyrl-Latn-1997.yaml +145 -0
  22. data/maps/alalc-bel-Cyrl-Latn-1997.yaml +129 -0
  23. data/maps/alalc-ben-Beng-Latn-2017.yaml +130 -0
  24. data/maps/alalc-bul-Cyrl-Latn-1997.yaml +98 -0
  25. data/maps/alalc-ell-Grek-Latn-1997.yaml +628 -0
  26. data/maps/alalc-ell-Grek-Latn-2010.yaml +626 -0
  27. data/maps/alalc-guj-Gujr-Latn-1997.yaml +266 -0
  28. data/maps/alalc-guj-Gujr-Latn-2011.yaml +64 -0
  29. data/maps/alalc-hin-Deva-Latn-1997.yaml +211 -0
  30. data/maps/alalc-hin-Deva-Latn-2011.yaml +47 -0
  31. data/maps/alalc-kat-Geok-Latn-1997.yaml +111 -0
  32. data/maps/alalc-kat-Geor-Latn-1997.yaml +150 -0
  33. data/maps/alalc-kor-Hang-Latn-1997.yaml +98 -0
  34. data/maps/alalc-mal-Mlym-Latn-1997.yaml +303 -0
  35. data/maps/alalc-mal-Mlym-Latn-2012.yaml +73 -0
  36. data/maps/alalc-mar-Deva-Latn-1997.yaml +189 -0
  37. data/maps/alalc-mar-Deva-Latn-2011.yaml +45 -0
  38. data/maps/alalc-mkd-Cyrl-Latn-1997.yaml +114 -0
  39. data/maps/alalc-mkd-Cyrl-Latn-2013.yaml +103 -0
  40. data/maps/alalc-mon-Cyrl-Latn-1997.yaml +220 -0
  41. data/maps/alalc-pan-Guru-Latn-1997.yaml +256 -0
  42. data/maps/alalc-pan-Guru-Latn-2011.yaml +78 -0
  43. data/maps/alalc-per-Arab-Latn-1997.yaml +375 -0
  44. data/maps/alalc-pli-Deva-Latn-2012.yaml +144 -0
  45. data/maps/alalc-pra-Deva-Latn-2012.yaml +47 -0
  46. data/maps/alalc-rus-Cyrl-Latn-1997.yaml +225 -0
  47. data/maps/alalc-rus-Cyrl-Latn-2012.yaml +162 -0
  48. data/maps/alalc-san-Deva-Latn-2012.yaml +172 -0
  49. data/maps/alalc-sin-Sinh-Latn-1997.yaml +292 -0
  50. data/maps/alalc-sin-Sinh-Latn-2011.yaml +71 -0
  51. data/maps/alalc-srp-Cyrl-Latn-1997.yaml +118 -0
  52. data/maps/alalc-srp-Cyrl-Latn-2013.yaml +135 -0
  53. data/maps/alalc-tam-Taml-Latn-1997.yaml +62 -0
  54. data/maps/alalc-tam-Taml-Latn-2011.yaml +58 -0
  55. data/maps/alalc-ukr-Cyrl-Latn-1997.yaml +145 -0
  56. data/maps/alalc-ukr-Cyrl-Latn-2011.yaml +16 -0
  57. data/maps/apcbg-bul-Cyrl-Latn-1995.yaml +283 -0
  58. data/maps/{bas-rus-Cyrl-Latn-bss.yaml → bas-rus-Cyrl-Latn-2017-bss.yaml} +58 -33
  59. data/maps/{bas-rus-Cyrl-Latn-oss.yaml → bas-rus-Cyrl-Latn-2017-oss.yaml} +55 -35
  60. data/maps/bgn-jpn-Hrkt-Latn-1962.yaml +292 -0
  61. data/maps/bgn-kor-Hang-Latn-1943.yaml +35 -0
  62. data/maps/bgn-kor-Kore-Latn-1943.yaml +31 -0
  63. data/maps/bgna-bul-Cyrl-Latn-2006.yaml +208 -0
  64. data/maps/bgna-bul-Cyrl-Latn-2009.yaml +208 -0
  65. data/maps/bgnpcgn-amh-Ethi-Latn-1967.yaml +532 -0
  66. data/maps/bgnpcgn-ara-Arab-Latn-1956.yaml +596 -0
  67. data/maps/bgnpcgn-arm-Armn-Latn-1981.yaml +2 -3
  68. data/maps/bgnpcgn-aze-Cyrl-Latn-1993.yaml +104 -0
  69. data/maps/bgnpcgn-bak-Cyrl-Latn-2007.yaml +188 -0
  70. data/maps/bgnpcgn-bel-Cyrl-Latn-1979.yaml +289 -0
  71. data/maps/bgnpcgn-bul-Cyrl-Latn-1952.yaml +119 -0
  72. data/maps/bgnpcgn-bul-Cyrl-Latn-2013.yaml +15 -65
  73. data/maps/bgnpcgn-che-Cyrl-Latn-2008.yaml +184 -0
  74. data/maps/bgnpcgn-ell-Grek-Latn-1962.yaml +705 -0
  75. data/maps/bgnpcgn-ell-Grek-Latn-1996.yaml +23 -0
  76. data/maps/{bgnpcgn-per-Arab-Latn-1956.yaml → bgnpcgn-fas-Arab-Latn-1956.yaml} +5 -2
  77. data/maps/bgnpcgn-jpn-Hrkt-Latn-1976.yaml +257 -0
  78. data/maps/bgnpcgn-kat-Geor-Latn-1981.yaml +131 -0
  79. data/maps/bgnpcgn-kat-Geor-Latn-2009.yaml +42 -0
  80. data/maps/bgnpcgn-kor-Hang-Latn-kn-1945.yaml +253 -0
  81. data/maps/bgnpcgn-kor-Hang-Latn-rok-2011.yaml +48 -0
  82. data/maps/bgnpcgn-kor-Kore-Latn-rok-2011.yaml +48 -0
  83. data/maps/bgnpcgn-mkd-Cyrl-Latn-1981.yaml +163 -0
  84. data/maps/bgnpcgn-mkd-Cyrl-Latn-2013.yaml +190 -0
  85. data/maps/bgnpcgn-mon-Cyrl-Latn-1964.yaml +223 -0
  86. data/maps/bgnpcgn-nep-Deva-Latn-2011.yaml +230 -0
  87. data/maps/bgnpcgn-per-Arab-Latn-1958.yaml +336 -0
  88. data/maps/bgnpcgn-prs-Arab-Latn-2007.yaml +639 -0
  89. data/maps/bgnpcgn-prs-Arab-Latn-yaghoubi.yaml +459 -0
  90. data/maps/bgnpcgn-rue-Cyrl-Latn-2016.yaml +168 -0
  91. data/maps/bgnpcgn-rus-Cyrl-Latn-1947.yaml +150 -65
  92. data/maps/bgnpcgn-srp-Cyrl-Latn-2005.yaml +170 -0
  93. data/maps/bgnpcgn-tat-Cyrl-Latn-2007.yaml +220 -0
  94. data/maps/bgnpcgn-tgk-Cyrl-Latn-1994.yaml +240 -0
  95. data/maps/bgnpcgn-ukr-Cyrl-Latn-1965.yaml +80 -4
  96. data/maps/bgnpcgn-ukr-Cyrl-Latn-2019.yaml +119 -0
  97. data/maps/bgnpcgn-uzb-Cyrl-Latn-1979.yaml +127 -0
  98. data/maps/bgnpcgn-uzb-Cyrl-Latn-2000.yaml +82 -0
  99. data/maps/bgnpcgn-zho-Hans-Latn-1979.yaml +7456 -0
  100. data/maps/bis-asm-Beng-Latn-13194-1991.yaml +159 -0
  101. data/maps/bis-ben-Beng-Latn-13194-1991.yaml +156 -0
  102. data/maps/bis-dev-Deva-Latn-13194-1991.yaml +184 -0
  103. data/maps/bis-guj-Gujr-Latn-13194-1991.yaml +181 -0
  104. data/maps/bis-knd-Knda-Latn-13194-1991.yaml +173 -0
  105. data/maps/bis-mlm-Mlym-Latn-13194-1991.yaml +176 -0
  106. data/maps/bis-ori-Orya-Latn-13194-1991.yaml +160 -0
  107. data/maps/bis-pnj-Guru-Latn-13194-1991.yaml +175 -0
  108. data/maps/bis-tel-Telu-Latn-13194-1991.yaml +170 -0
  109. data/maps/bis-tml-Taml-Latn-13194-1991.yaml +155 -0
  110. data/maps/by-bel-Cyrl-Latn-1998.yaml +172 -0
  111. data/maps/by-bel-Cyrl-Latn-2007.yaml +115 -0
  112. data/maps/din-grc-Grek-Latn-31634-2011-t1.yaml +899 -0
  113. data/maps/din-hin-Deva-Latn-33904-2018.yaml +100 -0
  114. data/maps/din-kat-Geor-Latn-32707-2010.yaml +145 -0
  115. data/maps/din-mar-Deva-Latn-33904-2018.yaml +84 -0
  116. data/maps/din-nep-Deva-Latn-33904-2018.yaml +119 -0
  117. data/maps/din-pli-Deva-Latn-33904-2018.yaml +75 -0
  118. data/maps/din-pra-Deva-Latn-33904-2018.yaml +63 -0
  119. data/maps/din-san-Deva-Latn-33904-2018.yaml +338 -0
  120. data/maps/din-tam-Taml-Latn-33903-2016.yaml +213 -0
  121. data/maps/dos-nep-Deva-Latn-1997.yaml +47 -0
  122. data/maps/elot-ell-Grek-Latn-743-1982-tl.yaml +684 -0
  123. data/maps/elot-ell-Grek-Latn-743-1982-ts.yaml +680 -0
  124. data/maps/elot-ell-Grek-Latn-743-2001-tl.yaml +19 -0
  125. data/maps/elot-ell-Grek-Latn-743-2001-ts.yaml +31 -0
  126. data/maps/ggg-kat-Geor-Latn-2002.yaml +92 -0
  127. data/maps/gki-bel-Cyrl-Latn-1992.yaml +33 -0
  128. data/maps/gki-bel-Cyrl-Latn-2000.yaml +201 -0
  129. data/maps/gost-rus-Cyrl-Latn-16876-71-1983.yaml +190 -0
  130. data/maps/gost-rus-Cyrl-Latn-7.79-2000-2002.yaml +157 -0
  131. data/maps/hk-yue-Hani-Latn-1888.yaml +38497 -0
  132. data/maps/icao-bel-Cyrl-Latn-9303.yaml +109 -98
  133. data/maps/icao-bul-Cyrl-Latn-9303.yaml +2 -7
  134. data/maps/{icao-per-Arab-Latn-9303.yaml → icao-fas-Arab-Latn-9303.yaml} +6 -8
  135. data/maps/icao-heb-Hebr-Latn-9303.yaml +119 -125
  136. data/maps/icao-mkd-Cyrl-Latn-9303.yaml +2 -3
  137. data/maps/icao-rus-Cyrl-Latn-9303.yaml +2 -4
  138. data/maps/icao-srp-Cyrl-Latn-9303.yaml +2 -3
  139. data/maps/icao-ukr-Cyrl-Latn-9303.yaml +2 -4
  140. data/maps/iso-ara-Arab-Latn-233-1984.yaml +323 -0
  141. data/maps/iso-asm-Beng-Latn-15919-2001.yaml +75 -0
  142. data/maps/iso-ben-Beng-Latn-15919-2001.yaml +175 -0
  143. data/maps/iso-ell-Grek-Latn-843-1997-t1.yaml +613 -0
  144. data/maps/iso-ell-Grek-Latn-843-1997-t2.yaml +44 -0
  145. data/maps/iso-guj-Gujr-Latn-15919-2001.yaml +220 -0
  146. data/maps/iso-hin-Deva-Latn-15919-2001.yaml +87 -0
  147. data/maps/iso-inc-Deva-Latn-15919-2001.yaml +61 -0
  148. data/maps/iso-jpn-Hrkt-Latn-3602-1989.yaml +66 -0
  149. data/maps/iso-kan-Knda-Latn-15919-2001.yaml +220 -0
  150. data/maps/iso-kat-Geor-Latn-9984-1996.yaml +145 -0
  151. data/maps/iso-kor-Hang-Latn-1996-method1.yaml +240 -0
  152. data/maps/iso-kor-Hang-Latn-1996-method2.yaml +226 -0
  153. data/maps/iso-mal-Mlym-Latn-15919-2001.yaml +281 -0
  154. data/maps/iso-mar-Deva-Latn-15919-2001.yaml +75 -0
  155. data/maps/iso-nep-Deva-Latn-15919-2001.yaml +87 -0
  156. data/maps/iso-ori-Orya-Latn-15919-2001.yaml +193 -0
  157. data/maps/iso-pan-Guru-Latn-15919-2001.yaml +222 -0
  158. data/maps/iso-pli-Beng-Latn-15919-2001.yaml +73 -0
  159. data/maps/iso-pli-Deva-Latn-15919-2001.yaml +74 -0
  160. data/maps/iso-pli-Sinh-Latn-15919-2001.yaml +219 -0
  161. data/maps/iso-pli-Thai-Latn-15919-2001.yaml +55 -0
  162. data/maps/iso-pra-Deva-Latn-15919-2001.yaml +59 -0
  163. data/maps/iso-prs-Arab-Latn-233-3-1999.yaml +366 -0
  164. data/maps/{iso-rus-Cyrl-Latn-iso9.yaml → iso-rus-Cyrl-Latn-9-1995.yaml} +4 -6
  165. data/maps/iso-san-Deva-Latn-15919-2001.yaml +220 -0
  166. data/maps/iso-tam-Taml-Latn-15919-2001.yaml +159 -0
  167. data/maps/iso-tel-Telu-Latn-15919-2001.yaml +220 -0
  168. data/maps/iso-tha-Thai-Latn-11940-1998.yaml +109 -0
  169. data/maps/kp-kor-Hang-Latn-2002.yaml +909 -0
  170. data/maps/lshk-yue-Hani-Latn-jyutping-1993.yaml +44820 -0
  171. data/maps/mext-jpn-Hrkt-Latn-1954.yaml +411 -0
  172. data/maps/mns-mon-Cyrl-Latn-5217-2012.yaml +163 -0
  173. data/maps/mns-mon-Latn-Cyrl-5217-2012.yaml +200 -0
  174. data/maps/moct-kor-Hang-Latn-2000.yaml +807 -0
  175. data/maps/mofa-jpn-Hrkt-Latn-1989.yaml +541 -0
  176. data/maps/mvd-bel-Cyrl-Latn-2008.yaml +225 -0
  177. data/maps/mvd-bel-Cyrl-Latn-2010.yaml +63 -0
  178. data/maps/mvd-rus-Cyrl-Latn-2008.yaml +109 -0
  179. data/maps/mvd-rus-Cyrl-Latn-2010.yaml +37 -0
  180. data/maps/odni-ara-Arab-Latn-2015.yaml +425 -0
  181. data/maps/odni-aze-Cyrl-Latn-2015.yaml +144 -0
  182. data/maps/odni-bel-Cyrl-Latn-2015.yaml +148 -0
  183. data/maps/odni-bul-Cyrl-Latn-2015.yaml +96 -0
  184. data/maps/odni-che-Cyrl-Latn-2015.yaml +169 -0
  185. data/maps/odni-fas-Arab-Latn-2015.yaml +406 -0
  186. data/maps/odni-hin-Deva-Latn-2015.yaml +258 -0
  187. data/maps/odni-kat-Geor-Latn-2015.yaml +87 -0
  188. data/maps/odni-kaz-Cyrl-Latn-2015.yaml +148 -0
  189. data/maps/odni-kir-Cyrl-Latn-2015.yaml +136 -0
  190. data/maps/odni-kor-Hang-Latn-2015.yaml +375 -0
  191. data/maps/odni-mkd-Cyrl-Latn-2015.yaml +122 -0
  192. data/maps/odni-per-Arab-Latn-2015.yaml +228 -0
  193. data/maps/odni-rus-Cyrl-Latn-2015.yaml +77 -0
  194. data/maps/odni-srp-Cyrl-Latn-2015.yaml +129 -0
  195. data/maps/odni-tat-Cyrl-Latn-2015.yaml +142 -0
  196. data/maps/odni-tgk-Cyrl-Latn-2015.yaml +148 -0
  197. data/maps/odni-uig-Cyrl-Latn-2015.yaml +138 -0
  198. data/maps/odni-ukr-Cyrl-Latn-2015.yaml +157 -0
  199. data/maps/odni-urd-Arab-Latn-2015.yaml +221 -0
  200. data/maps/odni-uzb-Cyrl-Latn-2015.yaml +166 -0
  201. data/maps/royin-tha-Thai-Latn-1939-generic.yaml +90 -0
  202. data/maps/royin-tha-Thai-Latn-1968.yaml +183 -0
  203. data/maps/royin-tha-Thai-Latn-1999-chained.yaml +180 -0
  204. data/maps/royin-tha-Thai-Latn-1999.yaml +80 -0
  205. data/maps/{cn-chn-Hans-Latn-pinyin.yaml → sac-zho-Hans-Latn-1979.yaml} +11 -8
  206. data/maps/sasm-mon-Mong-Latn-general-1978.yaml +389 -0
  207. data/maps/sasm-mon-Mong-Latn-phonetic-1978.yaml +354 -0
  208. data/maps/ses-ara-Arab-Latn-1930.yaml +283 -0
  209. data/maps/stategeocadastre-ukr-Cyrl-Latn-1993.yaml +222 -0
  210. data/maps/ua-ukr-Cyrl-Latn-1996.yaml +197 -0
  211. data/maps/ua-ukr-Cyrl-Latn-2007.yaml +75 -0
  212. data/maps/ua-ukr-Cyrl-Latn-2010.yaml +192 -0
  213. data/maps/un-amh-Ethi-Latn-2016.yaml +602 -0
  214. data/maps/un-ara-Arab-Latn-1971.yaml +139 -0
  215. data/maps/un-ara-Arab-Latn-1972.yaml +159 -0
  216. data/maps/un-ara-Arab-Latn-2017.yaml +420 -0
  217. data/maps/un-bel-Cyrl-Latn-2007.yaml +114 -0
  218. data/maps/un-ben-Beng-Latn-2016.yaml +534 -0
  219. data/maps/un-ell-Grek-Latn-1987-phonetic.yaml +780 -0
  220. data/maps/un-ell-Grek-Latn-1987-tl.yaml +31 -0
  221. data/maps/un-ell-Grek-Latn-1987-ts.yaml +19 -0
  222. data/maps/un-hin-Deva-Latn-2016.yaml +222 -0
  223. data/maps/un-mar-Deva-Latn-2016.yaml +91 -0
  224. data/maps/un-mon-Mong-Latn-general-2013.yaml +264 -0
  225. data/maps/un-mon-Mong-Latn-phonetic-2013.yaml +264 -0
  226. data/maps/un-nep-Deva-Latn-1972.yaml +350 -0
  227. data/maps/un-nep-Deva-Latn-2013.yaml +74 -0
  228. data/maps/un-rus-Cyrl-Latn-1987.yaml +166 -0
  229. data/maps/un-ukr-Cyrl-Latn-1998.yaml +53 -0
  230. data/maps/un-ukr-Cyrl-Latn-2012.yaml +162 -0
  231. data/maps/var-hin-Deva-Latn-hunterian-1872.yaml +221 -0
  232. data/maps/var-jpn-Hrkt-Latn-hepburn-1886.yaml +406 -0
  233. data/maps/var-jpn-Hrkt-Latn-hepburn-1954.yaml +386 -0
  234. data/maps/var-kor-Hang-Hang-jamo.yaml +11193 -0
  235. data/maps/var-kor-Hang-Latn-mr-1939.yaml +1054 -0
  236. data/maps/var-kor-Kore-Hang-2013.yaml +59754 -0
  237. data/maps/var-kor-Kore-Latn-mr-1939.yaml +36 -0
  238. data/maps/var-mar-Deva-Latn-hunterian-1872.yaml +43 -0
  239. data/maps/var-mon-Mong-Latn-1930.yaml +102 -0
  240. data/maps/var-mon-Mong-Latn-lessing.yaml +272 -0
  241. data/maps/var-mon-Mong-Latn-vpmc.yaml +274 -0
  242. data/maps/var-pra-Deva-Latn-iast-1912.yaml +30 -0
  243. data/maps/var-san-Deva-Latn-iast-1912.yaml +149 -0
  244. data/maps/var-tha-Thai-Thai-phonemic.yaml +59 -0
  245. data/maps/var-tha-Thai-Zsym-ipa.yaml +301 -0
  246. data/maps/var-zho-Hani-Latn-wd-1979.yaml +38912 -0
  247. data/spec/interscript/filenames_spec.rb +384 -0
  248. data/spec/interscript/mapping_spec.rb +42 -0
  249. data/spec/interscript_spec.rb +23 -5
  250. data/spec/spec_helper.rb +3 -1
  251. metadata +364 -34
  252. data/bin/interscript +0 -20
  253. data/bin/rspec +0 -29
  254. data/maps/bgnpcgn-chn-Hans-Latn-pinyin.yaml +0 -7503
  255. data/maps/historic-jpn-Hrkt-Latn-hepburn.yaml +0 -336
  256. data/maps/icao-gre-Grek-Latn-9303.yaml +0 -101
  257. data/maps/mext-jpn-Hrkt-Latn-hepburn.yaml +0 -330
  258. data/maps/mext-jpn-Hrkt-Latn-kunrei.yaml +0 -308
  259. data/maps/un-jpn-Hrkt-Latn-hepburn.yaml +0 -313
  260. data/maps/un-jpn-Hrkt-Latn-kunrei.yaml +0 -354
  261. data/maps/un-mon-Mong-Latn-2013.yaml +0 -80
@@ -0,0 +1,183 @@
1
+ ---
2
+ authority_id: royin
3
+ id: 1968-chained
4
+ language: iso-639-2:tha
5
+ source_script: Thai
6
+ destination_script: Latn
7
+ name: Royal Thai General System of Transcription (1968)
8
+ alias:
9
+ ogc11122:
10
+ code: tha_Thai2Latn_RIT_1968
11
+ description: Thai Royal Institute of Thailand 1968 System (out of date)
12
+ url: http://www.royin.go.th/wp-content/uploads/royin-ebook/276/FileUpload/758_6484.pdf
13
+ creation_date: 1968
14
+ adoption_date:
15
+ description: |
16
+ This map loads two external maps to convert Thai text first into phonemic Thai,
17
+ and then into IPA transcription.
18
+
19
+ The IPA transcription will then be handled by this map, and converted into
20
+ Royal Thai General System of Transcription (1968).
21
+
22
+ The first two parts are done via two external maps.
23
+
24
+ notes: |
25
+ The conversion from Thai to Phonemic Thai is still work-in-progress.
26
+
27
+ tests:
28
+ - source: "สะพาน"
29
+ expected: "saphan"
30
+ - source: "ลานตา"
31
+ expected: "lanta"
32
+ - source: "บาง"
33
+ expected: "bang"
34
+ - source: "สมุทร"
35
+ expected: "samut"
36
+ - source: "ลำ"
37
+ expected: "lam"
38
+ - source: "สิงห์"
39
+ expected: "sing"
40
+ - source: "บุรี"
41
+ expected: "buri"
42
+ - source: "สตึก"
43
+ expected: "satuk"
44
+ - source: "พืช"
45
+ expected: "phut"
46
+ - source: "บรบือ"
47
+ expected: "borabu"
48
+ - source: "ภู"
49
+ expected: "phu"
50
+ - source: "ปะนาเระ"
51
+ expected: "panare"
52
+ - source: "เพ็ญ"
53
+ expected: "phen"
54
+ # - source: "เขน"
55
+ # expected: "khen"
56
+ - source: "แซะ"
57
+ expected: "sae"
58
+ # - source: "สะแก"
59
+ # expected: "sakae"
60
+ - source: "พะโต๊ะ"
61
+ expected: "phato"
62
+ - source: "ลพ"
63
+ expected: "lop"
64
+ # - source: "สามโก้"
65
+ # expected: "samko"
66
+ - source: "เกาะ"
67
+ expected: "ko"
68
+ - source: "บ่อ"
69
+ expected: "bo"
70
+ - source: "เซอะ"
71
+ expected: "soe"
72
+ - source: "อำเภอ"
73
+ expected: "amphoe"
74
+ - source: "เนิน"
75
+ expected: "noen"
76
+ # - source: "เพียะ"
77
+ # expected: "phia"
78
+ - source: "เทียน"
79
+ expected: "thian"
80
+ # - source: "เกือะ"
81
+ # expected: "kua"
82
+ - source: "เมือง"
83
+ expected: "muang"
84
+ # - source: "ผัวะ"
85
+ # expected: "phua"
86
+ - source: "บัว"
87
+ expected: "bua"
88
+ # - source: "ควน"
89
+ # expected: "khuan"
90
+ - source: "ใหญ่"
91
+ expected: "yai"
92
+ # - source: "ไผ่"
93
+ # expected: "phai"
94
+ - source: "ชัย"
95
+ expected: "chai"
96
+ - source: "ไทย"
97
+ expected: "thai"
98
+ # - source: "ปาย"
99
+ # expected: "pai"
100
+ - source: "เจ้า"
101
+ expected: "chao"
102
+ - source: "ข้าว"
103
+ expected: "khao"
104
+ # - source: "กุย"
105
+ # expected: "kui"
106
+ - source: "โดย"
107
+ expected: "doi"
108
+ # - source: "ดอย"
109
+ # expected: "doi"
110
+ # - source: "งิ้ว"
111
+ # expected: "ngiu"
112
+ - source: "เร็ว"
113
+ expected: "reo"
114
+ # - source: "เลว"
115
+ # expected: "leo"
116
+ # - source: "เลย"
117
+ # expected: "loei"
118
+ # - source: "เดือย"
119
+ # expected: "duai"
120
+ # - source: "ห้วย"
121
+ # expected: "huai"
122
+ - source: "แมว"
123
+ expected: "maeo"
124
+ - source: "เขียว"
125
+ expected: "khieu"
126
+
127
+ chain: ["var-tha-Thai-Thai-phonemic" ,"var-tha-Thai-Zsym-ipa"]
128
+
129
+ map:
130
+ title-case: false
131
+ word_separator: " "
132
+
133
+ rules:
134
+ - pattern: '[˩˨˧˦˥]'
135
+ result : ''
136
+ - pattern: '^'
137
+ result: '.'
138
+
139
+ postrules:
140
+ - pattern: '\.'
141
+ result: ''
142
+
143
+ characters:
144
+
145
+ dictionary:
146
+
147
+ '̯': ''
148
+ '̚': ''
149
+
150
+ 'ʔ': ''
151
+ 'ː': ''
152
+
153
+ 't͡ɕʰ': 'ch'
154
+ 't͡ɕ': 'ch'
155
+ 'ŋ': 'ng'
156
+ 'j': 'y'
157
+ 'ɔ': 'o'
158
+ 'ɤ': 'oe'
159
+ 'ɛ': 'ae'
160
+ 'ɯ': 'u'
161
+ 'ʰ': 'h'
162
+
163
+ 'aːw': 'ao'
164
+ 'aw': 'ao'
165
+ 'a̯w': 'eu'
166
+ 'eːw': 'eo'
167
+ 'ew': 'eo'
168
+ 'ɛːw': 'aeo'
169
+ 'ɛw': 'aeo'
170
+ 'iːw': 'iu'
171
+ 'iw': 'iu'
172
+
173
+ 'aːj': 'ai'
174
+ 'aj': 'ai'
175
+ 'a̯j': 'ai'
176
+ 'ɔːj': 'oi'
177
+ 'ɔj': 'oi'
178
+ 'oːj': 'oi'
179
+ 'oj': 'oi'
180
+ 'ɤːj': 'oei'
181
+ 'ɤj': 'oei'
182
+ 'uːj': 'ui'
183
+ 'uj': 'ui'
@@ -0,0 +1,180 @@
1
+ ---
2
+ authority_id: royin
3
+ id: 1999-chained
4
+ language: iso-639-2:tha
5
+ source_script: Thai
6
+ destination_script: Latn
7
+ name: Royal Thai General System of Transcription (1999)
8
+ url: http://www.royin.go.th/wp-content/uploads/royin-ebook/276/FileUpload/758_6484.pdf
9
+ creation_date: 1999
10
+ adoption_date:
11
+ description: |
12
+ This map loads two external maps to convert Thai text first into phonemic Thai,
13
+ and then into IPA transcription.
14
+
15
+ The IPA transcription will then be handled by this map, and converted into
16
+ Royal Thai General System of Transcription (1999)
17
+
18
+ The first two parts are done via two external maps.
19
+
20
+ notes: |
21
+ The conversion from Thai to Phonemic Thai is still work-in-progress.
22
+
23
+ tests:
24
+ - source: "สะพาน"
25
+ expected: "saphan"
26
+ - source: "ลานตา"
27
+ expected: "lanta"
28
+ - source: "บาง"
29
+ expected: "bang"
30
+ - source: "สมุทร"
31
+ expected: "samut"
32
+ - source: "ลำ"
33
+ expected: "lam"
34
+ - source: "สิงห์"
35
+ expected: "sing"
36
+ - source: "บุรี"
37
+ expected: "buri"
38
+ - source: "สตึก"
39
+ expected: "satuek"
40
+ - source: "พืช"
41
+ expected: "phuet"
42
+ - source: "บรบือ"
43
+ expected: "borabue"
44
+ - source: "ภู"
45
+ expected: "phu"
46
+ - source: "ปะนาเระ"
47
+ expected: "panare"
48
+ - source: "เพ็ญ"
49
+ expected: "phen"
50
+ # - source: "เขน"
51
+ # expected: "khen"
52
+ - source: "แซะ"
53
+ expected: "sae"
54
+ # - source: "สะแก"
55
+ # expected: "sakae"
56
+ - source: "พะโต๊ะ"
57
+ expected: "phato"
58
+ - source: "ลพ"
59
+ expected: "lop"
60
+ # - source: "สามโก้"
61
+ # expected: "samko"
62
+ - source: "เกาะ"
63
+ expected: "ko"
64
+ - source: "บ่อ"
65
+ expected: "bo"
66
+ - source: "เซอะ"
67
+ expected: "soe"
68
+ - source: "อำเภอ"
69
+ expected: "amphoe"
70
+ - source: "เนิน"
71
+ expected: "noen"
72
+ # - source: "เพียะ"
73
+ # expected: "phia"
74
+ - source: "เทียน"
75
+ expected: "thian"
76
+ # - source: "เกือะ"
77
+ # expected: "kuea"
78
+ - source: "เมือง"
79
+ expected: "mueang"
80
+ # - source: "ผัวะ"
81
+ # expected: "phua"
82
+ - source: "บัว"
83
+ expected: "bua"
84
+ # - source: "ควน"
85
+ # expected: "khuan"
86
+ - source: "ใหญ่"
87
+ expected: "yai"
88
+ # - source: "ไผ่"
89
+ # expected: "phai"
90
+ - source: "ชัย"
91
+ expected: "chai"
92
+ - source: "ไทย"
93
+ expected: "thai"
94
+ # - source: "ปาย"
95
+ # expected: "pai"
96
+ - source: "เจ้า"
97
+ expected: "chao"
98
+ - source: "ข้าว"
99
+ expected: "khao"
100
+ # - source: "กุย"
101
+ # expected: "kui"
102
+ - source: "โดย"
103
+ expected: "doi"
104
+ # - source: "ดอย"
105
+ # expected: "doi"
106
+ # - source: "งิ้ว"
107
+ # expected: "ngio"
108
+ - source: "เร็ว"
109
+ expected: "reo"
110
+ # - source: "เลว"
111
+ # expected: "leo"
112
+ # - source: "เลย"
113
+ # expected: "loei"
114
+ # - source: "เดือย"
115
+ # expected: "dueai"
116
+ # - source: "ห้วย"
117
+ # expected: "huai"
118
+ - source: "แมว"
119
+ expected: "maeo"
120
+ - source: "เขียว"
121
+ expected: "khiao"
122
+
123
+
124
+ chain: ["var-tha-Thai-Thai-phonemic" ,"var-tha-Thai-Zsym-ipa"]
125
+
126
+ map:
127
+ title-case: false
128
+ word_separator: " "
129
+
130
+ rules:
131
+ - pattern: '[˩˨˧˦˥]'
132
+ result : ''
133
+ - pattern: '^'
134
+ result: '.'
135
+
136
+ postrules:
137
+ - pattern: '\.'
138
+ result: ''
139
+
140
+ characters:
141
+
142
+ dictionary:
143
+
144
+ '̯': ''
145
+ '̚': ''
146
+
147
+ 'ʔ': ''
148
+ 'ː': ''
149
+
150
+ 't͡ɕʰ': 'ch'
151
+ 't͡ɕ': 'ch'
152
+ 'ŋ': 'ng'
153
+ 'j': 'y'
154
+ 'ɔ': 'o'
155
+ 'ɤ': 'oe'
156
+ 'ɛ': 'ae'
157
+ 'ɯ': 'ue' # New spelling, was u in 1968
158
+ 'ʰ': 'h'
159
+
160
+ 'aːw': 'ao'
161
+ 'aw': 'ao'
162
+ 'a̯w': 'ao' # New spelling, was eu in 1968
163
+ 'eːw': 'eo'
164
+ 'ew': 'eo'
165
+ 'ɛːw': 'aeo'
166
+ 'ɛw': 'aeo'
167
+ 'iːw': 'io' # New spelling, was iu in 1968
168
+ 'iw': 'io' # New spelling, was iu in 1968
169
+
170
+ 'aːj': 'ai'
171
+ 'aj': 'ai'
172
+ 'a̯j': 'ai'
173
+ 'ɔːj': 'oi'
174
+ 'ɔj': 'oi'
175
+ 'oːj': 'oi'
176
+ 'oj': 'oi'
177
+ 'ɤːj': 'oei'
178
+ 'ɤj': 'oei'
179
+ 'uːj': 'ui'
180
+ 'uj': 'ui'
@@ -0,0 +1,80 @@
1
+ ---
2
+ authority_id: royin
3
+ id: 1999
4
+ language: iso-639-2:tha
5
+ source_script: Thai
6
+ destination_script: Latn
7
+ name: Royal Thai General System of Transcription (1999)
8
+ alias:
9
+ ogc11122:
10
+ code: tir_Thai2Latn_RIT_2000
11
+ description: Thai Royal Institute of Thailand 2000 System
12
+ url: http://www.royin.go.th/wp-content/uploads/royin-ebook/276/FileUpload/758_6484.pdf
13
+ creation_date: 1999
14
+ adoption_date:
15
+ description:
16
+
17
+ notes: |
18
+
19
+ tests:
20
+ - source: 'ภาษาไทย'
21
+ expected: 'phasathai'
22
+ - source: 'ไทย'
23
+ expected: 'thai'
24
+ - source: 'เชียงใหม่'
25
+ expected: 'chiangmai'
26
+ - source: 'ใหม่'
27
+ expected: 'mai'
28
+ - source: 'ใคร'
29
+ expected: 'khrai'
30
+ - source: "ที่"
31
+ expected: "thi"
32
+ - source: "เป็น"
33
+ expected: "pen"
34
+ - source: "ใน"
35
+ expected: "nai"
36
+ - source: "การ"
37
+ expected: "kan"
38
+ - source: "มี"
39
+ expected: "mi"
40
+ - source: "ได้"
41
+ expected: "dai"
42
+ - source: "ของ"
43
+ expected: "khong"
44
+ - source: "ไม่"
45
+ expected: "mai"
46
+ - source: "สถานีปางต้นผึ้ง"
47
+ expected: "sathanipangtonphueng"
48
+ - source: "ไพศาลี"
49
+ expected: "phaisali"
50
+ - source: "โรงเรียนไม้เรียงประชาสรรค์"
51
+ expected: "rongrianmairiangprachasan"
52
+
53
+ map:
54
+ title-case: false
55
+ word_separator: " "
56
+ transcription: "sequitur.pythainlp_lexicon"
57
+
58
+ rules:
59
+
60
+ postrules:
61
+ - pattern: 'chh'
62
+ result: 'ch'
63
+
64
+ characters:
65
+ '[0-9]': ''
66
+
67
+ dictionary:
68
+ 'ʰ': 'h'
69
+ 'c': 'ch'
70
+ 'ː': ''
71
+ 'ŋ': 'ng'
72
+ 'j': 'i'
73
+ 'w': 'o'
74
+ 'ɔ': 'o'
75
+ 'ɤ': 'oe'
76
+ 'ɛ': 'ae'
77
+ 'ɯ': 'ue'
78
+ 'ʔ' : ''
79
+ 't͡ɕ': 'c'
80
+ '.' : ''
@@ -1,18 +1,21 @@
1
1
  ---
2
- authority_id: cn
3
- id: pinyin
4
- language: chn
2
+ authority_id: sac
3
+ id: 1979
4
+ language: iso-639-2:chn
5
5
  source_script: Hans
6
6
  destination_script: Latn
7
7
  name: Pinyin
8
+ alias:
9
+ ogc11122:
10
+ code: zho_Hani2Latn_GCH_1979
11
+ description: Chinese Hanyu Pinyin 1979 System
8
12
  url: ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/data/Uni2Pinyin.gz
9
13
  creation_date: 1996-04-17
10
14
  description: |
11
15
  This table contains the data on how Unicode Hanzi characters
12
16
  are pronounced in P.R.China.
13
17
  tests:
14
- - source:
15
- expected:
18
+
16
19
 
17
20
  notes:
18
21
  - Nine tab-separated columns. Column #1 is the Unicode (in hex), Columns #2 to #6 are Pinyin (tone '5' means Qingsheng)
@@ -13601,8 +13604,8 @@ map:
13601
13604
  "\u7A21": "zui4"
13602
13605
  "\u7A22": "yu4"
13603
13606
  "\u7A23": "su1"
13604
- "\u7A24": l��4
13605
- "\u7A25":
13607
+ "\u7A24": "lue4"
13608
+ "\u7A25": "xiang1"
13606
13609
  "\u7A26": "yi1"
13607
13610
  "\u7A27": "xi4"
13608
13611
  "\u7A28": "bian1"
@@ -21054,7 +21057,7 @@ map:
21054
21057
  "\u92DF": "qin2"
21055
21058
  "\u92E0": "shen4"
21056
21059
  "\u92E1": "han2"
21057
- "\u92E2": l��4
21060
+ "\u92E2": "lue4"
21058
21061
  "\u92E3": "ye2"
21059
21062
  "\u92E4": "chu2"
21060
21063
  "\u92E5": "zeng4"