@polyglot-bundles/hu-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
+ * Hungarian Character Types
3
+ *
4
+ * Type definitions for Hungarian characters (Latin script with diacritics).
5
+ * Hungarian has 44 letters: 14 vowels (including 10 diphthongs), 30 consonants.
6
+ */
7
+ /**
8
+ * Base character info
9
+ */
10
+ type HungarianCharacterBaseInfo = {
11
+ char: string;
12
+ id: string;
13
+ display?: string;
14
+ audio?: string;
15
+ notes?: string;
16
+ };
17
+ /**
18
+ * Hungarian Vowels
19
+ */
20
+ export type HungarianVowelsInfo = {
21
+ charType: "vowel";
22
+ ipa: string;
23
+ name: string;
24
+ length?: "short" | "long";
25
+ } & HungarianCharacterBaseInfo;
26
+ /**
27
+ * Hungarian Consonants
28
+ */
29
+ export type HungarianConsonantsInfo = {
30
+ charType: "consonant";
31
+ ipa: string;
32
+ name: string;
33
+ articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill" | "affricate";
34
+ voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "fricative" | "affricate";
35
+ place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "alveolar" | "postalveolar";
36
+ } & HungarianCharacterBaseInfo;
37
+ export type HungarianCharacter = HungarianVowelsInfo | HungarianConsonantsInfo;
38
+ export declare function isVowel(character: HungarianCharacter): character is HungarianVowelsInfo;
39
+ export declare function isConsonant(character: HungarianCharacter): character is HungarianConsonantsInfo;
40
+ export declare const hungarianVowels: HungarianVowelsInfo[];
41
+ export declare const hungarianConsonants: HungarianConsonantsInfo[];
42
+ export declare const hungarianAllCharacters: (HungarianVowelsInfo | HungarianConsonantsInfo)[];
43
+ export {};
@@ -0,0 +1,88 @@
1
+ function n(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: "a", id: "a", charType: "vowel", ipa: "ɒ", name: "A", length: "short" },
10
+ { char: "e", id: "e", charType: "vowel", ipa: "ɛ", name: "E", length: "short" },
11
+ { char: "i", id: "i", charType: "vowel", ipa: "ɪ", name: "I", length: "short" },
12
+ { char: "o", id: "o", charType: "vowel", ipa: "ɔ", name: "O", length: "short" },
13
+ { char: "u", id: "u", charType: "vowel", ipa: "ʊ", name: "U", length: "short" },
14
+ // Long vowels
15
+ { char: "á", id: "a_acute", charType: "vowel", ipa: "aː", name: "Á", length: "long" },
16
+ { char: "é", id: "e_acute", charType: "vowel", ipa: "eː", name: "É", length: "long" },
17
+ { char: "í", id: "i_acute", charType: "vowel", ipa: "iː", name: "Í", length: "long" },
18
+ { char: "ó", id: "o_acute", charType: "vowel", ipa: "oː", name: "Ó", length: "long" },
19
+ { char: "ú", id: "u_acute", charType: "vowel", ipa: "uː", name: "Ú", length: "long" },
20
+ // Rounded front vowels
21
+ { char: "ö", id: "o_diaeresis", charType: "vowel", ipa: "øː", name: "Ö", length: "long" },
22
+ { char: "ő", id: "o_double_acute", charType: "vowel", ipa: "øːː", name: "Ő", length: "long" },
23
+ { char: "ü", id: "u_diaeresis", charType: "vowel", ipa: "yː", name: "Ü", length: "long" },
24
+ { char: "ű", id: "u_double_acute", charType: "vowel", ipa: "yːː", name: "Ű", length: "long" },
25
+ // Diphthongs
26
+ { char: "ai", id: "ai", charType: "vowel", ipa: "ɒi̯", name: "AI", length: "short" },
27
+ { char: "aj", id: "aj", charType: "vowel", ipa: "ɒj̯", name: "AJ", length: "short" },
28
+ { char: "ei", id: "ei", charType: "vowel", ipa: "ɛi̯", name: "EI", length: "short" },
29
+ { char: "éi", id: "éi", charType: "vowel", ipa: "eːi̯", name: "ÉI", length: "long" },
30
+ { char: "oi", id: "oi", charType: "vowel", ipa: "ɔi̯", name: "OI", length: "short" },
31
+ { char: "oj", id: "oj", charType: "vowel", ipa: "ɔj̯", name: "OJ", length: "short" },
32
+ { char: "ui", id: "ui", charType: "vowel", ipa: "ʊi̯", name: "UI", length: "short" },
33
+ { char: "uj", id: "uj", charType: "vowel", ipa: "ʊj̯", name: "UJ", length: "short" },
34
+ { char: "üi", id: "üi", charType: "vowel", ipa: "yi̯", name: "ÜI", length: "short" },
35
+ { char: "űj", id: "űj", charType: "vowel", ipa: "yj̯", name: "ŰJ", length: "short" }
36
+ ], c = [
37
+ // Bilabial consonants
38
+ { char: "b", id: "b", charType: "consonant", ipa: "b", name: "B", voicing: "voiced", articulation: "stop", place: "labial" },
39
+ { char: "p", id: "p", charType: "consonant", ipa: "p", name: "P", voicing: "voiceless", articulation: "stop", place: "labial" },
40
+ { char: "m", id: "m", charType: "consonant", ipa: "m", name: "M", voicing: "nasal", articulation: "nasal", place: "labial" },
41
+ // Labiodental consonants
42
+ { char: "f", id: "f", charType: "consonant", ipa: "f", name: "F", voicing: "voiceless", articulation: "fricative", place: "labial" },
43
+ { char: "v", id: "v", charType: "consonant", ipa: "ʋ", name: "V", voicing: "approximant", articulation: "approximant", place: "labial" },
44
+ // Dental/Alveolar consonants
45
+ { char: "t", id: "t", charType: "consonant", ipa: "t", name: "T", voicing: "voiceless", articulation: "stop", place: "dental" },
46
+ { char: "d", id: "d", charType: "consonant", ipa: "d", name: "D", voicing: "voiced", articulation: "stop", place: "dental" },
47
+ { char: "s", id: "s", charType: "consonant", ipa: "ʃ", name: "S", voicing: "voiceless", articulation: "fricative", place: "postalveolar" },
48
+ { char: "z", id: "z", charType: "consonant", ipa: "ʒ", name: "Z", voicing: "voiced", articulation: "fricative", place: "postalveolar" },
49
+ { char: "sz", id: "sz", charType: "consonant", ipa: "s", name: "SZ", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
50
+ { char: "zs", id: "zs", charType: "consonant", ipa: "ʒ", name: "ZS", voicing: "voiced", articulation: "fricative", place: "postalveolar" },
51
+ { char: "c", id: "c", charType: "consonant", ipa: "ts", name: "C", voicing: "voiceless", articulation: "affricate", place: "alveolar" },
52
+ { char: "cs", id: "cs", charType: "consonant", ipa: "tʃ", name: "CS", voicing: "voiceless", articulation: "affricate", place: "postalveolar" },
53
+ { char: "z", id: "z_alveolar", charType: "consonant", ipa: "z", name: "Z (alveolar)", voicing: "voiced", articulation: "fricative", place: "alveolar" },
54
+ { char: "s", id: "s_alveolar", charType: "consonant", ipa: "s", name: "S (alveolar)", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
55
+ { char: "n", id: "n", charType: "consonant", ipa: "n", name: "N", voicing: "nasal", articulation: "nasal", place: "alveolar" },
56
+ { char: "l", id: "l", charType: "consonant", ipa: "l", name: "L", voicing: "lateral", articulation: "lateral", place: "alveolar" },
57
+ { char: "r", id: "r", charType: "consonant", ipa: "r", name: "R", voicing: "trill", articulation: "trill", place: "alveolar" },
58
+ // Palatal consonants
59
+ { char: "j", id: "j", charType: "consonant", ipa: "j", name: "J", voicing: "voiced", articulation: "approximant", place: "palatal" },
60
+ { char: "ny", id: "ny", charType: "consonant", ipa: "ɲ", name: "NY", voicing: "nasal", articulation: "nasal", place: "palatal" },
61
+ { char: "ty", id: "ty", charType: "consonant", ipa: "c", name: "TY", voicing: "voiceless", articulation: "stop", place: "palatal" },
62
+ { char: "dy", id: "dy", charType: "consonant", ipa: "ɟ", name: "DY", voicing: "voiced", articulation: "stop", place: "palatal" },
63
+ { char: "gy", id: "gy", charType: "consonant", ipa: "ɟ", name: "GY", voicing: "voiced", articulation: "stop", place: "palatal" },
64
+ { char: "nyi", id: "nyi", charType: "consonant", ipa: "ɲ", name: "NYI", voicing: "nasal", articulation: "nasal", place: "palatal" },
65
+ { char: "tyi", id: "tyi", charType: "consonant", ipa: "c", name: "TYI", voicing: "voiceless", articulation: "stop", place: "palatal" },
66
+ { char: "gyi", id: "gyi", charType: "consonant", ipa: "ɟ", name: "GYI", voicing: "voiced", articulation: "stop", place: "palatal" },
67
+ // Velar consonants
68
+ { char: "k", id: "k", charType: "consonant", ipa: "k", name: "K", voicing: "voiceless", articulation: "stop", place: "velar" },
69
+ { char: "g", id: "g", charType: "consonant", ipa: "ɡ", name: "G", voicing: "voiced", articulation: "stop", place: "velar" },
70
+ { char: "h", id: "h", charType: "consonant", ipa: "h", name: "H", voicing: "voiceless", articulation: "fricative", place: "glottal" },
71
+ { char: "kh", id: "kh", charType: "consonant", ipa: "x", name: "KH", voicing: "voiceless", articulation: "fricative", place: "velar" },
72
+ { char: "gh", id: "gh", charType: "consonant", ipa: "ɣ", name: "GH", voicing: "voiced", articulation: "fricative", place: "velar" },
73
+ // Other consonants
74
+ { char: "q", id: "q_foreign", charType: "consonant", ipa: "k", name: "Q (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
75
+ { char: "w", id: "w_foreign", charType: "consonant", ipa: "v", name: "W (foreign)", voicing: "voiced", articulation: "fricative", place: "labial" },
76
+ { char: "x", id: "x_foreign", charType: "consonant", ipa: "ks", name: "X (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
77
+ { char: "y", id: "y_foreign", charType: "consonant", ipa: "j", name: "Y (foreign)", voicing: "voiced", articulation: "approximant", place: "palatal" }
78
+ ], o = [
79
+ ...i,
80
+ ...c
81
+ ];
82
+ export {
83
+ o as hungarianAllCharacters,
84
+ c as hungarianConsonants,
85
+ i as hungarianVowels,
86
+ e as isConsonant,
87
+ n as isVowel
88
+ };
@@ -0,0 +1 @@
1
+ export { hungarianVowels, hungarianConsonants, hungarianAllCharacters, type HungarianVowelsInfo, type HungarianConsonantsInfo, type HungarianCharacter, isVowel, isConsonant, } from './characters.js';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { hungarianAllCharacters as o, hungarianConsonants as r, hungarianVowels as s, isConsonant as i, isVowel as e } from "./characters.js";
2
+ export {
3
+ o as hungarianAllCharacters,
4
+ r as hungarianConsonants,
5
+ s as hungarianVowels,
6
+ i as isConsonant,
7
+ e as isVowel
8
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@polyglot-bundles/hu-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/hu/lang"
35
+ }
36
+ }