@polyglot-bundles/pt-br 0.5.0 → 0.5.2

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/index.js ADDED
@@ -0,0 +1,663 @@
1
+ //#region ../../shared/content-shared/dist/capabilities.js
2
+ var e = [
3
+ "characters",
4
+ "sounds",
5
+ "minimalPairs",
6
+ "parallelText",
7
+ "wordLists",
8
+ "stories",
9
+ "puzzles"
10
+ ];
11
+ function t(e) {
12
+ return !!e && typeof e == "object" && Object.keys(e).length > 0;
13
+ }
14
+ function n(e) {
15
+ return Array.isArray(e) && e.length > 0;
16
+ }
17
+ var r = {
18
+ characters: {
19
+ id: "characters",
20
+ inputKey: "characters",
21
+ bundleKey: "characters",
22
+ hasInputData: (e) => t(e.characters),
23
+ hasBundleData: (e) => i(e.characters)
24
+ },
25
+ sounds: {
26
+ id: "sounds",
27
+ inputKey: "getSounds",
28
+ bundleKey: "getSounds",
29
+ hasInputData: (e) => typeof e.getSounds == "function",
30
+ hasBundleData: (e) => typeof e.getSounds == "function"
31
+ },
32
+ minimalPairs: {
33
+ id: "minimalPairs",
34
+ inputKey: "getMinimalPairs",
35
+ bundleKey: "getMinimalPairs",
36
+ hasInputData: (e) => typeof e.getMinimalPairs == "function",
37
+ hasBundleData: (e) => typeof e.getMinimalPairs == "function"
38
+ },
39
+ parallelText: {
40
+ id: "parallelText",
41
+ inputKey: "parallelTextSets",
42
+ bundleKey: "parallelTextSets",
43
+ hasInputData: (e) => n(e.parallelTextSets),
44
+ hasBundleData: (e) => n(e.parallelTextSets)
45
+ },
46
+ wordLists: {
47
+ id: "wordLists",
48
+ inputKey: "wordListDescriptors",
49
+ bundleKey: "wordListDescriptors",
50
+ hasInputData: (e) => n(e.wordListDescriptors),
51
+ hasBundleData: (e) => n(e.wordListDescriptors)
52
+ },
53
+ stories: {
54
+ id: "stories",
55
+ inputKey: "getStories",
56
+ bundleKey: "getStories",
57
+ hasInputData: (e) => typeof e.getStories == "function",
58
+ hasBundleData: (e) => typeof e.getStories == "function"
59
+ },
60
+ puzzles: {
61
+ id: "puzzles",
62
+ inputKey: "getPuzzles",
63
+ bundleKey: "getPuzzles",
64
+ hasInputData: (e) => typeof e.getPuzzles == "function",
65
+ hasBundleData: (e) => typeof e.getPuzzles == "function"
66
+ }
67
+ };
68
+ function i(e) {
69
+ if (!e || typeof e != "object") return !1;
70
+ for (let t of Object.values(e)) {
71
+ let e = t;
72
+ if (Array.isArray(e?.characters) && e.characters.length > 0) return !0;
73
+ }
74
+ return !1;
75
+ }
76
+ //#endregion
77
+ //#region ../../shared/content-shared/dist/compose.js
78
+ function a(t) {
79
+ let n = [], i = t;
80
+ for (let t of e) r[t].hasInputData(i) && n.push(t);
81
+ return {
82
+ ...t.identity,
83
+ capabilities: n,
84
+ characters: t.characters,
85
+ parallelTextSets: t.parallelTextSets,
86
+ wordListDescriptors: t.wordListDescriptors,
87
+ getSounds: t.getSounds,
88
+ getMinimalPairs: t.getMinimalPairs,
89
+ getStories: t.getStories,
90
+ getPuzzles: t.getPuzzles
91
+ };
92
+ }
93
+ function o(e) {
94
+ return async () => (await e()).default;
95
+ }
96
+ function s(e, t) {
97
+ return async () => (await t())[e];
98
+ }
99
+ //#endregion
100
+ //#region ../lang/dist/characters.js
101
+ var c = [
102
+ {
103
+ char: "a",
104
+ id: "a",
105
+ charType: "vowel",
106
+ ipa: "a",
107
+ name: "A",
108
+ length: "short"
109
+ },
110
+ {
111
+ char: "e",
112
+ id: "e",
113
+ charType: "vowel",
114
+ ipa: "ɛ",
115
+ name: "E",
116
+ length: "short"
117
+ },
118
+ {
119
+ char: "i",
120
+ id: "i",
121
+ charType: "vowel",
122
+ ipa: "i",
123
+ name: "I",
124
+ length: "short"
125
+ },
126
+ {
127
+ char: "o",
128
+ id: "o",
129
+ charType: "vowel",
130
+ ipa: "ɔ",
131
+ name: "O",
132
+ length: "short"
133
+ },
134
+ {
135
+ char: "u",
136
+ id: "u",
137
+ charType: "vowel",
138
+ ipa: "u",
139
+ name: "U",
140
+ length: "short"
141
+ },
142
+ {
143
+ char: "á",
144
+ id: "a_acute",
145
+ charType: "vowel",
146
+ ipa: "a",
147
+ name: "Á",
148
+ length: "short"
149
+ },
150
+ {
151
+ char: "é",
152
+ id: "e_acute",
153
+ charType: "vowel",
154
+ ipa: "ɛ",
155
+ name: "É",
156
+ length: "short"
157
+ },
158
+ {
159
+ char: "í",
160
+ id: "i_acute",
161
+ charType: "vowel",
162
+ ipa: "i",
163
+ name: "Í",
164
+ length: "short"
165
+ },
166
+ {
167
+ char: "ó",
168
+ id: "o_acute",
169
+ charType: "vowel",
170
+ ipa: "ɔ",
171
+ name: "Ó",
172
+ length: "short"
173
+ },
174
+ {
175
+ char: "ú",
176
+ id: "u_acute",
177
+ charType: "vowel",
178
+ ipa: "u",
179
+ name: "Ú",
180
+ length: "short"
181
+ },
182
+ {
183
+ char: "ai",
184
+ id: "ai",
185
+ charType: "vowel",
186
+ ipa: "a'i",
187
+ name: "AI",
188
+ length: "short"
189
+ },
190
+ {
191
+ char: "au",
192
+ id: "au",
193
+ charType: "vowel",
194
+ ipa: "a'u",
195
+ name: "AU",
196
+ length: "short"
197
+ },
198
+ {
199
+ char: "ei",
200
+ id: "ei",
201
+ charType: "vowel",
202
+ ipa: "e'i",
203
+ name: "EI",
204
+ length: "short"
205
+ },
206
+ {
207
+ char: "eu",
208
+ id: "eu",
209
+ charType: "vowel",
210
+ ipa: "e'u",
211
+ name: "EU",
212
+ length: "short"
213
+ },
214
+ {
215
+ char: "oi",
216
+ id: "oi",
217
+ charType: "vowel",
218
+ ipa: "o'i",
219
+ name: "OI",
220
+ length: "short"
221
+ },
222
+ {
223
+ char: "ui",
224
+ id: "ui",
225
+ charType: "vowel",
226
+ ipa: "u'i",
227
+ name: "UI",
228
+ length: "short"
229
+ },
230
+ {
231
+ char: "iu",
232
+ id: "iu",
233
+ charType: "vowel",
234
+ ipa: "i'u",
235
+ name: "IU",
236
+ length: "short"
237
+ },
238
+ {
239
+ char: "ou",
240
+ id: "ou",
241
+ charType: "vowel",
242
+ ipa: "oʊ",
243
+ name: "OU",
244
+ length: "short"
245
+ },
246
+ {
247
+ char: "am",
248
+ id: "am",
249
+ charType: "vowel",
250
+ ipa: "ã",
251
+ name: "AM",
252
+ length: "short"
253
+ },
254
+ {
255
+ char: "an",
256
+ id: "an",
257
+ charType: "vowel",
258
+ ipa: "ã",
259
+ name: "AN",
260
+ length: "short"
261
+ },
262
+ {
263
+ char: "em",
264
+ id: "em",
265
+ charType: "vowel",
266
+ ipa: "ẽ",
267
+ name: "EM",
268
+ length: "short"
269
+ },
270
+ {
271
+ char: "en",
272
+ id: "en",
273
+ charType: "vowel",
274
+ ipa: "ẽ",
275
+ name: "EN",
276
+ length: "short"
277
+ },
278
+ {
279
+ char: "im",
280
+ id: "im",
281
+ charType: "vowel",
282
+ ipa: "ĩ",
283
+ name: "IM",
284
+ length: "short"
285
+ },
286
+ {
287
+ char: "in",
288
+ id: "in",
289
+ charType: "vowel",
290
+ ipa: "ĩ",
291
+ name: "IN",
292
+ length: "short"
293
+ },
294
+ {
295
+ char: "om",
296
+ id: "om",
297
+ charType: "vowel",
298
+ ipa: "õ",
299
+ name: "OM",
300
+ length: "short"
301
+ },
302
+ {
303
+ char: "on",
304
+ id: "on",
305
+ charType: "vowel",
306
+ ipa: "õ",
307
+ name: "ON",
308
+ length: "short"
309
+ },
310
+ {
311
+ char: "um",
312
+ id: "um",
313
+ charType: "vowel",
314
+ ipa: "ũ",
315
+ name: "UM",
316
+ length: "short"
317
+ },
318
+ {
319
+ char: "un",
320
+ id: "un",
321
+ charType: "vowel",
322
+ ipa: "ũ",
323
+ name: "UN",
324
+ length: "short"
325
+ }
326
+ ], l = [
327
+ {
328
+ char: "b",
329
+ id: "b",
330
+ charType: "consonant",
331
+ ipa: "b",
332
+ name: "B",
333
+ voicing: "voiced",
334
+ articulation: "stop",
335
+ place: "labial"
336
+ },
337
+ {
338
+ char: "p",
339
+ id: "p",
340
+ charType: "consonant",
341
+ ipa: "p",
342
+ name: "P",
343
+ voicing: "voiceless",
344
+ articulation: "stop",
345
+ place: "labial"
346
+ },
347
+ {
348
+ char: "m",
349
+ id: "m",
350
+ charType: "consonant",
351
+ ipa: "m",
352
+ name: "M",
353
+ voicing: "nasal",
354
+ articulation: "nasal",
355
+ place: "labial"
356
+ },
357
+ {
358
+ char: "β",
359
+ id: "b_fricative",
360
+ charType: "consonant",
361
+ ipa: "β",
362
+ name: "B (fricative)",
363
+ voicing: "voiced",
364
+ articulation: "fricative",
365
+ place: "labial"
366
+ },
367
+ {
368
+ char: "f",
369
+ id: "f",
370
+ charType: "consonant",
371
+ ipa: "f",
372
+ name: "F",
373
+ voicing: "voiceless",
374
+ articulation: "fricative",
375
+ place: "labial"
376
+ },
377
+ {
378
+ char: "v",
379
+ id: "v",
380
+ charType: "consonant",
381
+ ipa: "v",
382
+ name: "V",
383
+ voicing: "voiced",
384
+ articulation: "fricative",
385
+ place: "labial"
386
+ },
387
+ {
388
+ char: "t",
389
+ id: "t",
390
+ charType: "consonant",
391
+ ipa: "t",
392
+ name: "T",
393
+ voicing: "voiceless",
394
+ articulation: "stop",
395
+ place: "dental"
396
+ },
397
+ {
398
+ char: "d",
399
+ id: "d",
400
+ charType: "consonant",
401
+ ipa: "d",
402
+ name: "D",
403
+ voicing: "voiced",
404
+ articulation: "stop",
405
+ place: "dental"
406
+ },
407
+ {
408
+ char: "ð",
409
+ id: "d_fricative",
410
+ charType: "consonant",
411
+ ipa: "ð",
412
+ name: "D (fricative)",
413
+ voicing: "voiced",
414
+ articulation: "fricative",
415
+ place: "dental"
416
+ },
417
+ {
418
+ char: "s",
419
+ id: "s",
420
+ charType: "consonant",
421
+ ipa: "s",
422
+ name: "S",
423
+ voicing: "voiceless",
424
+ articulation: "fricative",
425
+ place: "alveolar"
426
+ },
427
+ {
428
+ char: "z",
429
+ id: "z",
430
+ charType: "consonant",
431
+ ipa: "z",
432
+ name: "Z",
433
+ voicing: "voiced",
434
+ articulation: "fricative",
435
+ place: "alveolar"
436
+ },
437
+ {
438
+ char: "n",
439
+ id: "n",
440
+ charType: "consonant",
441
+ ipa: "n",
442
+ name: "N",
443
+ voicing: "nasal",
444
+ articulation: "nasal",
445
+ place: "alveolar"
446
+ },
447
+ {
448
+ char: "l",
449
+ id: "l",
450
+ charType: "consonant",
451
+ ipa: "l",
452
+ name: "L",
453
+ voicing: "lateral",
454
+ articulation: "lateral",
455
+ place: "alveolar"
456
+ },
457
+ {
458
+ char: "r",
459
+ id: "r",
460
+ charType: "consonant",
461
+ ipa: "r",
462
+ name: "R",
463
+ voicing: "trill",
464
+ articulation: "trill",
465
+ place: "alveolar"
466
+ },
467
+ {
468
+ char: "ʃ",
469
+ id: "ch",
470
+ charType: "consonant",
471
+ ipa: "ʃ",
472
+ name: "CH",
473
+ voicing: "voiceless",
474
+ articulation: "fricative",
475
+ place: "palatal"
476
+ },
477
+ {
478
+ char: "ʒ",
479
+ id: "j",
480
+ charType: "consonant",
481
+ ipa: "ʒ",
482
+ name: "J",
483
+ voicing: "voiced",
484
+ articulation: "fricative",
485
+ place: "palatal"
486
+ },
487
+ {
488
+ char: "j",
489
+ id: "j_palatal",
490
+ charType: "consonant",
491
+ ipa: "j",
492
+ name: "J (palatal)",
493
+ voicing: "voiced",
494
+ articulation: "approximant",
495
+ place: "palatal"
496
+ },
497
+ {
498
+ char: "ʝ",
499
+ id: "j_fricative",
500
+ charType: "consonant",
501
+ ipa: "ʝ",
502
+ name: "J (fricative)",
503
+ voicing: "voiced",
504
+ articulation: "fricative",
505
+ place: "palatal"
506
+ },
507
+ {
508
+ char: "k",
509
+ id: "c",
510
+ charType: "consonant",
511
+ ipa: "k",
512
+ name: "C",
513
+ voicing: "voiceless",
514
+ articulation: "stop",
515
+ place: "velar"
516
+ },
517
+ {
518
+ char: "ɡ",
519
+ id: "g",
520
+ charType: "consonant",
521
+ ipa: "ɡ",
522
+ name: "G",
523
+ voicing: "voiced",
524
+ articulation: "stop",
525
+ place: "velar"
526
+ },
527
+ {
528
+ char: "x",
529
+ id: "g_before_e_i",
530
+ charType: "consonant",
531
+ ipa: "x",
532
+ name: "G (before e/i)",
533
+ voicing: "voiceless",
534
+ articulation: "fricative",
535
+ place: "velar"
536
+ },
537
+ {
538
+ char: "ŋ",
539
+ id: "n_before_k_g",
540
+ charType: "consonant",
541
+ ipa: "ŋ",
542
+ name: "N (before k/g)",
543
+ voicing: "nasal",
544
+ articulation: "nasal",
545
+ place: "velar"
546
+ },
547
+ {
548
+ char: "w",
549
+ id: "w_foreign",
550
+ charType: "consonant",
551
+ ipa: "w",
552
+ name: "W (foreign)",
553
+ voicing: "voiced",
554
+ articulation: "approximant",
555
+ place: "labial"
556
+ },
557
+ {
558
+ char: "y",
559
+ id: "y_foreign",
560
+ charType: "consonant",
561
+ ipa: "j",
562
+ name: "Y (foreign)",
563
+ voicing: "voiced",
564
+ articulation: "approximant",
565
+ place: "palatal"
566
+ },
567
+ {
568
+ char: "q",
569
+ id: "q_foreign",
570
+ charType: "consonant",
571
+ ipa: "k",
572
+ name: "Q (foreign)",
573
+ voicing: "voiceless",
574
+ articulation: "stop",
575
+ place: "velar"
576
+ },
577
+ {
578
+ char: "x",
579
+ id: "x_foreign",
580
+ charType: "consonant",
581
+ ipa: "ʃ",
582
+ name: "X (foreign)",
583
+ voicing: "voiceless",
584
+ articulation: "fricative",
585
+ place: "palatal"
586
+ },
587
+ {
588
+ char: "z",
589
+ id: "z_palatal",
590
+ charType: "consonant",
591
+ ipa: "ʒ",
592
+ name: "Z (palatal)",
593
+ voicing: "voiced",
594
+ articulation: "fricative",
595
+ place: "palatal"
596
+ },
597
+ {
598
+ char: "d",
599
+ id: "d_palatal",
600
+ charType: "consonant",
601
+ ipa: "dʒ",
602
+ name: "D (palatal)",
603
+ voicing: "voiced",
604
+ articulation: "affricate",
605
+ place: "palatal"
606
+ },
607
+ {
608
+ char: "t",
609
+ id: "t_palatal",
610
+ charType: "consonant",
611
+ ipa: "tʃ",
612
+ name: "T (palatal)",
613
+ voicing: "voiceless",
614
+ articulation: "affricate",
615
+ place: "palatal"
616
+ },
617
+ {
618
+ char: "l",
619
+ id: "l_velarized",
620
+ charType: "consonant",
621
+ ipa: "ɫ",
622
+ name: "L (velarized)",
623
+ voicing: "lateral",
624
+ articulation: "lateral",
625
+ place: "alveolar"
626
+ },
627
+ {
628
+ char: "r",
629
+ id: "r_fricative",
630
+ charType: "consonant",
631
+ ipa: "ʁ",
632
+ name: "R (fricative)",
633
+ voicing: "voiced",
634
+ articulation: "fricative",
635
+ place: "uvular"
636
+ }
637
+ ];
638
+ [...c, ...l];
639
+ //#endregion
640
+ //#region src/index.ts
641
+ var u = a({
642
+ identity: {
643
+ locale: "pt-BR",
644
+ languageCode: "pt-br",
645
+ displayName: "Portuguese (Brazil)",
646
+ script: "Latn",
647
+ aliases: ["pt-br"]
648
+ },
649
+ characters: {
650
+ vowels: {
651
+ kind: "vowel",
652
+ characters: c
653
+ },
654
+ consonants: {
655
+ kind: "consonant",
656
+ characters: l
657
+ }
658
+ },
659
+ getMinimalPairs: o(() => import("./dist-Cy1Lk8MS.js")),
660
+ getSounds: s("brazilianPortugueseSoundsConfig", () => import("./sounds-BnFk8wK3.js"))
661
+ });
662
+ //#endregion
663
+ export { u as brazilianPortugueseBundle, u as default, l as portugueseBrConsonants, c as portugueseBrVowels };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}