texlive[60388] Master/texmf-dist: covington (1sep21)
commits+karl at tug.org
commits+karl at tug.org
Wed Sep 1 22:45:53 CEST 2021
Revision: 60388
http://tug.org/svn/texlive?view=revision&revision=60388
Author: karl
Date: 2021-09-01 22:45:53 +0200 (Wed, 01 Sep 2021)
Log Message:
-----------
covington (1sep21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/covington/README
trunk/Master/texmf-dist/doc/latex/covington/covington.pdf
trunk/Master/texmf-dist/doc/latex/covington/covington.tex
trunk/Master/texmf-dist/tex/latex/covington/covington.sty
Modified: trunk/Master/texmf-dist/doc/latex/covington/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/covington/README 2021-09-01 20:44:28 UTC (rev 60387)
+++ trunk/Master/texmf-dist/doc/latex/covington/README 2021-09-01 20:45:53 UTC (rev 60388)
@@ -31,6 +31,11 @@
== CHANGES ==
+* Version 2.7 (2021-09-01):
+ - Add postamble gloss macro option for arbitrary text that is appended to the free
+ translation line (after closing quotation marks).
+ - Add glosslinepostamble command to markup this text.
+
* Version 2.6 (2021-05-19):
- New length \exampleind to adjust (increase/decrease) the indentation (left margin)
of examples.
Modified: trunk/Master/texmf-dist/doc/latex/covington/covington.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/covington/covington.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/covington/covington.tex 2021-09-01 20:44:28 UTC (rev 60387)
+++ trunk/Master/texmf-dist/doc/latex/covington/covington.tex 2021-09-01 20:45:53 UTC (rev 60388)
@@ -94,8 +94,8 @@
%
% Titling
%
-\def\pversion{Version 2.6}
-\def\pdate{May 19, 2021}
+\def\pversion{Version 2.7}
+\def\pdate{September 1, 2021}
\title{\textbf{The \cvt\ Package\\Macros for Linguistics}}
\author{Michael A. Covington \and J\"urgen Spitzm\"uller\thanks{Current maintainer.
@@ -565,12 +565,16 @@
Valid values are \LaTeX\ font switches such as \jfcsmacro{itshape}, \jfcsmacro{bfseries} etc.
\item[\joption{preamble=\{\jparam{arbitrary text}\}}] Arbitrary text that is inserted on an own line
before the interlinearized gloss. This might be useful, for instance, to give context information,
- to specify the language or the source in case of cited glosses.
+ to specify the language or the source in case of cited glosses.
The advantages over just adding a line manually above the gloss are that you can globally set the
markup (see sec.~\ref{sec:glossfc}), and that such lines are kept on the same page than the gloss
with the option \joption{noglossbreaks} (at least as long as preamble does not exceed one line).
Furthermore, this option is the only way to add such text when the \joption{ex} option is used.
+
+ \item[\joption{postamble=\{\jparam{arbitrary text}\}}] Arbitrary text that is appended to the translation line, but after
+ the closing quotation mark. This might be useful to add a footnote or some additional text to the translation
+ line, after the actual translation.
\end{description}
%
If given as optional arguments to a \jcsmacro{digloss} or \jcsmacro{trigloss} macro, the options will only apply to
@@ -709,11 +713,17 @@
The markup of the preamble line (which is not marked up at all by default) can be customized
by redefining the macro:
-\begin{lstlisting}[moretexcs={glosslinetrans,covenquote}]
+\begin{lstlisting}[moretexcs={glosslinepreamble}]
\newcommand*\glosslinepreamble[1]{#1}
\end{lstlisting}
+Analogously, the markup of the postamble text (which is not marked up at all by default either)
+can be customized by redefining the macro:
+\begin{lstlisting}[moretexcs={glosslinepostamble}]
+\newcommand*\glosslinepostamble[1]{#1}
+\end{lstlisting}
+
\subsection{Examples}\label{sec:glossex}
This section gives some further examples. First, a sentence with three lines aligned,
@@ -767,7 +777,7 @@
\end{example}
\end{lstlisting}
%
-And finally, an example that uses the \emph{Leipzig glossing rules} (\cite{leipzig},
+Here is an example that uses the \emph{Leipzig glossing rules} (\cite{leipzig},
cited example: p.~2) and also exemplifies the use of \joption{preamble}:
\digloss[ex, preamble={Lezgian (Haspelmath 1993:207)}]
{Gila abur-u-n ferma hami\xA8alu\v{g} g\xFC\v{g}\xFCna amuq'-da-\v{c}.}
@@ -786,7 +796,21 @@
\LaTeX\ package \cite{leipzig-ltx} that facilitates the use of the gloss abbreviations that have
been entered and marked-up manually here.
+The final example exemplifies the use of \joption{postamble}. In what follows we add a footnote to the
+translation line, but outside the translation (as marked-up by quotation marks):
+\digloss[ex, postamble={\footnote{Yes, really!}}]
+{Mein Luftkissenboot ist voller Aale}
+{My hovercraft is {full of} eels}
+{Do you have matches?}
+This has been input as follows:
+\begin{lstlisting}[moretexcs={digloss},basicstyle={\footnotesize\ttfamily}]
+\digloss[ex, postamble={\footnote{Yes, really!}}]
+ {Mein Luftkissenboot ist voller Aale}
+ {My hovercraft is {full of} eels}
+ {Do you have matches?}
+\end{lstlisting}
+
\section{Phrase structure rules}
To print phrase structure rules such as \psr{S}{NP~VP} you can use \texttt{covington's} macro
@@ -1104,6 +1128,14 @@
\section{Release history}
+\subsection*{2.7 (2021 September 1)}
+
+\begin{itemize}
+\item Add \joption{postamble} gloss macro option for arbitrary text that is appended to the free
+ translation line (after closing quotation marks). See sec.~\ref{sec:gmacros}.
+\item Add \jcsmacro{glosslinepostamble} command to markup this text. See sec.~\ref{sec:glossfc}.
+\end{itemize}
+
\subsection*{2.6 (2021 May 19)}
\begin{itemize}
Modified: trunk/Master/texmf-dist/tex/latex/covington/covington.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/covington/covington.sty 2021-09-01 20:44:28 UTC (rev 60387)
+++ trunk/Master/texmf-dist/tex/latex/covington/covington.sty 2021-09-01 20:45:53 UTC (rev 60388)
@@ -42,8 +42,8 @@
%%% Metadata
%%%
-\def\filedate{2021/05/19}
-\def\fileversion{2.6}
+\def\filedate{2021/09/01}
+\def\fileversion{2.7}
\def\filename{covington.sty}
% Force redefinition of environments?
@@ -413,6 +413,10 @@
\def\cov at glp{}
\newcommand*\glosspreamble[1]{\def\cov at glp{#1}}
+% 2021-09-01: optional trailing gloss text (non-interlinearized)
+\newcommand*\glosslinepostamble[1]{#1}
+\def\cov at glpst{}
+
\def\gll{% % Introduces 2-line text-and-gloss.
\begin{flushleft}
\vskip\baselineskip% % Added 1992 Nov 8 to force single spacing
@@ -473,6 +477,7 @@
\def\glend{%
\end{flushleft}%
\def\cov at glp{}%
+ \def\cov at glpst{}%
} % Ends the gloss environment.
% The following TeX code is adapted, with permission, from:
@@ -719,6 +724,11 @@
\define at key{covington}{preamble}{\def\cov at lglp{#1}}
\define at key{gcovington}{preamble}{\def\cov at gglp{#1}}
%
+% 5. Gloss postamble text
+\def\cov at gglpst{}
+\define at key{covington}{postamble}{\def\cov at lglpst{#1}}
+\define at key{gcovington}{postamble}{\def\cov at gglpst{#1}}
+%
% General setting option
\newcommand*\setglossoptions[1]{\setkeys{gcovington}{#1}}
%
@@ -743,13 +753,16 @@
\@ifundefined{lglosslinethree}{}{\def\glosslinethree{\lglosslinethree}}%
\@ifundefined{cov at lglp}{}{\def\cov at gglp{\cov at lglp}}%
\ifx\cov at gglp\empty\else\def\cov at glp{\cov at gglp}\fi%
+ \@ifundefined{cov at lglpst}{}{\def\cov at gglpst{\cov at lglpst}}%
+ \ifx\cov at gglpst\empty\else\def\cov at glpst{\cov at gglpst}\fi%
\xgll #2\xgle
#3\xgle
\ifgtright
- \gln #4
+ \gln #4%
\else
- \glot{#4}
+ \glot{#4}%
\fi
+ \ifx\cov at glpst\empty\else\glosslinepostamble{\cov at glpst}\cov at nopagebreak\fi%
\glend
\ifgexample
\end{covexample}
@@ -781,14 +794,17 @@
\@ifundefined{lglosslinethree}{}{\def\glosslinethree{\lglosslinethree}}%
\@ifundefined{cov at lglp}{}{\def\cov at gglp{\cov at lglp}}%
\ifx\cov at gglp\empty\else\def\cov at glp{\cov at gglp}\fi%
+ \@ifundefined{cov at lglpst}{}{\def\cov at gglpst{\cov at lglpst}}%
+ \ifx\cov at gglpst\empty\else\def\cov at glpst{\cov at gglpst}\fi%
\xglll #2\xgle
#3\xgle
#4\xgle
\ifgtright
- \gln #5
+ \gln #5%
\else
- \glot{#5}
+ \glot{#5}%
\fi
+ \ifx\cov at glpst\empty\else\glosslinepostamble{\cov at glpst}\cov at nopagebreak\fi%
\glend
\ifgexample
\end{covexample}
More information about the tex-live-commits
mailing list.