@polyglot-bundles/be-lang 0.1.5 → 0.3.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/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @polyglot-bundles/be-lang
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm install @polyglot-bundles/be-lang
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import * as characters from "@polyglot-bundles/be-lang/characters";
13
+ ```
14
+
15
+ ## Available exports
16
+
17
+ | Export | Contents |
18
+ |--------|---------|
19
+ | `.` | Re-exports everything |
20
+ | `./characters` | Character inventory (arrays / keyed objects with `char` field) |
21
+
22
+ ## Data
23
+
24
+ ~32 consonants, 11 vowels
25
+
26
+ ## License
27
+
28
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-bundles/be-lang",
3
- "version": "0.1.5",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,6 +8,10 @@
8
8
  ".": {
9
9
  "import": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts"
11
+ },
12
+ "./characters": {
13
+ "types": "./dist/characters.d.ts",
14
+ "import": "./dist/characters.js"
11
15
  }
12
16
  },
13
17
  "files": [
@@ -17,8 +21,10 @@
17
21
  "access": "public"
18
22
  },
19
23
  "devDependencies": {
24
+ "vite-plugin-dts": "^4.5.4",
25
+ "vitest": "^4.1.4",
20
26
  "@polyglot-bundles/lang-tooling": "0.0.0",
21
- "@polyglot-bundles/content-shared": "0.5.3"
27
+ "@polyglot-bundles/content-shared": "0.5.6"
22
28
  },
23
29
  "repository": {
24
30
  "type": "git",
@@ -26,6 +32,8 @@
26
32
  "directory": "packages/be/lang"
27
33
  },
28
34
  "scripts": {
29
- "build": "vite build"
35
+ "build": "vite build",
36
+ "test": "vitest run",
37
+ "typecheck": "tsc --noEmit"
30
38
  }
31
39
  }
@@ -1,402 +0,0 @@
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",
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.js DELETED
@@ -1,2 +0,0 @@
1
- import { belarusianAllCharacters as e, belarusianConsonants as t, belarusianVowels as n, isConsonant as r, isVowel as i } from "./characters.js";
2
- export { e as belarusianAllCharacters, t as belarusianConsonants, n as belarusianVowels, r as isConsonant, i as isVowel };
@@ -1,44 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","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D,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,wBAAwB,EAuC1D,CAAC;AAMF,eAAO,MAAM,uBAAuB,qDAGnC,CAAC"}
@@ -1,2 +0,0 @@
1
- export { belarusianVowels, belarusianConsonants, belarusianAllCharacters, type BelarusianVowelsInfo, type BelarusianConsonantsInfo, type BelarusianCharacter, isVowel, isConsonant, } from './characters.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}