summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/onedown.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/onedown/onedown.dtx')
-rw-r--r--macros/latex/contrib/onedown/onedown.dtx33
1 files changed, 23 insertions, 10 deletions
diff --git a/macros/latex/contrib/onedown/onedown.dtx b/macros/latex/contrib/onedown/onedown.dtx
index 92ffa66155..7f1afcfc7a 100644
--- a/macros/latex/contrib/onedown/onedown.dtx
+++ b/macros/latex/contrib/onedown/onedown.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2018 by Jacob Wiersma <jack46@online.de>
+% Copyright (C) 2018 by Jacob Wiersma <jack46@schuli-wirsi.de>
% ---------------------------------------------------------------------------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -24,10 +24,10 @@
\ProvidesFile{onedown.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2014/05/01]
-%<package>\def\ODwstyleversion{1.6}\def\ODwstyledate{2021/04/27}
+%<package>\def\ODwstyleversion{1.7}\def\ODwstyledate{2023/12/07}
%<package>\ProvidesPackage{onedown}
%<package> [\ODwstyledate\space v\ODwstyleversion\space
-%<package> Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2021]
+%<package> Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2023]
%
%<*driver>
\PassOptionsToPackage{shorthands=off}{babel}
@@ -35,12 +35,13 @@
% with draft no hyperrefs
\documentclass[a4paper,12pt,%
german,dutch,french,swedish,english]{ltxdoc}
+% Of all available languages, we use only thes few in some examples
% the package |shortvrb| is auto-loaded, providing |...| as shorthand
\usepackage[utf8]{inputenc}
%
\usepackage[T1]{fontenc}
\usepackage{babel}
-\usepackage{onedown}[2021/04/27]
+\usepackage{onedown}[2023/12/07]
\usepackage[normalem]{ulem}% for strikeout todos that are done
\usepackage{needspace}% keep contiguous lines on one page
\usepackage[inline]{enumitem}% Control various parameters of lists
@@ -212,7 +213,7 @@ german,dutch,french,swedish,english]{ltxdoc}
%</driver>
% \fi
%
-% \CheckSum{3810}
+% \CheckSum{3814}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -399,6 +400,10 @@ german,dutch,french,swedish,english]{ltxdoc}
% - Translation files are named like: ODw-German.dict\\
% - Adapted the code to read them on the fly
% }
+% \changes{v1.7}{2023/12/07}{\\
+% - Added support for the italian language \\
+% - Added an example showing how to define own colors for card symbols
+% }
% ^^A Note: ^^21 denotes the exclamation mark (!)
% ^^A Note: Char ' is not allowed within changes
%
@@ -757,14 +762,15 @@ pdflatex --shell-escape onedown.dtx
% translate often appearing brigde terms like e.g.\ \emph{declarer}. It does
% so by looking up these terms in the special |ODw|-dictionary for the
% active language. The current \OneDown version supports English, German,
-% Dutch, French, Spanish, most Scandinavian languages and Turkish. Some
+% Dutch, French, Italian, Spanish, most Scandinavian languages and Turkish. Some
% dictionaries may not be complete or may contain errors, please send
% corrections/additions to the maintainer.
%
% In order to make \packname{translator} do its job (automatically select the
-% right translation when the current language switches to another), it is
-% necessary to specify the languages with the |documentclass|, and not with
-% |babel|!
+% right translation when the current language switches to another),
+% \textbf{\larger it is
+% necessary to specify the languages with the \texttt{documentclass}, and not with
+% \texttt{babel}! }
%
% \needspace{5\baselineskip}
%
@@ -1731,6 +1737,8 @@ pdflatex --shell-escape onedown.dtx
% \subsection{ToDo}
%
% \begin{itemize}[itemsep=-2mm]
+% \item \textbf{Correct the description how to enable automatic language
+% switching (since we use package translator)}
% \item Add the High Points to card diagrams (like Turnier in KA)
% \item Check if |\def\xspace{}| is also needed in bidding...?
% \item Make a template for showing 16 hands on 1 DIN A4 (3x5+1 or 4x4
@@ -1765,6 +1773,7 @@ pdflatex --shell-escape onedown.dtx
%
% \StopEventually{}
%
+% \newpage
% \section{Implementation}
%
% \iffalse
@@ -1785,7 +1794,6 @@ pdflatex --shell-escape onedown.dtx
moresize,% add \HUGE and \ssmall to font-sizes
relsize,% relative font-sizes. (e.g. \smaller)
makecmds,% needed for provideenvironment
-% expl3,% needed for LaTeX3 packages (xparse)
xparse,% optional params and starred commands
xspace,% handling of spacing behind a command
calc,% makes calculations and lengths easier
@@ -5971,6 +5979,11 @@ pdflatex --shell-escape onedown.dtx
\PackageInfo{ODw}{Dictionary ODw-German.dict loaded}
}{\PackageWarning{ODw}{Dictionary ODw-German.dict missing}}}%
%
+ {italian}{\IfFileExists{ODw-Italian.dict}%
+ {\uselanguage{Italian}%
+ \PackageInfo{ODw}{Dictionary ODw-Italian.dict loaded}
+ }{\PackageWarning{ODw}{Dictionary ODw-Italian.dict missing}}}%
+%
{norsk}{\IfFileExists{ODw-Norsk.dict}%
{\uselanguage{Norsk}%
\PackageInfo{ODw}{Dictionary ODw-Norsk.dict loaded}