@polyglot-bundles/mg-lang 0.4.0 → 0.5.1
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.
- package/dist/characters.d.ts +44 -0
- package/dist/characters.d.ts.map +1 -0
- package/dist/characters.js +396 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/sounds.d.ts +12 -0
- package/dist/sounds.d.ts.map +1 -0
- package/dist/sounds.js +238 -0
- package/package.json +19 -5
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Malagasy Character Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for Malagasy characters (Latin script).
|
|
5
|
+
* Malagasy has 21 letters: 5 vowels, 16 consonants.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Base character info
|
|
9
|
+
*/
|
|
10
|
+
type MalagasyCharacterBaseInfo = {
|
|
11
|
+
char: string;
|
|
12
|
+
id: string;
|
|
13
|
+
display?: string;
|
|
14
|
+
audio?: string;
|
|
15
|
+
notes?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Malagasy Vowels
|
|
19
|
+
*/
|
|
20
|
+
export type MalagasyVowelsInfo = {
|
|
21
|
+
charType: "vowel";
|
|
22
|
+
ipa: string;
|
|
23
|
+
name: string;
|
|
24
|
+
length?: "short" | "long";
|
|
25
|
+
} & MalagasyCharacterBaseInfo;
|
|
26
|
+
/**
|
|
27
|
+
* Malagasy Consonants
|
|
28
|
+
*/
|
|
29
|
+
export type MalagasyConsonantsInfo = {
|
|
30
|
+
charType: "consonant";
|
|
31
|
+
ipa: string;
|
|
32
|
+
name: string;
|
|
33
|
+
articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill" | "affricate";
|
|
34
|
+
voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "affricate" | "fricative";
|
|
35
|
+
place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "retroflex" | "alveolar";
|
|
36
|
+
} & MalagasyCharacterBaseInfo;
|
|
37
|
+
export type MalagasyCharacter = MalagasyVowelsInfo | MalagasyConsonantsInfo;
|
|
38
|
+
export declare function isVowel(character: MalagasyCharacter): character is MalagasyVowelsInfo;
|
|
39
|
+
export declare function isConsonant(character: MalagasyCharacter): character is MalagasyConsonantsInfo;
|
|
40
|
+
export declare const malagasyVowels: MalagasyVowelsInfo[];
|
|
41
|
+
export declare const malagasyConsonants: MalagasyConsonantsInfo[];
|
|
42
|
+
export declare const malagasyAllCharacters: (MalagasyVowelsInfo | MalagasyConsonantsInfo)[];
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=characters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../src/characters.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,GAAG,yBAAyB,CAAC;AAE9B;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,WAAW,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IACjG,OAAO,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;IAC5G,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;CACtG,GAAG,yBAAyB,CAAC;AAG9B,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,sBAAsB,CAAC;AAG5E,wBAAgB,OAAO,CAAC,SAAS,EAAE,iBAAiB,GAAG,SAAS,IAAI,kBAAkB,CAErF;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,iBAAiB,GAAG,SAAS,IAAI,sBAAsB,CAE7F;AAMD,eAAO,MAAM,cAAc,EAAE,kBAAkB,EAsB9C,CAAC;AAMF,eAAO,MAAM,kBAAkB,EAAE,sBAAsB,EA+BtD,CAAC;AAMF,eAAO,MAAM,qBAAqB,iDAGjC,CAAC"}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
//#region src/characters.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.charType === "vowel";
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return e.charType === "consonant";
|
|
7
|
+
}
|
|
8
|
+
var n = [
|
|
9
|
+
{
|
|
10
|
+
char: "a",
|
|
11
|
+
id: "a",
|
|
12
|
+
charType: "vowel",
|
|
13
|
+
ipa: "a",
|
|
14
|
+
name: "A",
|
|
15
|
+
length: "short"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
char: "e",
|
|
19
|
+
id: "e",
|
|
20
|
+
charType: "vowel",
|
|
21
|
+
ipa: "ɛ",
|
|
22
|
+
name: "E",
|
|
23
|
+
length: "short"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
char: "i",
|
|
27
|
+
id: "i",
|
|
28
|
+
charType: "vowel",
|
|
29
|
+
ipa: "i",
|
|
30
|
+
name: "I",
|
|
31
|
+
length: "short"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
char: "o",
|
|
35
|
+
id: "o",
|
|
36
|
+
charType: "vowel",
|
|
37
|
+
ipa: "ɔ",
|
|
38
|
+
name: "O",
|
|
39
|
+
length: "short"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
char: "u",
|
|
43
|
+
id: "u",
|
|
44
|
+
charType: "vowel",
|
|
45
|
+
ipa: "u",
|
|
46
|
+
name: "U",
|
|
47
|
+
length: "short"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
char: "â",
|
|
51
|
+
id: "a_circumflex",
|
|
52
|
+
charType: "vowel",
|
|
53
|
+
ipa: "a",
|
|
54
|
+
name: "Â",
|
|
55
|
+
length: "short"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
char: "ê",
|
|
59
|
+
id: "e_circumflex",
|
|
60
|
+
charType: "vowel",
|
|
61
|
+
ipa: "ɛ",
|
|
62
|
+
name: "Ê",
|
|
63
|
+
length: "short"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
char: "î",
|
|
67
|
+
id: "i_circumflex",
|
|
68
|
+
charType: "vowel",
|
|
69
|
+
ipa: "i",
|
|
70
|
+
name: "Î",
|
|
71
|
+
length: "short"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
char: "ô",
|
|
75
|
+
id: "o_circumflex",
|
|
76
|
+
charType: "vowel",
|
|
77
|
+
ipa: "ɔ",
|
|
78
|
+
name: "Ô",
|
|
79
|
+
length: "short"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
char: "û",
|
|
83
|
+
id: "u_circumflex",
|
|
84
|
+
charType: "vowel",
|
|
85
|
+
ipa: "u",
|
|
86
|
+
name: "Û",
|
|
87
|
+
length: "short"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
char: "ai",
|
|
91
|
+
id: "ai",
|
|
92
|
+
charType: "vowel",
|
|
93
|
+
ipa: "ai",
|
|
94
|
+
name: "AI",
|
|
95
|
+
length: "short"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
char: "ao",
|
|
99
|
+
id: "ao",
|
|
100
|
+
charType: "vowel",
|
|
101
|
+
ipa: "aʊ",
|
|
102
|
+
name: "AO",
|
|
103
|
+
length: "short"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
char: "au",
|
|
107
|
+
id: "au",
|
|
108
|
+
charType: "vowel",
|
|
109
|
+
ipa: "au",
|
|
110
|
+
name: "AU",
|
|
111
|
+
length: "short"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
char: "ei",
|
|
115
|
+
id: "ei",
|
|
116
|
+
charType: "vowel",
|
|
117
|
+
ipa: "ɛi",
|
|
118
|
+
name: "EI",
|
|
119
|
+
length: "short"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
char: "io",
|
|
123
|
+
id: "io",
|
|
124
|
+
charType: "vowel",
|
|
125
|
+
ipa: "io",
|
|
126
|
+
name: "IO",
|
|
127
|
+
length: "short"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
char: "iu",
|
|
131
|
+
id: "iu",
|
|
132
|
+
charType: "vowel",
|
|
133
|
+
ipa: "iu",
|
|
134
|
+
name: "IU",
|
|
135
|
+
length: "short"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
char: "oe",
|
|
139
|
+
id: "oe",
|
|
140
|
+
charType: "vowel",
|
|
141
|
+
ipa: "uɛ",
|
|
142
|
+
name: "OE",
|
|
143
|
+
length: "short"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
char: "ou",
|
|
147
|
+
id: "ou",
|
|
148
|
+
charType: "vowel",
|
|
149
|
+
ipa: "ʊu",
|
|
150
|
+
name: "OU",
|
|
151
|
+
length: "short"
|
|
152
|
+
}
|
|
153
|
+
], r = [
|
|
154
|
+
{
|
|
155
|
+
char: "b",
|
|
156
|
+
id: "b",
|
|
157
|
+
charType: "consonant",
|
|
158
|
+
ipa: "b",
|
|
159
|
+
name: "B",
|
|
160
|
+
voicing: "voiced",
|
|
161
|
+
articulation: "stop",
|
|
162
|
+
place: "labial"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
char: "p",
|
|
166
|
+
id: "p",
|
|
167
|
+
charType: "consonant",
|
|
168
|
+
ipa: "p",
|
|
169
|
+
name: "P",
|
|
170
|
+
voicing: "voiceless",
|
|
171
|
+
articulation: "stop",
|
|
172
|
+
place: "labial"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
char: "m",
|
|
176
|
+
id: "m",
|
|
177
|
+
charType: "consonant",
|
|
178
|
+
ipa: "m",
|
|
179
|
+
name: "M",
|
|
180
|
+
voicing: "nasal",
|
|
181
|
+
articulation: "nasal",
|
|
182
|
+
place: "labial"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
char: "v",
|
|
186
|
+
id: "v",
|
|
187
|
+
charType: "consonant",
|
|
188
|
+
ipa: "v",
|
|
189
|
+
name: "V",
|
|
190
|
+
voicing: "voiced",
|
|
191
|
+
articulation: "fricative",
|
|
192
|
+
place: "labial"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
char: "f",
|
|
196
|
+
id: "f",
|
|
197
|
+
charType: "consonant",
|
|
198
|
+
ipa: "f",
|
|
199
|
+
name: "F",
|
|
200
|
+
voicing: "voiceless",
|
|
201
|
+
articulation: "fricative",
|
|
202
|
+
place: "labial"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
char: "t",
|
|
206
|
+
id: "t",
|
|
207
|
+
charType: "consonant",
|
|
208
|
+
ipa: "t",
|
|
209
|
+
name: "T",
|
|
210
|
+
voicing: "voiceless",
|
|
211
|
+
articulation: "stop",
|
|
212
|
+
place: "dental"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
char: "d",
|
|
216
|
+
id: "d_foreign",
|
|
217
|
+
charType: "consonant",
|
|
218
|
+
ipa: "d",
|
|
219
|
+
name: "D (foreign)",
|
|
220
|
+
voicing: "voiced",
|
|
221
|
+
articulation: "stop",
|
|
222
|
+
place: "dental"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
char: "s",
|
|
226
|
+
id: "s",
|
|
227
|
+
charType: "consonant",
|
|
228
|
+
ipa: "s",
|
|
229
|
+
name: "S",
|
|
230
|
+
voicing: "voiceless",
|
|
231
|
+
articulation: "fricative",
|
|
232
|
+
place: "alveolar"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
char: "z",
|
|
236
|
+
id: "z_foreign",
|
|
237
|
+
charType: "consonant",
|
|
238
|
+
ipa: "z",
|
|
239
|
+
name: "Z (foreign)",
|
|
240
|
+
voicing: "voiced",
|
|
241
|
+
articulation: "fricative",
|
|
242
|
+
place: "alveolar"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
char: "n",
|
|
246
|
+
id: "n",
|
|
247
|
+
charType: "consonant",
|
|
248
|
+
ipa: "n",
|
|
249
|
+
name: "N",
|
|
250
|
+
voicing: "nasal",
|
|
251
|
+
articulation: "nasal",
|
|
252
|
+
place: "alveolar"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
char: "l",
|
|
256
|
+
id: "l",
|
|
257
|
+
charType: "consonant",
|
|
258
|
+
ipa: "l",
|
|
259
|
+
name: "L",
|
|
260
|
+
voicing: "lateral",
|
|
261
|
+
articulation: "lateral",
|
|
262
|
+
place: "alveolar"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
char: "r",
|
|
266
|
+
id: "r",
|
|
267
|
+
charType: "consonant",
|
|
268
|
+
ipa: "r",
|
|
269
|
+
name: "R",
|
|
270
|
+
voicing: "trill",
|
|
271
|
+
articulation: "trill",
|
|
272
|
+
place: "alveolar"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
char: "y",
|
|
276
|
+
id: "y",
|
|
277
|
+
charType: "consonant",
|
|
278
|
+
ipa: "j",
|
|
279
|
+
name: "Y",
|
|
280
|
+
voicing: "voiced",
|
|
281
|
+
articulation: "approximant",
|
|
282
|
+
place: "palatal"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
char: "j",
|
|
286
|
+
id: "j_foreign",
|
|
287
|
+
charType: "consonant",
|
|
288
|
+
ipa: "dʒ",
|
|
289
|
+
name: "J (foreign)",
|
|
290
|
+
voicing: "voiced",
|
|
291
|
+
articulation: "affricate",
|
|
292
|
+
place: "palatal"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
char: "k",
|
|
296
|
+
id: "k",
|
|
297
|
+
charType: "consonant",
|
|
298
|
+
ipa: "k",
|
|
299
|
+
name: "K",
|
|
300
|
+
voicing: "voiceless",
|
|
301
|
+
articulation: "stop",
|
|
302
|
+
place: "velar"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
char: "g",
|
|
306
|
+
id: "g_foreign",
|
|
307
|
+
charType: "consonant",
|
|
308
|
+
ipa: "ɡ",
|
|
309
|
+
name: "G (foreign)",
|
|
310
|
+
voicing: "voiced",
|
|
311
|
+
articulation: "stop",
|
|
312
|
+
place: "velar"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
char: "h",
|
|
316
|
+
id: "h",
|
|
317
|
+
charType: "consonant",
|
|
318
|
+
ipa: "h",
|
|
319
|
+
name: "H",
|
|
320
|
+
voicing: "voiceless",
|
|
321
|
+
articulation: "fricative",
|
|
322
|
+
place: "glottal"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
char: "g",
|
|
326
|
+
id: "g_velar",
|
|
327
|
+
charType: "consonant",
|
|
328
|
+
ipa: "ɡ",
|
|
329
|
+
name: "G (velar)",
|
|
330
|
+
voicing: "voiced",
|
|
331
|
+
articulation: "stop",
|
|
332
|
+
place: "velar"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
char: "q",
|
|
336
|
+
id: "q_foreign",
|
|
337
|
+
charType: "consonant",
|
|
338
|
+
ipa: "k",
|
|
339
|
+
name: "Q (foreign)",
|
|
340
|
+
voicing: "voiceless",
|
|
341
|
+
articulation: "stop",
|
|
342
|
+
place: "velar"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
char: "c",
|
|
346
|
+
id: "c_foreign",
|
|
347
|
+
charType: "consonant",
|
|
348
|
+
ipa: "k",
|
|
349
|
+
name: "C (foreign)",
|
|
350
|
+
voicing: "voiceless",
|
|
351
|
+
articulation: "stop",
|
|
352
|
+
place: "velar"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
char: "x",
|
|
356
|
+
id: "x_foreign",
|
|
357
|
+
charType: "consonant",
|
|
358
|
+
ipa: "ks",
|
|
359
|
+
name: "X (foreign)",
|
|
360
|
+
voicing: "voiceless",
|
|
361
|
+
articulation: "stop",
|
|
362
|
+
place: "velar"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
char: "w",
|
|
366
|
+
id: "w_foreign",
|
|
367
|
+
charType: "consonant",
|
|
368
|
+
ipa: "w",
|
|
369
|
+
name: "W (foreign)",
|
|
370
|
+
voicing: "voiced",
|
|
371
|
+
articulation: "approximant",
|
|
372
|
+
place: "labial"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
char: "d",
|
|
376
|
+
id: "d_apical",
|
|
377
|
+
charType: "consonant",
|
|
378
|
+
ipa: "ɽ",
|
|
379
|
+
name: "D (apical)",
|
|
380
|
+
voicing: "voiced",
|
|
381
|
+
articulation: "stop",
|
|
382
|
+
place: "retroflex"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
char: "z",
|
|
386
|
+
id: "z_apical",
|
|
387
|
+
charType: "consonant",
|
|
388
|
+
ipa: "z",
|
|
389
|
+
name: "Z (apical)",
|
|
390
|
+
voicing: "voiced",
|
|
391
|
+
articulation: "fricative",
|
|
392
|
+
place: "alveolar"
|
|
393
|
+
}
|
|
394
|
+
], i = [...n, ...r];
|
|
395
|
+
//#endregion
|
|
396
|
+
export { t as isConsonant, e as isVowel, i as malagasyAllCharacters, r as malagasyConsonants, n as malagasyVowels };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,OAAO,EACP,WAAW,GACZ,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
|
package/dist/sounds.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SoundCharacter, LanguageSoundsConfig } from '@polyglot-bundles/content-shared';
|
|
2
|
+
/**
|
|
3
|
+
* Malagasy sound categories — Wikipedia Malagasy_language phonology.
|
|
4
|
+
*
|
|
5
|
+
* Distinctive: prenasalized consonants (10 of them) — own red category.
|
|
6
|
+
* 4-vowel system (standard).
|
|
7
|
+
*/
|
|
8
|
+
export declare const mgPlainConsonants: SoundCharacter[];
|
|
9
|
+
export declare const mgPrenasalized: SoundCharacter[];
|
|
10
|
+
export declare const mgVowels: SoundCharacter[];
|
|
11
|
+
export declare const malagasySoundsConfig: LanguageSoundsConfig;
|
|
12
|
+
//# sourceMappingURL=sounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sounds.d.ts","sourceRoot":"","sources":["../src/sounds.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C;;;;;GAKG;AAEH,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAqB7C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,EAW1C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,cAAc,EAKpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,oBAQlC,CAAC"}
|
package/dist/sounds.js
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
//#region src/sounds.ts
|
|
2
|
+
var e = [
|
|
3
|
+
{
|
|
4
|
+
char: "m",
|
|
5
|
+
id: "m",
|
|
6
|
+
charType: "consonant",
|
|
7
|
+
ipa: "m"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
char: "n",
|
|
11
|
+
id: "n",
|
|
12
|
+
charType: "consonant",
|
|
13
|
+
ipa: "n"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
char: "ng",
|
|
17
|
+
id: "ng",
|
|
18
|
+
charType: "consonant",
|
|
19
|
+
ipa: "ŋ"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
char: "p",
|
|
23
|
+
id: "p",
|
|
24
|
+
charType: "consonant",
|
|
25
|
+
ipa: "p"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
char: "b",
|
|
29
|
+
id: "b",
|
|
30
|
+
charType: "consonant",
|
|
31
|
+
ipa: "b"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
char: "t",
|
|
35
|
+
id: "t",
|
|
36
|
+
charType: "consonant",
|
|
37
|
+
ipa: "t"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
char: "d",
|
|
41
|
+
id: "d",
|
|
42
|
+
charType: "consonant",
|
|
43
|
+
ipa: "d"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
char: "k",
|
|
47
|
+
id: "k",
|
|
48
|
+
charType: "consonant",
|
|
49
|
+
ipa: "k"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
char: "g",
|
|
53
|
+
id: "g",
|
|
54
|
+
charType: "consonant",
|
|
55
|
+
ipa: "ɡ"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
char: "ts",
|
|
59
|
+
id: "ts",
|
|
60
|
+
charType: "consonant",
|
|
61
|
+
ipa: "ts"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
char: "dz (j)",
|
|
65
|
+
id: "dz",
|
|
66
|
+
charType: "consonant",
|
|
67
|
+
ipa: "dz"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
char: "tr",
|
|
71
|
+
id: "ts_retroflex",
|
|
72
|
+
charType: "consonant",
|
|
73
|
+
ipa: "ʈʂ"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
char: "dr",
|
|
77
|
+
id: "dz_retroflex",
|
|
78
|
+
charType: "consonant",
|
|
79
|
+
ipa: "ɖʐ"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
char: "f",
|
|
83
|
+
id: "f",
|
|
84
|
+
charType: "consonant",
|
|
85
|
+
ipa: "f"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
char: "v",
|
|
89
|
+
id: "v",
|
|
90
|
+
charType: "consonant",
|
|
91
|
+
ipa: "v"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
char: "s",
|
|
95
|
+
id: "s",
|
|
96
|
+
charType: "consonant",
|
|
97
|
+
ipa: "s"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
char: "z",
|
|
101
|
+
id: "z",
|
|
102
|
+
charType: "consonant",
|
|
103
|
+
ipa: "z"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
char: "h",
|
|
107
|
+
id: "h",
|
|
108
|
+
charType: "consonant",
|
|
109
|
+
ipa: "h"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
char: "l",
|
|
113
|
+
id: "l",
|
|
114
|
+
charType: "consonant",
|
|
115
|
+
ipa: "l"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
char: "r",
|
|
119
|
+
id: "r",
|
|
120
|
+
charType: "consonant",
|
|
121
|
+
ipa: "r"
|
|
122
|
+
}
|
|
123
|
+
], t = [
|
|
124
|
+
{
|
|
125
|
+
char: "mp",
|
|
126
|
+
id: "mp",
|
|
127
|
+
charType: "consonant",
|
|
128
|
+
ipa: "ᵐp"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
char: "mb",
|
|
132
|
+
id: "mb",
|
|
133
|
+
charType: "consonant",
|
|
134
|
+
ipa: "ᵐb"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
char: "nt",
|
|
138
|
+
id: "nt",
|
|
139
|
+
charType: "consonant",
|
|
140
|
+
ipa: "ⁿt"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
char: "nd",
|
|
144
|
+
id: "nd",
|
|
145
|
+
charType: "consonant",
|
|
146
|
+
ipa: "ⁿd"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
char: "nts",
|
|
150
|
+
id: "nts",
|
|
151
|
+
charType: "consonant",
|
|
152
|
+
ipa: "ⁿts"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
char: "ndz",
|
|
156
|
+
id: "ndz",
|
|
157
|
+
charType: "consonant",
|
|
158
|
+
ipa: "ⁿdz"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
char: "ntr",
|
|
162
|
+
id: "ntr",
|
|
163
|
+
charType: "consonant",
|
|
164
|
+
ipa: "ᶯʈʂ"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
char: "ndr",
|
|
168
|
+
id: "ndr",
|
|
169
|
+
charType: "consonant",
|
|
170
|
+
ipa: "ᶯɖʐ"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
char: "nk",
|
|
174
|
+
id: "nk",
|
|
175
|
+
charType: "consonant",
|
|
176
|
+
ipa: "ᵑk"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
char: "ng (prenasal)",
|
|
180
|
+
id: "ngg",
|
|
181
|
+
charType: "consonant",
|
|
182
|
+
ipa: "ᵑɡ"
|
|
183
|
+
}
|
|
184
|
+
], n = [
|
|
185
|
+
{
|
|
186
|
+
char: "i / y",
|
|
187
|
+
id: "i",
|
|
188
|
+
charType: "vowel",
|
|
189
|
+
ipa: "i"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
char: "e",
|
|
193
|
+
id: "e",
|
|
194
|
+
charType: "vowel",
|
|
195
|
+
ipa: "e"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
char: "a",
|
|
199
|
+
id: "a",
|
|
200
|
+
charType: "vowel",
|
|
201
|
+
ipa: "a"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
char: "o",
|
|
205
|
+
id: "u",
|
|
206
|
+
charType: "vowel",
|
|
207
|
+
ipa: "u",
|
|
208
|
+
display: "o (= /u/)"
|
|
209
|
+
}
|
|
210
|
+
], r = {
|
|
211
|
+
categories: [
|
|
212
|
+
{
|
|
213
|
+
id: "consonants",
|
|
214
|
+
label: "Consonants",
|
|
215
|
+
sounds: e,
|
|
216
|
+
charType: "consonant",
|
|
217
|
+
color: "blue"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "prenasalized",
|
|
221
|
+
label: "Prenasalized Consonants",
|
|
222
|
+
sounds: t,
|
|
223
|
+
charType: "consonant",
|
|
224
|
+
color: "red"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
id: "vowels",
|
|
228
|
+
label: "Vowels (4)",
|
|
229
|
+
sounds: n,
|
|
230
|
+
charType: "vowel",
|
|
231
|
+
color: "green"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
audioBasePath: "/audio/malagasy",
|
|
235
|
+
audioFilePattern: "{id}.mp3"
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
export { r as malagasySoundsConfig, e as mgPlainConsonants, t as mgPrenasalized, n as mgVowels };
|
package/package.json
CHANGED
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyglot-bundles/mg-lang",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Malagasy language foundation data - characters, sounds, and pronunciation",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "./dist/index.js",
|
|
6
7
|
"types": "./dist/index.d.ts",
|
|
7
8
|
"exports": {
|
|
8
9
|
".": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
11
12
|
},
|
|
12
13
|
"./characters": {
|
|
13
14
|
"types": "./dist/characters.d.ts",
|
|
14
15
|
"import": "./dist/characters.js"
|
|
16
|
+
},
|
|
17
|
+
"./sounds": {
|
|
18
|
+
"types": "./dist/sounds.d.ts",
|
|
19
|
+
"import": "./dist/sounds.js"
|
|
15
20
|
}
|
|
16
21
|
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"malagasy",
|
|
24
|
+
"language-learning",
|
|
25
|
+
"characters",
|
|
26
|
+
"phonemes",
|
|
27
|
+
"ipa"
|
|
28
|
+
],
|
|
17
29
|
"files": [
|
|
18
30
|
"dist"
|
|
19
31
|
],
|
|
32
|
+
"license": "MIT",
|
|
20
33
|
"publishConfig": {
|
|
21
34
|
"access": "public"
|
|
22
35
|
},
|
|
@@ -24,7 +37,7 @@
|
|
|
24
37
|
"vite-plugin-dts": "^4.5.4",
|
|
25
38
|
"vitest": "^4.1.4",
|
|
26
39
|
"@polyglot-bundles/lang-tooling": "0.0.0",
|
|
27
|
-
"@polyglot-bundles/content-shared": "0.
|
|
40
|
+
"@polyglot-bundles/content-shared": "0.7.1"
|
|
28
41
|
},
|
|
29
42
|
"repository": {
|
|
30
43
|
"type": "git",
|
|
@@ -34,6 +47,7 @@
|
|
|
34
47
|
"scripts": {
|
|
35
48
|
"build": "vite build",
|
|
36
49
|
"test": "vitest run",
|
|
37
|
-
"typecheck": "tsc --noEmit"
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"clean": "rm -rf dist"
|
|
38
52
|
}
|
|
39
53
|
}
|