greek_classical.yml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. general:
  2. name: Greek (ancient and medieval)
  3. notes:
  4. - Compiled based on https://www.loc.gov/catdir/cpso/romanization/greek.pdf
  5. parents:
  6. - _ignore_base
  7. script_to_roman:
  8. hooks:
  9. begin_input_token:
  10. -
  11. - greek.parse_numeral
  12. map:
  13. "\u201C": "\"\u0332"
  14. "\u201D": "\"\u0333"
  15. "\u2018": "'\u0332"
  16. "\u2019": "'\u0333"
  17. "\u2116": "No\u0332"
  18. # "\u0300": ""
  19. # "\u0301": ""
  20. # "\u0302": ""
  21. # "\u0313": ""
  22. "\u0370": "H\u0323"
  23. "\u0371": "h\u0323"
  24. "\u0372": "S\uFE20\u0332S\uFE21\u0332"
  25. "\u0373": "s\uFE20\u0332s\uFE21\u0332"
  26. "\u0374": "\u02B9"
  27. "\u0375": "\u0326"
  28. "\u0376": "W\u0323"
  29. "\u0377": "w\u0323"
  30. # \u0378 reserved
  31. # \u0379 reserved
  32. "\u037A": "\u0328"
  33. "\u037B": "|)"
  34. "\u037C": "(."
  35. "\u037D": ".)"
  36. "\u037E": "?\u0333"
  37. "\u037F": "J"
  38. # \u0380 reserved
  39. # \u0381 reserved
  40. # \u0382 reserved
  41. # \u0383 reserved
  42. "\u0384": "\u0020\u0301"
  43. "\u0385": "\u0020\u0308\u0301"
  44. "\u0386\u0314": "Ha\u0301"
  45. "\u0386": "A\u0301"
  46. "\u0387": ";\u0333"
  47. "\u0388\u0314": "He\u0301"
  48. "\u0388": "E\u0301"
  49. "\u0389\u0314": "E\u0304\u0301"
  50. "\u0389": "E\u0304\u0301"
  51. "\u038A\u0314": "Hi\u0301"
  52. "\u038A": "I\u0301"
  53. # \u038B reserved
  54. "\u038C\u0314": "Ho\u0301"
  55. "\u038C": "O\u0301"
  56. # \u038D reserved
  57. "\u038E\u0314": "Hy\u0301"
  58. "\u038E": "Y\u0301"
  59. "\u038F\u0314": "Ho\u0301"
  60. "\u038F": "O\u0304\u0301"
  61. "\u0390": "i\u0308\u0301"
  62. "\u0391\u0314": "Ha"
  63. "\u0391\u03C5": "Au"
  64. "\u0391": "A"
  65. "\u0392": "B"
  66. "\u0393": "G"
  67. "\u0394": "D"
  68. "\u0395\u0314": "He"
  69. "\u0395\u03C5": "Eu"
  70. "\u0395": "E"
  71. "\u0396": "Z"
  72. "\u0397\u0314": "He\u0304"
  73. "\u0397": "E\u0304"
  74. "\u0398": "Th"
  75. "\u0399\u0314": "Hi"
  76. "\u0399\u03C5": "Iu"
  77. "\u0399": "I"
  78. "\u039A": "K"
  79. "\u039B": "L"
  80. "\u039C\u03C0%": "B"
  81. "\u039C": "M"
  82. # "\u039D\u03C4%": "D\u0332"
  83. "\u039D": "N"
  84. "\u039E": "X"
  85. "\u039F\u0314": "Ho"
  86. "\u039F\u03C5": "Ou"
  87. "\u039F": "O"
  88. "\u03A0": "P"
  89. "\u03A1\u0314": "Rh"
  90. "\u03A1": "R"
  91. # \u03A2 reserved
  92. "\u03A3": "S"
  93. "\u03A4": "T"
  94. "\u03A5\u0314": "Hy"
  95. "\u03A5": "Y"
  96. "\u03A6": "Ph"
  97. "\u03A7": "Ch"
  98. "\u03A8": "Ps"
  99. "\u03A9\u0314": "Ho\u0304"
  100. "\u03A9": "O\u0304"
  101. "\u03AA": "I\u0308"
  102. "\u03AB": "Y\u0308"
  103. "\u03AC\u0314": "ha\u0301"
  104. "\u03AC": "a\u0301"
  105. "\u03ADU": "he\u0301"
  106. "\u03AD": "e\u0301"
  107. "\u03AE\u0314": "he\u0304\u0301"
  108. "\u03AE": "e\u0304\u0301"
  109. "\u03AF\u0314": "hi\u0301"
  110. "\u03AF": "i\u0301"
  111. "\u03B0": "y\u0308\u0301"
  112. "\u03B1\u0314": "ha"
  113. "\u03B1\u03C5": "au"
  114. "\u03B1": "a"
  115. "\u03B2": "b"
  116. "\u03B3\u03B3": "ng"
  117. "%\u03B3\u03BA%": "nk"
  118. "\u03B3\u03BE": "nx"
  119. "\u03B3\u03C7": "nch"
  120. "\u03B3": "g"
  121. "\u03B4": "d"
  122. "\u03B5\u0314": "he"
  123. "\u03B5\u03C5": "eu"
  124. "\u03B5": "e"
  125. "\u03B6": "z"
  126. "\u03B7\u0314": "he\u0304"
  127. "\u03B7": "e\u0304"
  128. "\u03B8": "th"
  129. "\u03B9\u0314": "hi"
  130. "\u03B9\u03C5": "iu"
  131. "\u03B9": "i"
  132. "\u03BA": "k"
  133. "\u03BB": "l"
  134. "\u03BC\u03C0%": "b"
  135. "\u03BC": "m"
  136. # "\u03BD\u03C4%": "d\u0332"
  137. "\u03BD": "n"
  138. "\u03BE": "x"
  139. "\u03BF\u0314": "ho"
  140. "\u03BF\u03C5": "ou"
  141. "\u03BF": "o"
  142. "\u03C0": "p"
  143. "\u03C1\u0314": "rh"
  144. "\u03C1": "r"
  145. "\u03C2": "s"
  146. "\u03C3": "s"
  147. "\u03C4": "t"
  148. "\u03C5\u0314": "hy"
  149. "\u03C5": "y"
  150. "\u03C6": "ph"
  151. "\u03C7": "ch"
  152. "\u03C8": "ps"
  153. "\u03C9\u0314": "ho\u0304"
  154. "\u03C9": "o\u0304"
  155. "\u03CA": "i\u0308"
  156. "\u03CB": "y\u0308"
  157. "\u03CC": "o\u0301"
  158. "\u03CD": "y\u0301"
  159. "\u03CE": "o\u0304\u0301"
  160. "\u03CF": "K\u0326"
  161. "\u03D0": "b\u0333"
  162. "\u03D1": "t\u0333h\u0333"
  163. "\u03D2": "Y\u0333"
  164. "\u03D3": "Y\u0301\u0333"
  165. "\u03D4": "Y\u0308\u0333"
  166. "\u03D5": "p\u0333h\u0333"
  167. "\u03D6": "p\u0333"
  168. "\u03D7": "k\u0326"
  169. "\u03D8": "Q"
  170. "\u03D9": "q"
  171. "\u03DA": "6\u0333"
  172. "\u03DB": "6\u0332"
  173. "\u03DC": "G\u0332"
  174. "\u03DD": "g\u0332"
  175. "\u03DE": "K\u0324"
  176. "\u03DF": "k\u0324"
  177. "\u03E0": "s\uFE20s\uFE21"
  178. "\u03E1": "S\uFE20S\uFE21"
  179. "\u03E2": "S\u030C"
  180. "\u03E3": "s\u030C"
  181. "\u03E4": "F"
  182. "\u03E5": "f"
  183. "\u03E6": "H\u0332"
  184. "\u03E7": "h\u0332"
  185. "\u03E8": "H\u0307"
  186. "\u03E9": "h\u0307"
  187. "\u03EA": "C\u030C"
  188. "\u03EB": "c\u030C"
  189. "\u03EC": "K\u0323y"
  190. "\u03ED": "k\u0323y"
  191. "\u03EE": "T\u0323i"
  192. "\u03EF": "t\u0323i"
  193. "\u03F0": "k\u0332"
  194. "\u03F1": "r\u0332"
  195. "\u03F2": "s\u0332"
  196. "\u03F3": "j"
  197. "\u03F4": "T\u0333H\u0333"
  198. "\u03F5": "e\u0332"
  199. "\u03F6": "e\u0333"
  200. "\u03F7": "S\uFE20H\uFE21"
  201. "\u03F8": "s\uFE20h\uFE21"
  202. "\u03F9": "S\u0332"
  203. "\u03FA": "S\u0323"
  204. "\u03FB": "s\u0323"
  205. "\u03FC": "r\u0333"
  206. "\u03FD": "|)\u0333"
  207. "\u03FE": "(.\u0333"
  208. "\u03FF": ".)\u0333"
  209. roman_to_script:
  210. map:
  211. ".)\u0333": "\u03FF"
  212. ".)": "\u037D"
  213. "?\u0333": "\u037E"
  214. "\"\u0332": "\u201C"
  215. "\"\u0333": "\u201D"
  216. "'\u0332": "\u2018"
  217. "'\u0333": "\u2019"
  218. "(.\u0333": "\u03FE"
  219. "(.": "\u037C"
  220. "|)\u0333": "\u03FD"
  221. "|)": "\u037B"
  222. # Left pointing double angle quotation mark
  223. "\u003C\u003C": "\u00AB"
  224. # Right pointing double angle quotation mark
  225. "\u003E\u003E": "\u00BB"
  226. "6\u0332": "\u03DB"
  227. "6\u0333": "\u03DA"
  228. "Au": "\u0391\u03C5"
  229. "au": "\u03B1\u03C5"
  230. "a\u0301": "\u03AC"
  231. "B": "\u0392"
  232. "b": "\u03B2"
  233. "b\u0333": "\u03D0"
  234. "Ch": "\u03A7"
  235. "ch": "\u03C7"
  236. "c\u030C": "\u03EB"
  237. "D\u0332": "\u039D\u03C4"
  238. "d\u0332": "\u03BD\u03C4"
  239. "D": "\u0394"
  240. "d": "\u03B4"
  241. "Eu": "\u0395\u03C5"
  242. "eu": "\u03B5\u03C5"
  243. "E\u0301": "\u0388"
  244. "e\u0301": "\u03AD"
  245. "E\u0304\u0301": "\u0389\u0314"
  246. "e\u0304\u0301": "\u03AE"
  247. "E\u0304\u0301": "\u0389"
  248. "E\u0304": "\u0397"
  249. "e\u0304": "\u03B7"
  250. "e\u0332": "\u03F5"
  251. "e\u0333": "\u03F6"
  252. "F": "\u03E4"
  253. "f": "\u03E5"
  254. "G\u0332": "\u03DC"
  255. "g\u0332": "\u03DD"
  256. "Ha\u0301": "\u0386\u0314"
  257. "ha\u0301": "\u03AC\u0314"
  258. "Ha": "\u0391\u0314"
  259. "ha": "\u03B1\u0314"
  260. "A": "\u0391"
  261. "a": "\u03B1"
  262. "he\u0304\u0301": "\u03AE\u0314"
  263. "He\u0301": "\u0388\u0314"
  264. "he\u0301": "\u03AD\u0314"
  265. "He\u0304": "\u0397\u0314"
  266. "he\u0304": "\u03B7\u0314"
  267. "He": "\u0395\u0314"
  268. "he": "\u03B5\u0314"
  269. "E": "\u0395"
  270. "e": "\u03B5"
  271. "Hi\u0301": "\u038A\u0314"
  272. "hi\u0301": "\u03AF\u0314"
  273. "Hi": "\u0399\u0314"
  274. "hi": "\u03B9\u0314"
  275. "Ho\u0301": "\u038F\u0314"
  276. "Ho\u0301": "\u038C\u0314"
  277. "ho\u0304": "\u03C9\u0314"
  278. "Ho\u0304": "\u03A9\u0314"
  279. "Ho": "\u039F\u0314"
  280. "ho": "\u03BF\u0314"
  281. "H\u0307": "\u03E8"
  282. "h\u0307": "\u03E9"
  283. "H\u0323": "\u0370"
  284. "h\u0323": "\u0371"
  285. "H\u0332": "\u03E6"
  286. "h\u0332": "\u03E7"
  287. "Hy\u0301": "\u038E\u0314"
  288. "Hy": "\u03A5\u0314"
  289. "hy": "\u03C5\u0314"
  290. "Iu": "\u0399\u03C5"
  291. "iu": "\u03B9\u03C5"
  292. "I\u0301": "\u038A"
  293. "i\u0301": "\u03AF"
  294. "I\u0308": "\u03AA"
  295. "i\u0308\u0301": "\u0390"
  296. "i\u0308": "\u03CA"
  297. "J": "\u037F"
  298. "j": "\u03F3"
  299. "K\u0323y": "\u03EC"
  300. "k\u0323y": "\u03ED"
  301. "K\u0332": "\u03DE"
  302. "k\u0332": "\u03DF"
  303. "K\u0326": "\u03CF"
  304. "k\u0326": "\u03D7"
  305. "k\u0332": "\u03F0"
  306. "L": "\u039B"
  307. "l": "\u03BB"
  308. "M": "\u039C"
  309. "m": "\u03BC"
  310. "nch": "\u03B3\u03C7"
  311. "ng": "\u03B3\u03B3"
  312. "%nk%": "\u03B3\u03BA"
  313. "nx": "\u03B3\u03BE"
  314. "No\u0332": "\u2116"
  315. "N": "\u039D"
  316. "n": "\u03BD"
  317. "K": "\u039A"
  318. "k": "\u03BA"
  319. "G": "\u0393"
  320. "g": "\u03B3"
  321. "Ou": "\u039F\u03C5"
  322. "ou": "\u03BF\u03C5"
  323. "O\u0301": "\u038C"
  324. "o\u0301": "\u03CC"
  325. "O\u0304\u0301": "\u038F"
  326. "o\u0304\u0301": "\u03CE"
  327. "O\u0304": "\u03A9"
  328. "o\u0304": "\u03C9"
  329. "O": "\u039F"
  330. "o": "\u03BF"
  331. "Ph": "\u03A6"
  332. "ph": "\u03C6"
  333. "Ps": "\u03A8"
  334. "ps": "\u03C8"
  335. "p\u0333h\u0333": "\u03D5"
  336. "p\u0333": "\u03D6"
  337. "P": "\u03A0"
  338. "p": "\u03C0"
  339. "Q": "\u03D8"
  340. "q": "\u03D9"
  341. "Rh": "\u03A1\u0314"
  342. "rh": "\u03C1\u0314"
  343. "r\u0332": "\u03F1"
  344. "r\u0333": "\u03FC"
  345. "R": "\u03A1"
  346. "r": "\u03C1"
  347. "S\uFE20\u0332S\uFE21\u0332": "\u0372"
  348. "s\uFE20\u0332s\uFE21\u0332": "\u0373"
  349. "S\uFE20H\uFE21": "\u03F7"
  350. "s\uFE20h\uFE21": "\u03F8"
  351. "S\uFE20S\uFE21": "\u03E1"
  352. "s\uFE20s\uFE21": "\u03E0"
  353. "S\u030C": "\u03E2"
  354. "s\u030C": "\u03E3"
  355. "S\u0323": "\u03FA"
  356. "s\u0323": "\u03FB"
  357. "S\u0332": "\u03F9"
  358. "s\u0332": "\u03F2"
  359. "S": "\u03A3"
  360. "%s": "\u03C2"
  361. "s": "\u03C3"
  362. "T\u0333H\u0333": "\u03F4"
  363. "t\u0333h\u0333": "\u03D1"
  364. "Th": "\u0398"
  365. "th": "\u03B8"
  366. "T\u0323i": "\u03EE"
  367. "t\u0323i": "\u03EF"
  368. "T": "\u03A4"
  369. "t": "\u03C4"
  370. "I": "\u0399"
  371. "i": "\u03B9"
  372. "\u0020\u0301": "\u0384"
  373. "\u0020\u0308\u0301": "\u0385"
  374. ";\u0333": "\u0387"
  375. "\u02B9": "\u0374"
  376. "\u0326": "\u0375"
  377. "\u0328": "\u037A"
  378. "V": "\u0392"
  379. "v": "\u03B2"
  380. "W\u0323": "\u0376"
  381. "w\u0323": "\u0377"
  382. "X": "\u039E"
  383. "x": "\u03BE"
  384. "Y\u0301\u0333": "\u03D3"
  385. "Y\u0301": "\u038E"
  386. "y\u0301": "\u03CD"
  387. "Y\u0308\u0333": "\u03D4"
  388. "y\u0308\u0301": "\u03B0"
  389. "Y\u0308": "\u03AB"
  390. "y\u0308": "\u03CB"
  391. "Y\u0333": "\u03D2"
  392. "Y": "\u03A5"
  393. "y": "\u03C5"
  394. "Z": "\u0396"
  395. "z": "\u03B6"