@polyglot-bundles/tg-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
+ * Tajik Character Types
3
+ *
4
+ * Type definitions for Tajik characters (Cyrillic script with additional Persian letters).
5
+ * Tajik has 52 letters: 16 vowels, 36 consonants.
6
+ */
7
+ /**
8
+ * Base character info
9
+ */
10
+ type TajikCharacterBaseInfo = {
11
+ char: string;
12
+ id: string;
13
+ display?: string;
14
+ audio?: string;
15
+ notes?: string;
16
+ };
17
+ /**
18
+ * Tajik Vowels
19
+ */
20
+ export type TajikVowelsInfo = {
21
+ charType: "vowel";
22
+ ipa: string;
23
+ name: string;
24
+ length?: "short" | "long";
25
+ } & TajikCharacterBaseInfo;
26
+ /**
27
+ * Tajik Consonants
28
+ */
29
+ export type TajikConsonantsInfo = {
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" | "affricate" | "fricative";
35
+ place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "uvular" | "alveolar";
36
+ } & TajikCharacterBaseInfo;
37
+ export type TajikCharacter = TajikVowelsInfo | TajikConsonantsInfo;
38
+ export declare function isVowel(character: TajikCharacter): character is TajikVowelsInfo;
39
+ export declare function isConsonant(character: TajikCharacter): character is TajikConsonantsInfo;
40
+ export declare const tajikVowels: TajikVowelsInfo[];
41
+ export declare const tajikConsonants: TajikConsonantsInfo[];
42
+ export declare const tajikAllCharacters: (TajikVowelsInfo | TajikConsonantsInfo)[];
43
+ export {};
@@ -0,0 +1,88 @@
1
+ function c(a) {
2
+ return a.charType === "vowel";
3
+ }
4
+ function e(a) {
5
+ return a.charType === "consonant";
6
+ }
7
+ const i = [
8
+ // Cyrillic vowels
9
+ { char: "а", id: "a", charType: "vowel", ipa: "a", name: "А", length: "short" },
10
+ { char: "о", id: "o", charType: "vowel", ipa: "o", name: "О", length: "short" },
11
+ { char: "у", id: "u", charType: "vowel", ipa: "u", name: "У", length: "short" },
12
+ { char: "и", id: "i", charType: "vowel", ipa: "i", name: "И", length: "short" },
13
+ { char: "е", id: "ye", charType: "vowel", ipa: "je", name: "Е", length: "short" },
14
+ { char: "ё", id: "yo", charType: "vowel", ipa: "jo", name: "Ё", length: "short" },
15
+ { char: "ы", id: "y", charType: "vowel", ipa: "ɨ", name: "Ы", length: "short" },
16
+ // Persian vowels (added to Tajik)
17
+ { char: "ә", id: "ae", charType: "vowel", ipa: "æ", name: "Ә", length: "short" },
18
+ { char: "э", id: "e_farsi", charType: "vowel", ipa: "e", name: "Э", length: "short" },
19
+ { char: "ө", id: "o_round", charType: "vowel", ipa: "ø", name: "Ө", length: "short" },
20
+ { char: "ӯ", id: "u_acute", charType: "vowel", ipa: "uː", name: "У́", length: "long" },
21
+ { char: "ӣ", id: "i_acute", charType: "vowel", ipa: "iː", name: "Ӣ", length: "long" },
22
+ { char: "ӯ", id: "u_long_alt", charType: "vowel", ipa: "uː", name: "ӯ (long)", length: "long" },
23
+ // Diphthongs
24
+ { char: "ай", id: "ay", charType: "vowel", ipa: "aj", name: "АЙ", length: "short" },
25
+ { char: "ой", id: "oy", charType: "vowel", ipa: "oj", name: "ОЙ", length: "short" },
26
+ { char: "уе", id: "ue", charType: "vowel", ipa: "uɛ", name: "УЕ", length: "short" },
27
+ // Long vowels
28
+ { char: "а", id: "a_long", charType: "vowel", ipa: "aː", name: "А (long)", length: "long" },
29
+ { char: "о", id: "o_long", charType: "vowel", ipa: "oː", name: "О (long)", length: "long" },
30
+ { char: "у", id: "u_long", charType: "vowel", ipa: "uː", name: "У (long)", length: "long" }
31
+ ], n = [
32
+ // Bilabial consonants
33
+ { char: "б", id: "be", charType: "consonant", ipa: "b", name: "Бе", voicing: "voiced", articulation: "stop", place: "labial" },
34
+ { char: "п", id: "pe", charType: "consonant", ipa: "p", name: "Пе", voicing: "voiceless", articulation: "stop", place: "labial" },
35
+ { char: "м", id: "me", charType: "consonant", ipa: "m", name: "Ме", voicing: "nasal", articulation: "nasal", place: "labial" },
36
+ // Labiodental consonants
37
+ { char: "в", id: "ve", charType: "consonant", ipa: "v", name: "Ве", voicing: "voiced", articulation: "fricative", place: "labial" },
38
+ { char: "ф", id: "fe", charType: "consonant", ipa: "f", name: "Фе", voicing: "voiceless", articulation: "fricative", place: "labial" },
39
+ // Dental/Alveolar consonants
40
+ { char: "д", id: "de", charType: "consonant", ipa: "d", name: "Де", voicing: "voiced", articulation: "stop", place: "dental" },
41
+ { char: "т", id: "te", charType: "consonant", ipa: "t", name: "Те", voicing: "voiceless", articulation: "stop", place: "dental" },
42
+ { char: "з", id: "ze", charType: "consonant", ipa: "z", name: "Зе", voicing: "voiced", articulation: "fricative", place: "alveolar" },
43
+ { char: "с", id: "se", charType: "consonant", ipa: "s", name: "Се", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
44
+ { char: "н", id: "ne", charType: "consonant", ipa: "n", name: "Не", voicing: "nasal", articulation: "nasal", place: "alveolar" },
45
+ { char: "л", id: "le", charType: "consonant", ipa: "l", name: "Ле", voicing: "lateral", articulation: "lateral", place: "alveolar" },
46
+ { char: "р", id: "re", charType: "consonant", ipa: "r", name: "Ре", voicing: "trill", articulation: "trill", place: "alveolar" },
47
+ // Palatal consonants
48
+ { char: "ч", id: "che", charType: "consonant", ipa: "tʃ", name: "Че", voicing: "voiceless", articulation: "affricate", place: "palatal" },
49
+ { char: "ш", id: "sha", charType: "consonant", ipa: "ʃ", name: "Ша", voicing: "voiceless", articulation: "fricative", place: "palatal" },
50
+ { char: "ж", id: "zha", charType: "consonant", ipa: "ʒ", name: "Жа", voicing: "voiced", articulation: "fricative", place: "palatal" },
51
+ { char: "й", id: "y_short", charType: "consonant", ipa: "j", name: "Й", voicing: "voiced", articulation: "approximant", place: "palatal" },
52
+ // Velar consonants
53
+ { char: "к", id: "ka", charType: "consonant", ipa: "k", name: "Ка", voicing: "voiceless", articulation: "stop", place: "velar" },
54
+ { char: "г", id: "ga", charType: "consonant", ipa: "ɡ", name: "Га", voicing: "voiced", articulation: "stop", place: "velar" },
55
+ { char: "ҳ", id: "ha", charType: "consonant", ipa: "h", name: "Ҳа", voicing: "voiceless", articulation: "fricative", place: "glottal" },
56
+ { char: "х", id: "kha", charType: "consonant", ipa: "x", name: "Ха", voicing: "voiceless", articulation: "fricative", place: "velar" },
57
+ // Other Persian consonants
58
+ { char: "қ", id: "ka_hard", charType: "consonant", ipa: "q", name: "Қа", voicing: "voiceless", articulation: "stop", place: "velar" },
59
+ { char: "ғ", id: "ga_hard", charType: "consonant", ipa: "ɣ", name: "Ға", voicing: "voiced", articulation: "fricative", place: "velar" },
60
+ { char: "ң", id: "ng", charType: "consonant", ipa: "ŋ", name: "Ңа", voicing: "nasal", articulation: "nasal", place: "velar" },
61
+ { char: "ц", id: "tse", charType: "consonant", ipa: "ts", name: "Цэ", voicing: "voiceless", articulation: "affricate", place: "alveolar" },
62
+ { char: "чч", id: "chh", charType: "consonant", ipa: "tʃː", name: "Чч", voicing: "voiceless", articulation: "affricate", place: "palatal" },
63
+ { char: "э", id: "e_farsi_consonant", charType: "consonant", ipa: "e", name: "Э (consonant)", voicing: "approximant", articulation: "approximant", place: "palatal" },
64
+ { char: "ь", id: "hard_sign", charType: "consonant", ipa: "j", name: "Ъ (hard sign)", voicing: "approximant", articulation: "approximant", place: "glottal" },
65
+ { char: "ъ", id: "soft_sign", charType: "consonant", ipa: "j", name: "Ь (soft sign)", voicing: "approximant", articulation: "approximant", place: "glottal" },
66
+ // Persian-specific consonants
67
+ { char: "ӣ", id: "i_acute_consonant", charType: "consonant", ipa: "j", name: "Ӣ", voicing: "approximant", articulation: "approximant", place: "palatal" },
68
+ { char: "ӯ", id: "u_acute_consonant", charType: "consonant", ipa: "w", name: "ӯ", voicing: "approximant", articulation: "approximant", place: "labial" },
69
+ { char: "ц", id: "ts_farsi", charType: "consonant", ipa: "s", name: "Ц (farsi)", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
70
+ { char: "х", id: "x_farsi", charType: "consonant", ipa: "x", name: "Х (farsi)", voicing: "voiceless", articulation: "fricative", place: "velar" },
71
+ { char: "г", id: "g_farsi", charType: "consonant", ipa: "ɡ", name: "Г (farsi)", voicing: "voiced", articulation: "stop", place: "velar" },
72
+ { char: "қ", id: "q_farsi", charType: "consonant", ipa: "q", name: "Қ (farsi)", voicing: "voiceless", articulation: "stop", place: "uvular" },
73
+ { char: "ғ", id: "gh_farsi", charType: "consonant", ipa: "ɣ", name: "Ғ (farsi)", voicing: "voiced", articulation: "fricative", place: "velar" },
74
+ { char: "ҳ", id: "h_farsi", charType: "consonant", ipa: "h", name: "Ҳ (farsi)", voicing: "voiceless", articulation: "fricative", place: "glottal" },
75
+ { char: "ҷ", id: "j_circumflex", charType: "consonant", ipa: "dʒ", name: "Ҷа", voicing: "voiced", articulation: "affricate", place: "palatal" },
76
+ { char: "ш", id: "sh_farsi", charType: "consonant", ipa: "ʃ", name: "Ш (farsi)", voicing: "voiceless", articulation: "fricative", place: "palatal" },
77
+ { char: "э", id: "e_farsi_vowel", charType: "consonant", ipa: "e", name: "Э", voicing: "approximant", articulation: "approximant", place: "palatal" }
78
+ ], o = [
79
+ ...i,
80
+ ...n
81
+ ];
82
+ export {
83
+ e as isConsonant,
84
+ c as isVowel,
85
+ o as tajikAllCharacters,
86
+ n as tajikConsonants,
87
+ i as tajikVowels
88
+ };
@@ -0,0 +1 @@
1
+ export { tajikVowels, tajikConsonants, tajikAllCharacters, type TajikVowelsInfo, type TajikConsonantsInfo, type TajikCharacter, isVowel, isConsonant, } from './characters.js';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { isConsonant as s, isVowel as t, tajikAllCharacters as n, tajikConsonants as i, tajikVowels as e } from "./characters.js";
2
+ export {
3
+ s as isConsonant,
4
+ t as isVowel,
5
+ n as tajikAllCharacters,
6
+ i as tajikConsonants,
7
+ e as tajikVowels
8
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@polyglot-bundles/tg-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/tg/lang"
35
+ }
36
+ }