interscript 0.1.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) 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 +76 -128
  21. data/lib/interscript/command.rb +6 -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 +73 -223
  63. data/README.adoc +0 -297
  64. data/bin/rspec +0 -29
  65. data/lib/g2pwrapper.py +0 -34
  66. data/lib/interscript/mapping.rb +0 -125
  67. data/lib/model-7 +0 -0
  68. data/lib/tha-pt-b-7 +0 -0
  69. data/maps/acadsin-zho-Hani-Latn-2002.yaml +0 -38912
  70. data/maps/alalc-aze-Cyrl-Latn-1997.yaml +0 -141
  71. data/maps/alalc-bel-cyrl-latn-1997.yaml +0 -125
  72. data/maps/alalc-ben-Beng-Latn-2017.yaml +0 -130
  73. data/maps/alalc-bul-Cyrl-Latn-1997.yaml +0 -94
  74. data/maps/alalc-ell-Grek-Latn-1997.yaml +0 -625
  75. data/maps/alalc-ell-Grek-Latn-2010.yaml +0 -628
  76. data/maps/alalc-kat-Geok-Latn-1997.yaml +0 -112
  77. data/maps/alalc-kat-Geor-Latn-1997.yaml +0 -146
  78. data/maps/alalc-kor-Hang-Latn-1997.yaml +0 -94
  79. data/maps/alalc-mkd-Cyrl-Latn-2013.yaml +0 -103
  80. data/maps/alalc-mkd-cyrl-latn-1997.yaml +0 -114
  81. data/maps/alalc-rus-Cyrl-Latn-1997.yaml +0 -222
  82. data/maps/alalc-rus-Cyrl-Latn-2012.yaml +0 -162
  83. data/maps/alalc-srp-Cyrl-Latn-1997.yaml +0 -114
  84. data/maps/alalc-srp-cyrl-latn-2013.yaml +0 -135
  85. data/maps/alalc-ukr-Cyrl-Latn-1997.yaml +0 -141
  86. data/maps/alalc-ukr-Cyrl-Latn-2011.yaml +0 -16
  87. data/maps/apcbg-bul-Cyrl-Latn-1995.yaml +0 -283
  88. data/maps/bas-rus-Cyrl-Latn-2017-bss.yaml +0 -175
  89. data/maps/bas-rus-Cyrl-Latn-2017-oss.yaml +0 -169
  90. data/maps/bgn-jpn-Hrkt-Latn-1962.yaml +0 -294
  91. data/maps/bgn-kor-Hang-Latn-1943.yaml +0 -31
  92. data/maps/bgn-kor-Kore-Latn-1943.yaml +0 -31
  93. data/maps/bgna-bul-Cyrl-Latn-2006.yaml +0 -208
  94. data/maps/bgna-bul-Cyrl-Latn-2009.yaml +0 -208
  95. data/maps/bgnpcgn-arm-Armn-Latn-1981.yaml +0 -108
  96. data/maps/bgnpcgn-aze-Cyrl-Latn-1993.yaml +0 -104
  97. data/maps/bgnpcgn-bak-Cyrl-Latn-2007.yaml +0 -184
  98. data/maps/bgnpcgn-bel-cyrl-latn-1979.yaml +0 -285
  99. data/maps/bgnpcgn-bul-Cyrl-Latn-1952.yaml +0 -115
  100. data/maps/bgnpcgn-bul-Cyrl-Latn-2013.yaml +0 -38
  101. data/maps/bgnpcgn-chn-Hans-Latn-1979.yaml +0 -7456
  102. data/maps/bgnpcgn-ell-Grek-Latn-1962.yaml +0 -702
  103. data/maps/bgnpcgn-ell-Grek-Latn-1996.yaml +0 -20
  104. data/maps/bgnpcgn-jpn-Hrkt-Latn-1976.yaml +0 -257
  105. data/maps/bgnpcgn-kat-Geor-Latn-1981.yaml +0 -127
  106. data/maps/bgnpcgn-kat-Geor-Latn-2009.yaml +0 -43
  107. data/maps/bgnpcgn-kor-Hang-Latn-kn-1945.yaml +0 -253
  108. data/maps/bgnpcgn-kor-Hang-Latn-rok-2011.yaml +0 -48
  109. data/maps/bgnpcgn-kor-Kore-Latn-rok-2011.yaml +0 -48
  110. data/maps/bgnpcgn-mkd-Cyrl-Latn-1981.yaml +0 -159
  111. data/maps/bgnpcgn-mkd-Cyrl-Latn-2013.yaml +0 -190
  112. data/maps/bgnpcgn-per-Arab-Latn-1956.yaml +0 -93
  113. data/maps/bgnpcgn-rus-Cyrl-Latn-1947.yaml +0 -314
  114. data/maps/bgnpcgn-srp-Cyrl-Latn-2005.yaml +0 -166
  115. data/maps/bgnpcgn-ukr-Cyrl-Latn-1965.yaml +0 -163
  116. data/maps/bgnpcgn-ukr-Cyrl-Latn-2019.yaml +0 -208
  117. data/maps/by-bel-Cyrl-Latn-1998.yaml +0 -168
  118. data/maps/by-bel-Cyrl-Latn-2007.yaml +0 -115
  119. data/maps/elot-ell-Grek-Latn-743-1982-tl.yaml +0 -685
  120. data/maps/elot-ell-Grek-Latn-743-1982-ts.yaml +0 -681
  121. data/maps/elot-ell-Grek-Latn-743-2001-tl.yaml +0 -20
  122. data/maps/elot-ell-Grek-Latn-743-2001-ts.yaml +0 -32
  123. data/maps/ggg-kat-Geor-Latn-2002.yaml +0 -89
  124. data/maps/gki-bel-cyrl-latn-1992.yaml +0 -33
  125. data/maps/gki-bel-cyrl-latn-2000.yaml +0 -201
  126. data/maps/gost-rus-cyrl-latn-16876-71-1983.yaml +0 -186
  127. data/maps/hk-yue-Hani-Latn-1888.yaml +0 -38497
  128. data/maps/icao-bel-Cyrl-Latn-9303.yaml +0 -141
  129. data/maps/icao-bul-Cyrl-Latn-9303.yaml +0 -122
  130. data/maps/icao-heb-Hebr-Latn-9303.yaml +0 -151
  131. data/maps/icao-mkd-Cyrl-Latn-9303.yaml +0 -117
  132. data/maps/icao-per-Arab-Latn-9303.yaml +0 -104
  133. data/maps/icao-rus-Cyrl-Latn-9303.yaml +0 -118
  134. data/maps/icao-srp-Cyrl-Latn-9303.yaml +0 -117
  135. data/maps/icao-ukr-Cyrl-Latn-9303.yaml +0 -120
  136. data/maps/iso-ell-Grek-Latn-843-1997-t1.yaml +0 -610
  137. data/maps/iso-ell-Grek-Latn-843-1997-t2.yaml +0 -41
  138. data/maps/iso-jpn-Hrkt-Latn-3602-1989.yaml +0 -62
  139. data/maps/iso-rus-Cyrl-Latn-9-1995.yaml +0 -272
  140. data/maps/iso-tha-Thai-Latn-11940-1998.yaml +0 -109
  141. data/maps/kp-kor-Hang-Latn-2002.yaml +0 -901
  142. data/maps/lshk-yue-Hani-Latn-jyutping-1993.yaml +0 -44820
  143. data/maps/mext-jpn-Hrkt-Latn-1954.yaml +0 -411
  144. data/maps/moct-kor-Hang-Latn-2000.yaml +0 -803
  145. data/maps/mofa-jpn-Hrkt-Latn-1989.yaml +0 -541
  146. data/maps/mvd-bel-Cyrl-Latn-2008.yaml +0 -225
  147. data/maps/mvd-bel-Cyrl-Latn-2010.yaml +0 -63
  148. data/maps/mvd-rus-Cyrl-Latn-2008.yaml +0 -110
  149. data/maps/mvd-rus-Cyrl-Latn-2010.yaml +0 -37
  150. data/maps/nil-kor-Hang-Hang-jamo.yaml +0 -11193
  151. data/maps/odni-bel-Cyrl-Latn-2015.yaml +0 -148
  152. data/maps/odni-bul-Cyrl-Latn-2015.yaml +0 -96
  153. data/maps/odni-kat-Geor-Latn-2015.yaml +0 -88
  154. data/maps/odni-rus-Cyrl-Latn-2015.yaml +0 -77
  155. data/maps/odni-srp-Cyrl-Latn-2015.yaml +0 -129
  156. data/maps/odni-ukr-Cyrl-Latn-2015.yaml +0 -157
  157. data/maps/odni-uzb-Cyrl-Latn-2015.yaml +0 -167
  158. data/maps/royin-tha-Thai-Latn-1939-generic.yaml +0 -90
  159. data/maps/royin-tha-Thai-Latn-1968.yaml +0 -179
  160. data/maps/royin-tha-Thai-Latn-1999-chained.yaml +0 -180
  161. data/maps/royin-tha-Thai-Latn-1999.yaml +0 -76
  162. data/maps/sac-zho-Hans-Latn-1979.yaml +0 -24759
  163. data/maps/stategeocadastre-ukr-Cyrl-Latn-1993.yaml +0 -222
  164. data/maps/ua-ukr-Cyrl-Latn-1996.yaml +0 -193
  165. data/maps/un-bel-Cyrl-Latn-2007.yaml +0 -114
  166. data/maps/un-ben-Beng-Latn-2016.yaml +0 -534
  167. data/maps/un-ell-Grek-Latn-1987-tl.yaml +0 -32
  168. data/maps/un-ell-Grek-Latn-1987-ts.yaml +0 -20
  169. data/maps/un-ell-Grek-Latn-phonetic-1987.yaml +0 -780
  170. data/maps/un-mon-Mong-Latn-2013.yaml +0 -93
  171. data/maps/un-rus-Cyrl-Latn-1987.yaml +0 -166
  172. data/maps/un-ukr-cyrl-latn-1998.yaml +0 -30
  173. data/maps/var-jpn-Hrkt-Latn-hepburn-1886.yaml +0 -406
  174. data/maps/var-jpn-Hrkt-Latn-hepburn-1954.yaml +0 -386
  175. data/maps/var-kor-Hang-Latn-mr-1939.yaml +0 -1054
  176. data/maps/var-kor-Kore-Hang-2013.yaml +0 -59754
  177. data/maps/var-kor-Kore-Latn-mr-1939.yaml +0 -37
  178. data/maps/var-tha-Thai-Thai-phonemic.yaml +0 -59
  179. data/maps/var-tha-Thai-Zsym-ipa.yaml +0 -301
  180. data/maps/var-zho-Hani-Latn-1979.yaml +0 -38908
  181. data/spec/interscript/mapping_spec.rb +0 -42
  182. data/spec/interscript_spec.rb +0 -26
  183. data/spec/spec_helper.rb +0 -3
