@polyglot-bundles/gu-lang 0.3.0 → 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/gu-lang
2
+
3
+ ## Installation
4
+
5
+ ```sh
6
+ npm install @polyglot-bundles/gu-lang
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import * as characters from "@polyglot-bundles/gu-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
+ ~39 consonants, 14 vowels
25
+
26
+ ## License
27
+
28
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polyglot-bundles/gu-lang",
3
- "version": "0.3.0",
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": [
@@ -18,8 +22,9 @@
18
22
  },
19
23
  "devDependencies": {
20
24
  "vite-plugin-dts": "^4.5.4",
21
- "@polyglot-bundles/lang-tooling": "0.0.0",
22
- "@polyglot-bundles/content-shared": "0.5.4"
25
+ "vitest": "^4.1.4",
26
+ "@polyglot-bundles/content-shared": "0.5.6",
27
+ "@polyglot-bundles/lang-tooling": "0.0.0"
23
28
  },
24
29
  "repository": {
25
30
  "type": "git",
@@ -27,6 +32,8 @@
27
32
  "directory": "packages/gu/lang"
28
33
  },
29
34
  "scripts": {
30
- "build": "vite build"
35
+ "build": "vite build",
36
+ "test": "vitest run",
37
+ "typecheck": "tsc --noEmit"
31
38
  }
32
39
  }
@@ -1,45 +0,0 @@
1
- /**
2
- * Gujarati Character Types
3
- *
4
- * Type definitions for Gujarati characters (Gujarati script).
5
- * Gujarati has 47 characters: 11 vowels, 36 consonants.
6
- * Gujarati is an abugida - each consonant has an inherent vowel 'a'.
7
- */
8
- /**
9
- * Base character info
10
- */
11
- type GujaratiCharacterBaseInfo = {
12
- char: string;
13
- id: string;
14
- display?: string;
15
- audio?: string;
16
- notes?: string;
17
- };
18
- /**
19
- * Gujarati Vowels (Svara)
20
- */
21
- export type GujaratiVowelsInfo = {
22
- charType: "vowel";
23
- ipa: string;
24
- name: string;
25
- length?: "short" | "long";
26
- } & GujaratiCharacterBaseInfo;
27
- /**
28
- * Gujarati Consonants (Vyanjana)
29
- */
30
- export type GujaratiConsonantsInfo = {
31
- charType: "consonant";
32
- ipa: string;
33
- name: string;
34
- articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill";
35
- voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "fricative";
36
- place: "velar" | "palatal" | "retroflex" | "dental" | "labial" | "glottal";
37
- } & GujaratiCharacterBaseInfo;
38
- export type GujaratiCharacter = GujaratiVowelsInfo | GujaratiConsonantsInfo;
39
- export declare function isVowel(character: GujaratiCharacter): character is GujaratiVowelsInfo;
40
- export declare function isConsonant(character: GujaratiCharacter): character is GujaratiConsonantsInfo;
41
- export declare const gujaratiVowels: GujaratiVowelsInfo[];
42
- export declare const gujaratiConsonants: GujaratiConsonantsInfo[];
43
- export declare const gujaratiAllCharacters: (GujaratiVowelsInfo | GujaratiConsonantsInfo)[];
44
- export {};
45
- //# sourceMappingURL=characters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../src/characters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,MAAM,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(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: "ə",
14
- name: "અ",
15
- length: "short"
16
- },
17
- {
18
- char: "ઋ",
19
- id: "r",
20
- charType: "vowel",
21
- ipa: "rɪ",
22
- name: "ઋ",
23
- length: "short"
24
- },
25
- {
26
- char: "અ",
27
- id: "a_short",
28
- charType: "vowel",
29
- ipa: "a",
30
- name: "અ (short)",
31
- length: "short"
32
- },
33
- {
34
- char: "ઇ",
35
- id: "i",
36
- charType: "vowel",
37
- ipa: "ɪ",
38
- name: "ઇ",
39
- length: "short"
40
- },
41
- {
42
- char: "ઉ",
43
- id: "u",
44
- charType: "vowel",
45
- ipa: "ʊ",
46
- name: "ઉ",
47
- length: "short"
48
- },
49
- {
50
- char: "આ",
51
- id: "aa",
52
- charType: "vowel",
53
- ipa: "aː",
54
- name: "આ",
55
- length: "long"
56
- },
57
- {
58
- char: "ઈ",
59
- id: "ii",
60
- charType: "vowel",
61
- ipa: "iː",
62
- name: "ઈ",
63
- length: "long"
64
- },
65
- {
66
- char: "ઊ",
67
- id: "uu",
68
- charType: "vowel",
69
- ipa: "uː",
70
- name: "ઊ",
71
- length: "long"
72
- },
73
- {
74
- char: "એ",
75
- id: "e",
76
- charType: "vowel",
77
- ipa: "ɛː",
78
- name: "એ",
79
- length: "long"
80
- },
81
- {
82
- char: "ઓ",
83
- id: "o",
84
- charType: "vowel",
85
- ipa: "ɔː",
86
- name: "ઓ",
87
- length: "long"
88
- },
89
- {
90
- char: "ઔ",
91
- id: "au",
92
- charType: "vowel",
93
- ipa: "ɔʊ",
94
- name: "ઔ",
95
- length: "short"
96
- },
97
- {
98
- char: "ઐ",
99
- id: "ai",
100
- charType: "vowel",
101
- ipa: "ɛɪ",
102
- name: "ઐ",
103
- length: "short"
104
- },
105
- {
106
- char: "અા",
107
- id: "a_long_mark",
108
- charType: "vowel",
109
- ipa: "aː",
110
- name: "અા (length mark)",
111
- length: "long"
112
- }
113
- ], r = [
114
- {
115
- char: "ક",
116
- id: "ka",
117
- charType: "consonant",
118
- ipa: "k",
119
- name: "ક",
120
- voicing: "voiceless",
121
- articulation: "stop",
122
- place: "velar"
123
- },
124
- {
125
- char: "ખ",
126
- id: "kha",
127
- charType: "consonant",
128
- ipa: "kʰ",
129
- name: "ખ",
130
- voicing: "voiceless",
131
- articulation: "stop",
132
- place: "velar"
133
- },
134
- {
135
- char: "ગ",
136
- id: "ga",
137
- charType: "consonant",
138
- ipa: "ɡ",
139
- name: "ગ",
140
- voicing: "voiced",
141
- articulation: "stop",
142
- place: "velar"
143
- },
144
- {
145
- char: "ઘ",
146
- id: "gha",
147
- charType: "consonant",
148
- ipa: "ɡʰ",
149
- name: "ઘ",
150
- voicing: "voiced",
151
- articulation: "stop",
152
- place: "velar"
153
- },
154
- {
155
- char: "ઙ",
156
- id: "nga",
157
- charType: "consonant",
158
- ipa: "ŋ",
159
- name: "ઙ",
160
- voicing: "nasal",
161
- articulation: "nasal",
162
- place: "velar"
163
- },
164
- {
165
- char: "ચ",
166
- id: "cha",
167
- charType: "consonant",
168
- ipa: "tʃ",
169
- name: "ચ",
170
- voicing: "voiceless",
171
- articulation: "stop",
172
- place: "palatal"
173
- },
174
- {
175
- char: "છ",
176
- id: "chha",
177
- charType: "consonant",
178
- ipa: "tʃʰ",
179
- name: "છ",
180
- voicing: "voiceless",
181
- articulation: "stop",
182
- place: "palatal"
183
- },
184
- {
185
- char: "જ",
186
- id: "ja",
187
- charType: "consonant",
188
- ipa: "dʒ",
189
- name: "જ",
190
- voicing: "voiced",
191
- articulation: "stop",
192
- place: "palatal"
193
- },
194
- {
195
- char: "ઝ",
196
- id: "jha",
197
- charType: "consonant",
198
- ipa: "dʒʰ",
199
- name: "ઝ",
200
- voicing: "voiced",
201
- articulation: "stop",
202
- place: "palatal"
203
- },
204
- {
205
- char: "ઙ",
206
- id: "nya",
207
- charType: "consonant",
208
- ipa: "ɲ",
209
- name: "ઙ",
210
- voicing: "nasal",
211
- articulation: "nasal",
212
- place: "palatal"
213
- },
214
- {
215
- char: "ટ",
216
- id: "tta",
217
- charType: "consonant",
218
- ipa: "ʈ",
219
- name: "ટ",
220
- voicing: "voiceless",
221
- articulation: "stop",
222
- place: "retroflex"
223
- },
224
- {
225
- char: "ઠ",
226
- id: "ttha",
227
- charType: "consonant",
228
- ipa: "ʈʰ",
229
- name: "ઠ",
230
- voicing: "voiceless",
231
- articulation: "stop",
232
- place: "retroflex"
233
- },
234
- {
235
- char: "ડ",
236
- id: "dda",
237
- charType: "consonant",
238
- ipa: "ɖ",
239
- name: "ડ",
240
- voicing: "voiced",
241
- articulation: "stop",
242
- place: "retroflex"
243
- },
244
- {
245
- char: "ઢ",
246
- id: "ddha",
247
- charType: "consonant",
248
- ipa: "ɖʰ",
249
- name: "ઢ",
250
- voicing: "voiced",
251
- articulation: "stop",
252
- place: "retroflex"
253
- },
254
- {
255
- char: "ણ",
256
- id: "nna",
257
- charType: "consonant",
258
- ipa: "ɳ",
259
- name: "ણ",
260
- voicing: "nasal",
261
- articulation: "nasal",
262
- place: "retroflex"
263
- },
264
- {
265
- char: "ત",
266
- id: "ta",
267
- charType: "consonant",
268
- ipa: "t",
269
- name: "ત",
270
- voicing: "voiceless",
271
- articulation: "stop",
272
- place: "dental"
273
- },
274
- {
275
- char: "થ",
276
- id: "tha",
277
- charType: "consonant",
278
- ipa: "tʰ",
279
- name: "થ",
280
- voicing: "voiceless",
281
- articulation: "stop",
282
- place: "dental"
283
- },
284
- {
285
- char: "દ",
286
- id: "da",
287
- charType: "consonant",
288
- ipa: "d",
289
- name: "દ",
290
- voicing: "voiced",
291
- articulation: "stop",
292
- place: "dental"
293
- },
294
- {
295
- char: "ધ",
296
- id: "dha",
297
- charType: "consonant",
298
- ipa: "dʰ",
299
- name: "ધ",
300
- voicing: "voiced",
301
- articulation: "stop",
302
- place: "dental"
303
- },
304
- {
305
- char: "ન",
306
- id: "na",
307
- charType: "consonant",
308
- ipa: "n",
309
- name: "ન",
310
- voicing: "nasal",
311
- articulation: "nasal",
312
- place: "dental"
313
- },
314
- {
315
- char: "પ",
316
- id: "pa",
317
- charType: "consonant",
318
- ipa: "p",
319
- name: "પ",
320
- voicing: "voiceless",
321
- articulation: "stop",
322
- place: "labial"
323
- },
324
- {
325
- char: "ફ",
326
- id: "pha",
327
- charType: "consonant",
328
- ipa: "pʰ",
329
- name: "ફ",
330
- voicing: "voiceless",
331
- articulation: "stop",
332
- place: "labial"
333
- },
334
- {
335
- char: "બ",
336
- id: "ba",
337
- charType: "consonant",
338
- ipa: "b",
339
- name: "બ",
340
- voicing: "voiced",
341
- articulation: "stop",
342
- place: "labial"
343
- },
344
- {
345
- char: "ભ",
346
- id: "bha",
347
- charType: "consonant",
348
- ipa: "bʰ",
349
- name: "ભ",
350
- voicing: "voiced",
351
- articulation: "stop",
352
- place: "labial"
353
- },
354
- {
355
- char: "મ",
356
- id: "ma",
357
- charType: "consonant",
358
- ipa: "m",
359
- name: "મ",
360
- voicing: "nasal",
361
- articulation: "nasal",
362
- place: "labial"
363
- },
364
- {
365
- char: "ય",
366
- id: "ya",
367
- charType: "consonant",
368
- ipa: "j",
369
- name: "ય",
370
- voicing: "approximant",
371
- articulation: "approximant",
372
- place: "palatal"
373
- },
374
- {
375
- char: "ર",
376
- id: "ra",
377
- charType: "consonant",
378
- ipa: "r",
379
- name: "ર",
380
- voicing: "trill",
381
- articulation: "trill",
382
- place: "retroflex"
383
- },
384
- {
385
- char: "લ",
386
- id: "la",
387
- charType: "consonant",
388
- ipa: "l",
389
- name: "લ",
390
- voicing: "lateral",
391
- articulation: "lateral",
392
- place: "dental"
393
- },
394
- {
395
- char: "વ",
396
- id: "va",
397
- charType: "consonant",
398
- ipa: "ʋ",
399
- name: "વ",
400
- voicing: "approximant",
401
- articulation: "approximant",
402
- place: "labial"
403
- },
404
- {
405
- char: "શ",
406
- id: "sha",
407
- charType: "consonant",
408
- ipa: "ʃ",
409
- name: "શ",
410
- voicing: "voiceless",
411
- articulation: "fricative",
412
- place: "palatal"
413
- },
414
- {
415
- char: "ષ",
416
- id: "ssa",
417
- charType: "consonant",
418
- ipa: "ʂ",
419
- name: "ષ",
420
- voicing: "voiceless",
421
- articulation: "fricative",
422
- place: "retroflex"
423
- },
424
- {
425
- char: "સ",
426
- id: "sa",
427
- charType: "consonant",
428
- ipa: "s",
429
- name: "સ",
430
- voicing: "voiceless",
431
- articulation: "fricative",
432
- place: "dental"
433
- },
434
- {
435
- char: "હ",
436
- id: "ha",
437
- charType: "consonant",
438
- ipa: "h",
439
- name: "હ",
440
- voicing: "voiceless",
441
- articulation: "fricative",
442
- place: "glottal"
443
- },
444
- {
445
- char: "ળ",
446
- id: "lla",
447
- charType: "consonant",
448
- ipa: "ɭ",
449
- name: "ળ",
450
- voicing: "lateral",
451
- articulation: "lateral",
452
- place: "retroflex"
453
- },
454
- {
455
- char: "ક્ષ",
456
- id: "ksha",
457
- charType: "consonant",
458
- ipa: "kʃ",
459
- name: "ક્ષ",
460
- voicing: "voiceless",
461
- articulation: "stop",
462
- place: "velar"
463
- },
464
- {
465
- char: "જ્ઞ",
466
- id: "gya",
467
- charType: "consonant",
468
- ipa: "dʒɲ",
469
- name: "જ્ઞ",
470
- voicing: "voiced",
471
- articulation: "stop",
472
- place: "palatal"
473
- },
474
- {
475
- char: "ફ",
476
- id: "fa_foreign",
477
- charType: "consonant",
478
- ipa: "f",
479
- name: "ફ (foreign)",
480
- voicing: "voiceless",
481
- articulation: "fricative",
482
- place: "labial"
483
- },
484
- {
485
- char: "ઝ",
486
- id: "zha_foreign",
487
- charType: "consonant",
488
- ipa: "z",
489
- name: "ઝ (foreign)",
490
- voicing: "voiced",
491
- articulation: "fricative",
492
- place: "palatal"
493
- }
494
- ], i = [...n, ...r];
495
- //#endregion
496
- export { i as gujaratiAllCharacters, r as gujaratiConsonants, n as gujaratiVowels, t as isConsonant, e as isVowel };
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { gujaratiVowels, gujaratiConsonants, gujaratiAllCharacters, type GujaratiVowelsInfo, type GujaratiConsonantsInfo, type GujaratiCharacter, 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,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 DELETED
@@ -1,2 +0,0 @@
1
- import { gujaratiAllCharacters as e, gujaratiConsonants as t, gujaratiVowels as n, isConsonant as r, isVowel as i } from "./characters.js";
2
- export { e as gujaratiAllCharacters, t as gujaratiConsonants, n as gujaratiVowels, r as isConsonant, i as isVowel };