@polyglot-bundles/kk-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 +43 -0
- package/dist/characters.js +72 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/package.json +36 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kazakh Character Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for Kazakh characters (Cyrillic script).
|
|
5
|
+
* Kazakh has 42 letters: 17 vowels, 25 consonants.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Base character info
|
|
9
|
+
*/
|
|
10
|
+
type KazakhCharacterBaseInfo = {
|
|
11
|
+
char: string;
|
|
12
|
+
id: string;
|
|
13
|
+
display?: string;
|
|
14
|
+
audio?: string;
|
|
15
|
+
notes?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Kazakh Vowels
|
|
19
|
+
*/
|
|
20
|
+
export type KazakhVowelsInfo = {
|
|
21
|
+
charType: "vowel";
|
|
22
|
+
ipa: string;
|
|
23
|
+
name: string;
|
|
24
|
+
length?: "short" | "long";
|
|
25
|
+
} & KazakhCharacterBaseInfo;
|
|
26
|
+
/**
|
|
27
|
+
* Kazakh Consonants
|
|
28
|
+
*/
|
|
29
|
+
export type KazakhConsonantsInfo = {
|
|
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";
|
|
35
|
+
place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "alveolar" | "uvular";
|
|
36
|
+
} & KazakhCharacterBaseInfo;
|
|
37
|
+
export type KazakhCharacter = KazakhVowelsInfo | KazakhConsonantsInfo;
|
|
38
|
+
export declare function isVowel(character: KazakhCharacter): character is KazakhVowelsInfo;
|
|
39
|
+
export declare function isConsonant(character: KazakhCharacter): character is KazakhConsonantsInfo;
|
|
40
|
+
export declare const kazakhVowels: KazakhVowelsInfo[];
|
|
41
|
+
export declare const kazakhConsonants: KazakhConsonantsInfo[];
|
|
42
|
+
export declare const kazakhAllCharacters: (KazakhVowelsInfo | KazakhConsonantsInfo)[];
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function c(a) {
|
|
2
|
+
return a.charType === "vowel";
|
|
3
|
+
}
|
|
4
|
+
function e(a) {
|
|
5
|
+
return a.charType === "consonant";
|
|
6
|
+
}
|
|
7
|
+
const i = [
|
|
8
|
+
// Vowels
|
|
9
|
+
{ char: "а", id: "a", charType: "vowel", ipa: "a", name: "А", length: "short" },
|
|
10
|
+
{ char: "ә", id: "ae", charType: "vowel", ipa: "æ", name: "Ә", length: "short" },
|
|
11
|
+
{ char: "о", id: "o", charType: "vowel", ipa: "ɔ", name: "О", length: "short" },
|
|
12
|
+
{ char: "ө", id: "o_round", charType: "vowel", ipa: "ø", name: "Ө", length: "short" },
|
|
13
|
+
{ char: "у", id: "u", charType: "vowel", ipa: "u", name: "У", length: "short" },
|
|
14
|
+
{ char: "ұ", id: "u_long", charType: "vowel", ipa: "ʊ", name: "Ұ", length: "short" },
|
|
15
|
+
{ char: "ы", id: "y", charType: "vowel", ipa: "ı", name: "Ы", length: "short" },
|
|
16
|
+
{ char: "і", id: "i", charType: "vowel", ipa: "i", name: "І", length: "short" },
|
|
17
|
+
{ char: "е", id: "ye", charType: "vowel", ipa: "je", name: "Е", length: "short" },
|
|
18
|
+
{ char: "ё", id: "yo", charType: "vowel", ipa: "jo", name: "Ё", length: "short" },
|
|
19
|
+
{ char: "и", id: "i_alt", charType: "vowel", ipa: "i", name: "И", length: "short" },
|
|
20
|
+
// Long vowels
|
|
21
|
+
{ char: "а", id: "a_long", charType: "vowel", ipa: "aː", name: "А (long)", length: "long" },
|
|
22
|
+
{ char: "о", id: "o_long", charType: "vowel", ipa: "ɔː", name: "О (long)", length: "long" },
|
|
23
|
+
{ char: "у", id: "u_long_alt", charType: "vowel", ipa: "uː", name: "У (long)", length: "long" },
|
|
24
|
+
{ char: "ы", id: "y_long", charType: "vowel", ipa: "ɯ", name: "Ы (long)", length: "long" },
|
|
25
|
+
{ char: "і", id: "i_long", charType: "vowel", ipa: "iː", name: "І (long)", length: "long" }
|
|
26
|
+
], n = [
|
|
27
|
+
// Bilabial consonants
|
|
28
|
+
{ char: "б", id: "be", charType: "consonant", ipa: "b", name: "Бэ", voicing: "voiced", articulation: "stop", place: "labial" },
|
|
29
|
+
{ char: "п", id: "pe", charType: "consonant", ipa: "p", name: "Пэ", voicing: "voiceless", articulation: "stop", place: "labial" },
|
|
30
|
+
{ char: "м", id: "me", charType: "consonant", ipa: "m", name: "Мэ", voicing: "nasal", articulation: "nasal", place: "labial" },
|
|
31
|
+
// Labiodental consonants
|
|
32
|
+
{ char: "в", id: "ve", charType: "consonant", ipa: "v", name: "Вэ", voicing: "voiced", articulation: "fricative", place: "labial" },
|
|
33
|
+
{ char: "ф", id: "fe", charType: "consonant", ipa: "f", name: "Фэ", voicing: "voiceless", articulation: "fricative", place: "labial" },
|
|
34
|
+
// Dental/Alveolar consonants
|
|
35
|
+
{ char: "д", id: "de", charType: "consonant", ipa: "d", name: "Дэ", voicing: "voiced", articulation: "stop", place: "dental" },
|
|
36
|
+
{ char: "т", id: "te", charType: "consonant", ipa: "t", name: "Тэ", voicing: "voiceless", articulation: "stop", place: "dental" },
|
|
37
|
+
{ char: "з", id: "ze", charType: "consonant", ipa: "z", name: "Зэ", voicing: "voiced", articulation: "fricative", place: "alveolar" },
|
|
38
|
+
{ char: "с", id: "se", charType: "consonant", ipa: "s", name: "Сэ", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
|
|
39
|
+
{ char: "н", id: "ne", charType: "consonant", ipa: "n", name: "Нэ", voicing: "nasal", articulation: "nasal", place: "alveolar" },
|
|
40
|
+
{ char: "л", id: "le", charType: "consonant", ipa: "l", name: "Лэ", voicing: "lateral", articulation: "lateral", place: "alveolar" },
|
|
41
|
+
{ char: "р", id: "re", charType: "consonant", ipa: "r", name: "Рэ", voicing: "trill", articulation: "trill", place: "alveolar" },
|
|
42
|
+
// Palatal consonants
|
|
43
|
+
{ char: "ч", id: "che", charType: "consonant", ipa: "tʃ", name: "Чэ", voicing: "voiceless", articulation: "affricate", place: "palatal" },
|
|
44
|
+
{ char: "ш", id: "sha", charType: "consonant", ipa: "ʃ", name: "Ша", voicing: "voiceless", articulation: "fricative", place: "palatal" },
|
|
45
|
+
{ char: "ж", id: "zha", charType: "consonant", ipa: "ʒ", name: "Жа", voicing: "voiced", articulation: "fricative", place: "palatal" },
|
|
46
|
+
{ char: "җ", id: "zhe_circumflex", charType: "consonant", ipa: "ʒ", name: "Жә", voicing: "voiced", articulation: "fricative", place: "palatal" },
|
|
47
|
+
{ char: "й", id: "y_short_alt", charType: "consonant", ipa: "j", name: "Й", voicing: "voiced", articulation: "approximant", place: "palatal" },
|
|
48
|
+
// Velar consonants
|
|
49
|
+
{ char: "к", id: "ka", charType: "consonant", ipa: "k", name: "Ка", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
50
|
+
{ char: "қ", id: "ka_hard", charType: "consonant", ipa: "q", name: "Қа", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
51
|
+
{ char: "г", id: "ga", charType: "consonant", ipa: "ɡ", name: "Га", voicing: "voiced", articulation: "stop", place: "velar" },
|
|
52
|
+
{ char: "ғ", id: "ga_hard", charType: "consonant", ipa: "ɣ", name: "Ға", voicing: "voiced", articulation: "fricative", place: "velar" },
|
|
53
|
+
{ char: "һ", id: "ha", charType: "consonant", ipa: "h", name: "Ҳа", voicing: "voiceless", articulation: "fricative", place: "glottal" },
|
|
54
|
+
// Other consonants
|
|
55
|
+
{ char: "ң", id: "ng", charType: "consonant", ipa: "ŋ", name: "Ңа", voicing: "nasal", articulation: "nasal", place: "velar" },
|
|
56
|
+
{ char: "ц", id: "tse", charType: "consonant", ipa: "ts", name: "Цэ", voicing: "voiceless", articulation: "affricate", place: "alveolar" },
|
|
57
|
+
{ char: "x", id: "x_foreign", charType: "consonant", ipa: "ks", name: "X (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
58
|
+
{ char: "q", id: "q_foreign", charType: "consonant", ipa: "q", name: "Q (foreign)", voicing: "voiceless", articulation: "stop", place: "uvular" },
|
|
59
|
+
{ char: "w", id: "w_foreign", charType: "consonant", ipa: "w", name: "W (foreign)", voicing: "voiced", articulation: "approximant", place: "labial" },
|
|
60
|
+
{ char: "f", id: "f_foreign", charType: "consonant", ipa: "f", name: "F (foreign)", voicing: "voiceless", articulation: "fricative", place: "labial" },
|
|
61
|
+
{ char: "v", id: "v_foreign", charType: "consonant", ipa: "v", name: "V (foreign)", voicing: "voiced", articulation: "fricative", place: "labial" }
|
|
62
|
+
], o = [
|
|
63
|
+
...i,
|
|
64
|
+
...n
|
|
65
|
+
];
|
|
66
|
+
export {
|
|
67
|
+
e as isConsonant,
|
|
68
|
+
c as isVowel,
|
|
69
|
+
o as kazakhAllCharacters,
|
|
70
|
+
n as kazakhConsonants,
|
|
71
|
+
i as kazakhVowels
|
|
72
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { kazakhVowels, kazakhConsonants, kazakhAllCharacters, type KazakhVowelsInfo, type KazakhConsonantsInfo, type KazakhCharacter, isVowel, isConsonant, } from './characters.js';
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@polyglot-bundles/kk-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/kk/lang"
|
|
35
|
+
}
|
|
36
|
+
}
|