diff options
author | Karl Berry <karl@freefriends.org> | 2017-10-29 21:22:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-10-29 21:22:48 +0000 |
commit | 1866893238afb5431339c6bde5f1055ddeff8093 (patch) | |
tree | 5ceac685692e8ab451e6a8a6248dcbf56b248322 /Master/texmf-dist/tex/xelatex/quran/quran-transen.def | |
parent | 4a880a05106b56169406999325c28b45f4d6f345 (diff) |
quran (28oct17)
git-svn-id: svn://tug.org/texlive/trunk@45636 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/quran/quran-transen.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/quran/quran-transen.def | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/quran/quran-transen.def b/Master/texmf-dist/tex/xelatex/quran/quran-transen.def new file mode 100644 index 00000000000..7071336984a --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/quran/quran-transen.def @@ -0,0 +1,153 @@ +\let\qt@doqt@orig\qt@doqt +\let\ToggleBasmalah@orig\ToggleBasmalah +%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\basmalahen{In the name of Allah, most benevolent, ever-merciful. \qt@par} +\bidi@newrobustcmd\ToggleBasmalahen{% + \ifx\basmalahen\relax% + \def\basmalahen{In the name of Allah, most benevolent, ever-merciful. \qt@par} + \else% + \let\basmalahen\relax% + \fi% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\qt@doen{% + \addtocounter{qt@count}{1}% + \loop% + \csname qurantrans@en@\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\qurantexten{% + \@ifstar\@@qurantexten\@qurantexten% +}% +\bidi@newrobustcmd\@@qurantexten[1][\qt@default]{% + \let\qt@doqt\qt@doen% + \@@qurantext[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\bidi@newrobustcmd\@qurantexten[1][\qt@default]{% + \let\qt@doqt\qt@doen% + \@qurantext[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quransurahen{% + \@ifstar\@@quransurahen\@quransurahen% +}% +\bidi@newrobustcmd\@@quransurahen[1][\qt@surah@default]{% + \let\qt@doqt\qt@doen% + \@@quransurah[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\bidi@newrobustcmd\@quransurahen[1][\qt@surah@default]{% + \let\qt@doqt\qt@doen% + \@quransurah[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranayahen{% + \@ifstar\@@quranayahen\@quranayahen% +}% +\def\@@quranayahen[#1][#2]{% + \let\qt@doqt\qt@doen% + \let\ToggleBasmalah\ToggleBasmalahen% + \@@quranayah[#1][#2]% + \let\qt@doqt\qt@doqt@orig% + \let\ToggleBasmalah\ToggleBasmalah@orig% +}% +\def\@quranayahen[#1][#2]{% + \let\qt@doqt\qt@doen% + \let\ToggleBasmalah\ToggleBasmalahen% + \@quranayah[#1][#2]% + \let\qt@doqt\qt@doqt@orig% + \let\ToggleBasmalah\ToggleBasmalah@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranjuzen{% + \@ifstar\@@quranjuzen\@quranjuzen% +}% +\def\@@quranjuzen[#1]{% + \let\qt@doqt\qt@doen% + \@@quranjuz[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\def\@quranjuzen[#1]{% + \let\qt@doqt\qt@doen% + \@quranjuz[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranpageen{% + \@ifstar\@@quranpageen\@quranpageen% +}% +\def\@@quranpageen[#1]{% + \let\qt@doqt\qt@doen% + \@@quranpage[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\def\@quranpageen[#1]{% + \let\qt@doqt\qt@doen% + \@quranpage[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranquarteren{% + \@ifstar\@@quranquarteren\@quranquarteren% +}% +\def\@@quranquarteren[#1]{% + \let\qt@doqt\qt@doen% + \@@quranquarter[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\def\@quranquarteren[#1]{% + \let\qt@doqt\qt@doen% + \@quranquarter[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranrukuen{% + \@ifstar\@@quranrukuen\@quranrukuen% +}% +\def\@@quranrukuen[#1]{% + \let\qt@doqt\qt@doen% + \@@quranruku[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\def\@quranrukuen[#1]{% + \let\qt@doqt\qt@doen% + \@quranruku[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranhizben{% + \@ifstar\@@quranhizben\@quranhizben% +}% +\def\@@quranhizben[#1]{% + \let\qt@doqt\qt@doen% + \@@quranhizb[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\def\@quranhizben[#1]{% + \let\qt@doqt\qt@doen% + \@quranhizb[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% +\bidi@newrobustcmd\quranmanzilen{% + \@ifstar\@@quranmanzilen\@quranmanzilen% +} +\def\@@quranmanzilen[#1]{% + \let\qt@doqt\qt@doen% + \@@quranmanzil[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +\def\@quranmanzilen[#1]{% + \let\qt@doqt\qt@doen% + \@quranmanzil[#1]% + \let\qt@doqt\qt@doqt@orig% +}% +%%%%%%%%%%%%%%%%%%%%%%%%%% |