@polyglot-bundles/pa-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.
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Punjabi Character Types
3
+ *
4
+ * Type definitions for Punjabi characters (Gurmukhi script).
5
+ * Punjabi has 35 letters: 10 vowels, 25 consonants.
6
+ */
7
+ /**
8
+ * Base character info
9
+ */
10
+ type PunjabiCharacterBaseInfo = {
11
+ char: string;
12
+ id: string;
13
+ display?: string;
14
+ audio?: string;
15
+ notes?: string;
16
+ };
17
+ /**
18
+ * Punjabi Vowels (Svara)
19
+ */
20
+ export type PunjabiVowelsInfo = {
21
+ charType: "vowel";
22
+ ipa: string;
23
+ name: string;
24
+ length?: "short" | "long";
25
+ } & PunjabiCharacterBaseInfo;
26
+ /**
27
+ * Punjabi Consonants (Vyanjana)
28
+ */
29
+ export type PunjabiConsonantsInfo = {
30
+ charType: "consonant";
31
+ ipa: string;
32
+ name: string;
33
+ articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill";
34
+ voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "fricative";
35
+ place: "velar" | "palatal" | "retroflex" | "dental" | "labial" | "glottal";
36
+ } & PunjabiCharacterBaseInfo;
37
+ export type PunjabiCharacter = PunjabiVowelsInfo | PunjabiConsonantsInfo;
38
+ export declare function isVowel(character: PunjabiCharacter): character is PunjabiVowelsInfo;
39
+ export declare function isConsonant(character: PunjabiCharacter): character is PunjabiConsonantsInfo;
40
+ export declare const punjabiVowels: PunjabiVowelsInfo[];
41
+ export declare const punjabiConsonants: PunjabiConsonantsInfo[];
42
+ export declare const punjabiAllCharacters: (PunjabiVowelsInfo | PunjabiConsonantsInfo)[];
43
+ export {};
@@ -0,0 +1,86 @@
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: "i", charType: "vowel", ipa: "ɪ", name: "ਇ", length: "short" },
11
+ { char: "ઉ", id: "u", charType: "vowel", ipa: "ʊ", name: "ઉ", length: "short" },
12
+ // Long vowels
13
+ { char: "ਆ", id: "aa", charType: "vowel", ipa: "aː", name: "ਆ", length: "long" },
14
+ { char: "ਈ", id: "ii", charType: "vowel", ipa: "iː", name: "ਈ", length: "long" },
15
+ { char: "ਊ", id: "uu", charType: "vowel", ipa: "uː", name: "ਊ", length: "long" },
16
+ { char: "ਏ", id: "e", charType: "vowel", ipa: "eː", name: "ਏ", length: "long" },
17
+ { char: "ਓ", id: "o", charType: "vowel", ipa: "oː", name: "ਓ", length: "long" },
18
+ { char: "ਔ", id: "au", charType: "vowel", ipa: "ɔʊ", name: "ਔ", length: "short" },
19
+ { char: "ਐ", id: "ai", charType: "vowel", ipa: "ɛɪ", name: "ਐ", length: "short" },
20
+ // Vowel signs (matras)
21
+ { char: "ਾ", id: "aa_matra", charType: "vowel", ipa: "aː", name: "ਾ (aa matra)", length: "long" },
22
+ { char: "ਿ", id: "i_matra", charType: "vowel", ipa: "i", name: "ਿ (i matra)", length: "short" },
23
+ { char: "ੀ", id: "ii_matra", charType: "vowel", ipa: "iː", name: "ੀ (ii matra)", length: "long" },
24
+ { char: "ੁ", id: "u_matra", charType: "vowel", ipa: "u", name: "ੁ (u matra)", length: "short" },
25
+ { char: "ੂ", id: "uu_matra", charType: "vowel", ipa: "uː", name: "ੂ (uu matra)", length: "long" },
26
+ { char: "ੇ", id: "e_matra", charType: "vowel", ipa: "eː", name: "ੇ (e matra)", length: "long" },
27
+ { char: "ੋ", id: "o_matra", charType: "vowel", ipa: "oː", name: "ੋ (o matra)", length: "long" },
28
+ { char: "ੌ", id: "au_matra", charType: "vowel", ipa: "ɔʊ", name: "ੌ (au matra)", length: "short" },
29
+ { char: "ੈ", id: "ai_matra", charType: "vowel", ipa: "ɛɪ", name: "ੈ (ai matra)", length: "short" }
30
+ ], n = [
31
+ // Velar consonants (ਕਣ)
32
+ { char: "ਕ", id: "ka", charType: "consonant", ipa: "k", name: "ਕ", voicing: "voiceless", articulation: "stop", place: "velar" },
33
+ { char: "ਖ", id: "kha", charType: "consonant", ipa: "kʰ", name: "ਖ", voicing: "voiceless", articulation: "stop", place: "velar" },
34
+ { char: "ਗ", id: "ga", charType: "consonant", ipa: "ɡ", name: "ਗ", voicing: "voiced", articulation: "stop", place: "velar" },
35
+ { char: "ਘ", id: "gha", charType: "consonant", ipa: "ɡʰ", name: "ਘ", voicing: "voiced", articulation: "stop", place: "velar" },
36
+ { char: "ਙ", id: "nga", charType: "consonant", ipa: "ŋ", name: "ਙ", voicing: "nasal", articulation: "nasal", place: "velar" },
37
+ // Palatal consonants (ਚਣ)
38
+ { char: "ਚ", id: "cha", charType: "consonant", ipa: "tʃ", name: "ਚ", voicing: "voiceless", articulation: "stop", place: "palatal" },
39
+ { char: "ਛ", id: "chha", charType: "consonant", ipa: "tʃʰ", name: "ਛ", voicing: "voiceless", articulation: "stop", place: "palatal" },
40
+ { char: "ਜ", id: "ja", charType: "consonant", ipa: "dʒ", name: "ਜ", voicing: "voiced", articulation: "stop", place: "palatal" },
41
+ { char: "ਝ", id: "jha", charType: "consonant", ipa: "dʒʰ", name: "ਝ", voicing: "voiced", articulation: "stop", place: "palatal" },
42
+ { char: "ਞ", id: "nya", charType: "consonant", ipa: "ɲ", name: "ਞ", voicing: "nasal", articulation: "nasal", place: "palatal" },
43
+ // Retroflex consonants (ਟਣ)
44
+ { char: "ਟ", id: "tta", charType: "consonant", ipa: "ʈ", name: "ਟ", voicing: "voiceless", articulation: "stop", place: "retroflex" },
45
+ { char: "ਠ", id: "ttha", charType: "consonant", ipa: "ʈʰ", name: "ਠ", voicing: "voiceless", articulation: "stop", place: "retroflex" },
46
+ { char: "ਡ", id: "dda", charType: "consonant", ipa: "ɖ", name: "ਡ", voicing: "voiced", articulation: "stop", place: "retroflex" },
47
+ { char: "ਢ", id: "ddha", charType: "consonant", ipa: "ɖʰ", name: "ਢ", voicing: "voiced", articulation: "stop", place: "retroflex" },
48
+ { char: "ਣ", id: "nna", charType: "consonant", ipa: "ɳ", name: "ਣ", voicing: "nasal", articulation: "nasal", place: "retroflex" },
49
+ // Dental consonants (ਤਣ)
50
+ { char: "ਤ", id: "ta", charType: "consonant", ipa: "t", name: "ਤ", voicing: "voiceless", articulation: "stop", place: "dental" },
51
+ { char: "ਥ", id: "tha", charType: "consonant", ipa: "tʰ", name: "ਥ", voicing: "voiceless", articulation: "stop", place: "dental" },
52
+ { char: "ਦ", id: "da", charType: "consonant", ipa: "d", name: "ਦ", voicing: "voiced", articulation: "stop", place: "dental" },
53
+ { char: "ਧ", id: "dha", charType: "consonant", ipa: "dʰ", name: "ਧ", voicing: "voiced", articulation: "stop", place: "dental" },
54
+ { char: "ਨ", id: "na", charType: "consonant", ipa: "n", name: "ਨ", voicing: "nasal", articulation: "nasal", place: "dental" },
55
+ // Labial consonants (ਪਣ)
56
+ { char: "ਪ", id: "pa", charType: "consonant", ipa: "p", name: "ਪ", voicing: "voiceless", articulation: "stop", place: "labial" },
57
+ { char: "ਫ", id: "pha", charType: "consonant", ipa: "pʰ", name: "ਫ", voicing: "voiceless", articulation: "stop", place: "labial" },
58
+ { char: "ਬ", id: "ba", charType: "consonant", ipa: "b", name: "ਬ", voicing: "voiced", articulation: "stop", place: "labial" },
59
+ { char: "ਭ", id: "bha", charType: "consonant", ipa: "bʰ", name: "ਭ", voicing: "voiced", articulation: "stop", place: "labial" },
60
+ { char: "ਮ", id: "ma", charType: "consonant", ipa: "m", name: "ਮ", voicing: "nasal", articulation: "nasal", place: "labial" },
61
+ // Other consonants
62
+ { char: "ਯ", id: "ya", charType: "consonant", ipa: "j", name: "ਯ", voicing: "approximant", articulation: "approximant", place: "palatal" },
63
+ { char: "ਰ", id: "ra", charType: "consonant", ipa: "r", name: "ਰ", voicing: "trill", articulation: "trill", place: "retroflex" },
64
+ { char: "ਲ", id: "la", charType: "consonant", ipa: "l", name: "ਲ", voicing: "lateral", articulation: "lateral", place: "dental" },
65
+ { char: "ਵ", id: "va", charType: "consonant", ipa: "ʋ", name: "ਵ", voicing: "approximant", articulation: "approximant", place: "labial" },
66
+ { char: "ਸ", id: "sa", charType: "consonant", ipa: "s", name: "ਸ", voicing: "voiceless", articulation: "fricative", place: "dental" },
67
+ { char: "ਹ", id: "ha", charType: "consonant", ipa: "h", name: "ਹ", voicing: "voiceless", articulation: "fricative", place: "glottal" },
68
+ // Special Punjabi consonants
69
+ { char: "ਖ਼", id: "kha_dot", charType: "consonant", ipa: "x", name: "ਖ਼", voicing: "voiceless", articulation: "fricative", place: "velar" },
70
+ { char: "ਗ਼", id: "gha_dot", charType: "consonant", ipa: "ɣ", name: "ਗ਼", voicing: "voiced", articulation: "fricative", place: "velar" },
71
+ { char: "ਜ਼", id: "ja_dot", charType: "consonant", ipa: "z", name: "ਜ਼", voicing: "voiced", articulation: "fricative", place: "palatal" },
72
+ { char: "ਫ਼", id: "pha_dot", charType: "consonant", ipa: "f", name: "ਫ਼", voicing: "voiceless", articulation: "fricative", place: "labial" },
73
+ { char: "ਲ਼", id: "la_dot", charType: "consonant", ipa: "l", name: "ਲ਼", voicing: "lateral", articulation: "lateral", place: "dental" },
74
+ { char: "ਅੰ", id: "anusvara", charType: "consonant", ipa: "ŋ", name: "ਅੰ (anusvara)", voicing: "nasal", articulation: "nasal", place: "velar" },
75
+ { char: "ਅਃ", id: "visarga", charType: "consonant", ipa: "h", name: "ਅਃ (visarga)", voicing: "voiceless", articulation: "fricative", place: "glottal" }
76
+ ], o = [
77
+ ...i,
78
+ ...n
79
+ ];
80
+ export {
81
+ e as isConsonant,
82
+ c as isVowel,
83
+ o as punjabiAllCharacters,
84
+ n as punjabiConsonants,
85
+ i as punjabiVowels
86
+ };
@@ -0,0 +1 @@
1
+ export { punjabiVowels, punjabiConsonants, punjabiAllCharacters, type PunjabiVowelsInfo, type PunjabiConsonantsInfo, type PunjabiCharacter, isVowel, isConsonant, } from './characters.js';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { isConsonant as a, isVowel as s, punjabiAllCharacters as i, punjabiConsonants as e, punjabiVowels as l } from "./characters.js";
2
+ export {
3
+ a as isConsonant,
4
+ s as isVowel,
5
+ i as punjabiAllCharacters,
6
+ e as punjabiConsonants,
7
+ l as punjabiVowels
8
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@polyglot-bundles/pa-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/pa/lang"
35
+ }
36
+ }