@polyglot-bundles/ro-lang 0.1.0
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 +76 -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
|
+
* Romanian Character Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for Romanian characters (Latin script with diacritics).
|
|
5
|
+
* Romanian has 31 letters: 7 vowels, 24 consonants.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Base character info
|
|
9
|
+
*/
|
|
10
|
+
type RomanianCharacterBaseInfo = {
|
|
11
|
+
char: string;
|
|
12
|
+
id: string;
|
|
13
|
+
display?: string;
|
|
14
|
+
audio?: string;
|
|
15
|
+
notes?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Romanian Vowels
|
|
19
|
+
*/
|
|
20
|
+
export type RomanianVowelsInfo = {
|
|
21
|
+
charType: "vowel";
|
|
22
|
+
ipa: string;
|
|
23
|
+
name: string;
|
|
24
|
+
length?: "short" | "long";
|
|
25
|
+
} & RomanianCharacterBaseInfo;
|
|
26
|
+
/**
|
|
27
|
+
* Romanian Consonants
|
|
28
|
+
*/
|
|
29
|
+
export type RomanianConsonantsInfo = {
|
|
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
|
+
} & RomanianCharacterBaseInfo;
|
|
37
|
+
export type RomanianCharacter = RomanianVowelsInfo | RomanianConsonantsInfo;
|
|
38
|
+
export declare function isVowel(character: RomanianCharacter): character is RomanianVowelsInfo;
|
|
39
|
+
export declare function isConsonant(character: RomanianCharacter): character is RomanianConsonantsInfo;
|
|
40
|
+
export declare const romanianVowels: RomanianVowelsInfo[];
|
|
41
|
+
export declare const romanianConsonants: RomanianConsonantsInfo[];
|
|
42
|
+
export declare const romanianAllCharacters: (RomanianVowelsInfo | RomanianConsonantsInfo)[];
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function e(a) {
|
|
2
|
+
return a.charType === "vowel";
|
|
3
|
+
}
|
|
4
|
+
function n(a) {
|
|
5
|
+
return a.charType === "consonant";
|
|
6
|
+
}
|
|
7
|
+
const i = [
|
|
8
|
+
// Short vowels
|
|
9
|
+
{ char: "a", id: "a", charType: "vowel", ipa: "a", name: "A", length: "short" },
|
|
10
|
+
{ char: "e", id: "e", charType: "vowel", ipa: "ɛ", name: "E", length: "short" },
|
|
11
|
+
{ char: "i", id: "i", charType: "vowel", ipa: "i", name: "I", length: "short" },
|
|
12
|
+
{ char: "o", id: "o", charType: "vowel", ipa: "o", name: "O", length: "short" },
|
|
13
|
+
{ char: "u", id: "u", charType: "vowel", ipa: "u", name: "U", length: "short" },
|
|
14
|
+
// Nasal vowels
|
|
15
|
+
{ char: "ă", id: "a_breve", charType: "vowel", ipa: "ə", name: "Ă", length: "short" },
|
|
16
|
+
{ char: "â", id: "a_circumflex", charType: "vowel", ipa: "ə", name: "Â/Î", length: "long" },
|
|
17
|
+
// Long vowels
|
|
18
|
+
{ char: "á", id: "a_acute", charType: "vowel", ipa: "aː", name: "Á", length: "long" },
|
|
19
|
+
{ char: "é", id: "e_acute", charType: "vowel", ipa: "eː", name: "É", length: "long" },
|
|
20
|
+
{ char: "í", id: "i_acute", charType: "vowel", ipa: "iː", name: "Í", length: "long" },
|
|
21
|
+
{ char: "ó", id: "o_acute", charType: "vowel", ipa: "oː", name: "Ó", length: "long" },
|
|
22
|
+
{ char: "ú", id: "u_acute", charType: "vowel", ipa: "uː", name: "Ú", length: "long" },
|
|
23
|
+
// Diphthongs
|
|
24
|
+
{ char: "ai", id: "ai", charType: "vowel", ipa: "aj", name: "AI", length: "short" },
|
|
25
|
+
{ char: "ăi", id: "ăi", charType: "vowel", ipa: "əj", name: "ĂI", length: "short" },
|
|
26
|
+
{ char: "au", id: "au", charType: "vowel", ipa: "aʊ", name: "AU", length: "short" },
|
|
27
|
+
{ char: "ău", id: "ău", charType: "vowel", ipa: "əʊ", name: "ĂU", length: "short" },
|
|
28
|
+
{ char: "ei", id: "ei", charType: "vowel", ipa: "ej", name: "EI", length: "short" },
|
|
29
|
+
{ char: "oi", id: "oi", charType: "vowel", ipa: "oj", name: "OI", length: "short" },
|
|
30
|
+
{ char: "ui", id: "ui", charType: "vowel", ipa: "uj", name: "UI", length: "short" }
|
|
31
|
+
], c = [
|
|
32
|
+
// Bilabial consonants
|
|
33
|
+
{ char: "b", id: "b", charType: "consonant", ipa: "b", name: "B", voicing: "voiced", articulation: "stop", place: "labial" },
|
|
34
|
+
{ char: "p", id: "p", charType: "consonant", ipa: "p", name: "P", voicing: "voiceless", articulation: "stop", place: "labial" },
|
|
35
|
+
{ char: "m", id: "m", charType: "consonant", ipa: "m", name: "M", voicing: "nasal", articulation: "nasal", place: "labial" },
|
|
36
|
+
// Labiodental consonants
|
|
37
|
+
{ char: "f", id: "f", charType: "consonant", ipa: "f", name: "F", voicing: "voiceless", articulation: "fricative", place: "labial" },
|
|
38
|
+
{ char: "v", id: "v", charType: "consonant", ipa: "v", name: "V", voicing: "voiced", articulation: "fricative", place: "labial" },
|
|
39
|
+
// Dental/Alveolar consonants
|
|
40
|
+
{ char: "t", id: "t", charType: "consonant", ipa: "t", name: "T", voicing: "voiceless", articulation: "stop", place: "dental" },
|
|
41
|
+
{ char: "d", id: "d", charType: "consonant", ipa: "d", name: "D", voicing: "voiced", articulation: "stop", place: "dental" },
|
|
42
|
+
{ char: "ț", id: "t_comma", charType: "consonant", ipa: "ts", name: "Ț", voicing: "voiceless", articulation: "affricate", place: "alveolar" },
|
|
43
|
+
{ char: "s", id: "s", charType: "consonant", ipa: "s", name: "S", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
|
|
44
|
+
{ char: "z", id: "z", charType: "consonant", ipa: "z", name: "Z", voicing: "voiced", articulation: "fricative", place: "alveolar" },
|
|
45
|
+
{ char: "n", id: "n", charType: "consonant", ipa: "n", name: "N", voicing: "nasal", articulation: "nasal", place: "alveolar" },
|
|
46
|
+
{ char: "l", id: "l", charType: "consonant", ipa: "l", name: "L", voicing: "lateral", articulation: "lateral", place: "alveolar" },
|
|
47
|
+
{ char: "r", id: "r", charType: "consonant", ipa: "r", name: "R", voicing: "trill", articulation: "trill", place: "alveolar" },
|
|
48
|
+
// Palatal consonants
|
|
49
|
+
{ char: "ș", id: "s_comma", charType: "consonant", ipa: "ʃ", name: "Ș", voicing: "voiceless", articulation: "fricative", place: "postalveolar" },
|
|
50
|
+
{ char: "j", id: "j", charType: "consonant", ipa: "ʒ", name: "J", voicing: "voiced", articulation: "fricative", place: "palatal" },
|
|
51
|
+
{ char: "ci", id: "ci", charType: "consonant", ipa: "tʃ", name: "CI", voicing: "voiceless", articulation: "affricate", place: "palatal" },
|
|
52
|
+
{ char: "gi", id: "gi", charType: "consonant", ipa: "dʒ", name: "GI", voicing: "voiced", articulation: "affricate", place: "palatal" },
|
|
53
|
+
{ char: "ce", id: "ce", charType: "consonant", ipa: "tʃ", name: "CE", voicing: "voiceless", articulation: "affricate", place: "palatal" },
|
|
54
|
+
{ char: "ge", id: "ge", charType: "consonant", ipa: "dʒ", name: "GE", voicing: "voiced", articulation: "affricate", place: "palatal" },
|
|
55
|
+
{ char: "ghe", id: "ghe", charType: "consonant", ipa: "ɡ", name: "GHE", voicing: "voiced", articulation: "stop", place: "velar" },
|
|
56
|
+
{ char: "ghi", id: "ghi", charType: "consonant", ipa: "ɡ", name: "GHI", voicing: "voiced", articulation: "stop", place: "velar" },
|
|
57
|
+
// Velar consonants
|
|
58
|
+
{ char: "c", id: "c", charType: "consonant", ipa: "k", name: "C", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
59
|
+
{ char: "g", id: "g", charType: "consonant", ipa: "ɡ", name: "G", voicing: "voiced", articulation: "stop", place: "velar" },
|
|
60
|
+
{ char: "h", id: "h", charType: "consonant", ipa: "h", name: "H", voicing: "voiceless", articulation: "fricative", place: "glottal" },
|
|
61
|
+
{ char: "k", id: "k_foreign", charType: "consonant", ipa: "k", name: "K (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
62
|
+
{ char: "q", id: "q_foreign", charType: "consonant", ipa: "k", name: "Q (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
63
|
+
{ char: "w", id: "w_foreign", charType: "consonant", ipa: "v", name: "W (foreign)", voicing: "voiced", articulation: "fricative", place: "labial" },
|
|
64
|
+
{ char: "x", id: "x_foreign", charType: "consonant", ipa: "ks", name: "X (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
|
|
65
|
+
{ char: "y", id: "y_foreign", charType: "consonant", ipa: "i", name: "Y (foreign)", voicing: "voiced", articulation: "approximant", place: "palatal" }
|
|
66
|
+
], o = [
|
|
67
|
+
...i,
|
|
68
|
+
...c
|
|
69
|
+
];
|
|
70
|
+
export {
|
|
71
|
+
n as isConsonant,
|
|
72
|
+
e as isVowel,
|
|
73
|
+
o as romanianAllCharacters,
|
|
74
|
+
c as romanianConsonants,
|
|
75
|
+
i as romanianVowels
|
|
76
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { romanianVowels, romanianConsonants, romanianAllCharacters, type RomanianVowelsInfo, type RomanianConsonantsInfo, type RomanianCharacter, isVowel, isConsonant, } from './characters.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { isConsonant as a, isVowel as r, romanianAllCharacters as s, romanianConsonants as i, romanianVowels as e } from "./characters.js";
|
|
2
|
+
export {
|
|
3
|
+
a as isConsonant,
|
|
4
|
+
r as isVowel,
|
|
5
|
+
s as romanianAllCharacters,
|
|
6
|
+
i as romanianConsonants,
|
|
7
|
+
e as romanianVowels
|
|
8
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@polyglot-bundles/ro-lang",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@polyglot-bundles/content-shared": "0.3.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"vite": "^5.4.0",
|
|
24
|
+
"vite-plugin-dts": "^4.0.0",
|
|
25
|
+
"@polyglot-bundles/lang-tooling": "1.0.0"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/fustilio/polyglot-bundles.git",
|
|
30
|
+
"directory": "packages/ro/lang"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "vite build",
|
|
34
|
+
"clean": "rm -rf dist"
|
|
35
|
+
}
|
|
36
|
+
}
|