interscript-maps 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/interscript-maps.gemspec +1 -1
- data/libs/thai-latn.isc +335 -0
- data/maps/alalc-chr-Cher-Latn-2012.isc +141 -0
- data/maps/alalc-chu-Cyrl-Latn-2022.isc +244 -0
- data/maps/alalc-cop-Copt-Latn-2014.isc +231 -0
- data/maps/alalc-hye-Armn-Latn-2022.isc +233 -0
- data/maps/alalc-jav-Arab-Latn-2012.isc +253 -0
- data/maps/alalc-jba-Hebr-Latn-2011.isc +226 -0
- data/maps/alalc-jpn-Hrkt-Latn-2022.isc +673 -0
- data/maps/alalc-kaz-Arab-Latn-2012.isc +240 -0
- data/maps/alalc-kur-Arab-Latn-2012.isc +335 -0
- data/maps/alalc-lad-Hebr-Latn-2025.isc +293 -0
- data/maps/alalc-mnc-Mong-Latn-2012.isc +159 -0
- data/maps/alalc-ota-Arab-Latn-1997.isc +232 -0
- data/maps/alalc-pus-Arab-Latn-2013.isc +321 -0
- data/maps/alalc-rue-Cyrl-Latn-2013.isc +196 -0
- data/maps/alalc-snd-Arab-Latn-2024.isc +332 -0
- data/maps/alalc-tha-Thai-Latn-2011.isc +171 -328
- data/maps/alalc-tmh-Tfng-Latn-2013.isc +131 -0
- data/maps/alalc-uig-Arab-Latn-2015.isc +147 -0
- data/maps/alalc-und-Dsrt-Latn-2016.isc +203 -0
- data/maps/alalc-urd-Arab-Latn-2013.isc +442 -0
- data/maps/alalc-vai-Vaii-Latn-2010.isc +305 -0
- data/maps/alalc-zgh-Tfng-Latn-2012.isc +114 -0
- data/maps/alalc-zho-Hani-Latn-2012.isc +471 -0
- data/maps/alalc-zho-Latn-Latn-2012.isc +502 -0
- data/maps/alalc-zsm-Arab-Latn-2011.isc +246 -0
- data/maps/bgnpcgn-tha-Thai-Latn-2002.isc +3 -328
- metadata +26 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
system "ALA-LC:ota-Arab:Latn:1997" {
|
|
2
|
+
|
|
3
|
+
metadata {
|
|
4
|
+
authority_id alalc
|
|
5
|
+
id 1997
|
|
6
|
+
language iso-639-2:ota
|
|
7
|
+
source_script Arab
|
|
8
|
+
destination_script Latn
|
|
9
|
+
name "Romanization Table for Ottoman Turkish"
|
|
10
|
+
url http://catdir.loc.gov/catdir/cpso/romanization/ottoman.pdf
|
|
11
|
+
creation_date 1997
|
|
12
|
+
description { ALA-LC Romanization table for Ottoman Turkish, based on the romanization system published by Eleazer Birnbaum in the Journal of the American Oriental Society, volume 87 (1967), with slight modifications. The source document carries no edition date; the 1997 attribute follows the ALA-LC 1997 system edition in which the table appears.
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
notes {
|
|
16
|
+
note "NOTE on the table: use the table if the principle of conversion cannot be applied (see rule 2 of the rules of application). Rule 2: in romanizing Ottoman Turkish the principle of conversion is applied as far as possible, i.e., the word, phrase, name, or title being romanized is represented, if possible, by the form it has in modern Turkish orthography, even if that means converting some letters to their modern equivalents. Foreign words, or words of non-Turkish origin that have become loan-words in Turkish, are converted like Ottoman Turkish. Modern Turkish usage in capitalization is followed."
|
|
17
|
+
|
|
18
|
+
note "Rule 9: when conversion is impractical the original is romanized letter by letter. If the Ottoman Turkish original is written in the Arabic alphabet, the consonants are romanized as in the Ottoman Turkish table. The vowels and orthographic symbols other than the vowel signs (hemze, shedde, medde, tenvin) are romanized according to the rules for Arabic or Persian, as appropriate; they are supplied if omitted from the Turkish original. No attempt is made to represent the Ottoman Turkish pronunciation of vowels beyond what is conveyed by the orthography of the original. This map therefore carries the letter table below and the Arabic/Persian vowel-sign machinery (fatha a, damma u, kasra i, the long vowels, diphthongs, tanvin, shaddah doubling, the article al-, and the hamzah rules)."
|
|
19
|
+
|
|
20
|
+
note "Letters of the Alphabet: alif ا omit (see Note 1); ب b; پ p; ت t; ث s; ج c; چ ç; ح ḥ; خ ḫ; د d; ذ z; ر r; ز z; ژ j; س s; ش ş; ص ṣ; ض ż; ط ṭ; ظ ẓ; ع ‘ (ayn); غ ġ; ف f; ق ḳ; ك k; گ g (see Note 2); ڭ ñ (see Note 3); ل l; م m; ن n; و v (see Note 4); ه ة h (see Note 5); ي y (see Note 6)."
|
|
21
|
+
|
|
22
|
+
note "Note 1. For orthographic uses of alif, see the Arabic and Persian romanization tables."
|
|
23
|
+
|
|
24
|
+
note "Note 2. The letter گ is frequently written without the distinguishing upper strokes (i.e., as ك). Both spellings are encoded, ك as k and گ as g; which reading a stroke-less kaf carries is lexical (the conversion principle of rule 2)."
|
|
25
|
+
|
|
26
|
+
note "Note 3. The letter ڭ is frequently written without the distinguishing dots (i.e., as ن). Both spellings are encoded, ن as n and ڭ as ñ; which reading an undotted noon carries is lexical."
|
|
27
|
+
|
|
28
|
+
note "Note 4. For the uses of و other than to represent the consonantal sound v, see the Persian romanization table. This map renders bare و as v and the marked vowel readings via the Arabic/Persian vowel-sign machinery."
|
|
29
|
+
|
|
30
|
+
note "Note 5. For the distinction between ه and ة see the Arabic romanization table."
|
|
31
|
+
|
|
32
|
+
note "Note 6. For the uses of ي other than to represent the consonantal sound y, see the Persian romanization table."
|
|
33
|
+
|
|
34
|
+
note "Rule 5. Phonetic considerations (final -p versus -b, final -t versus -d, final -k versus -g, final -ç versus -c, medial -tt- versus -dd-, medial -iy- versus -iyy-) govern the conversion spelling: tıp not tıb, harp not harb, Ratip not Ratib, mevcut not mevcud, Ahmet not Ahmed, renk not reng, burç not burc, Bedreddin not Bedrettin, harbiye not harbiyye, cumhuriyet not cumhuriyyet. These conversion spellings are lexical and not implemented mechanically."
|
|
35
|
+
|
|
36
|
+
note "Rule 6. (a) Izafet: -i is added to a word ending in a consonant, -yi when it ends in a vowel; vowel harmony is disregarded (Devlet-i Âliye-yi Osmaniye). Izafet is not indicated between the elements of a personal name except when expressly indicated in the Ottoman Turkish orthography. (b) The Arabic article al, romanized in modern Turkish, may take various forms (al, el, ur, ül, ʼl, üs, ed, en, et); when the article functions as the middle element of a phrase or compound within a Turkish context it is converted per predominant modern usage (alelumum, bilhassa, maalesef, darülfünun, Abdüssettar, Abdurrahman, Ebülgazi); when it occurs in an Arabic title it is romanized according to the rules for Arabic. (c) Diacritics: a diaeresis is retained if commonly used in Turkish; a circumflex is retained where found in modern Turkish usage and is always placed over the final long i of the relative adjective (nisbe) and names derived from it. (d) An apostrophe (ʼ) is inserted between a proper noun, or a number, and a suffixed inflection: Mustafa'nın vakfı, 1975'te, 1976'da. All of rule 6 is lexical/syntactic and not implemented mechanically."
|
|
37
|
+
|
|
38
|
+
note "Rule 8(b): the Arabic word ibn ('son of') appears in modern Turkish orthography as Ibn at the beginning of a name and as bin in the middle; the abbreviation b. is not used. Lexical; not implemented."
|
|
39
|
+
|
|
40
|
+
note "Rule 10: the romanization table is based on the system published by Eleazer Birnbaum in the Journal of the American Oriental Society, volume 87 (1967), with a few slight modifications."
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
tests {
|
|
45
|
+
# Letters of the Alphabet
|
|
46
|
+
"ب" -> "b"
|
|
47
|
+
"پ" -> "p"
|
|
48
|
+
"ت" -> "t"
|
|
49
|
+
"ث" -> "s"
|
|
50
|
+
"ج" -> "c"
|
|
51
|
+
"چ" -> "ç"
|
|
52
|
+
"ح" -> "ḥ"
|
|
53
|
+
"خ" -> "ḫ"
|
|
54
|
+
"د" -> "d"
|
|
55
|
+
"ذ" -> "z"
|
|
56
|
+
"ر" -> "r"
|
|
57
|
+
"ز" -> "z"
|
|
58
|
+
"ژ" -> "j"
|
|
59
|
+
"س" -> "s"
|
|
60
|
+
"ش" -> "ş"
|
|
61
|
+
"ص" -> "ṣ"
|
|
62
|
+
"ض" -> "ż"
|
|
63
|
+
"ط" -> "ṭ"
|
|
64
|
+
"ظ" -> "ẓ"
|
|
65
|
+
"ع" -> "‘"
|
|
66
|
+
"غ" -> "ġ"
|
|
67
|
+
"ف" -> "f"
|
|
68
|
+
"ق" -> "ḳ"
|
|
69
|
+
"ك" -> "k"
|
|
70
|
+
"گ" -> "g"
|
|
71
|
+
"ڭ" -> "ñ"
|
|
72
|
+
"ل" -> "l"
|
|
73
|
+
"م" -> "m"
|
|
74
|
+
"ن" -> "n"
|
|
75
|
+
"و" -> "v"
|
|
76
|
+
"ه" -> "h"
|
|
77
|
+
"ة" -> "h"
|
|
78
|
+
"ي" -> "y"
|
|
79
|
+
"ى" -> "y"
|
|
80
|
+
# Vowel signs, romanized per rule 9 according to the rules for Arabic and
|
|
81
|
+
# Persian (which this table defers to)
|
|
82
|
+
"اَ" -> "ā"
|
|
83
|
+
"وُ" -> "ū"
|
|
84
|
+
"یِ" -> "ī"
|
|
85
|
+
"ىٰ" -> "á"
|
|
86
|
+
"وَْ" -> "aw"
|
|
87
|
+
"یَْ" -> "ay"
|
|
88
|
+
"آ" -> "ā"
|
|
89
|
+
"وّ" -> "vv"
|
|
90
|
+
"یّ" -> "yy"
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
stage main {
|
|
94
|
+
parallel {
|
|
95
|
+
# Pointing and vowel signs (rule 9, per the Arabic and Persian tables)
|
|
96
|
+
sub "وَْ" "aw"
|
|
97
|
+
sub "یَْ" "ay"
|
|
98
|
+
sub "وَ" "o"
|
|
99
|
+
sub "وُ" "ū"
|
|
100
|
+
sub "یَ" "á"
|
|
101
|
+
sub "یِ" "ī"
|
|
102
|
+
sub "اَ" "ā"
|
|
103
|
+
sub "ےَ" "ai"
|
|
104
|
+
sub "ىٰ" "á"
|
|
105
|
+
|
|
106
|
+
# Hemze (rule 12 of the Arabic rules, deferred)
|
|
107
|
+
sub {
|
|
108
|
+
from boundary + "ء"
|
|
109
|
+
to ""
|
|
110
|
+
}
|
|
111
|
+
sub {
|
|
112
|
+
from boundary + "أ"
|
|
113
|
+
to ""
|
|
114
|
+
}
|
|
115
|
+
sub "ء" "ʼ"
|
|
116
|
+
sub "أ" "ʼ"
|
|
117
|
+
sub "ؤ" "ʼ"
|
|
118
|
+
sub "ئ" "ʼ"
|
|
119
|
+
|
|
120
|
+
# Medde
|
|
121
|
+
sub {
|
|
122
|
+
from boundary + "آ"
|
|
123
|
+
to "ā"
|
|
124
|
+
}
|
|
125
|
+
sub "آ" "ʼā"
|
|
126
|
+
|
|
127
|
+
# The Arabic article al- (rule 6(b), the Arabic-title reading)
|
|
128
|
+
sub {
|
|
129
|
+
from boundary + "ال"
|
|
130
|
+
to "al-"
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
# Tenvin
|
|
134
|
+
sub "اً" "an"
|
|
135
|
+
sub "ً" "an"
|
|
136
|
+
sub "ٌ" "un"
|
|
137
|
+
sub "ٍ" "in"
|
|
138
|
+
|
|
139
|
+
# Sheddah doubling
|
|
140
|
+
sub "بّ" "bb"
|
|
141
|
+
sub "پّ" "pp"
|
|
142
|
+
sub "تّ" "tt"
|
|
143
|
+
sub "ثّ" "ss"
|
|
144
|
+
sub "جّ" "cc"
|
|
145
|
+
sub "چّ" "çç"
|
|
146
|
+
sub "حّ" "ḥḥ"
|
|
147
|
+
sub "خّ" "ḫḫ"
|
|
148
|
+
sub "دّ" "dd"
|
|
149
|
+
sub "ذّ" "zz"
|
|
150
|
+
sub "رّ" "rr"
|
|
151
|
+
sub "زّ" "zz"
|
|
152
|
+
sub "ژّ" "jj"
|
|
153
|
+
sub "سّ" "ss"
|
|
154
|
+
sub "شّ" "şş"
|
|
155
|
+
sub "صّ" "ṣṣ"
|
|
156
|
+
sub "ضّ" "żż"
|
|
157
|
+
sub "طّ" "ṭṭ"
|
|
158
|
+
sub "ظّ" "ẓẓ"
|
|
159
|
+
sub "عّ" "‘‘"
|
|
160
|
+
sub "غّ" "ġġ"
|
|
161
|
+
sub "فّ" "ff"
|
|
162
|
+
sub "قّ" "ḳḳ"
|
|
163
|
+
sub "كّ" "kk"
|
|
164
|
+
sub "گّ" "gg"
|
|
165
|
+
sub "ڭّ" "ññ"
|
|
166
|
+
sub "لّ" "ll"
|
|
167
|
+
sub "مّ" "mm"
|
|
168
|
+
sub "نّ" "nn"
|
|
169
|
+
sub "وّ" "vv"
|
|
170
|
+
sub "یّ" "yy"
|
|
171
|
+
|
|
172
|
+
# Letters of the Alphabet
|
|
173
|
+
sub "ب" "b"
|
|
174
|
+
sub "پ" "p"
|
|
175
|
+
sub "ت" "t"
|
|
176
|
+
sub "ث" "s"
|
|
177
|
+
sub "ج" "c"
|
|
178
|
+
sub "چ" "ç"
|
|
179
|
+
sub "ح" "ḥ"
|
|
180
|
+
sub "خ" "ḫ"
|
|
181
|
+
sub "د" "d"
|
|
182
|
+
sub "ذ" "z"
|
|
183
|
+
sub "ر" "r"
|
|
184
|
+
sub "ز" "z"
|
|
185
|
+
sub "ژ" "j"
|
|
186
|
+
sub "س" "s"
|
|
187
|
+
sub "ش" "ş"
|
|
188
|
+
sub "ص" "ṣ"
|
|
189
|
+
sub "ض" "ż"
|
|
190
|
+
sub "ط" "ṭ"
|
|
191
|
+
sub "ظ" "ẓ"
|
|
192
|
+
sub "ع" "‘"
|
|
193
|
+
sub "غ" "ġ"
|
|
194
|
+
sub "ف" "f"
|
|
195
|
+
sub "ق" "ḳ"
|
|
196
|
+
sub "ك" "k"
|
|
197
|
+
sub "گ" "g"
|
|
198
|
+
sub "ڭ" "ñ"
|
|
199
|
+
sub "ل" "l"
|
|
200
|
+
sub "م" "m"
|
|
201
|
+
sub "ن" "n"
|
|
202
|
+
sub "ة" "h"
|
|
203
|
+
sub "ه" "h"
|
|
204
|
+
sub "ھ" "h"
|
|
205
|
+
|
|
206
|
+
# Bare alif: word-initial silent-carrier reading per the Persian table,
|
|
207
|
+
# elsewhere the long vowel
|
|
208
|
+
sub {
|
|
209
|
+
from boundary + "ا"
|
|
210
|
+
to ""
|
|
211
|
+
}
|
|
212
|
+
sub "ا" "ā"
|
|
213
|
+
|
|
214
|
+
# Leftover marks
|
|
215
|
+
sub "ْ" ""
|
|
216
|
+
sub "ّ" ""
|
|
217
|
+
sub "َ" "a"
|
|
218
|
+
sub "ُ" "u"
|
|
219
|
+
sub "ِ" "i"
|
|
220
|
+
|
|
221
|
+
# Bare yad and waw defaults (Notes 4 and 6)
|
|
222
|
+
sub "ی" "y"
|
|
223
|
+
sub "ي" "y"
|
|
224
|
+
sub "ى" "y"
|
|
225
|
+
sub "ے" "e"
|
|
226
|
+
sub "و" "v"
|
|
227
|
+
sub "ـ" ""
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
system "ALA-LC:pus-Arab:Latn:2013" {
|
|
2
|
+
|
|
3
|
+
metadata {
|
|
4
|
+
authority_id alalc
|
|
5
|
+
id 2013
|
|
6
|
+
language iso-639-2:pus
|
|
7
|
+
source_script Arab
|
|
8
|
+
destination_script Latn
|
|
9
|
+
name "Romanization Table -- Pushto (2013)"
|
|
10
|
+
url http://catdir.loc.gov/catdir/cpso/romanization/pushto.pdf
|
|
11
|
+
creation_date 2013
|
|
12
|
+
confirmation_date 2013
|
|
13
|
+
description { ALA-LC Romanization table for Pushto, 2013 version (earlier versions: 2012, 1997)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
notes {
|
|
17
|
+
note "Letters of the Alphabet: alif ا omit (see Note 1); ب b; پ p; ت t; ټ ṭ; ث ṣ; ج j; چ ch; ح ḥ; څ ṡ; ځ ż; خ kh; د d; ډ ḍ; ذ z; ر r; ړ ṛ; ز z; ژ zh; ږ ẓh; س s; ش sh; ښ ṣh; ص ṣ; ض ẓ; ط ṭ (the 2013 source's romanization cell for this row is not legible in the extraction; the value follows the earlier ALA-LC Pushto tables and the universal Arabic-script reading); ظ z̤; ع ‘ (ayn); غ gh; ف f; ق q; ك k; گ g; ګ g; ل l; م m; ن n; ڼ ṇ (its final/alone forms render like نړ in the source font); و w (see Note 2); ه ة ھ h; ي ى y (see Note 3)."
|
|
18
|
+
|
|
19
|
+
note "Note 1. For the use of ا (alif) see the table of vowels and diphthongs, and rules 1-4."
|
|
20
|
+
|
|
21
|
+
note "Note 2. For other uses of و see the table of vowels and diphthongs, and rule 5."
|
|
22
|
+
|
|
23
|
+
note "Note 3. For other forms and uses of ى see the table of vowels and diphthongs, and rules 6 and 7."
|
|
24
|
+
|
|
25
|
+
note "Note 4. Vowel points are rarely found in Pushto writing and printing. Vowels not indicated in the script are supplied in romanization. Accordingly this map encodes the consonant letters, the written vowel marks (damma u, kasra i, fatha a), and the rules-of-application contexts; the unwritten short vowels and the vowel readings of bare و (w/ū/o/u/aw) and bare ی/ى (y/ī/e/ay) are lexical. The source's examples whose romanization requires lexically supplied vowels are carried as comments in the tests block."
|
|
26
|
+
|
|
27
|
+
note "Rule 5 (with the vowel table). و represents the consonant w (wror ورور; in Persian words silent و following خ is retained: khwushḥāl خوشحال), the long vowels ū (nūm نوم) and o (kor كور), the diphthong aw (yaw یو), and rarely the short vowel u (u او). In the vowel table the ū spelling is و with damma, the o spelling و with fatha, the aw spelling و with sukun and fatha; the unwritten readings are lexical. This map defaults bare و to w and renders the marked vowels."
|
|
28
|
+
|
|
29
|
+
note "Rule 6 (with the vowel table). ي represents the consonant y (yaw یو), the long vowels ī (mīnah مینھ) and e (ḍer ډیر, ډٻر; dre درى, درې, درے), and the diphthong ay (shay شى). Medial ـیـ supporting a hamzah is usually written without dots (ئ) and is not represented; see rule 8(b) and (c). This map defaults bare ي/ى to y and renders the marked vowels."
|
|
30
|
+
|
|
31
|
+
note "Rule 7. ى when final may represent the long vowel á, confined to words of Arabic origin (Mustafá مصطفى), or the diphthong ạy, written ۓ in Peshawar and ـۍ in Afghanistan (ḍoḍạy ډوډۍ, ډوډۓ). This map renders the final yeh-with-tail ۍ as ạy and word-final hamza-on-yeh ئ as ạy (rule 8(c)); the á reading is marked (ى with fatha) or lexical."
|
|
32
|
+
|
|
33
|
+
note "Rule 8. ء (hamzah): (a) in initial position ء is not represented in romanization; (b) in words of Arabic origin, ء when medial or final is romanized ʼ (alif): suʼāl سؤال, dāʼimī دائمى, masʼalah مسٲلھ; (c) when written over final ى or ـۍ, ء indicates the diphthong ạy: ghwāṛạy غواړئ; (d) in the orthography of Peshawar, ء over final ه (the letter ۀ) indicates the short central vowel ạ: nạh نۀ. This map renders ۀ as ạh, word-final ئ as ạy, word-initial hamzah as empty, and other hamzah as ʼ."
|
|
34
|
+
|
|
35
|
+
note "Rule 5 of the notes. Pushto possesses a short, central vowel whose sign is sometimes written; both it and fatha may be romanized a. When the central vowel is indicated by ء (hamzah), the vowel is romanized ạ and the hamzah is not represented. This map renders the ۀ spelling mechanically (ạh) and the hamzah-indicated ạ is otherwise lexical."
|
|
36
|
+
|
|
37
|
+
note "Rule 9. Maddah is written over ا (alif) to indicate the long vowel ā: ākhir آخر. This map renders آ as ā."
|
|
38
|
+
|
|
39
|
+
note "Rule 10. Tanwīn (ً) occurs in words of Arabic origin and represents a final syllable romanized an; it is usually associated with ا (alif), which is not represented: fiṭratan فطرتً. This map renders اً and ً as an."
|
|
40
|
+
|
|
41
|
+
note "Rule 11. Tashdīd (ّ) is represented by doubling the letter or digraph concerned: awwal اولّ. This map encodes the doubling for the letters of the alphabet; the waw renders ww as a consonant doubling."
|
|
42
|
+
|
|
43
|
+
note "Rule 1. ا (alif) is used: (a) to indicate the presence of any of the short vowels a, u, i (atạh اتۀ, ūlas اولس, inʻām انعام); (b) to represent the long vowel ā, usually written with maddah (ādam آدم); (c) with و or ى: (1) the long vowels ū (ūṣh اوښ) and ī (Īrān ایران); (2) the long vowels o (os اوس) and e (eṣhal ایښل); (3) the diphthongs aw (awwal اولّ) and ay (ayyām ایام). Rule 2: ا when medial or final represents the long vowel ā (bābā بابا). Rule 3: ا when final sometimes represents an, confined to a few words of Arabic origin. Rule 4: ا supporting ء is not represented. This map renders word-initial bare alif as a, other bare alif as ā (rules 2-3's an reading is lexical), and the marked vowels."
|
|
44
|
+
|
|
45
|
+
note "Rule 12. Iẓāfah: (a) an unmarked muẓāf is followed by -i (dars-i ʻibrat درس عبرت, ṣāḥib-i mubārak صاحب مبارك); (b) a muẓāf marked by ء is followed by -ʼi (khānah-ʼi farhang خانۀ فرهنګ); (c) a muẓāf marked by ى is followed by -yi (khānah-yi buzurg خانه ى بزرګ). The iẓāfat construction is syntactic and not implemented; the ۀ default renders ạh."
|
|
46
|
+
|
|
47
|
+
note "Rule 13. Affixes: an affix written separately from its word is separated in romanization by a single prime (ʹ): nāʹashnā نااشنا, warʹastawī وراستوى. Note 1: the particle د (da), meaning 'of,' is always written as a separate word (da dạh د ډۀ). Note 2: the Arabic article al is separated by a hyphen and its l is retained regardless of assimilation: ʻAbd al-Rashīd عبد الرشید, Faẓl al-Ḥaqq فضل الحق, Niz̤ām al-Dīn نظام الدین. The prime and hyphen placements are syntactic and not implemented."
|
|
48
|
+
|
|
49
|
+
note "Rule 14. Compounds: the elements of a compound (except a compound personal name) are separated in romanization by a single prime (ʹ): kitābʹkhānah کتابخانھ, but marīẓkhānah مریضخانھ. Syntactic; not implemented."
|
|
50
|
+
|
|
51
|
+
note "Rule 15. Capitalization: rules for the capitalization of English are followed, except that the Arabic article al is lowercased in all positions; diacritics are used with both capital and lowercase letters. This map leaves case untouched."
|
|
52
|
+
|
|
53
|
+
note "Rule 16. Foreign words in a Pushto context, including Arabic, Persian, and Urdu words, are romanized according to the rules for Pushto, with the nearest Pushto vowels supplied: Yūnīwarsiṭī Buk Ejạnsī یونیورسټى بك ایجنسى (not University Book Agency), Dārmastatar (not Darmesteter) دارمستتر."
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
tests {
|
|
58
|
+
# Letters of the Alphabet
|
|
59
|
+
"ب" -> "b"
|
|
60
|
+
"پ" -> "p"
|
|
61
|
+
"ت" -> "t"
|
|
62
|
+
"ټ" -> "ṭ"
|
|
63
|
+
"ث" -> "ṣ"
|
|
64
|
+
"ج" -> "j"
|
|
65
|
+
"چ" -> "ch"
|
|
66
|
+
"ح" -> "ḥ"
|
|
67
|
+
"څ" -> "ṡ"
|
|
68
|
+
"ځ" -> "ż"
|
|
69
|
+
"خ" -> "kh"
|
|
70
|
+
"د" -> "d"
|
|
71
|
+
"ډ" -> "ḍ"
|
|
72
|
+
"ذ" -> "z"
|
|
73
|
+
"ر" -> "r"
|
|
74
|
+
"ړ" -> "ṛ"
|
|
75
|
+
"ز" -> "z"
|
|
76
|
+
"ژ" -> "zh"
|
|
77
|
+
"ږ" -> "ẓh"
|
|
78
|
+
"س" -> "s"
|
|
79
|
+
"ش" -> "sh"
|
|
80
|
+
"ښ" -> "ṣh"
|
|
81
|
+
"ص" -> "ṣ"
|
|
82
|
+
"ض" -> "ẓ"
|
|
83
|
+
"ظ" -> "z̤"
|
|
84
|
+
"ع" -> "ʻ"
|
|
85
|
+
"غ" -> "gh"
|
|
86
|
+
"ف" -> "f"
|
|
87
|
+
"ق" -> "q"
|
|
88
|
+
"ك" -> "k"
|
|
89
|
+
"گ" -> "g"
|
|
90
|
+
"ګ" -> "g"
|
|
91
|
+
"ل" -> "l"
|
|
92
|
+
"م" -> "m"
|
|
93
|
+
"ن" -> "n"
|
|
94
|
+
"ڼ" -> "ṇ"
|
|
95
|
+
"و" -> "w"
|
|
96
|
+
"ه" -> "h"
|
|
97
|
+
"ھ" -> "h"
|
|
98
|
+
"ة" -> "h"
|
|
99
|
+
"ي" -> "y"
|
|
100
|
+
"ى" -> "y"
|
|
101
|
+
# Vowels and Diphthongs (written marks)
|
|
102
|
+
"ُ" -> "u"
|
|
103
|
+
"ِ" -> "i"
|
|
104
|
+
"آ" -> "ā"
|
|
105
|
+
"وُ" -> "ū"
|
|
106
|
+
"يِ" -> "ī"
|
|
107
|
+
"وَ" -> "o"
|
|
108
|
+
"وَْ" -> "aw"
|
|
109
|
+
"ۍ" -> "ạy"
|
|
110
|
+
"ۀ" -> "ạh"
|
|
111
|
+
# Rule 1(a)/8(d): initial alif as the short-vowel carrier; final ۀ = ạh
|
|
112
|
+
"اتۀ" -> "atạh"
|
|
113
|
+
"نۀ" -> "nạh"
|
|
114
|
+
# Rule 1(b)/9: maddah = ā
|
|
115
|
+
# - source: آدم, expected: ādam (rule 1(b)/9; the a is unwritten;
|
|
116
|
+
# mechanical: ādm)
|
|
117
|
+
# Rule 2: medial and final alif = ā
|
|
118
|
+
"بابا" -> "bābā"
|
|
119
|
+
# Rule 5(a)/6(a): the consonant defaults of bare و and bare ی
|
|
120
|
+
"ورور" -> "wrwr" # the doc's wror reads the medial wau o, lexical
|
|
121
|
+
# - source: خوشحال, expected: khwushḥāl (rule 5(a); the u is unwritten;
|
|
122
|
+
# mechanical: khwshḥāl)
|
|
123
|
+
# - source: یو, expected: yaw (rules 5(d)/6(a); the a is unwritten;
|
|
124
|
+
# mechanical: yw)
|
|
125
|
+
# Rule 8(c): hamza over final yeh = ạy
|
|
126
|
+
"غواړئ" -> "ghwāṛạy"
|
|
127
|
+
# Rule 11: tashdid doubling (waw as consonant)
|
|
128
|
+
"وّ" -> "ww"
|
|
129
|
+
# Examples requiring lexically supplied vowels (note 4) or syntactic
|
|
130
|
+
# conventions; mechanical renderings noted
|
|
131
|
+
# - source: اولس, expected: ūlas (unwritten ū; mechanical: awls)
|
|
132
|
+
# - source: انعام, expected: inʻām (unwritten i; mechanical: anʻām)
|
|
133
|
+
# - source: اوښ, expected: ūṣh (unwritten ū)
|
|
134
|
+
# - source: ایران, expected: Īrān (capital; unwritten ī)
|
|
135
|
+
# - source: اوس, expected: os (bare wau read o)
|
|
136
|
+
# - source: ایښل, expected: eṣhal (bare yad read e)
|
|
137
|
+
# - source: اولّ, expected: awwal (tashdid ww; unwritten a)
|
|
138
|
+
# - source: ایام, expected: ayyām (unwritten a)
|
|
139
|
+
# - source: نوم, expected: nūm (bare wau read ū)
|
|
140
|
+
# - source: كور, expected: kor (bare wau read o)
|
|
141
|
+
# - source: او, expected: u (rule 5(e), rare)
|
|
142
|
+
# - source: مینھ, expected: mīnah (bare yad read ī; unwritten a)
|
|
143
|
+
# - source: ډیر, ډٻر, expected: ḍer (bare yad read e)
|
|
144
|
+
# - source: درى, درې, درے, expected: dre
|
|
145
|
+
# - source: شى, expected: shay (final yad read ay)
|
|
146
|
+
# - source: مصطفى, expected: Mustafá (rule 7(a); capital; unwritten u, a)
|
|
147
|
+
# - source: ډوډۍ, ډوډۓ, expected: ḍoḍạy (rule 7(b); unwritten o's;
|
|
148
|
+
# mechanical: ḍwḍạy)
|
|
149
|
+
# - source: سؤال, expected: suʼāl (rule 8(b); unwritten u)
|
|
150
|
+
# - source: دائمى, expected: dāʼimī (rule 8(b); unwritten i)
|
|
151
|
+
# - source: مسٲلھ, expected: masʼalah (rule 8(b); unwritten vowels)
|
|
152
|
+
# - source: آخر, expected: ākhir (unwritten i)
|
|
153
|
+
# - source: فطرتً, expected: fiṭratan (rule 10; unwritten i, a)
|
|
154
|
+
# - source: درس عبرت, expected: dars-i ʻibrat (rule 12(a), syntactic)
|
|
155
|
+
# - source: صاحب مبارك, expected: ṣāḥib-i mubārak (rule 12(a))
|
|
156
|
+
# - source: خانۀ فرهنګ, expected: khānah-ʼi farhang (rule 12(b),
|
|
157
|
+
# syntactic; the ۀ default renders ạh)
|
|
158
|
+
# - source: خانه ى بزرګ, expected: khānah-yi buzurg (rule 12(c))
|
|
159
|
+
# - source: نااشنا, expected: nāʹashnā (rule 13 prime)
|
|
160
|
+
# - source: وراستوى, expected: warʹastawī (rule 13 prime)
|
|
161
|
+
# - source: د ډۀ, expected: da dạh (rule 13 note 1)
|
|
162
|
+
# - source: عبد الرشید, expected: ʻAbd al-Rashīd (rule 13 note 2)
|
|
163
|
+
# - source: فضل الحق, expected: Faẓl al-Ḥaqq (rule 13 note 2)
|
|
164
|
+
# - source: نظام الدین, expected: Niz̤ām al-Dīn (rule 13 note 2)
|
|
165
|
+
# - source: کتابخانھ, expected: kitābʹkhānah (rule 14 prime; unwritten a)
|
|
166
|
+
# - source: مریضخانھ, expected: marīẓkhānah (rule 14)
|
|
167
|
+
# - source: یونیورسټى بك ایجنسى, expected: Yūnīwarsiṭī Buk Ejạnsī (rule 16)
|
|
168
|
+
# - source: دارمستتر, expected: Dārmastatar (rule 16)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
stage main {
|
|
172
|
+
sequence {
|
|
173
|
+
# Written vowels and diphthongs (table of vowels and diphthongs)
|
|
174
|
+
sub "وَْ" "aw"
|
|
175
|
+
sub "وَ" "o"
|
|
176
|
+
sub "وُ" "ū"
|
|
177
|
+
sub "يِ" "ī"
|
|
178
|
+
sub "يَ" "á"
|
|
179
|
+
|
|
180
|
+
# Rule 8 - hamzah: final hamza-on-yeh ạy; initial silent; else ʼ
|
|
181
|
+
sub {
|
|
182
|
+
from "ئ"
|
|
183
|
+
to "ạy"
|
|
184
|
+
after boundary
|
|
185
|
+
}
|
|
186
|
+
sub {
|
|
187
|
+
from boundary + "ء"
|
|
188
|
+
to ""
|
|
189
|
+
}
|
|
190
|
+
sub {
|
|
191
|
+
from boundary + "ئ"
|
|
192
|
+
to ""
|
|
193
|
+
}
|
|
194
|
+
sub "ء" "ʼ"
|
|
195
|
+
sub "ئ" "ʼ"
|
|
196
|
+
sub "ؤ" "ʼ"
|
|
197
|
+
sub "أ" "ʼ"
|
|
198
|
+
|
|
199
|
+
# Rule 8(d)/5 - the Peshawar heh-with-hamza ۀ = the central vowel ạ + h
|
|
200
|
+
sub "ۀ" "ạh"
|
|
201
|
+
|
|
202
|
+
# Rules 9-10 - maddah and tanvin
|
|
203
|
+
sub "آ" "ā"
|
|
204
|
+
sub "اً" "an"
|
|
205
|
+
sub "ً" "an"
|
|
206
|
+
|
|
207
|
+
# Rule 11 - tashdid doubling
|
|
208
|
+
sub "بّ" "bb"
|
|
209
|
+
sub "پّ" "pp"
|
|
210
|
+
sub "تّ" "tt"
|
|
211
|
+
sub "ټّ" "ṭṭ"
|
|
212
|
+
sub "ثّ" "ṣṣ"
|
|
213
|
+
sub "جّ" "jj"
|
|
214
|
+
sub "چّ" "chch"
|
|
215
|
+
sub "حّ" "ḥḥ"
|
|
216
|
+
sub "څّ" "ṡṡ"
|
|
217
|
+
sub "ځّ" "żż"
|
|
218
|
+
sub "خّ" "khkh"
|
|
219
|
+
sub "دّ" "dd"
|
|
220
|
+
sub "ډّ" "ḍḍ"
|
|
221
|
+
sub "ذّ" "zz"
|
|
222
|
+
sub "رّ" "rr"
|
|
223
|
+
sub "ړّ" "ṛṛ"
|
|
224
|
+
sub "زّ" "zz"
|
|
225
|
+
sub "ژّ" "zhzh"
|
|
226
|
+
sub "ږّ" "ẓhẓh"
|
|
227
|
+
sub "سّ" "ss"
|
|
228
|
+
sub "شّ" "shsh"
|
|
229
|
+
sub "ښّ" "ṣhṣh"
|
|
230
|
+
sub "صّ" "ṣṣ"
|
|
231
|
+
sub "ضّ" "ẓẓ"
|
|
232
|
+
sub "طّ" "ṭṭ"
|
|
233
|
+
sub "ظّ" "z̤z̤"
|
|
234
|
+
sub "عّ" "ʻʻ"
|
|
235
|
+
sub "غّ" "ghgh"
|
|
236
|
+
sub "فّ" "ff"
|
|
237
|
+
sub "قّ" "qq"
|
|
238
|
+
sub "كّ" "kk"
|
|
239
|
+
sub "گّ" "gg"
|
|
240
|
+
sub "ګّ" "gg"
|
|
241
|
+
sub "لّ" "ll"
|
|
242
|
+
sub "مّ" "mm"
|
|
243
|
+
sub "نّ" "nn"
|
|
244
|
+
sub "ڼّ" "ṇṇ"
|
|
245
|
+
sub "وّ" "ww"
|
|
246
|
+
sub "يّ" "yy"
|
|
247
|
+
|
|
248
|
+
# Letters of the Alphabet
|
|
249
|
+
sub "ب" "b"
|
|
250
|
+
sub "پ" "p"
|
|
251
|
+
sub "ت" "t"
|
|
252
|
+
sub "ټ" "ṭ"
|
|
253
|
+
sub "ث" "ṣ"
|
|
254
|
+
sub "ج" "j"
|
|
255
|
+
sub "چ" "ch"
|
|
256
|
+
sub "ح" "ḥ"
|
|
257
|
+
sub "څ" "ṡ"
|
|
258
|
+
sub "ځ" "ż"
|
|
259
|
+
sub "خ" "kh"
|
|
260
|
+
sub "د" "d"
|
|
261
|
+
sub "ډ" "ḍ"
|
|
262
|
+
sub "ذ" "z"
|
|
263
|
+
sub "ر" "r"
|
|
264
|
+
sub "ړ" "ṛ"
|
|
265
|
+
sub "ز" "z"
|
|
266
|
+
sub "ژ" "zh"
|
|
267
|
+
sub "ږ" "ẓh"
|
|
268
|
+
sub "س" "s"
|
|
269
|
+
sub "ش" "sh"
|
|
270
|
+
sub "ښ" "ṣh"
|
|
271
|
+
sub "ص" "ṣ"
|
|
272
|
+
sub "ض" "ẓ"
|
|
273
|
+
sub "ط" "ṭ"
|
|
274
|
+
sub "ظ" "z̤"
|
|
275
|
+
sub "ع" "ʻ"
|
|
276
|
+
sub "غ" "gh"
|
|
277
|
+
sub "ف" "f"
|
|
278
|
+
sub "ق" "q"
|
|
279
|
+
sub "ك" "k"
|
|
280
|
+
sub "گ" "g"
|
|
281
|
+
sub "ګ" "g"
|
|
282
|
+
sub "ل" "l"
|
|
283
|
+
sub "م" "m"
|
|
284
|
+
sub "ن" "n"
|
|
285
|
+
sub "ڼ" "ṇ"
|
|
286
|
+
sub "ة" "h"
|
|
287
|
+
sub "ه" "h"
|
|
288
|
+
sub "ھ" "h"
|
|
289
|
+
|
|
290
|
+
# Rules 1-2 - bare alif: word-initial the short-vowel carrier a,
|
|
291
|
+
# elsewhere the long vowel ā
|
|
292
|
+
sub {
|
|
293
|
+
from boundary + "ا"
|
|
294
|
+
to "a"
|
|
295
|
+
}
|
|
296
|
+
sub "ا" "ā"
|
|
297
|
+
|
|
298
|
+
# Marks not represented, and the short-vowel signs
|
|
299
|
+
sub "ْ" ""
|
|
300
|
+
sub "ّ" ""
|
|
301
|
+
sub "َ" "a"
|
|
302
|
+
sub "ُ" "u"
|
|
303
|
+
sub "ِ" "i"
|
|
304
|
+
sub "ٓ" ""
|
|
305
|
+
|
|
306
|
+
# Bare yad and bari yad defaults (the vowel readings are lexical)
|
|
307
|
+
sub "ي" "y"
|
|
308
|
+
sub "ى" "y"
|
|
309
|
+
sub "ی" "y"
|
|
310
|
+
sub "ۍ" "ạy"
|
|
311
|
+
sub "ے" "e"
|
|
312
|
+
sub "ۓ" "e"
|
|
313
|
+
|
|
314
|
+
# Bare waw default (the alphabet-row consonant reading)
|
|
315
|
+
sub "و" "w"
|
|
316
|
+
sub "ـ" ""
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
}
|