interscript 0.1.5 → 2.1.0a8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) 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 -123
  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 +73 -311
  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 -69
  69. data/lib/interscript/mapping.rb +0 -142
  70. data/lib/interscript/opal.rb +0 -23
  71. data/lib/interscript/opal/maps.js.erb +0 -7
  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-aze-Cyrl-Latn-1997.yaml +0 -141
  77. data/maps/alalc-bel-cyrl-latn-1997.yaml +0 -125
  78. data/maps/alalc-ben-Beng-Latn-2017.yaml +0 -130
  79. data/maps/alalc-bul-Cyrl-Latn-1997.yaml +0 -94
  80. data/maps/alalc-ell-Grek-Latn-1997.yaml +0 -625
  81. data/maps/alalc-ell-Grek-Latn-2010.yaml +0 -628
  82. data/maps/alalc-kat-Geok-Latn-1997.yaml +0 -112
  83. data/maps/alalc-kat-Geor-Latn-1997.yaml +0 -146
  84. data/maps/alalc-kor-Hang-Latn-1997.yaml +0 -94
  85. data/maps/alalc-mkd-Cyrl-Latn-2013.yaml +0 -103
  86. data/maps/alalc-mkd-cyrl-latn-1997.yaml +0 -114
  87. data/maps/alalc-rus-Cyrl-Latn-1997.yaml +0 -222
  88. data/maps/alalc-rus-Cyrl-Latn-2012.yaml +0 -162
  89. data/maps/alalc-srp-Cyrl-Latn-1997.yaml +0 -114
  90. data/maps/alalc-srp-cyrl-latn-2013.yaml +0 -135
  91. data/maps/alalc-ukr-Cyrl-Latn-1997.yaml +0 -141
  92. data/maps/alalc-ukr-Cyrl-Latn-2011.yaml +0 -16
  93. data/maps/apcbg-bul-Cyrl-Latn-1995.yaml +0 -283
  94. data/maps/bas-rus-Cyrl-Latn-2017-bss.yaml +0 -175
  95. data/maps/bas-rus-Cyrl-Latn-2017-oss.yaml +0 -169
  96. data/maps/bgn-jpn-Hrkt-Latn-1962.yaml +0 -294
  97. data/maps/bgn-kor-Hang-Latn-1943.yaml +0 -31
  98. data/maps/bgn-kor-Kore-Latn-1943.yaml +0 -31
  99. data/maps/bgna-bul-Cyrl-Latn-2006.yaml +0 -208
  100. data/maps/bgna-bul-Cyrl-Latn-2009.yaml +0 -208
  101. data/maps/bgnpcgn-arm-Armn-Latn-1981.yaml +0 -108
  102. data/maps/bgnpcgn-aze-Cyrl-Latn-1993.yaml +0 -104
  103. data/maps/bgnpcgn-bak-Cyrl-Latn-2007.yaml +0 -184
  104. data/maps/bgnpcgn-bel-cyrl-latn-1979.yaml +0 -285
  105. data/maps/bgnpcgn-bul-Cyrl-Latn-1952.yaml +0 -115
  106. data/maps/bgnpcgn-bul-Cyrl-Latn-2013.yaml +0 -38
  107. data/maps/bgnpcgn-ell-Grek-Latn-1962.yaml +0 -702
  108. data/maps/bgnpcgn-ell-Grek-Latn-1996.yaml +0 -20
  109. data/maps/bgnpcgn-jpn-Hrkt-Latn-1976.yaml +0 -257
  110. data/maps/bgnpcgn-kat-Geor-Latn-1981.yaml +0 -127
  111. data/maps/bgnpcgn-kat-Geor-Latn-2009.yaml +0 -43
  112. data/maps/bgnpcgn-kor-Hang-Latn-kn-1945.yaml +0 -253
  113. data/maps/bgnpcgn-kor-Hang-Latn-rok-2011.yaml +0 -48
  114. data/maps/bgnpcgn-kor-Kore-Latn-rok-2011.yaml +0 -48
  115. data/maps/bgnpcgn-mkd-Cyrl-Latn-1981.yaml +0 -159
  116. data/maps/bgnpcgn-mkd-Cyrl-Latn-2013.yaml +0 -190
  117. data/maps/bgnpcgn-per-Arab-Latn-1956.yaml +0 -93
  118. data/maps/bgnpcgn-rus-Cyrl-Latn-1947.yaml +0 -314
  119. data/maps/bgnpcgn-srp-Cyrl-Latn-2005.yaml +0 -166
  120. data/maps/bgnpcgn-ukr-Cyrl-Latn-1965.yaml +0 -163
  121. data/maps/bgnpcgn-ukr-Cyrl-Latn-2019.yaml +0 -208
  122. data/maps/bgnpcgn-zho-Hans-Latn-1979.yaml +0 -7456
  123. data/maps/by-bel-Cyrl-Latn-1998.yaml +0 -168
  124. data/maps/by-bel-Cyrl-Latn-2007.yaml +0 -115
  125. data/maps/elot-ell-Grek-Latn-743-1982-tl.yaml +0 -685
  126. data/maps/elot-ell-Grek-Latn-743-1982-ts.yaml +0 -681
  127. data/maps/elot-ell-Grek-Latn-743-2001-tl.yaml +0 -20
  128. data/maps/elot-ell-Grek-Latn-743-2001-ts.yaml +0 -32
  129. data/maps/ggg-kat-Geor-Latn-2002.yaml +0 -89
  130. data/maps/gki-bel-cyrl-latn-1992.yaml +0 -33
  131. data/maps/gki-bel-cyrl-latn-2000.yaml +0 -201
  132. data/maps/gost-rus-cyrl-latn-16876-71-1983.yaml +0 -186
  133. data/maps/hk-yue-Hani-Latn-1888.yaml +0 -38497
  134. data/maps/icao-bel-Cyrl-Latn-9303.yaml +0 -141
  135. data/maps/icao-bul-Cyrl-Latn-9303.yaml +0 -122
  136. data/maps/icao-heb-Hebr-Latn-9303.yaml +0 -151
  137. data/maps/icao-mkd-Cyrl-Latn-9303.yaml +0 -117
  138. data/maps/icao-per-Arab-Latn-9303.yaml +0 -104
  139. data/maps/icao-rus-Cyrl-Latn-9303.yaml +0 -118
  140. data/maps/icao-srp-Cyrl-Latn-9303.yaml +0 -117
  141. data/maps/icao-ukr-Cyrl-Latn-9303.yaml +0 -120
  142. data/maps/iso-ell-Grek-Latn-843-1997-t1.yaml +0 -610
  143. data/maps/iso-ell-Grek-Latn-843-1997-t2.yaml +0 -41
  144. data/maps/iso-jpn-Hrkt-Latn-3602-1989.yaml +0 -62
  145. data/maps/iso-rus-Cyrl-Latn-9-1995.yaml +0 -272
  146. data/maps/iso-tha-Thai-Latn-11940-1998.yaml +0 -109
  147. data/maps/kp-kor-Hang-Latn-2002.yaml +0 -901
  148. data/maps/lshk-yue-Hani-Latn-jyutping-1993.yaml +0 -44820
  149. data/maps/mext-jpn-Hrkt-Latn-1954.yaml +0 -411
  150. data/maps/moct-kor-Hang-Latn-2000.yaml +0 -803
  151. data/maps/mofa-jpn-Hrkt-Latn-1989.yaml +0 -541
  152. data/maps/mvd-bel-Cyrl-Latn-2008.yaml +0 -225
  153. data/maps/mvd-bel-Cyrl-Latn-2010.yaml +0 -63
  154. data/maps/mvd-rus-Cyrl-Latn-2008.yaml +0 -110
  155. data/maps/mvd-rus-Cyrl-Latn-2010.yaml +0 -37
  156. data/maps/nil-kor-Hang-Hang-jamo.yaml +0 -11193
  157. data/maps/odni-aze-Cyrl-Latn-2015.yaml +0 -144
  158. data/maps/odni-bel-Cyrl-Latn-2015.yaml +0 -148
  159. data/maps/odni-bul-Cyrl-Latn-2015.yaml +0 -96
  160. data/maps/odni-kat-Geor-Latn-2015.yaml +0 -88
  161. data/maps/odni-kaz-Cyrl-Latn-2015.yaml +0 -148
  162. data/maps/odni-kir-Cyrl-Latn-2015.yaml +0 -136
  163. data/maps/odni-mkd-cyrl-latn-2015.yaml +0 -122
  164. data/maps/odni-rus-Cyrl-Latn-2015.yaml +0 -77
  165. data/maps/odni-srp-Cyrl-Latn-2015.yaml +0 -129
  166. data/maps/odni-tat-Cyrl-Latn-2015.yaml +0 -142
  167. data/maps/odni-tgk-Cyrl-Latn-2015.yaml +0 -148
  168. data/maps/odni-uig-Cyrl-Latn-2015.yaml +0 -138
  169. data/maps/odni-ukr-Cyrl-Latn-2015.yaml +0 -157
  170. data/maps/odni-uzb-Cyrl-Latn-2015.yaml +0 -167
  171. data/maps/royin-tha-Thai-Latn-1939-generic.yaml +0 -90
  172. data/maps/royin-tha-Thai-Latn-1968.yaml +0 -179
  173. data/maps/royin-tha-Thai-Latn-1999-chained.yaml +0 -180
  174. data/maps/royin-tha-Thai-Latn-1999.yaml +0 -76
  175. data/maps/sac-zho-Hans-Latn-1979.yaml +0 -24759
  176. data/maps/ses-ara-arab-latn-1930.yaml +0 -275
  177. data/maps/stategeocadastre-ukr-Cyrl-Latn-1993.yaml +0 -222
  178. data/maps/ua-ukr-Cyrl-Latn-1996.yaml +0 -193
  179. data/maps/un-ara-Arab-Latn-1971.yaml +0 -127
  180. data/maps/un-ara-Arab-Latn-1972.yaml +0 -152
  181. data/maps/un-ara-Arab-Latn-2017.yaml +0 -383
  182. data/maps/un-bel-Cyrl-Latn-2007.yaml +0 -114
  183. data/maps/un-ben-Beng-Latn-2016.yaml +0 -534
  184. data/maps/un-ell-Grek-Latn-1987-tl.yaml +0 -32
  185. data/maps/un-ell-Grek-Latn-1987-ts.yaml +0 -20
  186. data/maps/un-ell-Grek-Latn-phonetic-1987.yaml +0 -780
  187. data/maps/un-mon-Mong-Latn-2013.yaml +0 -93
  188. data/maps/un-rus-Cyrl-Latn-1987.yaml +0 -166
  189. data/maps/un-ukr-cyrl-latn-1998.yaml +0 -30
  190. data/maps/var-jpn-Hrkt-Latn-hepburn-1886.yaml +0 -406
  191. data/maps/var-jpn-Hrkt-Latn-hepburn-1954.yaml +0 -386
  192. data/maps/var-kor-Hang-Latn-mr-1939.yaml +0 -1054
  193. data/maps/var-kor-Kore-Hang-2013.yaml +0 -59754
  194. data/maps/var-kor-Kore-Latn-mr-1939.yaml +0 -37
  195. data/maps/var-tha-Thai-Thai-phonemic.yaml +0 -59
  196. data/maps/var-tha-Thai-Zsym-ipa.yaml +0 -301
  197. data/maps/var-zho-Hani-Latn-1979.yaml +0 -38908
  198. data/spec/interscript/mapping_spec.rb +0 -42
  199. data/spec/interscript_spec.rb +0 -26
  200. data/spec/spec_helper.rb +0 -3
