@polyglot-bundles/gu-lang 1.1.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/characters.d.ts +44 -0
- package/dist/characters.js +79 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/package.json +36 -0
|
@@ -0,0 +1,44 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
function c(a) {
|
|
2
|
+
return a.charType === "vowel";
|
|
3
|
+
}
|
|
4
|
+
function e(a) {
|
|
5
|
+
return a.charType === "consonant";
|
|
6
|
+
}
|
|
7
|
+
const i = [
|
|
8
|
+
// Short vowels
|
|
9
|
+
{ char: "અ", id: "a", charType: "vowel", ipa: "ə", name: "અ", length: "short" },
|
|
10
|
+
{ char: "ઋ", id: "r", charType: "vowel", ipa: "rɪ", name: "ઋ", length: "short" },
|
|
11
|
+
{ char: "અ", id: "a_short", charType: "vowel", ipa: "a", name: "અ (short)", length: "short" },
|
|
12
|
+
{ char: "ઇ", id: "i", charType: "vowel", ipa: "ɪ", name: "ઇ", length: "short" },
|
|
13
|
+
{ char: "ઉ", id: "u", charType: "vowel", ipa: "ʊ", name: "ઉ", length: "short" },
|
|
14
|
+
// Long vowels
|
|
15
|
+
{ char: "આ", id: "aa", charType: "vowel", ipa: "aː", name: "આ", length: "long" },
|
|
16
|
+
{ char: "ઈ", id: "ii", charType: "vowel", ipa: "iː", name: "ઈ", length: "long" },
|
|
17
|
+
{ char: "ઊ", id: "uu", charType: "vowel", ipa: "uː", name: "ઊ", length: "long" },
|
|
18
|
+
{ char: "એ", id: "e", charType: "vowel", ipa: "ɛː", name: "એ", length: "long" },
|
|
19
|
+
{ char: "ઓ", id: "o", charType: "vowel", ipa: "ɔː", name: "ઓ", length: "long" },
|
|
20
|
+
{ char: "ઔ", id: "au", charType: "vowel", ipa: "ɔʊ", name: "ઔ", length: "short" },
|
|
21
|
+
// Diphthongs
|
|
22
|
+
{ char: "ઐ", id: "ai", charType: "vowel", ipa: "ɛɪ", name: "ઐ", length: "short" },
|
|
23
|
+
{ char: "અા", id: "a_long_mark", charType: "vowel", ipa: "aː", name: "અા (length mark)", length: "long" }
|
|
24
|
+
], n = [
|
|
25
|
+
// Velar consonants (કણ)
|
|
26
|
+
{ char: "ક", id: "ka", charType: "consonant", ipa: "k", name: "ક", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
27
|
+
{ char: "ખ", id: "kha", charType: "consonant", ipa: "kʰ", name: "ખ", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
28
|
+
{ char: "ગ", id: "ga", charType: "consonant", ipa: "ɡ", name: "ગ", voicing: "voiced", articulation: "stop", place: "velar" },
|
|
29
|
+
{ char: "ઘ", id: "gha", charType: "consonant", ipa: "ɡʰ", name: "ઘ", voicing: "voiced", articulation: "stop", place: "velar" },
|
|
30
|
+
{ char: "ઙ", id: "nga", charType: "consonant", ipa: "ŋ", name: "ઙ", voicing: "nasal", articulation: "nasal", place: "velar" },
|
|
31
|
+
// Palatal consonants (ચણ)
|
|
32
|
+
{ char: "ચ", id: "cha", charType: "consonant", ipa: "tʃ", name: "ચ", voicing: "voiceless", articulation: "stop", place: "palatal" },
|
|
33
|
+
{ char: "છ", id: "chha", charType: "consonant", ipa: "tʃʰ", name: "છ", voicing: "voiceless", articulation: "stop", place: "palatal" },
|
|
34
|
+
{ char: "જ", id: "ja", charType: "consonant", ipa: "dʒ", name: "જ", voicing: "voiced", articulation: "stop", place: "palatal" },
|
|
35
|
+
{ char: "ઝ", id: "jha", charType: "consonant", ipa: "dʒʰ", name: "ઝ", voicing: "voiced", articulation: "stop", place: "palatal" },
|
|
36
|
+
{ char: "ઙ", id: "nya", charType: "consonant", ipa: "ɲ", name: "ઙ", voicing: "nasal", articulation: "nasal", place: "palatal" },
|
|
37
|
+
// Retroflex consonants (ટણ)
|
|
38
|
+
{ char: "ટ", id: "tta", charType: "consonant", ipa: "ʈ", name: "ટ", voicing: "voiceless", articulation: "stop", place: "retroflex" },
|
|
39
|
+
{ char: "ઠ", id: "ttha", charType: "consonant", ipa: "ʈʰ", name: "ઠ", voicing: "voiceless", articulation: "stop", place: "retroflex" },
|
|
40
|
+
{ char: "ડ", id: "dda", charType: "consonant", ipa: "ɖ", name: "ડ", voicing: "voiced", articulation: "stop", place: "retroflex" },
|
|
41
|
+
{ char: "ઢ", id: "ddha", charType: "consonant", ipa: "ɖʰ", name: "ઢ", voicing: "voiced", articulation: "stop", place: "retroflex" },
|
|
42
|
+
{ char: "ણ", id: "nna", charType: "consonant", ipa: "ɳ", name: "ણ", voicing: "nasal", articulation: "nasal", place: "retroflex" },
|
|
43
|
+
// Dental consonants (તણ)
|
|
44
|
+
{ char: "ત", id: "ta", charType: "consonant", ipa: "t", name: "ત", voicing: "voiceless", articulation: "stop", place: "dental" },
|
|
45
|
+
{ char: "થ", id: "tha", charType: "consonant", ipa: "tʰ", name: "થ", voicing: "voiceless", articulation: "stop", place: "dental" },
|
|
46
|
+
{ char: "દ", id: "da", charType: "consonant", ipa: "d", name: "દ", voicing: "voiced", articulation: "stop", place: "dental" },
|
|
47
|
+
{ char: "ધ", id: "dha", charType: "consonant", ipa: "dʰ", name: "ધ", voicing: "voiced", articulation: "stop", place: "dental" },
|
|
48
|
+
{ char: "ન", id: "na", charType: "consonant", ipa: "n", name: "ન", voicing: "nasal", articulation: "nasal", place: "dental" },
|
|
49
|
+
// Labial consonants (પણ)
|
|
50
|
+
{ char: "પ", id: "pa", charType: "consonant", ipa: "p", name: "પ", voicing: "voiceless", articulation: "stop", place: "labial" },
|
|
51
|
+
{ char: "ફ", id: "pha", charType: "consonant", ipa: "pʰ", name: "ફ", voicing: "voiceless", articulation: "stop", place: "labial" },
|
|
52
|
+
{ char: "બ", id: "ba", charType: "consonant", ipa: "b", name: "બ", voicing: "voiced", articulation: "stop", place: "labial" },
|
|
53
|
+
{ char: "ભ", id: "bha", charType: "consonant", ipa: "bʰ", name: "ભ", voicing: "voiced", articulation: "stop", place: "labial" },
|
|
54
|
+
{ char: "મ", id: "ma", charType: "consonant", ipa: "m", name: "મ", voicing: "nasal", articulation: "nasal", place: "labial" },
|
|
55
|
+
// Other consonants
|
|
56
|
+
{ char: "ય", id: "ya", charType: "consonant", ipa: "j", name: "ય", voicing: "approximant", articulation: "approximant", place: "palatal" },
|
|
57
|
+
{ char: "ર", id: "ra", charType: "consonant", ipa: "r", name: "ર", voicing: "trill", articulation: "trill", place: "retroflex" },
|
|
58
|
+
{ char: "લ", id: "la", charType: "consonant", ipa: "l", name: "લ", voicing: "lateral", articulation: "lateral", place: "dental" },
|
|
59
|
+
{ char: "વ", id: "va", charType: "consonant", ipa: "ʋ", name: "વ", voicing: "approximant", articulation: "approximant", place: "labial" },
|
|
60
|
+
{ char: "શ", id: "sha", charType: "consonant", ipa: "ʃ", name: "શ", voicing: "voiceless", articulation: "fricative", place: "palatal" },
|
|
61
|
+
{ char: "ષ", id: "ssa", charType: "consonant", ipa: "ʂ", name: "ષ", voicing: "voiceless", articulation: "fricative", place: "retroflex" },
|
|
62
|
+
{ char: "સ", id: "sa", charType: "consonant", ipa: "s", name: "સ", voicing: "voiceless", articulation: "fricative", place: "dental" },
|
|
63
|
+
{ char: "હ", id: "ha", charType: "consonant", ipa: "h", name: "હ", voicing: "voiceless", articulation: "fricative", place: "glottal" },
|
|
64
|
+
{ char: "ળ", id: "lla", charType: "consonant", ipa: "ɭ", name: "ળ", voicing: "lateral", articulation: "lateral", place: "retroflex" },
|
|
65
|
+
{ char: "ક્ષ", id: "ksha", charType: "consonant", ipa: "kʃ", name: "ક્ષ", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
66
|
+
{ char: "જ્ઞ", id: "gya", charType: "consonant", ipa: "dʒɲ", name: "જ્ઞ", voicing: "voiced", articulation: "stop", place: "palatal" },
|
|
67
|
+
{ char: "ફ", id: "fa_foreign", charType: "consonant", ipa: "f", name: "ફ (foreign)", voicing: "voiceless", articulation: "fricative", place: "labial" },
|
|
68
|
+
{ char: "ઝ", id: "zha_foreign", charType: "consonant", ipa: "z", name: "ઝ (foreign)", voicing: "voiced", articulation: "fricative", place: "palatal" }
|
|
69
|
+
], o = [
|
|
70
|
+
...i,
|
|
71
|
+
...n
|
|
72
|
+
];
|
|
73
|
+
export {
|
|
74
|
+
o as gujaratiAllCharacters,
|
|
75
|
+
n as gujaratiConsonants,
|
|
76
|
+
i as gujaratiVowels,
|
|
77
|
+
e as isConsonant,
|
|
78
|
+
c as isVowel
|
|
79
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { gujaratiVowels, gujaratiConsonants, gujaratiAllCharacters, type GujaratiVowelsInfo, type GujaratiConsonantsInfo, type GujaratiCharacter, isVowel, isConsonant, } from './characters.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { gujaratiAllCharacters as r, gujaratiConsonants as s, gujaratiVowels as t, isConsonant as n, isVowel as i } from "./characters.js";
|
|
2
|
+
export {
|
|
3
|
+
r as gujaratiAllCharacters,
|
|
4
|
+
s as gujaratiConsonants,
|
|
5
|
+
t as gujaratiVowels,
|
|
6
|
+
n as isConsonant,
|
|
7
|
+
i as isVowel
|
|
8
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@polyglot-bundles/gu-lang",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"clean": "rm -rf dist"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@polyglot-bundles/content-shared": "workspace:*"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@polyglot-bundles/lang-tooling": "workspace:*",
|
|
28
|
+
"vite": "catalog:",
|
|
29
|
+
"vite-plugin-dts": "catalog:"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/fustilio/polyglot-bundles.git",
|
|
34
|
+
"directory": "packages/gu/lang"
|
|
35
|
+
}
|
|
36
|
+
}
|