summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/quran/quran-translt.def
blob: 9065a30eec12cf62bd3545fccb77370a3423e9d4 (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
\let\q@b\textbf
\let\q@i\textit
\let\q@u\underline
\let\qt@doqt@orig\qt@doqt
\let\ToggleBasmalah@orig\ToggleBasmalah
%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\basmalahlt{Bismi All\q@u{a}hi a\q@b{l}rra\q@u{h}m\q@u{a}ni a\q@b{l}rra\q@u{h}eem\q@b{i} \qt@par}
\bidi@newrobustcmd\ToggleBasmalahlt{%
  \ifx\basmalahlt\relax%
    \def\basmalahlt{Bismi All\q@u{a}hi a\q@b{l}rra\q@u{h}m\q@u{a}ni a\q@b{l}rra\q@u{h}eem\q@b{i} \qt@par}
  \else%
    \let\basmalahlt\relax%
  \fi%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\qt@dolt{%
    \addtocounter{qt@count}{1}%
    \loop%
        \csname qurantrans@lt@\roman{qt@count}\endcsname%
        \ifnum\value{qt@count}<\qt@max\relax%
        { }% an extra space between verses
        \qt@par%
        \addtocounter{qt@count}{1}%
    \repeat%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\qurantextlt{%
    \@ifstar\@@qurantextlt\@qurantextlt%
}%
\bidi@newrobustcmd\@@qurantextlt[1][\qt@default]{%
    \let\qt@doqt\qt@dolt%
    \@@qurantext[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\bidi@newrobustcmd\@qurantextlt[1][\qt@default]{%
    \let\qt@doqt\qt@dolt%
    \@qurantext[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quransurahlt{%
    \@ifstar\@@quransurahlt\@quransurahlt%
}%
\bidi@newrobustcmd\@@quransurahlt[1][\qt@surah@default]{%
    \let\qt@doqt\qt@dolt%
    \@@quransurah[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\bidi@newrobustcmd\@quransurahlt[1][\qt@surah@default]{%
    \let\qt@doqt\qt@dolt%
    \lowercase{\def\qt@arglc{#1}}%
    \@quransurah[\qt@arglc]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranayahlt{%
    \@ifstar\@@quranayahlt\@quranayahlt%
}%
\def\@@quranayahlt[#1][#2]{%
    \let\qt@doqt\qt@dolt%
    \let\ToggleBasmalah\ToggleBasmalahlt%
    \@@quranayah[#1][#2]%
    \let\qt@doqt\qt@doqt@orig%    
    \let\ToggleBasmalah\ToggleBasmalah@orig%
}%
\def\@quranayahlt[#1][#2]{%
    \lowercase{\def\qt@arglc{#1}}%
    \let\qt@doqt\qt@dolt%
    \let\ToggleBasmalah\ToggleBasmalahlt%    
    \@quranayah[\qt@arglc][#2]%
    \let\qt@doqt\qt@doqt@orig%    
    \let\ToggleBasmalah\ToggleBasmalah@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranjuzlt{%
    \@ifstar\@@quranjuzlt\@quranjuzlt%
}%
\def\@@quranjuzlt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@@quranjuz[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\def\@quranjuzlt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@quranjuz[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranpagelt{%
    \@ifstar\@@quranpagelt\@quranpagelt%
}%
\def\@@quranpagelt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@@quranpage[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\def\@quranpagelt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@quranpage[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranquarterlt{%
  \@ifstar\@@quranquarterlt\@quranquarterlt%
}%
\def\@@quranquarterlt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@@quranquarter[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\def\@quranquarterlt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@quranquarter[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranrukult{%
    \@ifstar\@@quranrukult\@quranrukult%
}%
\def\@@quranrukult[#1]{%
    \let\qt@doqt\qt@dolt%
    \@@quranruku[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\def\@quranrukult[#1]{%
    \let\qt@doqt\qt@dolt%
    \@quranruku[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranhizblt{%
    \@ifstar\@@quranhizblt\@quranhizblt%
}%
\def\@@quranhizblt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@@quranhizb[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\def\@quranhizblt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@quranhizb[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%
\bidi@newrobustcmd\quranmanzillt{%
    \@ifstar\@@quranmanzillt\@quranmanzillt%
}
\def\@@quranmanzillt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@@quranmanzil[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
\def\@quranmanzillt[#1]{%
    \let\qt@doqt\qt@dolt%
    \@quranmanzil[#1]%
    \let\qt@doqt\qt@doqt@orig%    
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%