diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-31 22:13:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-31 22:13:58 +0000 |
commit | 20ce3edbaa8d6e2d474f67efba4d35679a67556a (patch) | |
tree | 83556f577bbf832c13ef4a17bd1d17d7ced89898 /Master/texmf-dist/doc/xelatex/quran-de | |
parent | 440eb8a24af18f4a49dbf2ed73a84c5bf68484a4 (diff) |
quran-de (31dec18)
git-svn-id: svn://tug.org/texlive/trunk@49562 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/quran-de')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/quran-de/README | 22 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.pdf | bin | 0 -> 80437 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.tex | 178 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.pdf | bin | 0 -> 30274 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.tex | 37 | ||||
-rw-r--r-- | Master/texmf-dist/doc/xelatex/quran-de/quran.png | bin | 0 -> 8846 bytes |
6 files changed, 237 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/quran-de/README b/Master/texmf-dist/doc/xelatex/quran-de/README new file mode 100644 index 00000000000..e3af9438ee7 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/quran-de/README @@ -0,0 +1,22 @@ +_____________________ +The quran-de package +v0.14 + +The package is prepared for typesetting some of German translations of the Holy Quran. +The supported translations are done by `Abu Rida Muhammad ibn Ahmad ibn Rassoul', +`A. S. F. Bubenheim and N. Elyas', `Adel Theodor Khoury', and `Amir Zaidan' . + +For more information, please see the documentation. + +Current version release date: 2018/12/31 +___________________ +Seiied-Mohammad-Javad Razvian +javadr@gmail.com + +Copyright © 2018 +It may be distributed and/or modified under the LaTeX Project Public License, +version 1.3c or higher (your choice). The latest version of +this license is at: http://www.latex-project.org/lppl.txt + +This work is “author-maintained” (as per LPPL maintenance status) +by Seiied-Mohammad-Javad Razavian. diff --git a/Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.pdf b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.pdf Binary files differnew file mode 100644 index 00000000000..face62af69e --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.pdf diff --git a/Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.tex b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.tex new file mode 100644 index 00000000000..650dae1d151 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-doc.tex @@ -0,0 +1,178 @@ +\documentclass[a4paper]{ltxdoc} + +\usepackage{holtxdoc} +\usepackage{url} +\usepackage{booktabs} +\usepackage{listings} +\usepackage{tikz} +\hypersetup{% + plainpages=false,% + bookmarksnumbered,% + pdftitle={The quran-de Package},% + pdfkeywords={quran-de, surah, ayah, juz, hizb, ruku, manzil},% + pdfauthor={Seiied-Mohammad-Javad Razavian},% + baseurl={http://mirrors.ctan.org/macros/xetex/latex/quran-de/doc/quran-de-doc.pdf},% +} +\usepackage[all]{quran-de} +% because of definition of \XeTeX and \XeLaTeX symbols in bidi, +% I should undef these macro that are also defined in holtxdoc package. +\makeatletter +\bidi@undef\XeTeX +\bidi@undef\XeLaTeX +\makeatother +\usepackage{arabxetex} +\makeatletter +\bidi@BeforeBeginEnvironment{declcs}{\vspace*{-4mm}} +\makeatother + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\def\boxcs#1{\leftline{\fbox{\mcs{#1}}}} +\def\mcs#1{\lr{\texttt{\textbackslash{}#1}}} +\def\tt#1{\lr{\texttt{#1}}} +\lstdefinestyle{BashInputStyle}{ + language=bash, + basicstyle=\footnotesize\sffamily, + frame=tb, + columns=fullflexible, + backgroundcolor=\color{gray!10}, +} + +% Define box and box title style +\tikzstyle{mybox} = [draw=black, fill=gray!20, very thick, + rectangle, rounded corners, inner sep=10pt, inner ysep=20pt] +\tikzstyle{fancytitle} =[fill=gray, text=white] + +\def\mx#1#2{\mybox{#1}{#2}{.45\textwidth}} +\def\mxf#1#2{\mybox{#1}{#2}{\textwidth}} + +\def\mybox#1#2#3{ +\begin{tikzpicture} +\node [mybox] (box){% + \begin{minipage}[t]{#3} + #2 + \end{minipage} +}; +\node[fancytitle, anchor=west, right=10pt] at (box.north west) {\small \cs{#1}}; +\node (hole) [anchor=north east, left=5pt ] at (box.north east) { \tikz\fill[very thick,white] (0,0) circle (12pt); }; +\node[ ] at (hole.center) {\includegraphics[width=.05\textwidth]{quran.png}}; +\end{tikzpicture}% +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\title{\includegraphics[scale=.3]{quran.png}\\ +The \xpackage{quran-de} Package\footnote{To one having devoted his life to the Quran}\\ +\Large User documentation for \qurandeversion} +\author{Seiied Mohammad Javad Razavian\\\xemail{javadr@gmail.com}} + +\date{\qurandedate} + +\begin{document} +\maketitle + +\tableofcontents +%\newpage + +\section{Introduction} +The \xpackage{quran} package provides several macros for +typesetting the whole or any parts of The Holy Quran based on its popular divisions. That package also develops +commands for some translations of the Holy Quran including German, Engilsh, and Persian. +Some people asked me to include the other translations into the \xpackage{quran} package, +but because of some technical issues I decided to create new packages for other translations. +One of these variations is \xpackage{quran-de} including all German translations of the Holy Quran +provided by \url{tanzil.net}, i.e. \emph{``Abu Rida Muhammad ibn Ahmad ibn Rassoul''}, +\emph{``A. S. F. Bubenheim and N. Elyas''}, \emph{``Adel Theodor Khoury''}, +and \emph{``Amir Zaidan.''} + + +\section{Loading The Package} +The package will be loaded in the ordinary way +\cs{usepackage[option]\{quran-de\}}. +After loading the package, it writes some information about itself to the +terminal and to the log file, too. The information is something like: + +\begin{lstlisting}[style=BashInputStyle, language=tex, escapechar={|}] +Package: quran-de |\qurandedate| |\qurandeversion| German translations extension to the quran package. +\end{lstlisting} + + +\section{Options of The Package}\label{sec:qurantypesetting} +There are four options by the names of \xpackage{aburida}, \xpackage{bubenheim}, \xpackage{khoury}, +and \xpackage{zaidan}. +\marginpar{\ttfamily aburida\smallskip}\marginpar{\ttfamily bubenheim\smallskip} +\marginpar{\ttfamily khoury}\marginpar{\ttfamily zaidan\smallskip}\marginpar{\ttfamily all\smallskip} +If you pass any combinations of these options, you will be enabled to typeset these translations in a way +that the \xpackage{quran} package does. +There is also \xpackage{all} option which loads all German translations provided by the \xpackage{quran-de} package. +The package loads \xpackage{aburida} option by default. + +This package is completely built on top of the \xpackage{quran} package, therefore you can pass every options +defined in that package to the \xpackage{quran-de} package. + +\section{Differences between \xpackage{quran} and \xpackage{quran-de}} +At first glance, \xpackage{quran-de} offers all functionalities of \xpackage{quran}. Therefore in this case +both are the same except that \xpackage{quran-de} adds three other German translations, namely `bubenheim', `khoury', and `zaidan'. All German translations +provided by the package are shown in table~\ref{tab:detrans}. + +\begin{table}[!htbp] +\centering +\begin{tabular}{|c|l|c|} + \toprule + order & \multicolumn{1}{c|}{translator} & option's name \\\midrule + 1 & Abu Rida Muhammad ibn Ahmad ibn Rassoul & aburida \\ + 2 & A. S. F. Bubenheim and N. Elyas & bubenheim \\ + 3 & Adel Theodor Khoury & khoury \\ + 4 & Amir Zaidan & zaidan \\ + \bottomrule +\end{tabular} + \caption{German translations used in the package and their option's names} + \label{tab:detrans} +\end{table} + +\subsection{How to Change the Current German Translation} + The \xpackage{quran-de} package uses aburida's translation by default. + The following macro could be used to change the default German tranliteration. + \begin{declcs}{deSetTrans}\marg{index} + \end{declcs} + The \textit{index} could be an integer or a name; both `order' and `option's name' columns + shown in Table~\ref{tab:detrans} are appliable. Both \cs{deSetTrans\{4\}} and \cs{deSetTrans\{zaidan\}}, for example, + have the same effect. + +\subsection{How to Get the Name of Current German Translation} + \begin{declcs}{deGetTrans} + \end{declcs} + The above macro returns the name of current German translation, i.e. one of `aburida', `bubenheim', `khoury', or `zaidan'. + + +\subsection{How to Typeset the German Translation} + It's completely similiar to the \xpackage{quran} package when \texttt{transde} option is enabled. + All the following macros are usable. + +\begin{multicols}{2} + \begin{itemize} + \item \cs{quransurahde} + \item \cs{quranayahde} + \item \cs{quranpagede} + \item \cs{quranjuzde} + \item \cs{quranhizbde} + \item \cs{quranquarterde} + \item \cs{quranrukude} + \item \cs{quranmanzilde} + \item \cs{qurantextde} + \end{itemize} +\end{multicols} + + \centerline{\mxf{quransurah*} + {\begin{arab}\small\quransurah*\end{arab}}} + \centerline{\mxf{deSetTrans\{aburida\}\textbackslash{}quransurahde*} + {\setLTR\deSetTrans{aburida}\quransurahde*}} + \centerline{\mxf{deSetTrans\{bubenheim\}\textbackslash{}quransurahde*} + {\setLTR\deSetTrans{bubenheim}\quransurahde*}} + \centerline{\mxf{deSetTrans\{khoury\}\textbackslash{}quransurahde*} + {\setLTR\deSetTrans{khoury}\quransurahde*}} + \centerline{\mxf{deSetTrans\{zaidan\}\textbackslash{}quransurahde*} + {\setLTR\deSetTrans{zaidan}\quransurahde*}} + + +\end{document} + diff --git a/Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.pdf b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.pdf Binary files differnew file mode 100644 index 00000000000..d575319e5d9 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.pdf diff --git a/Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.tex b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.tex new file mode 100644 index 00000000000..908b8fd7f01 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/quran-de/quran-de-test.tex @@ -0,0 +1,37 @@ +\documentclass{article} +\usepackage[margin=2cm]{geometry} +\usepackage{arabxetex} % for typesetting Arabic text in Rigth−To−Left direction +\usepackage[all, trans={fa,en,de,lt}]{quran-de} % trans={fa,en,de,lt} option would be sent to quran package + +\newcommand{\compare}[1]{% + \def\setTr##1{\par\deSetTrans{##1}\fbox{\makebox[2cm]{\deGetTrans}}} + \noindent\hrulefill{\string #1}\hrulefill + \setTr{aburida} #1 + \setTr{bubenheim} #1 + \setTr{khoury} #1 + \setTr{zaidan} #1 +\par +} +\newcommand{\para}[2]{\noindent% +\begin{minipage}{.4\textwidth} +%\baselineskip=1.4\baselineskip +\begin{arab}#1\end{arab} +\end{minipage}\hfill +\begin{minipage}{.55\textwidth} +%\baselineskip=1.4\baselineskip +#2 +\end{minipage} +} + +\begin{document} + +\para{\quranayah[Al-Ikhlas][1-4]}{\quranayahlt[Al-Ikhlas][1-4]} +\bigskip +\para{\quranayahfa[Al-Ikhlas][1-4]}{\quranayahen[Al-Ikhlas][1-4]} + +\compare{\quransurahde*} +\compare{\quranayahde[1][1]} +\ToggleBasmalah +\compare{\quranpagede*[2]} + +\end{document} diff --git a/Master/texmf-dist/doc/xelatex/quran-de/quran.png b/Master/texmf-dist/doc/xelatex/quran-de/quran.png Binary files differnew file mode 100644 index 00000000000..f4339119f88 --- /dev/null +++ b/Master/texmf-dist/doc/xelatex/quran-de/quran.png |