Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. function romatohiragana(t: text) :: text:
  2. replace all "ka" with "か" in {_t}
  3. replace all "ki" with "き" in {_t}
  4. replace all "ku" with "く" in {_t}
  5. replace all "ke" with "け" in {_t}
  6. replace all "ko" with "こ" in {_t}
  7. replace all "sa" with "さ" in {_t}
  8. replace all "si" with "し" in {_t}
  9. replace all "su" with "す" in {_t}
  10. replace all "se" with "せ" in {_t}
  11. replace all "so" with "そ" in {_t}
  12. replace all "ta" with "た" in {_t}
  13. replace all "ti" with "ち" in {_t}
  14. replace all "tu" with "つ" in {_t}
  15. replace all "te" with "て" in {_t}
  16. replace all "to" with "と" in {_t}
  17. replace all "na" with "な" in {_t}
  18. replace all "ni" with "に" in {_t}
  19. replace all "nu" with "ぬ" in {_t}
  20. replace all "ne" with "ね" in {_t}
  21. replace all "no" with "の" in {_t}
  22. replace all "ha" with "は" in {_t}
  23. replace all "hi" with "ひ" in {_t}
  24. replace all "hu" with "ふ" in {_t}
  25. replace all "he" with "へ" in {_t}
  26. replace all "ho" with "ほ" in {_t}
  27. replace all "ma" with "ま" in {_t}
  28. replace all "mi" with "み" in {_t}
  29. replace all "mu" with "む" in {_t}
  30. replace all "me" with "め" in {_t}
  31. replace all "mo" with "も" in {_t}
  32. replace all "ya" with "や" in {_t}
  33. replace all "yi" with "い" in {_t}
  34. replace all "yu" with "ゆ" in {_t}
  35. replace all "ye" with "いぇ" in {_t}
  36. replace all "yo" with "よ" in {_t}
  37. replace all "ra" with "ら" in {_t}
  38. replace all "ri" with "り" in {_t}
  39. replace all "ru" with "る" in {_t}
  40. replace all "re" with "れ" in {_t}
  41. replace all "ro" with "ろ" in {_t}
  42. replace all "wa" with "わ" in {_t}
  43. replace all "wi" with "うぃ" in {_t}
  44. replace all "we" with "うぇ" in {_t}
  45. replace all "wo" with "を" in {_t}
  46. replace all "nn" with "ん" in {_t}
  47. replace all "xa" with "ぁ" in {_t}
  48. replace all "xi" with "ぃ" in {_t}
  49. replace all "xu" with "ぅ" in {_t}
  50. replace all "xe" with "ぇ" in {_t}
  51. replace all "xo" with "ぉ" in {_t}
  52. replace all "xya" with "ゃ" in {_t}
  53. replace all "xyu" with "ゅ" in {_t}
  54. replace all "ょ" with "ょ" in {_t}
  55. replace all "xtu" with "っ" in {_t}
  56. replace all "xwa" with "ゎ" in {_t}
  57. replace all "ga" with "が" in {_t}
  58. replace all "gi" with "ぎ" in {_t}
  59. replace all "gu" with "ぐ" in {_t}
  60. replace all "ge" with "げ" in {_t}
  61. replace all "go" with "ご" in {_t}
  62. replace all "za" with "ざ" in {_t}
  63. replace all "zi" with "じ" in {_t}
  64. replace all "zu" with "ず" in {_t}
  65. replace all "ze" with "ぜ" in {_t}
  66. replace all "zo" with "ぞ" in {_t}
  67. replace all "da" with "だ" in {_t}
  68. replace all "di" with "ぢ" in {_t}
  69. replace all "du" with "づ" in {_t}
  70. replace all "de" with "で" in {_t}
  71. replace all "do" with "ど" in {_t}
  72. replace all "ba" with "ば" in {_t}
  73. replace all "bi" with "び" in {_t}
  74. replace all "bu" with "ぶ" in {_t}
  75. replace all "be" with "べ" in {_t}
  76. replace all "bo" with "ぼ" in {_t}
  77. replace all "pa" with "ぱ" in {_t}
  78. replace all "pi" with "ぴ" in {_t}
  79. replace all "pu" with "ぷ" in {_t}
  80. replace all "pe" with "ぺ" in {_t}
  81. replace all "po" with "ぽ" in {_t}
  82. replace all "wha" with "うぁ" in {_t}
  83. replace all "wi" with "うぃ" in {_t}
  84. replace all "we" with "うぇ" in {_t}
  85. replace all "who" with "うぉ" in {_t}
  86. replace all "va" with "ヴぁ" in {_t}
  87. replace all "vi" with "ヴぃ" in {_t}
  88. replace all "vu" with "ヴ" in {_t}
  89. replace all "ve" with "ヴぇ" in {_t}
  90. replace all "vo" with "ヴぉ" in {_t}
  91. replace all "kya" with "きゃ" in {_t}
  92. replace all "kyi" with "きぃ" in {_t}
  93. replace all "kyu" with "きゅ" in {_t}
  94. replace all "kye" with "きぇ" in {_t}
  95. replace all "kyo" with "きょ" in {_t}
  96. replace all "gya" with "ぎゃ" in {_t}
  97. replace all "gyi" with "ぎぃ" in {_t}
  98. replace all "gyu" with "ぎゅ" in {_t}
  99. replace all "gye" with "ぎぇ" in {_t}
  100. replace all "gyo" with "ぎょ" in {_t}
  101. replace all "sha" with "しゃ" in {_t}
  102. replace all "syi" with "しぃ" in {_t}
  103. replace all "shu" with "しゅ" in {_t}
  104. replace all "she" with "しぇ" in {_t}
  105. replace all "sho" with "しょ" in {_t}
  106. replace all "ja" with "じゃ" in {_t}
  107. replace all "zyi" with "じぃ" in {_t}
  108. replace all "ju" with "じゅ" in {_t}
  109. replace all "je" with "じぇ" in {_t}
  110. replace all "jo" with "じょ" in {_t}
  111. replace all "cha" with "ちゃ" in {_t}
  112. replace all "chi" with "ち" in {_t}
  113. replace all "chu" with "ちゅ" in {_t}
  114. replace all "che" with "ちぇ" in {_t}
  115. replace all "cho" with "ちょ" in {_t}
  116. replace all "dya" with "ぢゃ" in {_t}
  117. replace all "dyi" with "ぢぃ" in {_t}
  118. replace all "dyu" with "ぢゅ" in {_t}
  119. replace all "dye" with "ぢぇ" in {_t}
  120. replace all "dyo" with "ぢょ" in {_t}
  121. replace all "tha" with "てゃ" in {_t}
  122. replace all "thi" with "てぃ" in {_t}
  123. replace all "thu" with "てゅ" in {_t}
  124. replace all "the" with "てぇ" in {_t}
  125. replace all "tho" with "てょ" in {_t}
  126. replace all "dha" with "でゃ" in {_t}
  127. replace all "dhi" with "でぃ" in {_t}
  128. replace all "dhu" with "でゅ" in {_t}
  129. replace all "dhe" with "でぇ" in {_t}
  130. replace all "dho" with "でょ" in {_t}
  131. replace all "nya" with "にゃ" in {_t}
  132. replace all "nyi" with "にぃ" in {_t}
  133. replace all "nyu" with "にゅ" in {_t}
  134. replace all "nye" with "にぇ" in {_t}
  135. replace all "nyo" with "にょ" in {_t}
  136. replace all "hya" with "ひゃ" in {_t}
  137. replace all "hyi" with "ひぃ" in {_t}
  138. replace all "hyu" with "ひゅ" in {_t}
  139. replace all "hye" with "ひぇ" in {_t}
  140. replace all "hyo" with "ひょ" in {_t}
  141. replace all "bya" with "びゃ" in {_t}
  142. replace all "byi" with "びぃ" in {_t}
  143. replace all "byu" with "びゅ" in {_t}
  144. replace all "bye" with "びぇ" in {_t}
  145. replace all "byo" with "びょ" in {_t}
  146. replace all "pya" with "ぴゃ" in {_t}
  147. replace all "pyi" with "ぴぃ" in {_t}
  148. replace all "pyu" with "ぴゅ" in {_t}
  149. replace all "pye" with "ぴぇ" in {_t}
  150. replace all "pyo" with "ぴょ" in {_t}
  151. replace all "fa" with "ふぁ" in {_t}
  152. replace all "fi" with "ふぃ" in {_t}
  153. replace all "fu" with "ふ" in {_t}
  154. replace all "fe" with "ふぇ" in {_t}
  155. replace all "fo" with "ふぉ" in {_t}
  156. replace all "mya" with "みゃ" in {_t}
  157. replace all "myi" with "みぃ" in {_t}
  158. replace all "myu" with "みゅ" in {_t}
  159. replace all "mye" with "みぇ" in {_t}
  160. replace all "myo" with "みょ" in {_t}
  161. replace all "rya" with "りゃ" in {_t}
  162. replace all "ryi" with "りぃ" in {_t}
  163. replace all "ryu" with "りゅ" in {_t}
  164. replace all "rye" with "りぇ" in {_t}
  165. replace all "ryo" with "りょ" in {_t}
  166. replace all "a" with "あ" in {_t}
  167. replace all "i" with "い" in {_t}
  168. replace all "u" with "う" in {_t}
  169. replace all "e" with "え" in {_t}
  170. replace all "o" with "お" in {_t}
  171. return {_t}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement