summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-05-15 19:14:36 +0000
committerKarl Berry <karl@freefriends.org>2024-05-15 19:14:36 +0000
commitd92d8ffbe8940920768014492754250c86c1214d (patch)
treec54ea151d2cc2b83ad648714809333a4ee0df5b3 /Master
parentb293bb424a0d8b9fbff26f8dd008a64a190e5ef6 (diff)
tblr-extras (15may24)
git-svn-id: svn://tug.org/texlive/trunk@71270 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/tblr-extras/README.md12
-rw-r--r--Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdfbin26714 -> 29492 bytes
-rw-r--r--Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex19
-rw-r--r--Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty87
4 files changed, 90 insertions, 28 deletions
diff --git a/Master/texmf-dist/doc/latex/tblr-extras/README.md b/Master/texmf-dist/doc/latex/tblr-extras/README.md
index 4c7dc3ce22d..373fedb6a1a 100644
--- a/Master/texmf-dist/doc/latex/tblr-extras/README.md
+++ b/Master/texmf-dist/doc/latex/tblr-extras/README.md
@@ -7,12 +7,12 @@ license or (at your option) any later version. The latest version
of this license is in
http://www.latex-project.org/lppl.txt
# Usage
-Just use \usepackage{tblr-extras} after loading tabularray.
-Activate the libraries using \UseTblrLibrary command
+Just use `\usepackage{tblr-extras}` after loading tabularray.
+Activate the libraries using `\UseTblrLibrary` command.
## Caption Library
Use caption package to typeset tabularray tall and long tabulars captions.
-Enable this library with \UseTblrLibrary{caption}
+Enable this library with `\UseTblrLibrary{caption}`
## Babel Library
-Translate contfoot and conthead to current babel language.
-Curremtle only supports ngerman, french and spanish translations.
-Enable this library with \UseTblrLibrary{babel} \ No newline at end of file
+Translate `contfoot` and `conthead` to current `babel`/`polyglossia` language.
+Currently only supports ngerman, french, spanish, russian and ukrainian translations.
+Enable this library with `\UseTblrLibrary{babel}`
diff --git a/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf b/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
index 5f1292e5c75..9262427895e 100644
--- a/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
+++ b/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex b/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex
index f15a58f8c48..308c0e232a0 100644
--- a/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex
+++ b/Master/texmf-dist/doc/latex/tblr-extras/tblr-extras-doc-EN.tex
@@ -1,6 +1,6 @@
% -----------------------------------------------------------------------
%%% tblr-extras-doc: Documentation for tblr-extras package.
-%%% Version : 1.0 - 2024-02-10
+%%% Version : 1.1 - 2024-05-13
%%% Copyright : 2024 (c) Manuel E. Merino <manuel.merino.pe@gmail.com>
%%% License : The LaTeX Project Public License 1.3c
% -----------------------------------------------------------------------
@@ -31,7 +31,7 @@
\usepackage{parskip}
\usepackage[hidelinks]{hyperref}
-\newcommand{\Version}{1.0}
+\newcommand{\Version}{1.1}
\NewDocumentCommand{\tblrextras}{}{\textbf{\color{udep}tblr-extras}}
@@ -40,7 +40,7 @@
\centering
\LARGE\textbf{Package \color{udep}tblr-extras}\par
\large Manuel E. Merino\par
- \texttt{v\Version{} - 10/02/2024}\par
+ \texttt{v\Version{} - 13/06/2024}\par
\normalsize Extra libraries for tabularray package.\par
\endgroup
\tableofcontents
@@ -68,7 +68,7 @@
The \tblrextras{} package redefines the \texttt{conthead-text} and \textbf{contfoot-text} for the \texttt{longtblr} environment, using the current babel language.
- Currently only spanish, ngerman and english variants are supported.
+ Currently only spanish, ngerman, russian, ukrainian and french variants are supported.
\section{Bug reports and suggestions}
@@ -78,6 +78,17 @@
The \tblrextras{} package and all its included files are licensed under the LPPL v1.3c or later.
+ \section{Changelog}
+
+ v1.1 - Thanks sgolovan.
+ \begin{itemize}
+ \item Improved the babel library using language hooks.
+ \item Added support for polyglossia package.
+ \item Added ukrainian and russian translations.
+ \end{itemize}
+
+ v1.0 - Initial release.
+
\vfill
\centering
\footnotesize \tblrextras{} -- {\copyright} 2024 Manuel E. Merino. Licensed under LPPL v1.3c.
diff --git a/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty b/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty
index 09cd5ce16ce..a6742f4a105 100644
--- a/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty
+++ b/Master/texmf-dist/tex/latex/tblr-extras/tblr-extras.sty
@@ -1,6 +1,6 @@
% -----------------------------------------------------------------------
%%% tblr-extras: Extra libraries for tabularray package.
-%%% Version : 1.0 - 2024-02-10
+%%% Version : 1.1 - 2024-05-13
%%% Copyright : 2024 (c) Manuel E. Merino <manuel.merino.pe@gmail.com>
%%% License : The LaTeX Project Public License 1.3c
% -----------------------------------------------------------------------
@@ -18,7 +18,7 @@
% The Current Maintainer of this work is Manuel E. Merino
% -----------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}[2018-04-01]
-\ProvidesPackage{tblr-extras}[2024/02/06 package tblr-extras]
+\ProvidesPackage{tblr-extras}[2024/05/13 package tblr-extras]
\RequirePackage{tabularray}
%% ----------------------------------------------------------------------
%% TblrLibrary caption - Use caption package to typeset tabularray tall
@@ -34,7 +34,7 @@
%% Check if a KomaClass is loaded and issue a warning for caption position setup
\@ifundefined{KOMAClassName}
{}
- {\PackageWarningNoLine{tblr-extras}{KOMAScript class detected. Setup caption position using 'captions=<option>'}}
+ {\PackageWarningNoLine{tblr-extras}{KOMAScript class detected. Setup caption position using 'captions=option'}}
\SetTblrOuter[talltblr,longtblr]{headsep=0pt}
\DefTblrTemplate{firsthead}{default}{%
\addtocounter{table}{-1}%
@@ -54,21 +54,72 @@
\SetTblrTemplate{caption-lot}{empty}
}
%% ----------------------------------------------------------------------
-%% TblrLibrary babel - Translate contfoot and conthead to current babel
-%% language. Supports: ngerman, french and spanish translations.
+%% TblrLibrary babel - Translate contfoot and conthead to current babel/polyglossia
+%% language. Supports: ngerman, french, spanish, russian and ukrainian translations.
+%% Check engine
+\newif\if@unicode@engine
+\ifdefined\luatexversion
+ \@unicode@enginetrue
+\else\ifdefined\XeTeXrevision
+ \@unicode@enginetrue
+\fi\fi
\NewTblrLibrary{babel}
{%
- \RequirePackage{babel,iflang}
- \IfLanguagePatterns{spanish}{%
- \DefTblrTemplate{contfoot-text}{default}{Continúa en la página siguiente}
- \DefTblrTemplate{conthead-text}{default}{(Continuación)}
- }{}
- \IfLanguagePatterns{ngerman}{%
- \DefTblrTemplate{contfoot-text}{default}{Fortsetzung auf der nächsten Seite}
- \DefTblrTemplate{conthead-text}{default}{(Fortsetzung)}
- }{}
- \IfLanguagePatterns{french}{%
- \DefTblrTemplate{contfoot-text}{default}{Suite à la page suivante}
- \DefTblrTemplate{conthead-text}{default}{(Suite)}
- }{}
+ \AddToHook{begindocument/before}{%
+ \@ifpackageloaded{babel}{}{%
+ \@ifpackageloaded{polyglossia}{}{%
+ \RequirePackage{babel}
+ }
+ }
+ \ifdefined\captionsspanish
+ \addto\captionsspanish{%
+ \DefTblrTemplate{contfoot-text}{default}{Continúa en la página siguiente}%
+ \DefTblrTemplate{conthead-text}{default}{(Continuación)}%
+ }
+ \fi
+ \ifdefined\captionsngerman
+ \addto\captionsngerman{%
+ \DefTblrTemplate{contfoot-text}{default}{Fortsetzung auf der nächsten Seite}%
+ \DefTblrTemplate{conthead-text}{default}{(Fortsetzung)}%
+ }
+ \fi
+ \ifdefined\captionsgerman
+ \addto\captionsgerman{%
+ \DefTblrTemplate{contfoot-text}{default}{Fortsetzung auf der nächsten Seite}%
+ \DefTblrTemplate{conthead-text}{default}{(Fortsetzung)}%
+ }
+ \fi
+ \ifdefined\captionsfrench
+ \addto\captionsfrench{%
+ \DefTblrTemplate{contfoot-text}{default}{Suite à la page suivante}%
+ \DefTblrTemplate{conthead-text}{default}{(Suite)}%
+ }
+ \fi
+ \ifdefined\captionsrussian
+ \if@unicode@engine
+ \addto\captionsrussian{%
+ \DefTblrTemplate{contfoot-text}{default}{Продолжение на следующей странице}%
+ \DefTblrTemplate{conthead-text}{default}{(продолжение)}%
+ }
+ \else
+ \addto\captionsrussian{%
+ \DefTblrTemplate{contfoot-text}{default}{\cyr\CYRP\cyrr\cyro\cyrd\cyro\cyrl\cyrzh\cyre\cyrn\cyri\cyre\ \cyrn\cyra\ \cyrs\cyrl\cyre\cyrd\cyru\cyryu\cyrshch\cyre\cyrishrt\ \cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyre}%
+ \DefTblrTemplate{conthead-text}{default}{(\cyr\cyrp\cyrr\cyro\cyrd\cyro\cyrl\cyrzh\cyre\cyrn\cyri\cyre)}%
+ }
+ \fi
+ \fi
+ \ifdefined\captionsukrainian
+ \if@unicode@engine
+ \addto\captionsukrainian{%
+ \DefTblrTemplate{contfoot-text}{default}{Продовження на наступній сторінці}%
+ \DefTblrTemplate{conthead-text}{default}{(продовження)}%
+ }
+ \else
+ \addto\captionsukrainian{%
+ \DefTblrTemplate{contfoot-text}{default}{\cyr\CYRP\cyrr\cyro\cyrd\cyro\cyrv\cyrzh\cyre\cyrn\cyrn\cyrya\ \cyrn\cyra\ \cyrn\cyra\cyrs\cyrt\cyru\cyrp\cyrn\cyrii\cyrishrt\ \cyrs\cyrt\cyro\cyrr\cyrii\cyrn\cyrc\cyrii}%
+ \DefTblrTemplate{conthead-text}{default}{(\cyr\cyrp\cyrr\cyro\cyrd\cyro\cyrv\cyrzh\cyre\cyrn\cyrn\cyrya)}%
+ }
+ \fi
+ \fi
+ }
}