@polyglot-bundles/ka-lang 0.2.3 → 0.3.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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -10
- package/dist/sounds.d.ts +9 -0
- package/dist/sounds.d.ts.map +1 -0
- package/dist/sounds.js +105 -0
- package/package.json +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export { GEORGIAN_VOWEL_IDS, GEORGIAN_CONSONANT_IDS, GEORGIAN_CHAR_IDS, } from '
|
|
|
18
18
|
export type { GeorgianConsonantsInfo, GeorgianVowelsInfo, GeorgianCharacter, } from './types';
|
|
19
19
|
export { isVowel, isConsonant, getDisplayCharacter, } from './types';
|
|
20
20
|
export type { GeorgianVowelId, GeorgianConsonantId, GeorgianCharacterId, } from './ids';
|
|
21
|
+
export { georgianSoundsConfig, vowels, stops, fricatives, affricates, sonorants, } from './sounds';
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,cAAc,GACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,OAAO,CAAC;AAGf,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,OAAO,EACP,WAAW,EACX,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,cAAc,GACf,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,OAAO,CAAC;AAGf,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,OAAO,EACP,WAAW,EACX,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,oBAAoB,EACpB,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import { georgianConsonants as
|
|
2
|
-
import { GEORGIAN_CHAR_IDS as
|
|
3
|
-
import { getDisplayCharacter as
|
|
1
|
+
import { georgianConsonants as s, georgianVowels as e } from "./characters.js";
|
|
2
|
+
import { GEORGIAN_CHAR_IDS as a, GEORGIAN_CONSONANT_IDS as t, GEORGIAN_VOWEL_IDS as i } from "./ids.js";
|
|
3
|
+
import { getDisplayCharacter as g, isConsonant as p, isVowel as C } from "./types.js";
|
|
4
|
+
import { affricates as I, fricatives as N, georgianSoundsConfig as O, sonorants as _, stops as A, vowels as S } from "./sounds.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
a as GEORGIAN_CHAR_IDS,
|
|
6
7
|
t as GEORGIAN_CONSONANT_IDS,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
O as
|
|
12
|
-
|
|
8
|
+
i as GEORGIAN_VOWEL_IDS,
|
|
9
|
+
I as affricates,
|
|
10
|
+
N as fricatives,
|
|
11
|
+
s as georgianConsonants,
|
|
12
|
+
O as georgianSoundsConfig,
|
|
13
|
+
e as georgianVowels,
|
|
14
|
+
g as getDisplayCharacter,
|
|
15
|
+
p as isConsonant,
|
|
16
|
+
C as isVowel,
|
|
17
|
+
_ as sonorants,
|
|
18
|
+
A as stops,
|
|
19
|
+
S as vowels
|
|
13
20
|
};
|
package/dist/sounds.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SoundCategory, LanguageSoundsConfig } from '@polyglot-bundles/content-shared';
|
|
2
|
+
declare const vowels: SoundCategory;
|
|
3
|
+
declare const stops: SoundCategory;
|
|
4
|
+
declare const fricatives: SoundCategory;
|
|
5
|
+
declare const affricates: SoundCategory;
|
|
6
|
+
declare const sonorants: SoundCategory;
|
|
7
|
+
export declare const georgianSoundsConfig: LanguageSoundsConfig;
|
|
8
|
+
export { vowels, stops, fricatives, affricates, sonorants };
|
|
9
|
+
//# sourceMappingURL=sounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sounds.d.ts","sourceRoot":"","sources":["../src/sounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,aAAa,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AA8B5G,QAAA,MAAM,MAAM,EAAE,aAYb,CAAC;AAGF,QAAA,MAAM,KAAK,EAAE,aAcZ,CAAC;AAGF,QAAA,MAAM,UAAU,EAAE,aAiBjB,CAAC;AAGF,QAAA,MAAM,UAAU,EAAE,aAcjB,CAAC;AAGF,QAAA,MAAM,SAAS,EAAE,aAWhB,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,oBAUlC,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/sounds.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { georgianVowels as a, georgianConsonants as n } from "./characters.js";
|
|
2
|
+
function o(i) {
|
|
3
|
+
return {
|
|
4
|
+
char: i.char,
|
|
5
|
+
id: i.id,
|
|
6
|
+
charType: "vowel",
|
|
7
|
+
ipa: i.ipa
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function d(i) {
|
|
11
|
+
return {
|
|
12
|
+
char: i.char,
|
|
13
|
+
id: i.id,
|
|
14
|
+
charType: "consonant",
|
|
15
|
+
ipa: i.ipa
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const s = {
|
|
19
|
+
id: "vowels",
|
|
20
|
+
label: "Vowels",
|
|
21
|
+
sounds: [
|
|
22
|
+
o(a.find((i) => i.id === "ani")),
|
|
23
|
+
o(a.find((i) => i.id === "eni")),
|
|
24
|
+
o(a.find((i) => i.id === "ini")),
|
|
25
|
+
o(a.find((i) => i.id === "oni")),
|
|
26
|
+
o(a.find((i) => i.id === "uni"))
|
|
27
|
+
],
|
|
28
|
+
charType: "vowel",
|
|
29
|
+
color: "green"
|
|
30
|
+
}, e = {
|
|
31
|
+
id: "stops",
|
|
32
|
+
label: "Stops",
|
|
33
|
+
sounds: [
|
|
34
|
+
d(n.find((i) => i.id === "bani")),
|
|
35
|
+
d(n.find((i) => i.id === "gani")),
|
|
36
|
+
d(n.find((i) => i.id === "doni")),
|
|
37
|
+
d(n.find((i) => i.id === "pari")),
|
|
38
|
+
d(n.find((i) => i.id === "tari")),
|
|
39
|
+
d(n.find((i) => i.id === "kani")),
|
|
40
|
+
d(n.find((i) => i.id === "qari"))
|
|
41
|
+
],
|
|
42
|
+
charType: "consonant",
|
|
43
|
+
color: "blue"
|
|
44
|
+
}, f = {
|
|
45
|
+
id: "fricatives",
|
|
46
|
+
label: "Fricatives",
|
|
47
|
+
sounds: [
|
|
48
|
+
d(n.find((i) => i.id === "phari")),
|
|
49
|
+
d(n.find((i) => i.id === "tani")),
|
|
50
|
+
d(n.find((i) => i.id === "khani")),
|
|
51
|
+
d(n.find((i) => i.id === "sani")),
|
|
52
|
+
d(n.find((i) => i.id === "shini")),
|
|
53
|
+
d(n.find((i) => i.id === "vini")),
|
|
54
|
+
d(n.find((i) => i.id === "zeni")),
|
|
55
|
+
d(n.find((i) => i.id === "zhani")),
|
|
56
|
+
d(n.find((i) => i.id === "ghani")),
|
|
57
|
+
d(n.find((i) => i.id === "hae"))
|
|
58
|
+
],
|
|
59
|
+
charType: "consonant",
|
|
60
|
+
color: "red"
|
|
61
|
+
}, r = {
|
|
62
|
+
id: "affricates",
|
|
63
|
+
label: "Affricates & Other",
|
|
64
|
+
sounds: [
|
|
65
|
+
d(n.find((i) => i.id === "chini")),
|
|
66
|
+
d(n.find((i) => i.id === "tsani")),
|
|
67
|
+
d(n.find((i) => i.id === "chari")),
|
|
68
|
+
d(n.find((i) => i.id === "tsili")),
|
|
69
|
+
d(n.find((i) => i.id === "dzili")),
|
|
70
|
+
d(n.find((i) => i.id === "jani")),
|
|
71
|
+
d(n.find((i) => i.id === "qani"))
|
|
72
|
+
// k-aspirated (voiceless)
|
|
73
|
+
],
|
|
74
|
+
charType: "consonant",
|
|
75
|
+
color: "default"
|
|
76
|
+
}, t = {
|
|
77
|
+
id: "sonorants",
|
|
78
|
+
label: "Sonorants",
|
|
79
|
+
sounds: [
|
|
80
|
+
d(n.find((i) => i.id === "mani")),
|
|
81
|
+
d(n.find((i) => i.id === "nari")),
|
|
82
|
+
d(n.find((i) => i.id === "lasi")),
|
|
83
|
+
d(n.find((i) => i.id === "rae"))
|
|
84
|
+
],
|
|
85
|
+
charType: "consonant",
|
|
86
|
+
color: "green"
|
|
87
|
+
}, l = {
|
|
88
|
+
categories: [
|
|
89
|
+
s,
|
|
90
|
+
e,
|
|
91
|
+
f,
|
|
92
|
+
r,
|
|
93
|
+
t
|
|
94
|
+
],
|
|
95
|
+
audioBasePath: "/assets/audio/ka-GE",
|
|
96
|
+
audioFilePattern: "{charType}/{id}_{variant}_{style}.wav"
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
r as affricates,
|
|
100
|
+
f as fricatives,
|
|
101
|
+
l as georgianSoundsConfig,
|
|
102
|
+
t as sonorants,
|
|
103
|
+
e as stops,
|
|
104
|
+
s as vowels
|
|
105
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyglot-bundles/ka-lang",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Georgian language foundation data - characters and transliterations (Mkhedruli script)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"./ids": {
|
|
22
22
|
"types": "./dist/ids.d.ts",
|
|
23
23
|
"import": "./dist/ids.js"
|
|
24
|
+
},
|
|
25
|
+
"./sounds": {
|
|
26
|
+
"types": "./dist/sounds.d.ts",
|
|
27
|
+
"import": "./dist/sounds.js"
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"files": [
|
|
@@ -42,7 +46,9 @@
|
|
|
42
46
|
"url": "https://github.com/fustilio/polyglot-bundles",
|
|
43
47
|
"directory": "packages/ka/lang"
|
|
44
48
|
},
|
|
45
|
-
"dependencies": {
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@polyglot-bundles/content-shared": "0.3.0"
|
|
51
|
+
},
|
|
46
52
|
"devDependencies": {
|
|
47
53
|
"vite": "^5.4.0",
|
|
48
54
|
"vite-plugin-dts": "^4.0.0"
|