-
Notifications
You must be signed in to change notification settings - Fork 1
/
Phonemes.h
78 lines (73 loc) · 1.8 KB
/
Phonemes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
string lettersPhonemes[] = {
"ب","b",
"ت","t",
"ث","th",
"ج","j",
"ح","h~",
"خ","kh",
"د","d",
"ذ","th",
"ر","r",
"ز","z",
"س","s",
"ش","sh",
"ص","S~",
"ض","D~",
"ط","T~",
"ظ","TH~",
"ع","ay",
"غ","gh",
"ف","f",
"ق","q",
"ك","k",
"ل","l",
"م","m",
"ن","n",
"ه","h",
"و","w",
"ي","y",
"أ","@",
"إ","@",
"ء","@",
"ئ","@",
"ؤ","@",
"ة","t",
"َ","a",
"ُ","u",
"ِ","i",
};
//Other special phonemes!
#define AlefMad "aa"
#define WowMad "uu"
#define YaaMad "ii"
#define UnkownTashkeel "e"
#define OptionalHamzatWasl "@~"
//Special words to be replaced in the original text before phonetization
//Notes:
//1- The left word tashkel in the text word is ommitted unless it's there in the specialWord here.
//2- Spaces at the beginning or the end of the specialWords here means this is a word start or end not necessarily a space is there.
string specialWords[] = {
"الله", "اللَّاه",
"الرحمن", "الرَّحْمَان",
"لِله", "لِلَّاه", //lellaah
"لَله", "لَلَّاه", //lallaah
" لله", "لِلَّاه", //lellaah
"أولئك", "أُلَائِك",
"ذَلِك", "ذَالِك",
"هؤلاء", "هَاؤُلَاء",
" الم ", "أَلِفْ لَامْ مِيم", //7oroof moqatta3a
" المر ", "أَلِفْ لَامْ مِيم را",
" المص ", "أَلِفْ لَامْ مِيم صَاد",
" الر ", "أَلِفْ لَامْ رَا",
" كهيعص ", "كَافْ هَا يَا عَيْنْ صَادْ",
" طه ", "طَا هَا",
" طسم ", "طَا سِين مِّيمْ",
" طس ", "طَا سِين",
" يس ", "يَا سِين",
" ص ", "صَادْ",
" حم ", "حَا مِيمْ",
" عسق ", "عَيْن سِين قَافْ",
" ق ", "قَافْ",
" ن ", "نُون",
"لَكِن", "لَاكِن"
};