From 45733f5b32fa2e538af0c904d09ee6d614e75f2f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 27 Apr 2021 21:56:41 +0000
Subject: onedown (27apr21)

git-svn-id: svn://tug.org/texlive/trunk@59010 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/onedown/onedown.sty | 338 +++++++++++++-----------
 1 file changed, 184 insertions(+), 154 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/onedown/onedown.sty')

diff --git a/Master/texmf-dist/tex/latex/onedown/onedown.sty b/Master/texmf-dist/tex/latex/onedown/onedown.sty
index a11c65c7008..85bba6706cf 100644
--- a/Master/texmf-dist/tex/latex/onedown/onedown.sty
+++ b/Master/texmf-dist/tex/latex/onedown/onedown.sty
@@ -21,10 +21,10 @@
 %% 2005/12/01 or later.
 %% 
 \NeedsTeXFormat{LaTeX2e}[2014/05/01]
-\def\ODwstyleversion{1.4}\def\ODwstyledate{2019/10/15}
+\def\ODwstyleversion{1.6}\def\ODwstyledate{2021/04/27}
 \ProvidesPackage{onedown}
  [\ODwstyledate\space v\ODwstyleversion\space
- Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2019]
+ Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2021]
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -34,19 +34,19 @@
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage{expl3}[2019/09/21]%   needed for LaTeX3 packages (xparse)
 \RequirePackage{%
   xcolor,%        colorizing symbols \Sp etc.
   textcomp,%      for the numbersign in environment play.
   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
   ifthen,%        easy booleans, tests and loops
   adjustbox,%     stacked boxes in L-/R-Lower captions
-  translations,%  auto-translate terms (e.g. East->Ost)
+  translator,%    auto-translate terms (e.g. East->Ost)
   array,%         actions for tabular column cells
   collcell,%      macro calls for tabular column cells
   pgfopts,%       for keyval opts, loads also pgfkeys
@@ -56,10 +56,9 @@
   pict2e,%        for drawing the compass
 }
 \xspaceaddexceptions{%
-  = \markit \, \suit \GetTranslation
+  = \markit \, \suit \translate
   2 3 4 5 6 7 8 9 T J Q K A
 }
-\LoadDictionaryFor{fallback}{ODw}
 \pgfkeys{/ODw/.is family}
 \def\ODw@set#1{\pgfkeys{/ODw,#1}}
 \ODw@set{colors/.is choice,}
@@ -234,12 +233,12 @@
     \ODw@OtherFont%
     \IfBooleanTF#1{%
       \IfBooleanTF#2
