interscript 0.1.6 → 2.1.0a9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/Gemfile +29 -0
  5. data/LICENSE.adoc +31 -0
  6. data/README.md +3 -0
  7. data/Rakefile +53 -0
  8. data/bin/console +14 -0
  9. data/bin/interscript +3 -39
  10. data/bin/maps_analyze_staging +168 -0
  11. data/bin/maps_debug_compilers +58 -0
  12. data/bin/maps_debug_ordering +88 -0
  13. data/bin/maps_debug_ruby_compile +24 -0
  14. data/bin/maps_debug_step_by_step +44 -0
  15. data/bin/maps_optimize_order +112 -0
  16. data/bin/maps_v1_analyze_regexps +45 -0
  17. data/bin/maps_v1_to_v2 +426 -0
  18. data/exe/interscript +6 -0
  19. data/interscript.gemspec +31 -0
  20. data/lib/interscript.rb +81 -127
  21. data/lib/interscript/command.rb +5 -5
  22. data/lib/interscript/compiler.rb +22 -0
  23. data/lib/interscript/compiler/javascript.rb +292 -0
  24. data/lib/interscript/compiler/ruby.rb +262 -0
  25. data/lib/interscript/dsl.rb +67 -0
  26. data/lib/interscript/dsl/aliases.rb +23 -0
  27. data/lib/interscript/dsl/document.rb +46 -0
  28. data/lib/interscript/dsl/group.rb +45 -0
  29. data/lib/interscript/dsl/group/parallel.rb +6 -0
  30. data/lib/interscript/dsl/items.rb +89 -0
  31. data/lib/interscript/dsl/metadata.rb +26 -0
  32. data/lib/interscript/dsl/stage.rb +6 -0
  33. data/lib/interscript/dsl/symbol_mm.rb +11 -0
  34. data/lib/interscript/dsl/tests.rb +12 -0
  35. data/lib/interscript/interpreter.rb +251 -0
  36. data/lib/interscript/node.rb +25 -0
  37. data/lib/interscript/node/alias_def.rb +15 -0
  38. data/lib/interscript/node/dependency.rb +13 -0
  39. data/lib/interscript/node/document.rb +45 -0
  40. data/lib/interscript/node/group.rb +34 -0
  41. data/lib/interscript/node/group/parallel.rb +9 -0
  42. data/lib/interscript/node/group/sequential.rb +2 -0
  43. data/lib/interscript/node/item.rb +52 -0
  44. data/lib/interscript/node/item/alias.rb +42 -0
  45. data/lib/interscript/node/item/any.rb +61 -0
  46. data/lib/interscript/node/item/capture.rb +50 -0
  47. data/lib/interscript/node/item/group.rb +51 -0
  48. data/lib/interscript/node/item/repeat.rb +40 -0
  49. data/lib/interscript/node/item/stage.rb +23 -0
  50. data/lib/interscript/node/item/string.rb +51 -0
  51. data/lib/interscript/node/metadata.rb +18 -0
  52. data/lib/interscript/node/rule.rb +6 -0
  53. data/lib/interscript/node/rule/funcall.rb +18 -0
  54. data/lib/interscript/node/rule/run.rb +15 -0
  55. data/lib/interscript/node/rule/sub.rb +65 -0
  56. data/lib/interscript/node/stage.rb +19 -0
  57. data/lib/interscript/node/tests.rb +15 -0
  58. data/lib/interscript/stdlib.rb +211 -0
  59. data/lib/interscript/utils/regexp_converter.rb +283 -0
  60. data/lib/interscript/version.rb +1 -1
  61. data/requirements.txt +1 -0
  62. metadata +75 -339
  63. data/README.adoc +0 -298
  64. data/bin/rspec +0 -29
  65. data/lib/__pycache__/g2pwrapper.cpython-38.pyc +0 -0
  66. data/lib/g2pwrapper.py +0 -34
  67. data/lib/interscript-opal.rb +0 -2
  68. data/lib/interscript/fs.rb +0 -71
  69. data/lib/interscript/mapping.rb +0 -142
  70. data/lib/interscript/opal.rb +0 -27
  71. data/lib/interscript/opal/maps.js.erb +0 -10
  72. data/lib/interscript/opal_map_translate.rb +0 -12
  73. data/lib/model-7 +0 -0
  74. data/lib/tha-pt-b-7 +0 -0
  75. data/maps/acadsin-zho-Hani-Latn-2002.yaml +0 -38912
  76. data/maps/alalc-amh-Ethi-Latn-1997.yaml +0 -509
  77. data/maps/alalc-amh-Ethi-Latn-2011.yaml +0 -138
  78. data/maps/alalc-ara-Arab-Latn-1997.yaml +0 -1283
  79. data/maps/alalc-asm-Deva-Latn-1997.yaml +0 -159
  80. data/maps/alalc-aze-Cyrl-Latn-1997.yaml +0 -141
  81. data/maps/alalc-bel-Cyrl-Latn-1997.yaml +0 -125
  82. data/maps/alalc-ben-Beng-Latn-2017.yaml +0 -130
  83. data/maps/alalc-bul-Cyrl-Latn-1997.yaml +0 -94
  84. data/maps/alalc-ell-Grek-Latn-1997.yaml +0 -624
  85. data/maps/alalc-ell-Grek-Latn-2010.yaml +0 -627
  86. data/maps/alalc-hin-Deva-Latn-2020.yaml +0 -159
  87. data/maps/alalc-kat-Geok-Latn-1997.yaml +0 -111
  88. data/maps/alalc-kat-Geor-Latn-1997.yaml +0 -146
  89. data/maps/alalc-kor-Hang-Latn-1997.yaml +0 -94
  90. data/maps/alalc-mar-Deva-Latn-1997.yaml +0 -170
  91. data/maps/alalc-mkd-Cyrl-Latn-1997.yaml +0 -114
  92. data/maps/alalc-mkd-Cyrl-Latn-2013.yaml +0 -103
  93. data/maps/alalc-pan-Deva-Latn-1997.yaml +0 -237
  94. data/maps/alalc-rus-Cyrl-Latn-1997.yaml +0 -221
  95. data/maps/alalc-rus-Cyrl-Latn-2012.yaml +0 -162
  96. data/maps/alalc-srp-Cyrl-Latn-1997.yaml +0 -114
  97. data/maps/alalc-srp-Cyrl-Latn-2013.yaml +0 -135
  98. data/maps/alalc-ukr-Cyrl-Latn-1997.yaml +0 -141
  99. data/maps/alalc-ukr-Cyrl-Latn-2011.yaml +0 -16
  100. data/maps/apcbg-bul-Cyrl-Latn-1995.yaml +0 -283
  101. data/maps/bas-rus-Cyrl-Latn-2017-bss.yaml +0 -174
  102. data/maps/bas-rus-Cyrl-Latn-2017-oss.yaml +0 -169
  103. data/maps/bgn-jpn-Hrkt-Latn-1962.yaml +0 -292
  104. data/maps/bgn-kor-Hang-Latn-1943.yaml +0 -31
  105. data/maps/bgn-kor-Kore-Latn-1943.yaml +0 -31
  106. data/maps/bgna-bul-Cyrl-Latn-2006.yaml +0 -208
  107. data/maps/bgna-bul-Cyrl-Latn-2009.yaml +0 -208
  108. data/maps/bgnpcgn-amh-Ethi-Latn-1967.yaml +0 -528
  109. data/maps/bgnpcgn-ara-Arab-Latn-1956.yaml +0 -592
  110. data/maps/bgnpcgn-arm-Armn-Latn-1981.yaml +0 -108
  111. data/maps/bgnpcgn-aze-Cyrl-Latn-1993.yaml +0 -104
  112. data/maps/bgnpcgn-bak-Cyrl-Latn-2007.yaml +0 -184
  113. data/maps/bgnpcgn-bel-Cyrl-Latn-1979.yaml +0 -285
  114. data/maps/bgnpcgn-bul-Cyrl-Latn-1952.yaml +0 -115
  115. data/maps/bgnpcgn-bul-Cyrl-Latn-2013.yaml +0 -38
  116. data/maps/bgnpcgn-ell-Grek-Latn-1962.yaml +0 -701
  117. data/maps/bgnpcgn-ell-Grek-Latn-1996.yaml +0 -19
  118. data/maps/bgnpcgn-jpn-Hrkt-Latn-1976.yaml +0 -257
  119. data/maps/bgnpcgn-kat-Geor-Latn-1981.yaml +0 -127
  120. data/maps/bgnpcgn-kat-Geor-Latn-2009.yaml +0 -42
  121. data/maps/bgnpcgn-kor-Hang-Latn-kn-1945.yaml +0 -253
  122. data/maps/bgnpcgn-kor-Hang-Latn-rok-2011.yaml +0 -48
  123. data/maps/bgnpcgn-kor-Kore-Latn-rok-2011.yaml +0 -48
  124. data/maps/bgnpcgn-mkd-Cyrl-Latn-1981.yaml +0 -159
  125. data/maps/bgnpcgn-mkd-Cyrl-Latn-2013.yaml +0 -190
  126. data/maps/bgnpcgn-nep-Deva-Latn-2011.yaml +0 -200
  127. data/maps/bgnpcgn-per-Arab-Latn-1956.yaml +0 -92
  128. data/maps/bgnpcgn-rus-Cyrl-Latn-1947.yaml +0 -314
  129. data/maps/bgnpcgn-srp-Cyrl-Latn-2005.yaml +0 -166
  130. data/maps/bgnpcgn-ukr-Cyrl-Latn-1965.yaml +0 -162
  131. data/maps/bgnpcgn-ukr-Cyrl-Latn-2019.yaml +0 -208
  132. data/maps/bgnpcgn-zho-Hans-Latn-1979.yaml +0 -7456
  133. data/maps/bis-asm-Beng-Latn-13194-1991.yaml +0 -159
  134. data/maps/bis-ben-Beng-Latn-13194-1991.yaml +0 -156
  135. data/maps/bis-dev-Deva-Latn-13194-1991.yaml +0 -184
  136. data/maps/bis-gjr-Gujr-Latn-13194-1991.yaml +0 -166
  137. data/maps/bis-knd-Knda-Latn-13194-1991.yaml +0 -173
  138. data/maps/bis-mlm-Mlym-Latn-13194-1991.yaml +0 -176
  139. data/maps/bis-ori-Orya-Latn-13194-1991.yaml +0 -160
  140. data/maps/bis-pnj-Guru-Latn-13194-1991.yaml +0 -175
  141. data/maps/bis-tel-Telu-Latn-13194-1991.yaml +0 -170
  142. data/maps/bis-tml-Taml-Latn-13194-1991.yaml +0 -155
  143. data/maps/by-bel-Cyrl-Latn-1998.yaml +0 -168
  144. data/maps/by-bel-Cyrl-Latn-2007.yaml +0 -115
  145. data/maps/dos-nep-Deva-Latn-1997.yaml +0 -33
  146. data/maps/elot-ell-Grek-Latn-743-1982-tl.yaml +0 -684
  147. data/maps/elot-ell-Grek-Latn-743-1982-ts.yaml +0 -680
  148. data/maps/elot-ell-Grek-Latn-743-2001-tl.yaml +0 -19
  149. data/maps/elot-ell-Grek-Latn-743-2001-ts.yaml +0 -31
  150. data/maps/ggg-kat-Geor-Latn-2002.yaml +0 -88
  151. data/maps/gki-bel-Cyrl-Latn-1992.yaml +0 -33
  152. data/maps/gki-bel-Cyrl-Latn-2000.yaml +0 -201
  153. data/maps/gost-rus-Cyrl-Latn-16876-71-1983.yaml +0 -186
  154. data/maps/hk-yue-Hani-Latn-1888.yaml +0 -38497
  155. data/maps/icao-bel-Cyrl-Latn-9303.yaml +0 -136
  156. data/maps/icao-bul-Cyrl-Latn-9303.yaml +0 -118
  157. data/maps/icao-heb-Hebr-Latn-9303.yaml +0 -151
  158. data/maps/icao-mkd-Cyrl-Latn-9303.yaml +0 -117
  159. data/maps/icao-per-Arab-Latn-9303.yaml +0 -103
  160. data/maps/icao-rus-Cyrl-Latn-9303.yaml +0 -117
  161. data/maps/icao-srp-Cyrl-Latn-9303.yaml +0 -117
  162. data/maps/icao-ukr-Cyrl-Latn-9303.yaml +0 -119
  163. data/maps/iso-ara-Arab-Latn-233-1984.yaml +0 -323
  164. data/maps/iso-ell-Grek-Latn-843-1997-t1.yaml +0 -609
  165. data/maps/iso-ell-Grek-Latn-843-1997-t2.yaml +0 -40
  166. data/maps/iso-jpn-Hrkt-Latn-3602-1989.yaml +0 -62
  167. data/maps/iso-rus-Cyrl-Latn-9-1995.yaml +0 -271
  168. data/maps/iso-tha-Thai-Latn-11940-1998.yaml +0 -109
  169. data/maps/kp-kor-Hang-Latn-2002.yaml +0 -901
  170. data/maps/lshk-yue-Hani-Latn-jyutping-1993.yaml +0 -44820
  171. data/maps/mext-jpn-Hrkt-Latn-1954.yaml +0 -411
  172. data/maps/moct-kor-Hang-Latn-2000.yaml +0 -803
  173. data/maps/mofa-jpn-Hrkt-Latn-1989.yaml +0 -541
  174. data/maps/mvd-bel-Cyrl-Latn-2008.yaml +0 -225
  175. data/maps/mvd-bel-Cyrl-Latn-2010.yaml +0 -63
  176. data/maps/mvd-rus-Cyrl-Latn-2008.yaml +0 -109
  177. data/maps/mvd-rus-Cyrl-Latn-2010.yaml +0 -37
  178. data/maps/nil-kor-Hang-Hang-jamo.yaml +0 -11193
  179. data/maps/odni-aze-Cyrl-Latn-2015.yaml +0 -144
  180. data/maps/odni-bel-Cyrl-Latn-2015.yaml +0 -148
  181. data/maps/odni-bul-Cyrl-Latn-2015.yaml +0 -96
  182. data/maps/odni-hin-Deva-Latn-2015.yaml +0 -258
  183. data/maps/odni-kat-Geor-Latn-2015.yaml +0 -87
  184. data/maps/odni-kaz-Cyrl-Latn-2015.yaml +0 -148
  185. data/maps/odni-kir-Cyrl-Latn-2015.yaml +0 -136
  186. data/maps/odni-mkd-Cyrl-Latn-2015.yaml +0 -122
  187. data/maps/odni-rus-Cyrl-Latn-2015.yaml +0 -77
  188. data/maps/odni-srp-Cyrl-Latn-2015.yaml +0 -129
  189. data/maps/odni-tat-Cyrl-Latn-2015.yaml +0 -142
  190. data/maps/odni-tgk-Cyrl-Latn-2015.yaml +0 -148
  191. data/maps/odni-uig-Cyrl-Latn-2015.yaml +0 -138
  192. data/maps/odni-ukr-Cyrl-Latn-2015.yaml +0 -157
  193. data/maps/odni-urd-Arab-Latn-2015.yaml +0 -221
  194. data/maps/odni-uzb-Cyrl-Latn-2015.yaml +0 -166
  195. data/maps/royin-tha-Thai-Latn-1939-generic.yaml +0 -90
  196. data/maps/royin-tha-Thai-Latn-1968.yaml +0 -179
  197. data/maps/royin-tha-Thai-Latn-1999-chained.yaml +0 -180
  198. data/maps/royin-tha-Thai-Latn-1999.yaml +0 -76
  199. data/maps/sac-zho-Hans-Latn-1979.yaml +0 -24759
  200. data/maps/ses-ara-Arab-Latn-1930.yaml +0 -279
  201. data/maps/stategeocadastre-ukr-Cyrl-Latn-1993.yaml +0 -222
  202. data/maps/ua-ukr-Cyrl-Latn-1996.yaml +0 -193
  203. data/maps/un-ara-Arab-Latn-1971.yaml +0 -139
  204. data/maps/un-ara-Arab-Latn-1972.yaml +0 -159
  205. data/maps/un-ara-Arab-Latn-2017.yaml +0 -420
  206. data/maps/un-bel-Cyrl-Latn-2007.yaml +0 -114
  207. data/maps/un-ben-Beng-Latn-2016.yaml +0 -534
  208. data/maps/un-ell-Grek-Latn-1987-tl.yaml +0 -31
  209. data/maps/un-ell-Grek-Latn-1987-ts.yaml +0 -19
  210. data/maps/un-ell-Grek-Latn-phonetic-1987.yaml +0 -780
  211. data/maps/un-mon-Mong-Latn-2013.yaml +0 -99
  212. data/maps/un-nep-Deva-Latn-1972.yaml +0 -163
  213. data/maps/un-rus-Cyrl-Latn-1987.yaml +0 -166
  214. data/maps/un-ukr-Cyrl-Latn-1998.yaml +0 -30
  215. data/maps/ungegn-amh-Ethi-Latn-2016.yaml +0 -575
  216. data/maps/var-jpn-Hrkt-Latn-hepburn-1886.yaml +0 -406
  217. data/maps/var-jpn-Hrkt-Latn-hepburn-1954.yaml +0 -386
  218. data/maps/var-kor-Hang-Latn-mr-1939.yaml +0 -1054
  219. data/maps/var-kor-Kore-Hang-2013.yaml +0 -59754
  220. data/maps/var-kor-Kore-Latn-mr-1939.yaml +0 -36
  221. data/maps/var-tha-Thai-Thai-phonemic.yaml +0 -59
  222. data/maps/var-tha-Thai-Zsym-ipa.yaml +0 -301
  223. data/maps/var-zho-Hani-Latn-1979.yaml +0 -38908
  224. data/spec/interscript/mapping_spec.rb +0 -42
  225. data/spec/interscript_spec.rb +0 -26
  226. data/spec/spec_helper.rb +0 -3
