@polyglot-bundles/be-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 +402 -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 +23 -0
- package/dist/sounds.d.ts.map +1 -0
- package/dist/sounds.js +291 -0
- package/package.json +20 -6
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Belarusian Character Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for Belarusian characters (Cyrillic script).
|
|
5
|
+
* Belarusian has 33 letters: 10 vowels, 23 consonants, plus 2 special characters.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Base character info
|
|
9
|
+
*/
|
|
10
|
+
type BelarusianCharacterBaseInfo = {
|
|
11
|
+
char: string;
|
|
12
|
+
id: string;
|
|
13
|
+
display?: string;
|
|
14
|
+
audio?: string;
|
|
15
|
+
notes?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Belarusian Vowels
|
|
19
|
+
*/
|
|
20
|
+
export type BelarusianVowelsInfo = {
|
|
21
|
+
charType: "vowel";
|
|
22
|
+
ipa: string;
|
|
23
|
+
name: string;
|
|
24
|
+
length?: "short" | "long";
|
|
25
|
+
} & BelarusianCharacterBaseInfo;
|
|
26
|
+
/**
|
|
27
|
+
* Belarusian Consonants
|
|
28
|
+
*/
|
|
29
|
+
export type BelarusianConsonantsInfo = {
|
|
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" | "alveolar";
|
|
36
|
+
} & BelarusianCharacterBaseInfo;
|
|
37
|
+
export type BelarusianCharacter = BelarusianVowelsInfo | BelarusianConsonantsInfo;
|
|
38
|
+
export declare function isVowel(character: BelarusianCharacter): character is BelarusianVowelsInfo;
|
|
39
|
+
export declare function isConsonant(character: BelarusianCharacter): character is BelarusianConsonantsInfo;
|
|
40
|
+
export declare const belarusianVowels: BelarusianVowelsInfo[];
|
|
41
|
+
export declare const belarusianConsonants: BelarusianConsonantsInfo[];
|
|
42
|
+
export declare const belarusianAllCharacters: (BelarusianVowelsInfo | BelarusianConsonantsInfo)[];
|
|
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,2BAA2B,GAAG;IACjC,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,oBAAoB,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B,GAAG,2BAA2B,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,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,UAAU,CAAC;CACxF,GAAG,2BAA2B,CAAC;AAGhC,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAGlF,wBAAgB,OAAO,CAAC,SAAS,EAAE,mBAAmB,GAAG,SAAS,IAAI,oBAAoB,CAEzF;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,mBAAmB,GAAG,SAAS,IAAI,wBAAwB,CAEjG;AAMD,eAAO,MAAM,gBAAgB,EAAE,oBAAoB,EAalD,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,wBAAwB,EAuC1D,CAAC;AAMF,eAAO,MAAM,uBAAuB,qDAGnC,CAAC"}
|
|
@@ -0,0 +1,402 @@
|
|
|
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: "а",
|
|
11
|
+
id: "a",
|
|
12
|
+
charType: "vowel",
|
|
13
|
+
ipa: "a",
|
|
14
|
+
name: "А",
|
|
15
|
+
length: "short"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
char: "э",
|
|
19
|
+
id: "e",
|
|
20
|
+
charType: "vowel",
|
|
21
|
+
ipa: "ɛ",
|
|
22
|
+
name: "Э",
|
|
23
|
+
length: "short"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
char: "і",
|
|
27
|
+
id: "i",
|
|
28
|
+
charType: "vowel",
|
|
29
|
+
ipa: "i",
|
|
30
|
+
name: "І",
|
|
31
|
+
length: "short"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
char: "о",
|
|
35
|
+
id: "o",
|
|
36
|
+
charType: "vowel",
|
|
37
|
+
ipa: "ɔ",
|
|
38
|
+
name: "О",
|
|
39
|
+
length: "short"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
char: "у",
|
|
43
|
+
id: "u",
|
|
44
|
+
charType: "vowel",
|
|
45
|
+
ipa: "u",
|
|
46
|
+
name: "У",
|
|
47
|
+
length: "short"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
char: "ы",
|
|
51
|
+
id: "y",
|
|
52
|
+
charType: "vowel",
|
|
53
|
+
ipa: "ɨ",
|
|
54
|
+
name: "Ы",
|
|
55
|
+
length: "short"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
char: "ю",
|
|
59
|
+
id: "yu",
|
|
60
|
+
charType: "vowel",
|
|
61
|
+
ipa: "ju",
|
|
62
|
+
name: "Ю",
|
|
63
|
+
length: "short"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
char: "я",
|
|
67
|
+
id: "ya",
|
|
68
|
+
charType: "vowel",
|
|
69
|
+
ipa: "ja",
|
|
70
|
+
name: "Я",
|
|
71
|
+
length: "short"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
char: "е",
|
|
75
|
+
id: "e_short",
|
|
76
|
+
charType: "vowel",
|
|
77
|
+
ipa: "je",
|
|
78
|
+
name: "Е",
|
|
79
|
+
length: "short"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
char: "ё",
|
|
83
|
+
id: "yo",
|
|
84
|
+
charType: "vowel",
|
|
85
|
+
ipa: "jo",
|
|
86
|
+
name: "Ё",
|
|
87
|
+
length: "short"
|
|
88
|
+
}
|
|
89
|
+
], r = [
|
|
90
|
+
{
|
|
91
|
+
char: "б",
|
|
92
|
+
id: "be",
|
|
93
|
+
charType: "consonant",
|
|
94
|
+
ipa: "b",
|
|
95
|
+
name: "Бэ",
|
|
96
|
+
voicing: "voiced",
|
|
97
|
+
articulation: "stop",
|
|
98
|
+
place: "labial"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
char: "п",
|
|
102
|
+
id: "pe",
|
|
103
|
+
charType: "consonant",
|
|
104
|
+
ipa: "p",
|
|
105
|
+
name: "Пэ",
|
|
106
|
+
voicing: "voiceless",
|
|
107
|
+
articulation: "stop",
|
|
108
|
+
place: "labial"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
char: "м",
|
|
112
|
+
id: "me",
|
|
113
|
+
charType: "consonant",
|
|
114
|
+
ipa: "m",
|
|
115
|
+
name: "Мэ",
|
|
116
|
+
voicing: "nasal",
|
|
117
|
+
articulation: "nasal",
|
|
118
|
+
place: "labial"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
char: "в",
|
|
122
|
+
id: "ve",
|
|
123
|
+
charType: "consonant",
|
|
124
|
+
ipa: "v",
|
|
125
|
+
name: "Вэ",
|
|
126
|
+
voicing: "voiced",
|
|
127
|
+
articulation: "fricative",
|
|
128
|
+
place: "labial"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
char: "ф",
|
|
132
|
+
id: "fe",
|
|
133
|
+
charType: "consonant",
|
|
134
|
+
ipa: "f",
|
|
135
|
+
name: "Фэ",
|
|
136
|
+
voicing: "voiceless",
|
|
137
|
+
articulation: "fricative",
|
|
138
|
+
place: "labial"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
char: "д",
|
|
142
|
+
id: "de",
|
|
143
|
+
charType: "consonant",
|
|
144
|
+
ipa: "d",
|
|
145
|
+
name: "Дэ",
|
|
146
|
+
voicing: "voiced",
|
|
147
|
+
articulation: "stop",
|
|
148
|
+
place: "dental"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
char: "т",
|
|
152
|
+
id: "te",
|
|
153
|
+
charType: "consonant",
|
|
154
|
+
ipa: "t",
|
|
155
|
+
name: "Тэ",
|
|
156
|
+
voicing: "voiceless",
|
|
157
|
+
articulation: "stop",
|
|
158
|
+
place: "dental"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
char: "з",
|
|
162
|
+
id: "ze",
|
|
163
|
+
charType: "consonant",
|
|
164
|
+
ipa: "z",
|
|
165
|
+
name: "Зэ",
|
|
166
|
+
voicing: "voiced",
|
|
167
|
+
articulation: "fricative",
|
|
168
|
+
place: "alveolar"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
char: "с",
|
|
172
|
+
id: "se",
|
|
173
|
+
charType: "consonant",
|
|
174
|
+
ipa: "s",
|
|
175
|
+
name: "Сэ",
|
|
176
|
+
voicing: "voiceless",
|
|
177
|
+
articulation: "fricative",
|
|
178
|
+
place: "alveolar"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
char: "н",
|
|
182
|
+
id: "ne",
|
|
183
|
+
charType: "consonant",
|
|
184
|
+
ipa: "n",
|
|
185
|
+
name: "Нэ",
|
|
186
|
+
voicing: "nasal",
|
|
187
|
+
articulation: "nasal",
|
|
188
|
+
place: "alveolar"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
char: "л",
|
|
192
|
+
id: "le",
|
|
193
|
+
charType: "consonant",
|
|
194
|
+
ipa: "l",
|
|
195
|
+
name: "Лэ",
|
|
196
|
+
voicing: "lateral",
|
|
197
|
+
articulation: "lateral",
|
|
198
|
+
place: "alveolar"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
char: "р",
|
|
202
|
+
id: "re",
|
|
203
|
+
charType: "consonant",
|
|
204
|
+
ipa: "r",
|
|
205
|
+
name: "Рэ",
|
|
206
|
+
voicing: "trill",
|
|
207
|
+
articulation: "trill",
|
|
208
|
+
place: "alveolar"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
char: "ц",
|
|
212
|
+
id: "tse",
|
|
213
|
+
charType: "consonant",
|
|
214
|
+
ipa: "ts",
|
|
215
|
+
name: "Цэ",
|
|
216
|
+
voicing: "voiceless",
|
|
217
|
+
articulation: "affricate",
|
|
218
|
+
place: "alveolar"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
char: "ч",
|
|
222
|
+
id: "che",
|
|
223
|
+
charType: "consonant",
|
|
224
|
+
ipa: "tʃ",
|
|
225
|
+
name: "Чэ",
|
|
226
|
+
voicing: "voiceless",
|
|
227
|
+
articulation: "affricate",
|
|
228
|
+
place: "palatal"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
char: "ш",
|
|
232
|
+
id: "sha",
|
|
233
|
+
charType: "consonant",
|
|
234
|
+
ipa: "ʃ",
|
|
235
|
+
name: "Ша",
|
|
236
|
+
voicing: "voiceless",
|
|
237
|
+
articulation: "fricative",
|
|
238
|
+
place: "palatal"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
char: "ж",
|
|
242
|
+
id: "zha",
|
|
243
|
+
charType: "consonant",
|
|
244
|
+
ipa: "ʒ",
|
|
245
|
+
name: "Жа",
|
|
246
|
+
voicing: "voiced",
|
|
247
|
+
articulation: "fricative",
|
|
248
|
+
place: "palatal"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
char: "й",
|
|
252
|
+
id: "y-2",
|
|
253
|
+
charType: "consonant",
|
|
254
|
+
ipa: "j",
|
|
255
|
+
name: "Й",
|
|
256
|
+
voicing: "voiced",
|
|
257
|
+
articulation: "approximant",
|
|
258
|
+
place: "palatal"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
char: "сь",
|
|
262
|
+
id: "s_soft",
|
|
263
|
+
charType: "consonant",
|
|
264
|
+
ipa: "sʲ",
|
|
265
|
+
name: "Сь",
|
|
266
|
+
voicing: "voiceless",
|
|
267
|
+
articulation: "fricative",
|
|
268
|
+
place: "palatal"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
char: "зь",
|
|
272
|
+
id: "z_soft",
|
|
273
|
+
charType: "consonant",
|
|
274
|
+
ipa: "zʲ",
|
|
275
|
+
name: "Зь",
|
|
276
|
+
voicing: "voiced",
|
|
277
|
+
articulation: "fricative",
|
|
278
|
+
place: "palatal"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
char: "нь",
|
|
282
|
+
id: "n_soft",
|
|
283
|
+
charType: "consonant",
|
|
284
|
+
ipa: "nʲ",
|
|
285
|
+
name: "Нь",
|
|
286
|
+
voicing: "nasal",
|
|
287
|
+
articulation: "nasal",
|
|
288
|
+
place: "palatal"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
char: "ль",
|
|
292
|
+
id: "l_soft",
|
|
293
|
+
charType: "consonant",
|
|
294
|
+
ipa: "lʲ",
|
|
295
|
+
name: "Ль",
|
|
296
|
+
voicing: "lateral",
|
|
297
|
+
articulation: "lateral",
|
|
298
|
+
place: "palatal"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
char: "рь",
|
|
302
|
+
id: "r_soft",
|
|
303
|
+
charType: "consonant",
|
|
304
|
+
ipa: "rʲ",
|
|
305
|
+
name: "Рь",
|
|
306
|
+
voicing: "trill",
|
|
307
|
+
articulation: "trill",
|
|
308
|
+
place: "palatal"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
char: "к",
|
|
312
|
+
id: "ka",
|
|
313
|
+
charType: "consonant",
|
|
314
|
+
ipa: "k",
|
|
315
|
+
name: "Ка",
|
|
316
|
+
voicing: "voiceless",
|
|
317
|
+
articulation: "stop",
|
|
318
|
+
place: "velar"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
char: "г",
|
|
322
|
+
id: "ha",
|
|
323
|
+
charType: "consonant",
|
|
324
|
+
ipa: "ɡ",
|
|
325
|
+
name: "Га",
|
|
326
|
+
voicing: "voiced",
|
|
327
|
+
articulation: "stop",
|
|
328
|
+
place: "velar"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
char: "х",
|
|
332
|
+
id: "kha",
|
|
333
|
+
charType: "consonant",
|
|
334
|
+
ipa: "x",
|
|
335
|
+
name: "Ха",
|
|
336
|
+
voicing: "voiceless",
|
|
337
|
+
articulation: "fricative",
|
|
338
|
+
place: "velar"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
char: "ў",
|
|
342
|
+
id: "u_short",
|
|
343
|
+
charType: "consonant",
|
|
344
|
+
ipa: "w",
|
|
345
|
+
name: "Ў",
|
|
346
|
+
voicing: "approximant",
|
|
347
|
+
articulation: "approximant",
|
|
348
|
+
place: "labial"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
char: "dź",
|
|
352
|
+
id: "d_soft",
|
|
353
|
+
charType: "consonant",
|
|
354
|
+
ipa: "dʲ",
|
|
355
|
+
name: "Дź",
|
|
356
|
+
voicing: "voiced",
|
|
357
|
+
articulation: "stop",
|
|
358
|
+
place: "palatal"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
char: "ć",
|
|
362
|
+
id: "t_soft",
|
|
363
|
+
charType: "consonant",
|
|
364
|
+
ipa: "tʲ",
|
|
365
|
+
name: "Ć",
|
|
366
|
+
voicing: "voiceless",
|
|
367
|
+
articulation: "stop",
|
|
368
|
+
place: "palatal"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
char: "ł",
|
|
372
|
+
id: "l_foreign",
|
|
373
|
+
charType: "consonant",
|
|
374
|
+
ipa: "w",
|
|
375
|
+
name: "Ł (foreign)",
|
|
376
|
+
voicing: "lateral",
|
|
377
|
+
articulation: "lateral",
|
|
378
|
+
place: "labial"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
char: "q",
|
|
382
|
+
id: "q_foreign",
|
|
383
|
+
charType: "consonant",
|
|
384
|
+
ipa: "k",
|
|
385
|
+
name: "Q (foreign)",
|
|
386
|
+
voicing: "voiceless",
|
|
387
|
+
articulation: "stop",
|
|
388
|
+
place: "velar"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
char: "x",
|
|
392
|
+
id: "x_foreign",
|
|
393
|
+
charType: "consonant",
|
|
394
|
+
ipa: "ks",
|
|
395
|
+
name: "X (foreign)",
|
|
396
|
+
voicing: "voiceless",
|
|
397
|
+
articulation: "stop",
|
|
398
|
+
place: "velar"
|
|
399
|
+
}
|
|
400
|
+
], i = [...n, ...r];
|
|
401
|
+
//#endregion
|
|
402
|
+
export { i as belarusianAllCharacters, r as belarusianConsonants, n as belarusianVowels, t as isConsonant, e as isVowel };
|
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,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,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,23 @@
|
|
|
1
|
+
import { SoundCharacter, LanguageSoundsConfig } from '@polyglot-bundles/content-shared';
|
|
2
|
+
/**
|
|
3
|
+
* Belarusian sound categories for the language-sounds tool.
|
|
4
|
+
*
|
|
5
|
+
* Sourced from Wikipedia's Belarusian phonology article
|
|
6
|
+
* (https://en.wikipedia.org/wiki/Belarusian_phonology). 39 consonants
|
|
7
|
+
* (most in hard/soft palatalized pairs — a phonemic feature of all East
|
|
8
|
+
* Slavic languages) and 5 oral vowels (article notes 5 vowels though
|
|
9
|
+
* /ɨ/ is sometimes counted; encoded here as 5).
|
|
10
|
+
*
|
|
11
|
+
* Palatalized consonants are grouped as their own category — perceiving
|
|
12
|
+
* the hard/soft distinction is the central pedagogical challenge for
|
|
13
|
+
* L2 Belarusian learners.
|
|
14
|
+
*
|
|
15
|
+
* Phonemes are listed using Cyrillic script as `char` since that is
|
|
16
|
+
* Belarusian's everyday script. Soft consonants use the soft-sign
|
|
17
|
+
* cluster (e.g., "бь") to make the contrast visible.
|
|
18
|
+
*/
|
|
19
|
+
export declare const beHardConsonants: SoundCharacter[];
|
|
20
|
+
export declare const bePalatalizedConsonants: SoundCharacter[];
|
|
21
|
+
export declare const beVowels: SoundCharacter[];
|
|
22
|
+
export declare const belarusianSoundsConfig: LanguageSoundsConfig;
|
|
23
|
+
//# 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;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAuB5C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAAc,EAgBnD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,cAAc,EAOpC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,oBA0BpC,CAAC"}
|
package/dist/sounds.js
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
//#region src/sounds.ts
|
|
2
|
+
var e = [
|
|
3
|
+
{
|
|
4
|
+
char: "м",
|
|
5
|
+
id: "m",
|
|
6
|
+
charType: "consonant",
|
|
7
|
+
ipa: "m"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
char: "н",
|
|
11
|
+
id: "n",
|
|
12
|
+
charType: "consonant",
|
|
13
|
+
ipa: "n̪"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
char: "п",
|
|
17
|
+
id: "p",
|
|
18
|
+
charType: "consonant",
|
|
19
|
+
ipa: "p"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
char: "б",
|
|
23
|
+
id: "b",
|
|
24
|
+
charType: "consonant",
|
|
25
|
+
ipa: "b"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
char: "т",
|
|
29
|
+
id: "t",
|
|
30
|
+
charType: "consonant",
|
|
31
|
+
ipa: "t̪"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
char: "д",
|
|
35
|
+
id: "d",
|
|
36
|
+
charType: "consonant",
|
|
37
|
+
ipa: "d̪"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
char: "к",
|
|
41
|
+
id: "k",
|
|
42
|
+
charType: "consonant",
|
|
43
|
+
ipa: "k"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
char: "г",
|
|
47
|
+
id: "gh",
|
|
48
|
+
charType: "consonant",
|
|
49
|
+
ipa: "ɣ"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
char: "ц",
|
|
53
|
+
id: "ts",
|
|
54
|
+
charType: "consonant",
|
|
55
|
+
ipa: "ts̪"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
char: "дз",
|
|
59
|
+
id: "dz",
|
|
60
|
+
charType: "consonant",
|
|
61
|
+
ipa: "dz̪"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
char: "ч",
|
|
65
|
+
id: "ch",
|
|
66
|
+
charType: "consonant",
|
|
67
|
+
ipa: "ʈʂ"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
char: "дж",
|
|
71
|
+
id: "dzh",
|
|
72
|
+
charType: "consonant",
|
|
73
|
+
ipa: "ɖʐ"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
char: "ф",
|
|
77
|
+
id: "f",
|
|
78
|
+
charType: "consonant",
|
|
79
|
+
ipa: "f"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
char: "в",
|
|
83
|
+
id: "v",
|
|
84
|
+
charType: "consonant",
|
|
85
|
+
ipa: "v"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
char: "с",
|
|
89
|
+
id: "s",
|
|
90
|
+
charType: "consonant",
|
|
91
|
+
ipa: "s̪"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
char: "з",
|
|
95
|
+
id: "z",
|
|
96
|
+
charType: "consonant",
|
|
97
|
+
ipa: "z̪"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
char: "ш",
|
|
101
|
+
id: "sh",
|
|
102
|
+
charType: "consonant",
|
|
103
|
+
ipa: "ʂ"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
char: "ж",
|
|
107
|
+
id: "zh",
|
|
108
|
+
charType: "consonant",
|
|
109
|
+
ipa: "ʐ"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
char: "х",
|
|
113
|
+
id: "kh",
|
|
114
|
+
charType: "consonant",
|
|
115
|
+
ipa: "x"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
char: "л",
|
|
119
|
+
id: "l",
|
|
120
|
+
charType: "consonant",
|
|
121
|
+
ipa: "l̪"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
char: "р",
|
|
125
|
+
id: "r",
|
|
126
|
+
charType: "consonant",
|
|
127
|
+
ipa: "r"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
char: "ў",
|
|
131
|
+
id: "w",
|
|
132
|
+
charType: "consonant",
|
|
133
|
+
ipa: "w"
|
|
134
|
+
}
|
|
135
|
+
], t = [
|
|
136
|
+
{
|
|
137
|
+
char: "мь",
|
|
138
|
+
id: "m_soft",
|
|
139
|
+
charType: "consonant",
|
|
140
|
+
ipa: "mʲ"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
char: "нь",
|
|
144
|
+
id: "n_soft",
|
|
145
|
+
charType: "consonant",
|
|
146
|
+
ipa: "n̪ʲ"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
char: "пь",
|
|
150
|
+
id: "p_soft",
|
|
151
|
+
charType: "consonant",
|
|
152
|
+
ipa: "pʲ"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
char: "бь",
|
|
156
|
+
id: "b_soft",
|
|
157
|
+
charType: "consonant",
|
|
158
|
+
ipa: "bʲ"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
char: "кь",
|
|
162
|
+
id: "k_soft",
|
|
163
|
+
charType: "consonant",
|
|
164
|
+
ipa: "kʲ"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
char: "гь",
|
|
168
|
+
id: "gh_soft",
|
|
169
|
+
charType: "consonant",
|
|
170
|
+
ipa: "ɣʲ"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
char: "ць",
|
|
174
|
+
id: "ts_soft",
|
|
175
|
+
charType: "consonant",
|
|
176
|
+
ipa: "ts̪ʲ"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
char: "дзь",
|
|
180
|
+
id: "dz_soft",
|
|
181
|
+
charType: "consonant",
|
|
182
|
+
ipa: "dz̪ʲ"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
char: "фь",
|
|
186
|
+
id: "f_soft",
|
|
187
|
+
charType: "consonant",
|
|
188
|
+
ipa: "fʲ"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
char: "вь",
|
|
192
|
+
id: "v_soft",
|
|
193
|
+
charType: "consonant",
|
|
194
|
+
ipa: "vʲ"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
char: "сь",
|
|
198
|
+
id: "s_soft",
|
|
199
|
+
charType: "consonant",
|
|
200
|
+
ipa: "sʲ"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
char: "зь",
|
|
204
|
+
id: "z_soft",
|
|
205
|
+
charType: "consonant",
|
|
206
|
+
ipa: "zʲ"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
char: "хь",
|
|
210
|
+
id: "kh_soft",
|
|
211
|
+
charType: "consonant",
|
|
212
|
+
ipa: "xʲ"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
char: "ль",
|
|
216
|
+
id: "l_soft",
|
|
217
|
+
charType: "consonant",
|
|
218
|
+
ipa: "l̪ʲ"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
char: "й",
|
|
222
|
+
id: "j",
|
|
223
|
+
charType: "consonant",
|
|
224
|
+
ipa: "j"
|
|
225
|
+
}
|
|
226
|
+
], n = [
|
|
227
|
+
{
|
|
228
|
+
char: "і",
|
|
229
|
+
id: "i",
|
|
230
|
+
charType: "vowel",
|
|
231
|
+
ipa: "i"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
char: "ы",
|
|
235
|
+
id: "y",
|
|
236
|
+
charType: "vowel",
|
|
237
|
+
ipa: "ɨ"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
char: "э",
|
|
241
|
+
id: "e",
|
|
242
|
+
charType: "vowel",
|
|
243
|
+
ipa: "ɛ"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
char: "а",
|
|
247
|
+
id: "a",
|
|
248
|
+
charType: "vowel",
|
|
249
|
+
ipa: "a"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
char: "о",
|
|
253
|
+
id: "o",
|
|
254
|
+
charType: "vowel",
|
|
255
|
+
ipa: "o"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
char: "у",
|
|
259
|
+
id: "u",
|
|
260
|
+
charType: "vowel",
|
|
261
|
+
ipa: "u"
|
|
262
|
+
}
|
|
263
|
+
], r = {
|
|
264
|
+
categories: [
|
|
265
|
+
{
|
|
266
|
+
id: "hard-consonants",
|
|
267
|
+
label: "Hard Consonants",
|
|
268
|
+
sounds: e,
|
|
269
|
+
charType: "consonant",
|
|
270
|
+
color: "blue"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: "soft-consonants",
|
|
274
|
+
label: "Soft (Palatalized) Consonants",
|
|
275
|
+
sounds: t,
|
|
276
|
+
charType: "consonant",
|
|
277
|
+
color: "red"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: "vowels",
|
|
281
|
+
label: "Vowels",
|
|
282
|
+
sounds: n,
|
|
283
|
+
charType: "vowel",
|
|
284
|
+
color: "green"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
audioBasePath: "/audio/belarusian",
|
|
288
|
+
audioFilePattern: "{id}.mp3"
|
|
289
|
+
};
|
|
290
|
+
//#endregion
|
|
291
|
+
export { e as beHardConsonants, t as bePalatalizedConsonants, n as beVowels, r as belarusianSoundsConfig };
|
package/package.json
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyglot-bundles/be-lang",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Belarusian 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
|
+
"belarusian",
|
|
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
|
},
|
|
23
36
|
"devDependencies": {
|
|
24
37
|
"vite-plugin-dts": "^4.5.4",
|
|
25
38
|
"vitest": "^4.1.4",
|
|
26
|
-
"@polyglot-bundles/
|
|
27
|
-
"@polyglot-bundles/
|
|
39
|
+
"@polyglot-bundles/content-shared": "0.7.1",
|
|
40
|
+
"@polyglot-bundles/lang-tooling": "0.0.0"
|
|
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
|
}
|