@@ -1,222 +0,0 @@
1
- ---
2
- authority_id: stategeocadastre
3
- id: 1993
4
- language: ukr
5
- source_script: Cyrl
6
- destination_script: Latn
7
- name: PROVISIONAL RULES OF REPRODUCING LETTERS OF THE UKRAINIAN ALPHABET WITH LATIN (ENGLISH) CHARACTERS
8
- url: https://unstats.un.org/unsd/geoinfo/UNGEGN/docs/17th-gegn-docs/17th_gegn_WP73.pdf
9
- creation_date: 1993
10
- description: |
11
- These Rules are intended for Romanized transliteration of Ukrainian
12
- geographic names in international cartographic editions.
13
-
14
- Geographic names of Russia, Byelorussia, Bulgaria and other states
15
- using the Cyrillic alphabet are transliterated according to rules
16
- accepted in those states.
17
-
18
- These Rules come into effect from the moment of their approval by
19
- the Main Administration of Geodesy, Cartography and Cadastre and
20
- will be effective until the introduction of a State standard of
21
- Ukraine regulating the Romanized transliteration of the Ukrainian
22
- alphabet.
23
-
24
- notes:
25
- - No apostrophe (’) is used in transliteration, the combination "ьо" is transliterated as "io"
26
- - Use of capitals in Latin version of Ukrainian geographic names correspond to the Ukrainian spelling
27
- - Generics geographical terms standing before or after a name in full or abbreviated form are transliterated
28
- - Romanized versions of complex and compound Ukrainian toponyms (one word, hyphenated or separate words) will follow the Ukrainian spelling
29
- - In indexes of Romanized geographical names entries must be arranged in the order of the Latin (English) alphabet
30
- - Geographic names of Russia, Byelorussia, Bulgaria and other states using the Cyrillic alphabet are transliterated according to rules accepted in those states.
31
- - "Ed: There seems to be a mistake in the source document. 'ц' should be replaced with ts instead 'tz'."
32
-
33
- tests:
34
- - source: Кам’янка # note[1]
35
- expected: Kamianka
36
- - source: Сьомаки # note[1]
37
- expected: Siomaky
38
- - source: Усть-Чорна # note[2]
39
- expected: Ust’-Chorna
40
- - source: Чорне море # note[2]
41
- expected: Chorne more
42
- - source: оз. Сиваш # note[3]
43
- expected: oz. Syvash
44
- - source: Кримський канал # note[3]
45
- expected: Kryms’kyi kanal # ! Example had typo in original document "Krums’kyi kanal"
46
- - source: Гола Пристань
47
- expected: Hola Prystan’
48
- - source: Корсунь Шевченківський
49
- expected: Korsun’ Shevchenkivs’kyi
50
- - source: Верхньодніпровськ
51
- expected: Verkhniodniprovs’k
52
- - source: Варва
53
- expected: Varva
54
- - source: Броди
55
- expected: Brody
56
- - source: Верховина
57
- expected: Verkhovyna
58
- - source: Глухів
59
- expected: Hlukhiv
60
- - source: Великий
61
- expected: Velykyi
62
- - source: Ґрунь(гора)
63
- expected: Grun’(hora)
64
- - source: Димер
65
- expected: Dymer
66
- - source: Срібне
67
- expected: Sribne
68
- - source: Євпаторія
69
- expected: Yevpatoriia
70
- - source: Єнакієве
71
- expected: Yenakiieve
72
- - source: Жолква
73
- expected: Zholkva
74
- - source: Затока
75
- expected: Zatoka
76
- - source: Житомир
77
- expected: Zhytomyr
78
- - source: Інгул
79
- expected: Inhul
80
- - source: Зміїв
81
- expected: Zmiïv
82
- - source: Йосипівка
83
- expected: Yosypivka
84
- - source: Стрий
85
- expected: Stryi
86
- - source: Калуш
87
- expected: Kalush
88
- - source: Лубни
89
- expected: Lubny
90
- - source: Миколаїв
91
- expected: Mykolaïv
92
- - source: Ніжин
93
- expected: Nizhyn
94
- - source: Острог
95
- expected: Ostroh
96
- - source: Печеніги
97
- expected: Pechenihy
98
- - source: Рівне
99
- expected: Rivne
100
- - source: Сарата
101
- expected: Sarata
102
- - source: Тячів
103
- expected: Tiachiv
104
- - source: Узин
105
- expected: Uzyn
106
- - source: Форос
107
- expected: Foros
108
- - source: Харків
109
- expected: Kharkiv
110
- - source: Цюрупінськ
111
- expected: Tsiurupins’k
112
- - source: Черемош
113
- expected: Cheremosh
114
- - source: Шацьк
115
- expected: Shats’k
116
- - source: Щорс
117
- expected: Shchors
118
- - source: Хмельницький
119
- expected: Khmel’nyts’kyi # ! Example had typo in original document "Khmel’nyts’ky"
120
- - source: Юрівка
121
- expected: Yurivka
122
- - source: Любеч
123
- expected: Liubech
124
- - source: Ялта
125
- expected: Yalta
126
- - source: Ясіня
127
- expected: Yasinia
128
-
129
-
130
- map:
131
- rules:
132
- - pattern: (?<!\b\u2019)\b\u0404 # Є in initial position -> Ye
133
- result: Ye
134
- - pattern: (?<!\b\u2019)\b\u0454 # є in initial position -> ye
135
- result: ye
136
- - pattern: (?<!\b\u2019)\b\u0419 # Й in initial position -> Y
137
- result: "Y"
138
- - pattern: (?<!\b\u2019)\b\u0419 # й in initial position -> y
139
- result: "y"
140
- - pattern: (?<!\b\u2019)\b\u042e # Ю in initial position -> Yu
141
- result: Yu
142
- - pattern: (?<!\b\u2019)\b\u044e # ю in initial position -> yu
143
- result: yu
144
- - pattern: (?<!\b\u2019)\b\u042f # Я in initial position -> Ya
145
- result: Ya
146
- - pattern: (?<!\b\u2019)\b\u044f # я in initial position -> ya
147
- result: ya
148
- # note[1]
149
- - pattern: \b\u2019\b # remove ’
150
- result: ""
151
- - pattern: \u042c\u041e
152
- result: "IO"
153
- - pattern: \u044c\u043e
154
- result: "io"
155
-
156
- characters:
157
- "\u0410": "A" # А
158
- "\u0411": "B" # Б
159
- "\u0412": "V" # В
160
- "\u0413": "H" # Г
161
- "\u0490": "G" # Ґ
162
- "\u0414": "D" # Д
163
- "\u0415": "E" # Е
164
- "\u0404": "Ie" # Є
165
- "\u0416": "Zh" # Ж
166
- "\u0417": "Z" # З
167
- "\u0418": "Y" # И
168
- "\u0406": "I" # І
169
- "\u0407": "I\u0308" # Ї
170
- "\u0419": "I" # Й
171
- "\u041a": "K" # К
172
- "\u041b": "L" # Л
173
- "\u041c": "M" # М
174
- "\u041d": "N" # Н
175
- "\u041e": "O" # О
176
- "\u041f": "P" # П
177
- "\u0420": "R" # Р
178
- "\u0421": "S" # С
179
- "\u0422": "T" # Т
180
- "\u0423": "U" # У
181
- "\u0424": "F" # Ф
182
- "\u0425": "Kh" # Х
183
- "\u0426": "Ts" # Ц note[7]
184
- "\u0427": "Ch" # Ч
185
- "\u0428": "Sh" # Ш
186
- "\u0429": "Shch" # Щ
187
- "\u042c": "\u2019" # Ь
188
- "\u042e": "Iu" # Ю
189
- "\u042f": "Ia" # Я
190
- "\u0430": "a" # а
191
- "\u0431": "b" # б
192
- "\u0432": "v" # в
193
- "\u0433": "h" # г
194
- "\u0491": "g" # ґ
195
- "\u0434": "d" # д
196
- "\u0435": "e" # е
197
- "\u0454": "ie" # є
198
- "\u0436": "zh" # ж
199
- "\u0437": "z" # з
200
- "\u0438": "y" # и
201
- "\u0456": "i" # і
202
- "\u0457": "i" # ї
203
- "\u0439": "i" # й
204
- "\u043a": "k" # к
205
- "\u043b": "l" # л
206
- "\u043c": "m" # м
207
- "\u043d": "n" # н
208
- "\u043e": "o" # о
209
- "\u043f": "p" # п
210
- "\u0440": "r" # р
211
- "\u0441": "s" # с
212
- "\u0442": "t" # т
213
- "\u0443": "u" # у
214
- "\u0444": "f" # ф
215
- "\u0445": "kh" # х
216
- "\u0446": "ts" # ц note[7]
217
- "\u0447": "ch" # ч
218
- "\u0448": "sh" # ш
219
- "\u0449": "shch" # щ
220
- "\u044e": "iu" # ю
221
- "\u044f": "ia" # я
222
- "\u044c": "\u2019" # ь
@@ -1,193 +0,0 @@
1
- ---
2
- authority_id: ua
3
- id: 1996
4
- language: ukr
5
- source_script: Cyrl
6
- destination_script: Latn
7
- name: Government of Ukraine Ukrainian System (1996)
8
- url: http://transliteration.eki.ee/pdf/Ukrainian.pdf
9
- creation_date: 1996
10
- description: Romanization table for Ukrainian. The current national system of romanization.
11
-
12
- notes:
13
- - gh is used in the romanization of зг zgh.
14
- - In initial position є -> ye, ї -> yi, й -> y, ю -> yu, я -> ya.
15
-
16
- tests:
17
- - source: Алушта
18
- expected: Alushta
19
- - source: Борщагівка
20
- expected: Borschahivka
21
- - source: Вишгород
22
- expected: Vyshhorod
23
- - source: Гадяч
24
- expected: Hadiach
25
- - source: Згорани
26
- expected: Zghorany
27
- - source: Ґалаґан
28
- expected: Galagan
29
- - source: Дон
30
- expected: Don
31
- - source: Рівне
32
- expected: Rivne
33
- - source: Єнакієве
34
- expected: Yenakiieve
35
- - source: Наєнко
36
- expected: Naienko
37
- - source: Житомир
38
- expected: Zhytomyr
39
- - source: Запоріжжя
40
- expected: Zaporizhzhia
41
- - source: Закарпаття
42
- expected: Zakarpattia
43
- - source: Медвин
44
- expected: Medvyn
45
- - source: Іршава
46
- expected: Irshava
47
- - source: Їжакевич
48
- expected: Yizhakevych
49
- - source: Кадіївка
50
- expected: Kadiivka
51
- - source: Йосипівка
52
- expected: Yosypivka
53
- - source: Київ
54
- expected: Kyiv
55
- - source: Лебедин
56
- expected: Lebedyn
57
- - source: Миколаїв
58
- expected: Mykolaiv
59
- - source: Ніжин
60
- expected: Nizhyn
61
- - source: Одеса
62
- expected: Odesa
63
- - source: Полтава
64
- expected: Poltava
65
- - source: Ромни
66
- expected: Romny
67
- - source: Суми
68
- expected: Sumy
69
- - source: Тетерів
70
- expected: Teteriv
71
- - source: Ужгород
72
- expected: Uzhhorod
73
- - source: Фастів
74
- expected: Fastiv
75
- - source: Харків
76
- expected: Kharkiv
77
- - source: Біла Церква
78
- expected: Bila Tserkva
79
- - source: Чернівці
80
- expected: Chernivtsi
81
- - source: Шостка
82
- expected: Shostka
83
- - source: Гоща
84
- expected: Hoscha
85
- - source: Русь
86
- expected: Rus’
87
- - source: Юрій
88
- expected: Yurii
89
- - source: Крюківка
90
- expected: Kriukivka
91
- - source: Яготин
92
- expected: Yahotyn
93
- - source: Ічня
94
- expected: Ichnia
95
- - source: Знам’янка
96
- expected: Znam”ianka
97
-
98
- map:
99
- rules:
100
- - pattern: (?<=[Зз])\u0413 # Г after З or з
101
- result: Gh
102
- - pattern: (?<=[Зз])\u0433 # г after З or з
103
- result: gh
104
- - pattern: (?<!\b\u2019)\b\u0404 # Є in initial position -> Ye
105
- result: Ye
106
- - pattern: (?<!\b\u2019)\b\u0454 # є in initial position -> ye
107
- result: ye
108
- - pattern: (?<!\b\u2019)\b\u0407 # Ї in initial position -> Yi
109
- result: Yi
110
- - pattern: (?<!\b\u2019)\b\u0457 # ї in initial position -> yi
111
- result: yi
112
- - pattern: (?<!\b\u2019)\b\u0419 # Й in initial position -> Y
113
- result: "Y"
114
- - pattern: (?<!\b\u2019)\b\u0419 # й in initial position -> y
115
- result: "y"
116
- - pattern: (?<!\b\u2019)\b\u042e # Ю in initial position -> Yu
117
- result: Yu
118
- - pattern: (?<!\b\u2019)\b\u044e # ю in initial position -> yu
119
- result: yu
120
- - pattern: (?<!\b\u2019)\b\u042f # Я in initial position -> Ya
121
- result: Ya
122
- - pattern: (?<!\b\u2019)\b\u044f # я in initial position -> ya
123
- result: ya
124
- - pattern: \b\u2019\b # ’ in the middle of a word -> ”
125
- result: "\u201d"
126
-
127
- characters:
128
- "\u0410": "A" # А
129
- "\u0411": "B" # Б
130
- "\u0412": "V" # В
131
- "\u0413": "H" # Г
132
- "\u0490": "G" # Ґ
133
- "\u0414": "D" # Д
134
- "\u0415": "E" # Е
135
- "\u0404": "Ie" # Є
136
- "\u0416": "Zh" # Ж
137
- "\u0417": "Z" # З
138
- "\u0418": "Y" # И
139
- "\u0406": "I" # І
140
- "\u0407": "I" # Ї
141
- "\u0419": "I" # Й
142
- "\u041a": "K" # К
143
- "\u041b": "L" # Л
144
- "\u041c": "M" # М
145
- "\u041d": "N" # Н
146
- "\u041e": "O" # О
147
- "\u041f": "P" # П
148
- "\u0420": "R" # Р
149
- "\u0421": "S" # С
150
- "\u0422": "T" # Т
151
- "\u0423": "U" # У
152
- "\u0424": "F" # Ф
153
- "\u0425": "Kh" # Х
154
- "\u0426": "Ts" # Ц
155
- "\u0427": "Ch" # Ч
156
- "\u0428": "Sh" # Ш
157
- "\u0429": "Sch" # Щ
158
- "\u042e": "Iu" # Ю
159
- "\u042f": "Ia" # Я
160
- "\u042c": "\u2019" # Ь -> ’
161
- "\u0430": "a" # а
162
- "\u0431": "b" # б
163
- "\u0432": "v" # в
164
- "\u0433": "h" # г
165
- "\u0491": "g" # ґ
166
- "\u0434": "d" # д
167
- "\u0435": "e" # е
168
- "\u0454": "ie" # є
169
- "\u0436": "zh" # ж
170
- "\u0437": "z" # з
171
- "\u0438": "y" # и
172
- "\u0456": "i" # і
173
- "\u0457": "i" # ї
174
- "\u0439": "i" # й
175
- "\u043a": "k" # к
176
- "\u043b": "l" # л
177
- "\u043c": "m" # м
178
- "\u043d": "n" # н
179
- "\u043e": "o" # о
180
- "\u043f": "p" # п
181
- "\u0440": "r" # р
182
- "\u0441": "s" # с
183
- "\u0442": "t" # т
184
- "\u0443": "u" # у
185
- "\u0444": "f" # ф
186
- "\u0445": "kh" # х
187
- "\u0446": "ts" # ц
188
- "\u0447": "ch" # ч
189
- "\u0448": "sh" # ш
190
- "\u0449": "sch" # щ
191
- "\u044e": "iu" # ю
192
- "\u044f": "ia" # я
193
- "\u044c": "\u2019" # Ь -> ’
@@ -1,114 +0,0 @@
1
- ---
2
- authority_id: un
3
- id: 2007
4
- language: bel
5
- source_script: Cyrl
6
- destination_script: Latn
7
- name: National System of Geographic Names Transmission into Roman Alphabet in Belarus
8
- url: https://unstats.un.org/unsd/geoinfo/UNGEGN/docs/9th-uncsgn-docs/crp/9th_UNCSGN_e-conf-98-crp-21.pdf
9
- creation_date: 2007
10
- description: |
11
- RESOLUTION OF THE STATE COMMITTEE
12
- ON PROPERTY OF THE REPUBLIC OF BELARUS June 11, 2007 No. 38
13
-
14
- 8/16668 (06/18/2007) On amendments and additions to the Instructions
15
- for the transliteration of geographical names of the
16
- Republic of Belarus in letters of the Latin alphabet
17
-
18
- Based on the Regulation on the State Property Committee of the Republic of Belarus,
19
- approved by the Decree of the Council of Ministers of the Republic of Belarusdated July 29, 2006
20
- No. 958 "Issues of the State Committee on Property of the Republic of Belarus"
21
- tests: # the same as "by-bel-cyrl-Latn-2007"
22
- - source: Аршанскi
23
- expected: Aršanski
24
- - source: Бешанковічы
25
- expected: Biešankovičy
26
- - source: Віцебск
27
- expected: Viciebsk
28
- - source: Гомель
29
- expected: Homieĺ
30
- - source: Гаўя
31
- expected: Haŭja
32
- - source: Добруш
33
- expected: Dobruš
34
- - source: Ельск
35
- expected: Jeĺsk
36
- - source: Бабаедава
37
- expected: Babajedava
38
- - source: Венцавічы
39
- expected: Viencavičy
40
- - source: Ёды
41
- expected: Jody
42
- - source: Вераб'ёвічы
43
- expected: Vierabjovičy
44
- - source: Мёры
45
- expected: Miory
46
- - source: Зэльва
47
- expected: Zeĺva
48
- - source: Iванава
49
- expected: Ivanava
50
- - source: Iўе
51
- expected: Iŭje
52
- - source: Лагойск
53
- expected: Lahojsk
54
- - source: Круглае
55
- expected: Kruhlaje
56
- - source: Лошыца
57
- expected: Lošyca
58
- - source: Любань
59
- expected: Liubań
60
- - source: Магілёў
61
- expected: Mahilioŭ
62
- - source: Нясвіж
63
- expected: Niasviž
64
- - source: Орша
65
- expected: Orša
66
- - source: Паставы
67
- expected: Pastavy
68
- - source: Рагачоў
69
- expected: Rahačoŭ
70
- - source: Смаргонь
71
- expected: Smarhoń
72
- - source: Талачын
73
- expected: Talačyn
74
- - source: Узда
75
- expected: Uzda
76
- - source: Шаркаўшчына
77
- expected: Šarkaŭščyna
78
- - source: Фаніпаль
79
- expected: Fanipaĺ
80
- - source: Хоцімск
81
- expected: Chocimsk
82
- - source: Цёмны Лес
83
- expected: Ciomny Lies
84
- - source: Чавусы
85
- expected: Čavusy
86
- - source: Шумілiна
87
- expected: Šumilina
88
- - source: Чыгірынка
89
- expected: Čyhirynka
90
- - source: Чэрвень
91
- expected: Červień
92
- - source: Друць
93
- expected: Druć
94
- - source: Чачэрск
95
- expected: Čačersk
96
- - source: Юхнаўка
97
- expected: Juchnaŭka
98
- - source: Гаюціна
99
- expected: Hajucina
100
- - source: Цюрлi
101
- expected: Ciurli
102
- - source: Любонічы
103
- expected: Liuboničy
104
- - source: Ямнае
105
- expected: Jamnaje
106
- - source: Баяры
107
- expected: Bajary
108
- - source: Валяр'яны
109
- expected: Valiarjany
110
- - source: Вязынка
111
- expected: Viazynka
112
-
113
- map:
114
- inherit: "by-bel-Cyrl-Latn-2007"