@@ -1,680 +0,0 @@
1
- ---
2
- authority_id: elot
3
- id: 1982
4
- language: ell
5
- source_script: Grek
6
- destination_script: Latn
7
- name: ELOT 743:1982
8
- url:
9
- creation_date: 1982
10
- description: |
11
- ELOT 743:1982 transcription table for Greek.
12
- note:
13
- - Also adopted as ISO 843:1997, by United Nations Group of Experts on Geographical Names (UNGEGN) (http://www.eki.ee/wgrs), and as the BGN/PCGN 1996 transliteration.
14
- - "\"Transliteration\" as used in this specification and its inheritors refers to reversible transliteration, as distinct from \"transcription\", which is a simpler transliteration and which is intended for default use."
15
- tests:
16
- - source: |
17
- Ένα πράμα μόνον με παρακίνησε κι εμένα να γράψω ότι τούτην την πατρίδα την έχομεν όλοι μαζί, και σοφοί κι αμαθείς και πλούσιοι και φτωχοί και πολιτικοί και στρατιωτικοί και οι πλέον μικρότεροι άνθρωποι· όσοι αγωνιστήκαμεν, αναλόγως ο καθείς, έχομεν να ζήσομεν εδώ. Το λοιπόν δουλέψαμεν όλοι μαζί, να την φυλάμεν κι όλοι μαζί και να μην λέγει ούτε ο δυνατός «εγώ» ούτε ο αδύνατος. Ξέρετε πότε να λέγει ο καθείς «εγώ»; Όταν αγωνιστεί μόνος του και φκιάσει ή χαλάσει, να λέγει «εγώ»· όταν όμως αγωνίζονται πολλοί και φκιάνουν, τότε να λένε «εμείς». Είμαστε εις το «εμείς» κι όχι εις το «εγώ». Και εις το εξής να μάθομεν γνώση, αν θέλομεν να φκιάσομεν χωριόν, να ζήσομεν όλοι μαζί.
18
-
19
- Γιάννης Μακρυγιάννης.
20
-
21
- expected: |
22
- Éna práma mónon me parakínise ki eména na grápso óti toútin tin patrída tin échomen óloi mazí, kai sofoí ki amatheís kai ploúsioi kai ftochoí kai politikoí kai stratiotikoí kai oi pléon mikróteroi ánthropoi; ósoi agonistíkamen, analógos o katheís, échomen na zísomen edó. To loipón doulépsamen óloi mazí, na tin fylámen ki óloi mazí kai na min légei oúte o dynatós «egó» oúte o adýnatos. Xérete póte na légei o katheís «egó»? Ótan agonisteí mónos tou kai fkiásei í chalásei, na légei «egó»; ótan ómos agonízontai polloí kai fkiánoun, tóte na léne «emeís». Eímaste eis to «emeís» ki óchi eis to «egó». Kai eis to exís na máthomen gnósi, an thélomen na fkiásomen chorión, na zísomen óloi mazí.
23
-
24
- Giánnis Makrygiánnis.
25
-
26
- - source: ΑΘΗΝΑ
27
- expected: ATHINA
28
- - source: μπαμπάκι
29
- expected: bampáki
30
- - source: νταντά
31
- expected: ntantá
32
- - source: γκέγκε
33
- expected: gkégke
34
- - source: Γκαμπόν
35
- expected: Gkampón
36
- - source: Μάγχη
37
- expected: Mánchi
38
- - source: κογξ
39
- expected: konx
40
- - source: υιός
41
- expected: yiós
42
- - source: Υιός
43
- expected: Yiós
44
- - source: νεράντζι
45
- expected: nerántzi
46
- - source: Γοίθιος
47
- expected: Goíthios
48
- - source: μπέικον
49
- expected: béikon
50
- - source: μπέϊκον
51
- expected: béïkon
52
- - source: βόλεϊ
53
- expected: vóleï
54
- - source: αθεΐα
55
- expected: atheḯa
56
- - source: Εϊγιαφιάτλαγιοκουτλ
57
- expected: Eïgiafiátlagiokoutl
58
- - source: Εΐτζι
59
- expected: Eḯtzi
60
- - source: Μυρτώο
61
- expected: Myrtóo
62
- - source: αέρας
63
- expected: aéras
64
- - source: γαυ γαυ
65
- expected: gaf gaf
66
- - source: Ταΰγετος
67
- expected: Taÿ́getos
68
- - source: σπρέυ
69
- expected: spréy
70
-
71
- - source: Αθήνα
72
- expected: Athína
73
- - source: Άγιον Όρος
74
- expected: Ágion Óros
75
- - source: Άγραφα
76
- expected: Ágrafa
77
- - source: Αγρίνιο
78
- expected: Agrínio
79
- - source: Αίγινα
80
- expected: Aígina
81
- - source: Αίγιο
82
- expected: Aígio
83
- - source: Αλεξανδρούπολη
84
- expected: Alexandroúpoli
85
- - source: Αλεποχώρι
86
- expected: Alepochóri
87
- - source: Αμοργός
88
- expected: Amorgós
89
- - source: Άμφισσα
90
- expected: Ámfissa
91
- - source: Αράχωβα
92
- expected: Aráchova
93
- - source: Άργος
94
- expected: Árgos
95
- - source: Αρκαδία
96
- expected: Arkadía
97
- - source: Άρτα
98
- expected: Árta
99
- - source: Βελούχι
100
- expected: Veloúchi
101
- - source: Βέροια
102
- expected: Véroia
103
- - source: Βοιωτία
104
- expected: Voiotía
105
- - source: Βόλος
106
- expected: Vólos
107
- - source: Βόνιτσα
108
- expected: Vónitsa
109
- - source: Γαλαξίδι
110
- expected: Galaxídi
111
- - source: Γαλάτσι
112
- expected: Galátsi
113
- - source: Γιαννιτσά
114
- expected: Giannitsá
115
- - source: Γλυφάδα
116
- expected: Glyfáda
117
- - source: Γρανίτσα
118
- expected: Granítsa
119
- - source: Γρεβενά
120
- expected: Grevená
121
- - source: Γύθειο
122
- expected: Gýtheio
123
- - source: Διόνυσος
124
- expected: Diónysos
125
- - source: Δίστομο
126
- expected: Dístomo
127
- - source: Δολιανά
128
- expected: Dolianá
129
- - source: Δράμα
130
- expected: Dráma
131
- - source: Δωδεκάνησα
132
- expected: Dodekánisa
133
- - source: Έδεσσα
134
- expected: Édessa
135
- - source: Ελευσίνα
136
- expected: Elefsína
137
- - source: Επίδαυρος
138
- expected: Epídavros
139
- - source: Επτάνησα
140
- expected: Eptánisa
141
- - source: Ερμούπολη
142
- expected: Ermoúpoli
143
- - source: Εύβοια
144
- expected: Évvoia
145
- - source: Ζάκυνθος
146
- expected: Zákynthos
147
- - source: Ήπειρος
148
- expected: Ípeiros
149
- - source: Ηράκλειο
150
- expected: Irákleio
151
- - source: Θάσος
152
- expected: Thásos
153
- - source: Θεσσαλονίκη
154
- expected: Thessaloníki
155
- - source: Θεσσαλία
156
- expected: Thessalía
157
- - source: Θεσπρωτία
158
- expected: Thesprotía
159
- - source: Θήβα
160
- expected: Thíva
161
- - source: Θράκη
162
- expected: Thráki
163
- - source: Ιθάκη
164
- expected: Itháki
165
- - source: Ίος
166
- expected: Íos
167
- - source: Ιωάννινα
168
- expected: Ioánnina
169
- - source: Καβάλα
170
- expected: Kavála
171
- - source: Καλάβρυτα
172
- expected: Kalávryta
173
- - source: Καλαμάτα
174
- expected: Kalamáta
175
- - source: Καλαμπάκα
176
- expected: Kalampáka
177
- - source: Καλύβια
178
- expected: Kalývia
179
- - source: Κάλυμνος
180
- expected: Kálymnos
181
- - source: Καρδίτσα
182
- expected: Kardítsa
183
- - source: Καρπενήσι
184
- expected: Karpenísi
185
- - source: Κάρυστος
186
- expected: Kárystos
187
- - source: Καστελλόριζο
188
- expected: Kastellórizo
189
- - source: Καστοριά
190
- expected: Kastoriá
191
- - source: Κατερίνη
192
- expected: Kateríni
193
- - source: Κάτω Αχαΐα
194
- expected: Káto Achaḯa
195
- - source: Κερατέα
196
- expected: Keratéa
197
- - source: Κέρκυρα
198
- expected: Kérkyra
199
- - source: Κεφαλλονιά
200
- expected: Kefalloniá
201
- - source: Κηφισιά
202
- expected: Kifisiá
203
- - source: Κιλκίς
204
- expected: Kilkís
205
- - source: Κοζάνη
206
- expected: Kozáni
207
- - source: Κολωνός
208
- expected: Kolonós
209
- - source: Κομοτηνή
210
- expected: Komotiní
211
- - source: Κόρινθος
212
- expected: Kórinthos
213
- - source: Κορώνη
214
- expected: Koróni
215
- - source: Κρανίδι
216
- expected: Kranídi
217
- - source: Κρέστενα
218
- expected: Kréstena
219
- - source: Κρήτη
220
- expected: Kríti
221
- - source: Κύθηρα
222
- expected: Kýthira
223
- - source: Κυκλάδες
224
- expected: Kykládes
225
- - source: Κύμη
226
- expected: Kými
227
- - source: Κυψέλη
228
- expected: Kypséli
229
- - source: Κως
230
- expected: Kos
231
- - source: Λαγκαδάς
232
- expected: Lagkadás
233
- - source: Λαμία
234
- expected: Lamía
235
- - source: Λάρισα
236
- expected: Lárisa
237
- - source: Λαύριο
238
- expected: Lávrio
239
- - source: Λέρος
240
- expected: Léros
241
- - source: Λέσβος
242
- expected: Lésvos
243
- - source: Λευκάδα
244
- expected: Lefkáda
245
- - source: Λήμνος
246
- expected: Límnos
247
- - source: Λιβαδειά
248
- expected: Livadeiá
249
- - source: Μακεδονία
250
- expected: Makedonía
251
- - source: Μάνη
252
- expected: Máni
253
- - source: Μαραθώνας
254
- expected: Marathónas
255
- - source: Μαρκόπουλο
256
- expected: Markópoulo
257
- - source: Μαρούσι
258
- expected: Maroúsi
259
- - source: Μέγαρα
260
- expected: Mégara
261
- - source: Μεσολόγγι
262
- expected: Mesolóngi
263
- - source: Μεταξουργείο
264
- expected: Metaxourgeío
265
- - source: Μέτσοβο
266
- expected: Métsovo
267
- - source: Μήλος
268
- expected: Mílos
269
- - source: Μύκονος
270
- expected: Mýkonos
271
- - source: Μυστράς
272
- expected: Mystrás
273
- - source: Μυτιλήνη
274
- expected: Mytilíni
275
- - source: Νάξος
276
- expected: Náxos
277
- - source: Νάουσα
278
- expected: Náousa
279
- - source: Ναύπακτος
280
- expected: Náfpaktos
281
- - source: Ναύπλιο
282
- expected: Náfplio
283
- - source: Νέα Σμύρνη
284
- expected: Néa Smýrni
285
- - source: Νίσυρος
286
- expected: Nísyros
287
- - source: Ξάνθη
288
- expected: Xánthi
289
- - source: Όλυμπος
290
- expected: Ólympos
291
- - source: Παγκράτι
292
- expected: Pagkráti
293
- - source: Παπάγου
294
- expected: Papágou
295
- - source: Πάρος
296
- expected: Páros
297
- - source: Πασαλιμάνι
298
- expected: Pasalimáni
299
- - source: Πατήσια
300
- expected: Patísia
301
- - source: Πάτμος
302
- expected: Pátmos
303
- - source: Πάτρα
304
- expected: Pátra
305
- - source: Πειραιάς
306
- expected: Peiraiás
307
- - source: Πελοπόννησος
308
- expected: Pelopónnisos
309
- - source: Περιστέρι
310
- expected: Peristéri
311
- - source: Πεύκη
312
- expected: Péfki
313
- - source: Πήλιο
314
- expected: Pílio
315
- - source: Πολύγυρος
316
- expected: Polýgyros
317
- - source: Πόρος
318
- expected: Póros
319
- - source: Πρέβεζα
320
- expected: Préveza
321
- - source: Πτολεμαΐδα
322
- expected: Ptolemaḯda
323
- - source: Πύλος
324
- expected: Pýlos
325
- - source: Πύργος
326
- expected: Pýrgos
327
- - source: Ρέθυμνο
328
- expected: Réthymno
329
- - source: Ρόδος
330
- expected: Ródos
331
- - source: Ρούμελη
332
- expected: Roúmeli
333
- - source: Σαλαμίνα
334
- expected: Salamína
335
- - source: Σαμοθράκη
336
- expected: Samothráki
337
- - source: Σάμος
338
- expected: Sámos
339
- - source: Σαντορίνη
340
- expected: Santoríni
341
- - source: Σέρρες
342
- expected: Sérres
343
- - source: Σίκινος
344
- expected: Síkinos
345
- - source: Σίφνος
346
- expected: Sífnos
347
- - source: Σκιάθος
348
- expected: Skiáthos
349
- - source: Σκόπελος
350
- expected: Skópelos
351
- - source: Σούλι
352
- expected: Soúli
353
- - source: Σπάρτη
354
- expected: Spárti
355
- - source: Στερεά Ελλάδα
356
- expected: Stereá Elláda
357
- - source: Στύρα
358
- expected: Stýra
359
- - source: Σύμη
360
- expected: Sými
361
- - source: Σύρος
362
- expected: Sýros
363
- - source: Σφακιά
364
- expected: Sfakiá
365
- - source: Τήλος
366
- expected: Tílos
367
- - source: Τήνος
368
- expected: Tínos
369
- - source: Τρίκαλα
370
- expected: Tríkala
371
- - source: Τρίπολη
372
- expected: Trípoli
373
- - source: Τσακωνιά
374
- expected: Tsakoniá
375
- - source: Ύδρα
376
- expected: Ýdra
377
- - source: Φάληρο
378
- expected: Fáliro
379
- - source: Φλώρινα
380
- expected: Flórina
381
- - source: Φολέγανδρος
382
- expected: Folégandros
383
- - source: Χάλκη
384
- expected: Chálki
385
- - source: Χαλκίδα
386
- expected: Chalkída
387
- - source: Χαλάνδρι
388
- expected: Chalándri
389
- - source: Χαλκιδική
390
- expected: Chalkidikí
391
- - source: Χανιά
392
- expected: Chaniá
393
- - source: Χίος
394
- expected: Chíos
395
- - source: Ψαρά
396
- expected: Psará
397
- - source: Αβάνα
398
- expected: Avána
399
- - source: Αγγλία
400
- expected: Anglía
401
- - source: Αϊβαλί
402
- expected: Aïvalí
403
- - source: Αλεξάνδρεια
404
- expected: Alexándreia
405
- - source: Άμστερνταμ
406
- expected: Ámsterntam
407
- - source: Βαυαρία
408
- expected: Vavaría
409
- - source: Βενετία
410
- expected: Venetía
411
- - source: Βερολίνο
412
- expected: Verolíno
413
- - source: Βερόνα
414
- expected: Veróna
415
- - source: Βιέννη
416
- expected: Viénni
417
- - source: Γένοβα
418
- expected: Génova
419
- - source: Δουβλίνο
420
- expected: Douvlíno
421
- - source: Καλαβρία
422
- expected: Kalavría
423
- - source: Καλιφόρνια
424
- expected: Kalifórnia
425
- - source: Καύκασος
426
- expected: Káfkasos
427
- - source: Κονγκό
428
- expected: Kongkó
429
- - source: Κορσική
430
- expected: Korsikí
431
- - source: Κουρδιστάν
432
- expected: Kourdistán
433
- - source: Κωνσταντινούπολη
434
- expected: Konstantinoúpoli
435
- - source: Κατεχόμενη Κύπρος
436
- expected: Katechómeni Kýpros
437
- - source: Λαπωνία
438
- expected: Laponía
439
- - source: Λευκωσία
440
- expected: Lefkosía
441
- - source: Λιβόρνο
442
- expected: Livórno
443
- - source: Λονδίνο
444
- expected: Londíno
445
- - source: Λυών
446
- expected: Lyón
447
- - source: Μάλαγα
448
- expected: Málaga
449
- - source: Μασσαλία
450
- expected: Massalía
451
- - source: Μικρονησία
452
- expected: Mikronisía
453
- - source: Μιλάνο
454
- expected: Miláno
455
- - source: Μόσχα
456
- expected: Móscha
457
- - source: Μπολόνια
458
- expected: Bolónia
459
- - source: Νάπολη
460
- expected: Nápoli
461
- - source: Νταγκεστάν
462
- expected: Ntagkestán
463
- - source: Νέα Υόρκη
464
- expected: Néa Yórki
465
- - source: Οξφόρδη
466
- expected: Oxfórdi
467
- - source: Ουαλία
468
- expected: Oualía
469
- - source: Παρίσι
470
- expected: Parísi
471
- - source: Πάφος
472
- expected: Páfos
473
- - source: Πολυνησία
474
- expected: Polynisía
475
- - source: Ρώμη
476
- expected: Rómi
477
- - source: Σαμάρεια
478
- expected: Samáreia
479
- - source: Σικελία
480
- expected: Sikelía
481
- - source: Σκανδιναβία
482
- expected: Skandinavía
483
- - source: Σκόπια
484
- expected: Skópia
485
- - source: Σκωτία
486
- expected: Skotía
487
- - source: Σμύρνη
488
- expected: Smýrni
489
- - source: Ταϊτή
490
- expected: Taïtí
491
- - source: Ταταρστάν
492
- expected: Tatarstán
493
- - source: Τζαμάικα
494
- expected: Tzamáika
495
- - source: Τηλλυρία
496
- expected: Tillyría
497
- - source: Τιρόλο
498
- expected: Tirólo
499
- - source: Τορίνο
500
- expected: Toríno
501
- - source: Φανάρι
502
- expected: Fanári
503
- - source: Φλωρεντία
504
- expected: Florentía
505
- - source: Χαβάη
506
- expected: Chavái
507
- - source: Χονγκ Κονγκ
508
- expected: Chongk Kongk
509
-
510
- map:
511
- # https://en.wikipedia.org/wiki/Romanization_of_Greek
512
- rules:
513
- - pattern: (?<=[ΑαΕεΗη])\u03A5(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Υ (after Α, Ε, Η)
514
- result: F
515
- - pattern: (?<=[ΑαΕεΗη])\u03A5(?=\b) # Υ (after Α, Ε, Η)
516
- result: F
517
- - pattern: (?<=[ΑαΕεΗη])\u03C5(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # υ (after Α, Ε, Η)
518
- result: f
519
- - pattern: (?<=[ΑαΕεΗη])\u03C5(?=\b) # υ (after Α, Ε, Η)
520
- result: f
521
- - pattern: (?<=[ΑαΕεΗη])\u03A5 # Υ (after Α, Ε, Η)
522
- result: V
523
- - pattern: (?<=[ΑαΕεΗη])\u03C5 # υ (after Α, Ε, Η)
524
- result: v
525
- - pattern: \u0391\u03CD(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Αύ
526
- result: Áf
527
- - pattern: \u0391\u03CD(?=\b) # Αύ
528
- result: Áf
529
- - pattern: \u0391\u03CD # Αύ
530
- result: Áv
531
- - pattern: \u03B1\u03CD(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Αύ
532
- result: áf
533
- - pattern: \u03B1\u03CD(?=\b) # Αύ
534
- result: áf
535
- - pattern: \u03B1\u03CD # Αύ
536
- result: áv
537
- - pattern: \u0395\u03CD(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Εύ
538
- result: Éf
539
- - pattern: \u0395\u03CD(?=\b) # Εύ
540
- result: Éf
541
- - pattern: \u0395\u03CD # Εύ
542
- result: Év
543
- - pattern: \u03B5\u03CD(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Εύ
544
- result: éf
545
- - pattern: \u03B5\u03CD(?=\b) # Εύ
546
- result: éf
547
- - pattern: \u03B5\u03CD # Εύ
548
- result: év
549
- - pattern: \u0397\u03CD(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Εύ
550
- result: Íf
551
- - pattern: \u0397\u03CD(?=\b) # Εύ
552
- result: Íf
553
- - pattern: \u0397\u03CD # Εύ
554
- result: Ív
555
- - pattern: \u03B7\u03CD(?=[θΘκΚξΞπΠσΣςτΤφΦχΧψΨ]) # Εύ
556
- result: íf
557
- - pattern: \u03B7\u03CD(?=\b) # Εύ
558
- result: íf
559
- - pattern: \u03B7\u03CD # Εύ
560
- result: ív
561
- - pattern: (?<=[Οο])\u03A5 # Υ (after Ο)
562
- result: U
563
- - pattern: (?<=[Οο])\u03C5 # υ (after Ο)
564
- result: u
565
- - pattern: (?<=[Οο])\u03CD # ύ (after Ο)
566
- result: ú
567
- - pattern: (?<=[ΆάΈέΉήΌό])\u03A5 # Άυ, Έυ, Ήυ, Όυ
568
- result: Υ
569
- - pattern: (?<=[ΆάΈέΉήΌό])\u03C5 # Άυ, Έυ, Ήυ, Όυ
570
- result: y
571
- - pattern: \u0393(?=[ξΞχΧ]) # Γ (before Γ, Ξ, Χ)
572
- result: N
573
- - pattern: \u03B3(?=[ξΞχΧ]) # γ (before Γ, Ξ, Χ)
574
- result: n
575
- - pattern: \u0393[Γγ] # Γ (before Γ)
576
- result: Ng
577
- - pattern: \u03B3\u03B3 # γ (before Γ)
578
- result: ng
579
- - pattern: \u0393[Κκ] # Γ (before Κ)
580
- result: Gk
581
- - pattern: \u03B3[Κκ] # γ (before Κ)
582
- result: gk
583
- - pattern: (?<=\b)\u039C[πΠ] # ΜΠ (initially)
584
- result: B
585
- - pattern: (?<=\b)\u03BC[πΠ] # μπ (initially)
586
- result: b
587
- - pattern: \u039C[πΠ](?=\b) # ΜΠ (finally)
588
- result: B
589
- - pattern: \u03BC[πΠ](?=\b) # μπ (finally)
590
- result: b
591
- - pattern: (?<!\b)\u039C[πΠ] # ΜΠ (medially)
592
- result: Mp
593
- - pattern: (?<!\b)\u03BC[πΠ] # μπ (medially)
594
- result: mp
595
- - pattern: \u037E # ;
596
- result: "?"
597
- - pattern: \u003B # ;
598
- result: "?"
599
-
600
- characters:
601
- "\u0027": ""
602
- "\u0386": "Á" # Ά
603
- "\u0391": "A" # Α
604
- "\u0392": "V" # Β
605
- "\u0393": "G" # Γ
606
- "\u0394": "D" # Δ
607
- "\u0395": "E" # Ε
608
- "\u0395\u03AA": "Εï" # ΕΪ
609
- "\u0395\u03CA": "Εï" # Εϊ
610
- "\u0388\u03CA": "Éï" # Έϊ
611
- "\u0396": "Z" # Ζ
612
- "\u0397": "I" # Η
613
- "\u0398": "Th" # Θ
614
- "\u0399": "I" # Ι
615
- "\u039A": "K" # Κ
616
- "\u039B": "L" # Λ
617
- "\u039C": "M" # Μ
618
- "\u039D": "N" # Ν
619
- "\u039E": "X" # Ξ
620
- "\u039F": "O" # Ο
621
- "\u03A0": "P" # Π
622
- "\u03A1": "R" # Ρ
623
- "\u03A3": "S" # Σ
624
- "\u03A4": "T" # Τ
625
- "\u03A5": "Y" # Υ
626
- "\u03A6": "F" # Φ
627
- "\u03A7": "Ch" # Χ
628
- "\u03A8": "Ps" # Ψ
629
- "\u03A9": "O" # Ω
630
- "\u0388": "É" # Έ
631
- "\u0389": "Í" # Ή
632
- "\u038A": "Í" # Ί
633
- "\u038C": "Ó" # Ό
634
- "\u038E": "Ý" # Ύ
635
- "\u038F": "Ó" # Ώ
636
- "\u03AA": "Ï" # Ϊ
637
- "\u03AB": "Ÿ" # Ϋ
638
-
639
- "\u03AC": "á" # ά
640
- "\u03B1": "a" # α
641
- "\u03B2": "v" # β
642
- "\u03B3": "g" # γ
643
- "\u03B4": "d" # δ
644
- "\u03B5": "e" # ε
645
- "\u03B5\u03CA": "eï" # εϊ
646
- "\u03AD\u03CA": "éï" # έϊ
647
- "\u03AD\u03B9": "éi" # έι
648
- "\u03B6": "z" # ζ
649
- "\u03B7": "i" # η
650
- "\u03B8": "th" # θ
651
- "\u03B9": "i" # ι
652
- "\u03BA": "k" # κ
653
- "\u03BB": "l" # λ
654
- "\u03BC": "m" # μ
655
- "\u03BD": "n" # ν
656
- "\u03BE": "x" # ξ
657
- "\u03BF": "o" # ο
658
- "\u03C0": "p" # π
659
- "\u03C1": "r" # ρ
660
- "\u03C3": "s" # σ
661
- "\u03C2": "s" # ς
662
- "\u03C4": "t" # τ
663
- "\u03C5": "y" # υ
664
- "\u03C6": "f" # φ
665
- "\u03C7": "ch" # χ
666
- "\u03C8": "ps" # ψ
667
- "\u03C9": "o" # ω
668
- "\u03AD": "é" # έ
669
- "\u03AE": "í" # ή
670
- "\u03AF": "í" # ί
671
- "\u03CC": "ó" # ό
672
- "\u03CD": "ý" # ύ
673
- "\u03CE": "ó" # ώ
674
- "\u03CA": "ï" # ϊ
675
- "\u03CB": "ÿ" # ϋ
676
- "\u0390": "ḯ" # ΐ
677
- "\u03B0": "ÿ́" # ΰ
678
-
679
- "\u0387": ";" # ·
680
- "\u00B7": ";" # ·