texlive[45122] Master/texmf-dist: quran (24aug17)

commits+karl at tug.org commits+karl at tug.org
Fri Aug 25 00:03:43 CEST 2017


Revision: 45122
          http://tug.org/svn/texlive?view=revision&revision=45122
Author:   karl
Date:     2017-08-25 00:03:43 +0200 (Fri, 25 Aug 2017)
Log Message:
-----------
quran (24aug17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/xelatex/quran/README
    trunk/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
    trunk/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
    trunk/Master/texmf-dist/tex/xelatex/quran/quran.sty

Modified: trunk/Master/texmf-dist/doc/xelatex/quran/README
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/quran/README	2017-08-24 22:03:30 UTC (rev 45121)
+++ trunk/Master/texmf-dist/doc/xelatex/quran/README	2017-08-24 22:03:43 UTC (rev 45122)
@@ -1,6 +1,6 @@
 _____________________
 The quran package
-v1.252
+v1.261
 
 The package is prepared for typesetting the Holy Quran. This work is inspired
 by lipsum and ptext packages, provides several macros for typesetting the whole or 
@@ -8,7 +8,7 @@
 
 For more information, please see the documentation.
 
-Current version release date: 2017/02/28
+Current version release date: 2017/08/22
 ___________________
 Seiied-Mohammad-Javad Razvian
 javadr at gmail.com

Modified: trunk/Master/texmf-dist/doc/xelatex/quran/quran-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex	2017-08-24 22:03:30 UTC (rev 45121)
+++ trunk/Master/texmf-dist/doc/xelatex/quran/quran-doc.tex	2017-08-24 22:03:43 UTC (rev 45122)
@@ -1,9 +1,7 @@
 \documentclass{ltxdoc}
 
-%\usepackage{caption}
 \usepackage{forloop}
 \usepackage{pgf}
-%\usepackage{pgfcalendar}
 \usepackage{framed}
 \usepackage{holtxdoc}
 \usepackage{url}
@@ -13,6 +11,14 @@
 \usetikzlibrary{calc}
 \usepackage{fontspec}
 \newfontfamily\quran[Script=Arabic]{Scheherazade}
+\hypersetup{%
+  plainpages=false,%
+  bookmarksnumbered,%
+  pdftitle={The quran Package},%
+  pdfkeywords={quran, surah, ayah, juz, hizb, ruku, manzil},%
+  pdfauthor={Seiied-Mohammad-Javad Razavian},%
+  baseurl={http://mirrors.ctan.org/macros/xetex/latex/quran/doc/quran-doc.pdf},%
+}
 % because of definition of \XeTeX and \XeLaTeX symbols in bidi, I should undef these macro that are also defined in holtxdoc package. 
 \makeatletter
 \bidi at undef\XeTeX
@@ -74,7 +80,7 @@
 The \xpackage{quran} Package\footnote{to one who has devoted his life to Quran}}
 \author{Seiied Mohammad Javad Razavian\\\xemail{javadr at gmail.com}}
 
-\date{February 28, 2017}
+\date{August 22, 2017}
 
 \begin{document}
 \maketitle
@@ -81,7 +87,7 @@
 
 \begin{framed}
 This manual is incomplete and the package is under development. \par 
-\centerline{ver 1.252}
+\centerline{ver 1.261}
 \end{framed}
 
 \tableofcontents
@@ -99,7 +105,7 @@
 terminal and to the log file, too. The information is something like:
 
 \begin{lstlisting}[style=BashInputStyle, language=tex]
-Package: quran 2016/12/25 v1.251 An easy way to typeset the whole or any part of The Holy Quran
+Package: quran 2017/08/22 v1.261 An easy way to typeset the whole or any part of The Holy Quran
 \end{lstlisting}
 
 \section{Typesetting The Holy Quran}
@@ -512,6 +518,11 @@
 \preto\qurantext{\quran}
 \end{lstlisting}
 
+    By setting default font as above, if you want to use \cs{quratext}, you have to enclose it in curly braces. If you don't, 
+    it will affect the following text font. 
+\begin{lstlisting}[style=BashInputStyle]
+{\qurantext[x-y]}
+\end{lstlisting}    
     \subsection{How to typeset a portion of the Holy Quran in one paragraph
     with no ayah number without affecting the behaviour of \xpackage{quran} package 
     in other cases?}

Modified: trunk/Master/texmf-dist/tex/xelatex/quran/quran.sty
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/quran/quran.sty	2017-08-24 22:03:30 UTC (rev 45121)
+++ trunk/Master/texmf-dist/tex/xelatex/quran/quran.sty	2017-08-24 22:03:43 UTC (rev 45122)
@@ -23,6 +23,10 @@
 %% to one who has devoted his life to Quran
 %%
 %% Change Log
+%% ver 1.261 ## August 22th, 2017
+%% typo in version number. 
+%% ver 1.26 ## August 22th, 2017
+%% minor improvements, fixes a bug in using \quranayah[x][y] that in this case it hadn't enclosed in group + manual update. 
 %% ver 1.252 ## February 28th, 2017
 %% minor improvements
 %% ver 1.25 and 1.251## December 25th, 2016
@@ -80,11 +84,12 @@
 %% initial commit
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{quran}[2017/02/28 v1.252 An easy way to typeset the whole or any part of The Holy Quran]
+\ProvidesPackage{quran}[2017/08/22 v1.261 An easy way to typeset the whole or any part of The Holy Quran]
 \RequirePackage{biditools}
 \newcounter{qt at count}
 \setcounter{qt at count}{0}
-\newif\ifqt at uthmani
+\newif\ifqt at uthmani%
+\newif\ifqt at basmalah%
 %
 \def\qt at par{\par}%
 \def\basmalah{بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ \qt at par}%
@@ -312,16 +317,15 @@
             \addtocounter{qt at i}{1}%
         \repeat%
 %
-        \newif\if at basmalah%
         \ifx\qt at max\qt at min%
             \ifnum\qt at max=1 %omitting basmalah when only first ayah is requested
-                \@basmalahtrue%
+                \qt at basmalahtrue%
             \else%
-                \@basmalahfalse%
+                \qt at basmalahfalse%
             \fi%
-            \if at basmalah\ToggleBasmalah\fi%
-            \qurantext[\value{qt at start}]%
-            \if at basmalah\ToggleBasmalah\fi%
+            \ifqt at basmalah\ToggleBasmalah\fi%
+            \begingroup\qurantext[\value{qt at start}]\endgroup%
+            \ifqt at basmalah\ToggleBasmalah\fi%
         \else%
             \addtocounter{qt at end}{\value{qt at start}}%
             \addtocounter{qt at end}{-\qt at min}%



More information about the tex-live-commits mailing list