summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/reledmac
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-07-31 21:08:57 +0000
committerKarl Berry <karl@freefriends.org>2017-07-31 21:08:57 +0000
commit89ca7ced47afa7482445dfbb4fda99f93d1ce4b4 (patch)
tree4ebb5f5c70ebff40aaa2b7cffa7195a2fc5ba834 /Master/texmf-dist/source/latex/reledmac
parentb1509e1635c5c6bd6968b7b25122342aad89edcb (diff)
reledmac (31jul17)
git-svn-id: svn://tug.org/texlive/trunk@44929 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/reledmac')
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledmac.dtx40
-rw-r--r--Master/texmf-dist/source/latex/reledmac/reledpar.dtx8
2 files changed, 37 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
index feab9ddca38..5ee3c68d709 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledmac.dtx
@@ -482,6 +482,8 @@
% \changes{v2.22.1}{2017/07/07}{Compatibility with new version of \protect\reledpar.}
% \changes{v2.22.1}{2017/07/07}{Fix bug with some commands inside \protect\cs{sameword}.}
% \changes{v2.22.2}{2017/07/17}{Do not print footnotes at the first run.}
+% \changes{v2.23.0}{2017/07/31}{Add \protect\option{swcaseinsensitive} option}
+% \changes{v2.23.0}{2017/07/31}{Optimisation of the code added on v2.22.2 to not print footnotes at the first run.}
% Typeset scholarly editions with \LaTeX\thanks{This file (\dtxfilename)
% has version number \fileversion, last revised \filedate.}}
%
@@ -770,6 +772,7 @@
% \item The option does not change the default \LaTeX auxiliary files (.aux, .toc, \ldots).
% \end{enumerate}
% \item[eledmac-compat] help to migrate from \eledmac to \reledmac (see \reff{eledmac-compat}).
+% \item[swcaseinsensitive] make \cs{sameword} command case insensitive.
% \item[nopenalties] must be called in some cases when using paragraphed endnotes (\reff{nopenalties)}
% \item[nopbinverse] prevents page break within verse environment.
% \item[noquotation] by default, the quotation environment is redefined within numbered text. You can disable this redefinition with \verb|noquotation| (see \reff{noquotation}).
@@ -1541,6 +1544,12 @@
% \end{verbatim}
% In this example, \verb+aut+ will be followed, in the critical note, by the exponent \verb+2+ if it is printed in the same line as the first \verb+aut+, but it will not if it is printed in a different line. The number is printed only after the second run.
%
+% \subsubsection{Case setting}
+% By default, \cs{sameword} is sensitive to the case. E.g. \enquote{foo} is considered as a different word to \enquote{Foo}.
+%
+% You can use the \option{swcaseinsensitive} when loading the package to make \cs{sameword} insensitive to the case, i.e.
+% to consider \enquote{foo} as identical \enquote{Foo}.
+%
% \subsubsection{Notes about input encoding with UTF-8 processor}
%
% If you use UTF-8 processor, like \XeLaTeX\ or \LuaLaTeX, there should not be any glitches.
@@ -4021,7 +4030,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledmac}[2017/07/07 v2.22.1 typesetting critical editions]%
+\ProvidesPackage{reledmac}[2017/07/31 v2.23.0 typesetting critical editions]%
% \end{macrocode}
%
% \subsection{Package options}
@@ -4123,6 +4132,11 @@
\DeclareOptionX{auxdir}{%
\xdef\l@auxdir{#1/}%
}%
+
+\newif\ifsw@caseinsensitive%
+\DeclareOptionX{swcaseinsensitive}{%
+ \sw@caseinsensitivetrue%
+}%
% \end{macrocode}
% We use the starred form of \protect\cs{ProcessOptionsX} which executes options in
% the order listed in the source file: class options, then listed package
@@ -6764,7 +6778,7 @@
% It is written in the file list.
% If we process a line-list file which used a older version, that means the commands used inside are deprecated, and we can't use them.
% \begin{macrocode}
-\newcommand{\this@line@list@version}{6}%
+\newcommand{\this@line@list@version}{7}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\line@list@stuff}
@@ -6776,8 +6790,11 @@
\newcommand*{\line@list@stuff}[1]{%
% \end{macrocode}
% First, define a toggle set to true when we are not in the first run.
- \global\newtoggle{notfirstrun@#1}%
% \begin{macrocode}
+ \global\newtoggle{notfirstrun@#1}%
+ \IfFileExists{\l@auxdir#1}%
+ {\global\toggletrue{notfirstrun@#1}}%
+ {\global\togglefalse{notfirstrun@#1}}%
% \end{macrocode}
% Use the commands of the previous section to interpret the
% line-list file from the last run.
@@ -6798,7 +6815,6 @@
\global\first@linenum@out@false%
\immediate\openout\linenum@out=\l@auxdir#1\relax%
\immediate\write\linenum@out{\string\line@list@version{\this@line@list@version}}%
- \immediate\write\linenum@out{\string\global\string\toggletrue{notfirstrun@#1}}%
\ifl@dpaging%
\immediate\write\linenum@out{\string\@par@sync@option{\@par@this@sync@option}}%
\fi%
@@ -6814,7 +6830,6 @@
\closeout\linenum@out%
\openout\linenum@out=\l@auxdir#1\relax%
\write\linenum@out{\string\line@list@version{\this@line@list@version}}%
- \protected@write\linenum@out{}{\string\global\string\toggletrue{notfirstrun@#1}}%
\ifl@dpaging%
\write\linenum@out{\string\@par@sync@option{\@par@this@sync@option}}%
\fi%
@@ -7800,11 +7815,20 @@
\let\textsc\@firstofone%
\let\framebox\@firstofone%
% \end{macrocode}
-%. \begin{macrocode}
+% Using case sensibility option.
+% \begin{macrocode}
+ \ifsw@caseinsensitive%
+ \def\@tmpa##1{\lowercase{##1}}%
+ \else%
+ \def\@tmpa##1{##1}%
+ \fi%
+% \end{macrocode}
+% And now, define \cs{sw@txt}.
+% \begin{macrocode}
\ifxetex%
- \xdef\sw@txt{#1}%
+ \@tmpa{\xdef\sw@txt{#1}}%
\else%
- \expandafter\xdef\expandafter\sw@txt\expandafter{\detokenize{#1}}%
+ \@tmpa{\expandafter\xdef\expandafter\sw@txt\expandafter{\detokenize{#1}}}%
\fi%
\endgroup%
}%
diff --git a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
index fb8284ee46e..1eb7cd45361 100644
--- a/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
+++ b/Master/texmf-dist/source/latex/reledmac/reledpar.dtx
@@ -309,6 +309,7 @@
% \changes{v2.19.2}{2017/07/07}{\protect\option{continuousnumberingwithcolumns} works also for pstart number.}
% \changes{v2.19.3}{2017/07/17}{Fix a bug with \protect\option{nopbinverse} when using consecutive \protect\cs{Pages}.}
% \changes{v2.19.3}{2017/07/17}{Do not print footnotes at the first run.}
+% \changes{v2.19.4}{2017/07/31}{Optimisation of the code to not print footnotes at the first run.}
% ^^A PW added following as the definitions are at some unknown elsewhere
%
% \newcommand{\egstart}{%
@@ -1286,7 +1287,7 @@
% \begin{macrocode}
%<*code>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{reledpar}[2017/07/07 v2.19.2 reledmac extension for parallel texts]%
+\ProvidesPackage{reledpar}[2017/07/07 v2.19.4 reledmac extension for parallel texts]%
% \end{macrocode}
% \subsection{Package's requirement}
@@ -2807,13 +2808,15 @@
% \begin{macrocode}
\newcommand*{\line@list@stuffR}[1]{%
\global\newtoggle{notfirstrun@#1}%
+ \IfFileExists{\l@auxdir#1}%
+ {\global\toggletrue{notfirstrun@#1}}%
+ {\global\togglefalse{notfirstrun@#1}}%
\read@linelist{#1}%
\iffirst@linenum@out@R
\immediate\closeout\linenum@outR
\global\first@linenum@out@Rfalse
\immediate\openout\linenum@outR=\l@auxdir#1%
\immediate\write\linenum@outR{\string\line@list@version{\this@line@list@version}}%
- \immediate\write\linenum@outR{\string\global\string\toggletrue{notfirstrun@#1}}%
\ifl@dpaging%
\immediate\write\linenum@outR{\string\@par@sync@option{\@par@this@sync@option}}%
\fi%
@@ -2823,7 +2826,6 @@
\fi%
\closeout\linenum@outR%
\openout\linenum@outR=\l@auxdir#1%
- \protected@write\linenum@outR{}{\string\global\string\toggletrue{notfirstrun@#1}}%
\fi}
% \end{macrocode}