@@ -1,383 +0,0 @@
1
- ---
2
- authority_id: ungegn
3
- id: 2017
4
- language: ara
5
- source_script: Arab
6
- destination_script: Latn
7
- name: ROMANIZATION OF ARABIC -- UNGEGN 2017 System
8
- url: http://www.eki.ee/wgrs/rom1_ar.pdf
9
- creation_date: 2017
10
- confirmation date: 2018-06
11
- description: |
12
- The current United Nations recommended romanization
13
- system was approved in 2017 (resolution XI/3), based on
14
- the system adopted by Arabic experts at the conference
15
- held in Beirut in 2007, the Unified Arabic
16
- Transliteration System, taking into account the
17
- practical amendments and corrections carried out and
18
- agreed upon by the representatives of the Arabic-
19
- speaking countries at the Fourth Arab Conference on
20
- Geographical Names, held in Beirut in 2008, and some
21
- clarifications and amendments agreed in Riyadh in 20171.
22
- Previously, the United Nations had approved a
23
- romanization system in 1972 (resolution II/8), based on the
24
- system adopted by Arabic experts at the conference
25
- held at Beirut in 1971 with the practical amendments carried out
26
- and agreed upon by the representatives of the Arabic-speaking
27
- countries at their conference. The table was published in volume
28
- II of the conference report.
29
- In UN resolution XI/3 it is specifically stated that the
30
- system was recommended for the “romanization of the
31
- geographical names within those Arabic-speaking countries
32
- where this system is officially adopted”. There is
33
- evidence of its partial implementation in Jordan, Oman and
34
- Saudi Arabia. The UNGEGN Working Group on Romanization
35
- Systems intends to continue monitoring the UN system’s
36
- implementation across Arabic-speaking countries.
37
- In some countries there exist local romanization schemes
38
- or practices. The geographical names of Algeria, Djibouti,
39
- Mauritania, Morocco and Tunisia are generally rendered in
40
- the traditional manner which conforms to the principles of
41
- the French orthography.
42
- The previous UN-approved system is still found in
43
- considerable international usage.
44
- Arabic is written from right to left. The Arabic script
45
- usually omits vowel points and diacritical marks from
46
- writing which makes it difficult to obtain uniform results
47
- in the romanization of Arabic. It is essential to identify
48
- correctly the words which appear in any particular name
49
- and to know the standard Arabic-script spelling including
50
- the relevant vowels. One must also take into account
51
- dialectal and idiosyncratic deviations. The romanization
52
- is generally reversible though there may be some ambiguous
53
- letter sequences (dh, kh, sh, th) which may also point to
54
- combinations of Arabic characters in addition to the
55
- respective single characters.
56
- notes:
57
- - |
58
- When the definite article al precedes a word beginning with
59
- one of the "sun letters" (t, th, d, dh, r, z, s, sh, s̱, ḏ, ṯ,
60
- d͟h, l, n) the l of the definite article is assimilated with
61
- the first consonant of the word: الشارقة Ash Shāriqah.
62
- - |
63
- The definite article is always written with a capital
64
- initial: الزيتون Az Zaytūn, البلد Al Balad, منية الضنية Minyat Aḏ
65
- Ḏinniyyah.
66
- - |
67
- Nunation is unlikely to be found in geographical names and
68
- the last letter remains silent: جبل = جبلٌ Jabal (not Jabalun).
69
- - |
70
- In order to disambiguate certain character sequences a
71
- middle dot (·) may be used: سهيلة S·haylah (cf. شيلة Shaylah), دهيب
72
- D·hayb (cf. ذيب Dhayb), أدهم Ad·ham (cf. أذم Adham).
73
- - |
74
- to handle words starting with AL and ending with ta' marboota
75
- which is pronounced as "ah" not "at" divided into multiple
76
- regex because lookbehind in ruby doesn't support variable length
77
- - |
78
- مَكّة should be transliterated to makkah, shadda above ك
79
- is to double the consonant, same applies to all arabic letters
80
-
81
- tests:
82
-
83
- # Examples taken from:
84
- # https://unstats.un.org/unsd/geoinfo/geonames/
85
-
86
- - source: مِصر
87
- expected: mis̱r
88
-
89
- - source: قَطَر
90
- expected: qaṯar
91
-
92
- - source: المَغرِب
93
- expected: al maghrib
94
-
95
- - source: الجُمهُورِيَّة العِراقِيَّة
96
- expected: al jumhūrīyah al ‘irāqīyah
97
-
98
- - source: جُمهُورِيَّة العِراق
99
- expected: jumhūrīyat al ‘irāq
100
-
101
- - source: جُمهُورِيَّة مِصر العَرَبِيَّة
102
- expected: jumhūrīyat mis̱r al ‘arabīyah
103
-
104
- - source: بَغداد
105
- expected: baghdād
106
-
107
- - source: تُونِس
108
- expected: tūnis
109
-
110
- - source: السُعُودِيَّة
111
- expected: as su‘ūdīyah
112
-
113
- - source: اليَمَن
114
- expected: al yaman
115
-
116
- - source: السُودان
117
- expected: as sūdān
118
-
119
- - source: الجَزائِر
120
- expected: al jazā'ir
121
-
122
- - source: الجُمهُورِيَّة اللُبنانِيَّة
123
- expected: al jumhūrīyah al lubnānīyah
124
-
125
- - source: أسمَرة
126
- expected: asmarah
127
-
128
- - source: جِدَّة
129
- expected: jiddah
130
-
131
- - source: مَكَّة
132
- expected: makkah
133
-
134
- - source: الرِيَاض
135
- expected: ar riyāḏ
136
-
137
- map:
138
- characters:
139
-
140
- # Tool used for Unicode finding:
141
- # https://www.branah.com/unicode-converter
142
-
143
- # pointing
144
- '\u064e' : 'a' # َ fatha
145
- '\u064e(?=\u0629)' : '' # َ fatha followed by ta' marboota
146
- '\u0650' : 'i' # ِ kasra
147
- '\u064f' : 'u' # ُ damma
148
- '\u0652' : '' # ْ sokoon, see note A below
149
-
150
-
151
- # special pointed letters
152
- '\u0639\u064e' : '‘a' # عَ
153
- '\u0639\u0650' : '‘i' # عِ
154
- '\u0639\u064f' : '‘ū' # عُ
155
- # handle MacOS regex difference
156
- '\u0639\u064f\u0648' : '‘ū' # عُو damma followed by و
157
-
158
- '\u0650\u064a' : 'ī' # ـِي kasra followed by ي
159
- '\u0650\u064a\u0651\u064e' : 'īy' # ـِيَّ
160
- '\u0650\u064a(?=\u064e|u064f)' : 'iy' # ـِي kasra followed by ي
161
- '\u064f\u0648' : 'ū' # ـُو damma followed by و
162
- '\u064e\u0627' : 'ā' # ـَا fatha followed by ا
163
- '\u064e\u0649' : 'á' # ـَى fatha followed by ى which is ا not ي
164
- '\u064e\u0648\u0652' : 'aw' # ـَوْ
165
- '\u064e\u064a\u0652' : 'ay' # ـَيْ
166
- '\u0622' : 'ā' # آ
167
-
168
- # (A) Marks absence of the vowel.
169
- # (B) Marks doubling of the consonant.
170
-
171
- # Sun letters
172
- '\b\u0627\u0644\u062a' : 'at t' # الت
173
- '\b\u0627\u0644\u062b' : 'ath th' # الث
174
- '\b\u0627\u0644\u062f' : 'ad d' # الد
175
- '\b\u0627\u0644\u0630' : 'adh dh' # الذ
176
- '\b\u0627\u0644\u0631' : 'ar r' # الر
177
- '\b\u0627\u0644\u0632' : 'az z' # الز
178
- '\b\u0627\u0644\u0633' : 'as s' # الس
179
- '\b\u0627\u0644\u0634' : 'ash sh' # الش
180
- '\b\u0627\u0644\u0635' : 'as̱ s̱' # الص
181
- '\b\u0627\u0644\u0636' : 'aḏ ḏ' # الض
182
- '\b\u0627\u0644\u0637' : 'aṯ ṯ' # الط
183
- '\b\u0627\u0644\u0638' : 'ad͟h d͟h' # الظ
184
- '\b\u0627\u0644\u0644' : 'al l' # الل
185
- '\b\u0627\u0644\u0646' : 'an n' # الن
186
-
187
- # ta' marboota
188
- '\u0629' : 'at' # ة in the middle of the sentence
189
- '\u0629$' : 'ah'
190
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{2})\u0629' : 'ah'
191
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{3})\u0629' : 'ah'
192
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{4})\u0629' : 'ah'
193
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{5})\u0629' : 'ah'
194
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{6})\u0629' : 'ah'
195
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{7})\u0629' : 'ah'
196
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{8})\u0629' : 'ah'
197
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{9})\u0629' : 'ah'
198
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{10})\u0629' : 'ah'
199
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{11})\u0629' : 'ah'
200
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{12})\u0629' : 'ah'
201
- '(?<=\b\u0627\u0644[\u0600-\u06ff]{13})\u0629' : 'ah'
202
-
203
- # shadda
204
-
205
- '\u0628\u0651' : 'bb' # ب
206
- '\u062a\u0651' : 'tt' # ت
207
- '\u062b\u0651' : 'thth' # ث
208
- '\u062c\u0651' : 'jj' # ج
209
- '\u062d\u0651' : 'ẖẖ' # ح
210
- '\u062e\u0651' : 'khkh' # خ
211
- '\u062f\u0651' : 'dd' # د
212
- '\u0630\u0651' : 'dhdh' # ذ
213
- '\u0631\u0651' : 'rr' # ر
214
- '\u0632\u0651' : 'zz' # ز
215
- '\u0633\u0651' : 'ss' # س
216
- '\u0634\u0651' : 'sh' # ش
217
- '\u0635\u0651' : 's̱s̱' # ص
218
- '\u0636\u0651' : 'ḏḏ' # ض
219
- '\u0637\u0651' : 'ṯṯ' # ط
220
- '\u0638\u0651' : 'd͟hd͟h' # ظ
221
- '\u063a\u0651' : 'ghgh' # غ
222
- '\u0641\u0651' : 'ff' # ف
223
- '\u0642\u0651' : 'qq' # ق
224
- '\u0643\u0651' : 'kk' # ك
225
- '\u0644\u0651' : 'll' # ل
226
- '\u0645\u0651' : 'mm' # م
227
- '\u0646\u0651' : 'nn' # ن
228
- '\u0647\u0651' : 'hh' # ه
229
- '\u0648\u0651' : 'ww' # و
230
- '\u064a\u0651' : 'yy' # ي
231
-
232
- '\u0626' : "'" # ئ
233
-
234
-
235
- '\u0621' : # ء
236
- - '’'
237
- - '' # see note A
238
-
239
- '\u0623' : 'a' # أ
240
- '\u0627' : 'ā' # ا
241
-
242
- # See note B
243
- '\b\u0627\u0644' : 'al ' # ال
244
- # '\uFE8E' : '' # ﺎ
245
-
246
- '\u0628' : 'b' # ب
247
- '\uFE91' : 'b' # ﺑ
248
- '\uFE92' : 'b' # ﺒ
249
- '\uFE90' : 'b' # ﺐ
250
-
251
- # See note C
252
- '\u062a' : 't' # ت
253
- '\ufe97' : 't' # ﺗ
254
- '\ufe98' : 't' # ﺘ
255
- '\ufe96' : 't' # ﺖ
256
-
257
- '\u062b' : 'th' # ث
258
- '\ufe9b' : 'th' # ﺛ
259
- '\ufe9c' : 'th' # ﺜ
260
- '\ufe9a' : 'th' # ﺚ
261
-
262
- '\u062c' : 'j' # ج
263
- '\ufe9f' : 'j' # ﺟ
264
- '\ufea0' : 'j' # ﺠ
265
- '\ufe9e' : 'j' # ﺞ
266
-
267
- '\u062d' : 'ẖ' # ح
268
- '\ufea3' : 'ẖ' # ﺣ
269
- '\ufea4' : 'ẖ' # ﺤ
270
- '\ufea2' : 'ẖ' # ﺢ
271
-
272
- '\u062e' : 'kh' # خ
273
- '\ufea7' : 'kh' # ﺧ
274
- '\ufea8' : 'kh' # ﺨ
275
- '\ufea6' : 'kh' # ﺦ
276
-
277
- '\u062f' : 'd' # د
278
- '\ufeaa' : 'd' # ﺪ
279
-
280
- '\u0630' : 'dh' # ذ
281
- '\ufeac' : 'dh' # ﺬ
282
-
283
- '\u0631' : 'r' # ر
284
- '\ufeae' : 'r' # ﺮ
285
-
286
- '\u0632' : 'z' # ز
287
- '\ufeb0' : 'z' # ﺰ
288
-
289
- '\u0633' : 's' # س
290
- '\ufeb3' : 's' # ﺳ
291
- '\ufeb4' : 's' # ﺴ
292
- '\ufeb2' : 's' # ﺲ
293
-
294
- '\u0634' : 'sh' # ش
295
- '\ufeb7' : 'sh' # ﺷ
296
- '\ufeb8' : 'sh' # ﺸ
297
- '\ufeb6' : 'sh' # ﺶ
298
-
299
- '\u0635' : 's̱' # ص
300
- '\ufebb' : 's̱' # ﺻ
301
- '\ufebc' : 's̱' # ﺼ
302
- '\ufeba' : 's̱' # ﺺ
303
-
304
- '\u0636' : 'ḏ' # ض
305
- '\ufebf' : 'ḏ' # ﺿ
306
- '\ufec0' : 'ḏ' # ﻀ
307
- '\ufebe' : 'ḏ' # ﺾ
308
-
309
- '\u0637' : 'ṯ' # ط
310
- '\ufec3' : 'ṯ' # ﻃ
311
- '\ufec4' : 'ṯ' # ﻄ
312
- '\ufec2' : 'ṯ' # ﻂ
313
-
314
- '\u0638' : 'd͟h' # ظ
315
- '\ufec7' : 'd͟h' # ﻇ
316
- '\ufec8' : 'd͟h' # ﻈ
317
- '\ufec6' : 'd͟h' # ﻆ
318
-
319
- '\u0639' : '‘' # ع
320
- '\ufecb' : '‘' # ﻋ
321
- '\ufecc' : '‘' # ﻌ
322
- '\ufeca' : '‘' # ﻊ
323
-
324
- '\u063a' : 'gh' # غ
325
- '\ufecf' : 'gh' # ﻏ
326
- '\ufed0' : 'gh' # ﻐ
327
- '\ufece' : 'gh' # ﻎ
328
-
329
- '\u0641' : 'f' # ف
330
- '\ufed3' : 'f' # ﻓ
331
- '\ufed4' : 'f' # ﻔ
332
- '\ufed2' : 'f' # ﻒ
333
-
334
- '\u0642' : 'q' # ق
335
- '\ufed7' : 'q' # ﻗ
336
- '\ufed8' : 'q' # ﻘ
337
- '\ufed6' : 'q' # ﻖ
338
-
339
- '\u0643' : 'k' # ك
340
- '\ufedb' : 'k' # ﻛ
341
- '\ufedc' : 'k' # ﻜ
342
- '\ufeda' : 'k' # ﻚ
343
-
344
- '\u0644' : 'l' # ل
345
- '\ufedf' : 'l' # ﻟ
346
- '\ufee0' : 'l' # ﻠ
347
- '\ufede' : 'l' # ﻞ
348
-
349
- '\u0645' : 'm' # م
350
- '\ufee3' : 'm' # ﻣ
351
- '\ufee4' : 'm' # ﻤ
352
- '\ufee2' : 'm' # ﻢ
353
-
354
- '\u0646' : 'n' # ن
355
- '\ufee7' : 'n' # ﻧ
356
- '\ufee8' : 'n' # ﻨ
357
- '\ufee6' : 'n' # ﻦ
358
-
359
- # See note C
360
- '\u0647' : 'h' # ه
361
- '\ufeeb' : 'h' # ﻫ
362
- '\ufeec' : 'h' # ﻬ
363
- '\ufeea' : 'h' # ﻪ
364
-
365
- '\u0648' : 'w' # و
366
- '\ufeee' : 'w' # ﻮ
367
-
368
- '\u064a' : 'y' # ي
369
- '\ufef3' : 'y' # ﻳ
370
- '\ufef4' : 'y' # ﻴ
371
- '\ufef1' : 'y' # ﻱ
372
-
373
- # (A) Not romanized word-initially.
374
-
375
- # (B) Not romanized, but see romanizations accompanying alif (ا) in the table for vowels.
376
-
377
- # (C) In certain endings, an original tā’ (ت) is written ة, i.e., like hā’ (ه) with two dots, and is known as tā’ marbūṯah. It is romanized h, except in the construct form of feminine nouns, where it is romanized t, instead.
378
-
379
-
380
- # Vowels, diphthongs and diacritical marks
381
- # (ـ stands for any consonant)
382
-
383
-
@@ -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"