-        {\,[0.3]\GetTranslation{NT-(ODw)}}%
-        {\GetTranslation{No Trump-(ODw)}}%
+        {\,[0.3]\translate{NT-(ODw)}}%
+        {\translate{No Trump-(ODw)}}%
       }{%
       \IfBooleanTF#2
-        {\,[0.3]\GetTranslation{nt-(ODw)}}%
-        {\GetTranslation{no trump-(ODw)}}%
+        {\,[0.3]\translate{nt-(ODw)}}%
+        {\translate{no trump-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -466,50 +465,50 @@
 }% EastWest
 \def\eastwest{\EastWest*}
 \def\ODw@N{%
-  \@ifstar{\GetTranslation{N-(ODw)}}%
-          {\GetTranslation{n-(ODw)}}%
+  \@ifstar{\translate{N-(ODw)}}%
+          {\translate{n-(ODw)}}%
 }
 \def\ODw@E{%
-  \@ifstar{\GetTranslation{E-(ODw)}}%
-          {\GetTranslation{e-(ODw)}}%
+  \@ifstar{\translate{E-(ODw)}}%
+          {\translate{e-(ODw)}}%
 }
 \def\ODw@S{%
-  \@ifstar{\GetTranslation{S-(ODw)}}%
-          {\GetTranslation{s-(ODw)}}%
+  \@ifstar{\translate{S-(ODw)}}%
+          {\translate{s-(ODw)}}%
 }
 \def\ODw@W{%
-  \@ifstar{\GetTranslation{W-(ODw)}}%
-          {\GetTranslation{w-(ODw)}}%
+  \@ifstar{\translate{W-(ODw)}}%
+          {\translate{w-(ODw)}}%
 }
 \def\ODw@NS{\ODw@N--\ODw@S}
 \def\ODw@EW{\ODw@E--\ODw@W}
 \def\ODw@North{%
-  \@ifstar{\GetTranslation{North-(ODw)}}%
-          {\GetTranslation{north-(ODw)}}%
+  \@ifstar{\translate{North-(ODw)}}%
+          {\translate{north-(ODw)}}%
 }
 \def\ODw@East{%
-  \@ifstar{\GetTranslation{East-(ODw)}}%
-          {\GetTranslation{east-(ODw)}}%
+  \@ifstar{\translate{East-(ODw)}}%
+          {\translate{east-(ODw)}}%
 }
 \def\ODw@South{%
-  \@ifstar{\GetTranslation{South-(ODw)}}%
-          {\GetTranslation{south-(ODw)}}%
+  \@ifstar{\translate{South-(ODw)}}%
+          {\translate{south-(ODw)}}%
 }
 \def\ODw@West{%
-  \@ifstar{\GetTranslation{West-(ODw)}}%
-          {\GetTranslation{west-(ODw)}}%
+  \@ifstar{\translate{West-(ODw)}}%
+          {\translate{west-(ODw)}}%
 }
 \NewDocumentCommand\Pass{s t!}{%
   \bgroup%
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Pass!-(ODw)}}%
-        {\GetTranslation{Pass-(ODw)}}%
+        {\translate{Pass!-(ODw)}}%
+        {\translate{Pass-(ODw)}}%
     }{%
      \IfBooleanTF{#2}%
-       {\GetTranslation{pass!-(ODw)}}%
-       {\GetTranslation{pass-(ODw)}}%
+       {\translate{pass!-(ODw)}}%
+       {\translate{pass-(ODw)}}%
     }% TF#1
   \egroup%
   \xspace%
@@ -521,12 +520,12 @@
     \ODw@OtherFont%
     \IfBooleanTF#1{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{AP-(ODw)}}%
-        {\GetTranslation{All pass-(ODw)}}%
+        {\translate{AP-(ODw)}}%
+        {\translate{All pass-(ODw)}}%
     }{%
      \IfBooleanTF{#2}%
-       {\GetTranslation{ap-(ODw)}}%
-       {\GetTranslation{all pass-(ODw)}}%
+       {\translate{ap-(ODw)}}%
+       {\translate{all pass-(ODw)}}%
     }% TF#1
   \egroup%
   \xspace%
@@ -538,12 +537,12 @@
     \ODw@OtherFont%
     \IfBooleanTF#1{%
       \IfBooleanTF{#2}%
-       {\GetTranslation{Dbl-(ODw)}}%
-       {\GetTranslation{Double-(ODw)}}%
+       {\translate{Dbl-(ODw)}}%
+       {\translate{Double-(ODw)}}%
     }{%
      \IfBooleanTF{#2}%
        {X}%
-       {\GetTranslation{double-(ODw)}}%
+       {\translate{double-(ODw)}}%
     }% TF#1
   \egroup%
   \xspace%
@@ -555,12 +554,12 @@
     \ODw@OtherFont%
     \IfBooleanTF#1{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{ReDbl-(ODw)}}%
-        {\GetTranslation{ReDouble-(ODw)}}%
+        {\translate{ReDbl-(ODw)}}%
+        {\translate{ReDouble-(ODw)}}%
    }{%
      \IfBooleanTF{#2}%
        {\mbox{X\kern-0.1em X}}%
-       {\GetTranslation{redouble-(ODw)}}%
+       {\translate{redouble-(ODw)}}%
     }% TF#1
   \egroup%
   \xspace%
@@ -1178,7 +1177,7 @@
 }% ODw@Box
 \def\ODw@BoardText{}
 \NewDocumentCommand\boardtext{s}{%
-  \IfBooleanTF#1{\GetTranslation{Board-(ODw)}:\,\ODw@BoardText}%
+  \IfBooleanTF#1{\translate{Board-(ODw)}:\,\ODw@BoardText}%
                 {\ODw@BoardText}%
 }% boardtext
 \newcommand{\boardnr}[1]{%
@@ -1276,23 +1275,23 @@
 }% handskip
 \def\ODw@DealerText{%
   \bgroup%
-     \ODw@OtherFont\GetTranslation{Dealer-(ODw)}%
+     \ODw@OtherFont\translate{Dealer-(ODw)}%
   \egroup%
 }% ODw@DealerText
 \NewDocumentCommand\ODw@VulnerText{s t!}{%
   \bgroup%
     \ODw@OtherFont%
     \IfBooleanTF#1{%
-      \IfBooleanTF#2{\GetTranslation{Vul-(ODw)}}%
-        {\GetTranslation{Vulnerable-(ODw)}}%
+      \IfBooleanTF#2{\translate{Vul-(ODw)}}%
+        {\translate{Vulnerable-(ODw)}}%
     }{%
-      \IfBooleanTF#2{\GetTranslation{vul-(ODw)}}%
-        {\GetTranslation{vulnerable-(ODw)}}%
+      \IfBooleanTF#2{\translate{vul-(ODw)}}%
+        {\translate{vulnerable-(ODw)}}%
     }%
   \egroup%
   \xspace%
 }% ODw@VulnerText
-\def\ODw@AwardText{\textsf{\GetTranslation{Award-(ODw)}}}
+\def\ODw@AwardText{\textsf{\translate{Award-(ODw)}}}
 \newcommand\dealer[1][]{%
   \ifthenelse{\equal{#1}{}}%
     {\ODw@Dealer}%
@@ -1537,7 +1536,7 @@
 \def\ODw@Tricks{%
   \setcounter{ODw@PlayerNr}{0}%
   \gdef\ODw@Last{\ODw@NextLead}%
-    \expandafter\GetTranslation%
+    \expandafter\translate%
     \expandafter{\ODw@NextLead-(ODw)}:\,%
 }% ODw@Tricks
 \newcommand\ODw@LastTrick[2]{%
@@ -1573,10 +1572,10 @@
 \def\ODw@EXtra{0.9em}% white space in title
 \provideenvironment{TableII}{%
     \begin{tabular}[b]{FPPP}%
-      \multicolumn{1}{c}{\GetTranslation{Lead!-(ODw)}} &%
-      \cci{\GetTranslation{2nd-(ODw)}}                 &%
-      \cci{\GetTranslation{3rd-(ODw)}}                 &%
-      \cci{\GetTranslation{4th-(ODw)}}   \\[0.3em]\hline%
+      \multicolumn{1}{c}{\translate{Lead!-(ODw)}} &%
+      \cci{\translate{2nd-(ODw)}}                 &%
+      \cci{\translate{3rd-(ODw)}}                 &%
+      \cci{\translate{4th-(ODw)}}   \\[0.3em]\hline%
       \multicolumn{4}{c}{}\\[-\ODw@EXtra]%
 }{%
   \end{tabular}%
@@ -1594,7 +1593,7 @@
   \setcounter{ODw@Cnt}{0}%
   \IfBooleanTF#1{\begin{center}}{}%
   \begin{tabular}[b]{r}% TableI
-    \cci{\GetTranslation{Nr-(ODw)}}\\[0.3em]
+    \cci{\translate{Nr-(ODw)}}\\[0.3em]
     \hline\\[-\ODw@EXtra]%
     \setcounter{ODw@Cnt}{1}%
     \whiledo{\theODw@Cnt<\theODw@Nr}{%
@@ -1819,12 +1818,12 @@
   \bgroup%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{A-(ODw)}}%
-        {\GetTranslation{Ace-(ODw)}}%
+        {\translate{A-(ODw)}}%
+        {\translate{Ace-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{a-(ODw)}}%
-        {\GetTranslation{ace-(ODw)}}%
+        {\translate{a-(ODw)}}%
+        {\translate{ace-(ODw)}}%
   }%
   \egroup%
   \xspace%
@@ -1834,12 +1833,12 @@
   \bgroup%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{K-(ODw)}}%
-        {\GetTranslation{King-(ODw)}}%
+        {\translate{K-(ODw)}}%
+        {\translate{King-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{k-(ODw)}}%
-        {\GetTranslation{king-(ODw)}}%
+        {\translate{k-(ODw)}}%
+        {\translate{king-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1849,12 +1848,12 @@
   \bgroup%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Q-(ODw)}}%
-        {\GetTranslation{Queen-(ODw)}}%
+        {\translate{Q-(ODw)}}%
+        {\translate{Queen-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{q-(ODw)}}%
-        {\GetTranslation{queen-(ODw)}}%
+        {\translate{q-(ODw)}}%
+        {\translate{queen-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1864,12 +1863,12 @@
   \bgroup%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{J-(ODw)}}%
-        {\GetTranslation{Jack-(ODw)}}%
+        {\translate{J-(ODw)}}%
+        {\translate{Jack-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{j-(ODw)}}%
-        {\GetTranslation{jack-(ODw)}}%
+        {\translate{j-(ODw)}}%
+        {\translate{jack-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1888,12 +1887,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{All!-(ODw)}}%
-        {\GetTranslation{All-(ODw)}}%
+        {\translate{All!-(ODw)}}%
+        {\translate{All-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{all!-(ODw)}}%
-        {\GetTranslation{all-(ODw)}}%
+        {\translate{all!-(ODw)}}%
+        {\translate{all-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1905,12 +1904,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{None!-(ODw)}}%
-        {\GetTranslation{None-(ODw)}}%
+        {\translate{None!-(ODw)}}%
+        {\translate{None-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{none!-(ODw)}}%
-        {\GetTranslation{none-(ODw)}}%
+        {\translate{none!-(ODw)}}%
+        {\translate{none-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1922,12 +1921,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Contr-(ODw)}}%
-        {\GetTranslation{Contract-(ODw)}}%
+        {\translate{Contr-(ODw)}}%
+        {\translate{Contract-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{contr-(ODw)}}%
-        {\GetTranslation{contract-(ODw)}}%
+        {\translate{contr-(ODw)}}%
+        {\translate{contract-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1939,12 +1938,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Lead!-(ODw)}}%
-        {\GetTranslation{Lead-(ODw)}}%
+        {\translate{Lead!-(ODw)}}%
+        {\translate{Lead-(ODw)}}%
     }{% else #1
       \IfBooleanTF{#2}%
-        {\GetTranslation{lead!-(ODw)}}%
-        {\GetTranslation{lead-(ODw)}}%
+        {\translate{lead!-(ODw)}}%
+        {\translate{lead-(ODw)}}%
     }% #1
   \egroup%
   \xspace%
@@ -1956,12 +1955,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Decl-(ODw)}}%
-        {\GetTranslation{Declarer-(ODw)}}%
+        {\translate{Decl-(ODw)}}%
+        {\translate{Declarer-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{decl-(ODw)}}%
-        {\GetTranslation{declarer-(ODw)}}%
+        {\translate{decl-(ODw)}}%
+        {\translate{declarer-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1971,7 +1970,7 @@
 \newcommand\by{%
   \bgroup%
     \ODw@OtherFont%
-    \GetTranslation{by-(ODw)}%
+    \translate{by-(ODw)}%
   \egroup%
   \xspace%
 }% by
@@ -1980,12 +1979,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Brd-(ODw)}}%
-        {\GetTranslation{Board-(ODw)}}%
+        {\translate{Brd-(ODw)}}%
+        {\translate{Board-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{brd-(ODw)}}%
-        {\GetTranslation{board-(ODw)}}%
+        {\translate{brd-(ODw)}}%
+        {\translate{board-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -1997,12 +1996,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{Deal!-(ODw)}}%
-        {\GetTranslation{Deal-(ODw)}}%
+        {\translate{Deal!-(ODw)}}%
+        {\translate{Deal-(ODw)}}%
    }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{deal!-(ODw)}}%
-        {\GetTranslation{deal-(ODw)}}%
+        {\translate{deal!-(ODw)}}%
+        {\translate{deal-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2013,8 +2012,8 @@
   \bgroup%
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
-      \GetTranslation{Doubled-(ODw)}}{%
-      \GetTranslation{doubled-(ODw)}%
+      \translate{Doubled-(ODw)}}{%
+      \translate{doubled-(ODw)}%
     }%
   \egroup%
   \xspace%
@@ -2023,8 +2022,8 @@
   \bgroup%
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
-      \GetTranslation{Redoubled-(ODw)}}{%
-      \GetTranslation{redoubled-(ODw)}%
+      \translate{Redoubled-(ODw)}}{%
+      \translate{redoubled-(ODw)}%
     }%
   \egroup%
   \xspace%
@@ -2034,12 +2033,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{HCP-(ODw)}}%
-        {\GetTranslation{High Card Points-(ODw)}}%
+        {\translate{HCP-(ODw)}}%
+        {\translate{High Card Points-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{hcp-(ODw)}}%
-        {\GetTranslation{high card points-(ODw)}}%
+        {\translate{hcp-(ODw)}}%
+        {\translate{high card points-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2050,29 +2049,29 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{LP-(ODw)}}%
-        {\GetTranslation{Length Points-(ODw)}}%
+        {\translate{LP-(ODw)}}%
+        {\translate{Length Points-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{lp-(ODw)}}%
-        {\GetTranslation{length points-(ODw)}}%
+        {\translate{lp-(ODw)}}%
+        {\translate{length points-(ODw)}}%
     }%
   \egroup%
   \xspace%
 }% Length Points
 \def\LP{\,\lpts*!}
-\def\HLP{\,\bgroup\ODw@OtherFont\GetTranslation{HLP-(ODw)}\egroup\xspace}
+\def\HLP{\,\bgroup\ODw@OtherFont\translate{HLP-(ODw)}\egroup\xspace}
 \NewDocumentCommand{\dpts}{s t!}{%
   \bgroup%
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{DP-(ODw)}}%
-        {\GetTranslation{Distribution Points-(ODw)}}%
+        {\translate{DP-(ODw)}}%
+        {\translate{Distribution Points-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{dp-(ODw)}}%
-        {\GetTranslation{distribution points-(ODw)}}%
+        {\translate{dp-(ODw)}}%
+        {\translate{distribution points-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2083,12 +2082,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{TP-(ODw)}}%
-        {\GetTranslation{Total Points-(ODw)}}%
+        {\translate{TP-(ODw)}}%
+        {\translate{Total Points-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{tp-(ODw)}}%
-        {\GetTranslation{total points-(ODw)}}%
+        {\translate{tp-(ODw)}}%
+        {\translate{total points-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2099,12 +2098,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{GF-(ODw)}}%
-        {\GetTranslation{Game Forcing-(ODw)}}%
+        {\translate{GF-(ODw)}}%
+        {\translate{Game Forcing-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{gf-(ODw)}}%
-        {\GetTranslation{game forcing-(ODw)}}%
+        {\translate{gf-(ODw)}}%
+        {\translate{game forcing-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2115,12 +2114,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{SF-(ODw)}}%
-        {\GetTranslation{Semi Forcing-(ODw)}}%
+        {\translate{SF-(ODw)}}%
+        {\translate{Semi Forcing-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{sf-(ODw)}}%
-        {\GetTranslation{semi forcing-(ODw)}}%
+        {\translate{sf-(ODw)}}%
+        {\translate{semi forcing-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2131,12 +2130,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{NMF-(ODw)}}%
-        {\GetTranslation{New Minor Forcing-(ODw)}}%
+        {\translate{NMF-(ODw)}}%
+        {\translate{New Minor Forcing-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{nmf-(ODw)}}%
-        {\GetTranslation{new minor forcing-(ODw)}}%
+        {\translate{nmf-(ODw)}}%
+        {\translate{new minor forcing-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2147,12 +2146,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{TSF-(ODw)}}%
-        {\GetTranslation{Third Suit Forcing-(ODw)}}%
+        {\translate{TSF-(ODw)}}%
+        {\translate{Third Suit Forcing-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{tsf-(ODw)}}%
-        {\GetTranslation{third suit forcing-(ODw)}}%
+        {\translate{tsf-(ODw)}}%
+        {\translate{third suit forcing-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2163,12 +2162,12 @@
     \ODw@OtherFont%
     \IfBooleanTF{#1}{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{FSF-(ODw)}}%
-        {\GetTranslation{Fourth Suit Forcing-(ODw)}}%
+        {\translate{FSF-(ODw)}}%
+        {\translate{Fourth Suit Forcing-(ODw)}}%
     }{%
       \IfBooleanTF{#2}%
-        {\GetTranslation{fsf-(ODw)}}%
-        {\GetTranslation{fourth suit forcing-(ODw)}}%
+        {\translate{fsf-(ODw)}}%
+        {\translate{fourth suit forcing-(ODw)}}%
     }%
   \egroup%
   \xspace%
@@ -2184,23 +2183,54 @@
 \setdefaults{colors=b+r}
 \setdefaults{compshow=on,compturn=off}
 \setdefaults{bidfirst=W,bidders=on,bidlong=on}
-\AtBeginDocument{%
+\usedictionary{ODw}
+%%%%
 \ForEachTrackedLanguage{\thislang}{%
-  \ifthenelse{\equal{\thislang}{norsk}}%
-    {\def\thislang{norwegian}}{}%
-  \IfFileExists{ODw-\thislang.trsl}%
-  {%
-    \LoadDictionaryFor{\thislang}{ODw}%
-    \PackageInfo{ODw}{%
-      Translation dictionary ODw-\thislang.trsl loaded%
-    }%
-  }{%
-    \PackageWarning{ODw}{%
-      Translation dictionary ODw-\thislang.trsl not found%
-    }%
-  }%
+  \PackageInfo{ODw}{Language \thislang\ detected}%
+    \IfEqCase{\thislang}{%
+      {danish}{\IfFileExists{ODw-Danish.dict}%
+                 {\uselanguage{Danish}%
+                  \PackageInfo{ODw}{Dictionary ODw-Danish.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-Danish.dict missing}}}%
+      {dutch}{\IfFileExists{ODw-Dutch.dict}%
+                 {\uselanguage{Dutch}%
+                  \PackageInfo{ODw}{Dictionary ODw-Dutch.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-Dutch.dict missing}}}%
+      {english}{\IfFileExists{ODw-English.dict}%
+                 {\uselanguage{English}%
+                  \PackageInfo{ODw}{Dictionary ODw-English.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-English.dict missing}}}%
+      {french}{\IfFileExists{ODw-French.dict}%
+                 {\uselanguage{French}%
+                  \PackageInfo{ODw}{Dictionary ODw-French.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-French.dict missing}}}%
+      {german}{\IfFileExists{ODw-German.dict}%
+                 {\uselanguage{German}%
+                  \PackageInfo{ODw}{Dictionary ODw-German.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-German.dict missing}}}%
+      {norsk}{\IfFileExists{ODw-Norsk.dict}%
+                 {\uselanguage{Norsk}%
+                  \PackageInfo{ODw}{Dictionary ODw-Norsk.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-Norsk.dict missing}}}%
+      {spanish}{\IfFileExists{ODw-Spanish.dict}%
+                 {\uselanguage{Spanish}%
+                  \PackageInfo{ODw}{Dictionary ODw-Spanish.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-Spanish.dict missing}}}%
+      {swedish}{\IfFileExists{ODw-Swedish.dict}%
+                 {\uselanguage{Swedish}%
+                  \PackageInfo{ODw}{Dictionary ODw-Swedish.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-Swedish.dict missing}}}%
+      {turkish}{\IfFileExists{ODw-Turkish.dict}%
+                 {\uselanguage{Turkish}%
+                  \PackageInfo{ODw}{Dictionary ODw-Turkish.dict loaded}
+                }{\PackageWarning{ODw}{Dictionary ODw-Turkish.dict missing}}}%
+    }[%
+      \PackageWarning{ODw}%
+        {Language \thislang\space not supported by OneDown}
+     ]% IfEqCase
 }% ForEach
-}% AtBeginDocument
+%%%%%
+\@input{onedown.symbols}
 \endinput% onedown.sty
 
 \endinput
-- 
cgit v1.2.3

