summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/exsheets
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-17 22:11:15 +0000
committerKarl Berry <karl@freefriends.org>2013-07-17 22:11:15 +0000
commitf4ee7dde5f0c6c40a915cab1611912f70c73df3f (patch)
tree80d5f553c3f85a2f5d9af7ecce621016a8045753 /Master/texmf-dist/tex/latex/exsheets
parentab68c2c47235b190265d422222a53f0c338212ab (diff)
exsheets (17jul13)
git-svn-id: svn://tug.org/texlive/trunk@31218 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/exsheets')
-rw-r--r--Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-english.trsl87
-rw-r--r--Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-french.trsl87
-rw-r--r--Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-german.trsl87
-rw-r--r--Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-spanish.trsl87
-rw-r--r--Master/texmf-dist/tex/latex/exsheets/exsheets.sty160
-rw-r--r--Master/texmf-dist/tex/latex/exsheets/translations.sty475
6 files changed, 81 insertions, 902 deletions
diff --git a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-english.trsl b/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-english.trsl
deleted file mode 100644
index 47dbcbeb39a..00000000000
--- a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-english.trsl
+++ /dev/null
@@ -1,87 +0,0 @@
-\ProvideDictionaryFor{English}{translations-basic-dictionary}
-
-\DeclareDictTranslation{Abstract}{Abstract}
-\DeclareDictTranslation{Addresses}{Addresses}
-\DeclareDictTranslation{addresses}{addresses}
-\DeclareDictTranslation{Address}{Address}
-\DeclareDictTranslation{address}{address}
-\DeclareDictTranslation{and}{and}
-\DeclareDictTranslation{Appendix}{Appendix}
-\DeclareDictTranslation{Authors}{Authors}
-\DeclareDictTranslation{authors}{authors}
-\DeclareDictTranslation{Author}{Author}
-\DeclareDictTranslation{author}{author}
-\DeclareDictTranslation{Bibliography}{Bibliography}
-\DeclareDictTranslation{cc}{cc}
-\DeclareDictTranslation{Chapters}{Chapters}
-\DeclareDictTranslation{chapters}{chapters}
-\DeclareDictTranslation{Chapter}{Chapter}
-\DeclareDictTranslation{chapter}{chapter}
-\DeclareDictTranslation{Conclusion}{Conclusion}
-\DeclareDictTranslation{conclusion}{conclusion}
-\DeclareDictTranslation{Contents}{Contents}
-\DeclareDictTranslation{Continuation}{Continuation}
-\DeclareDictTranslation{continuation}{continuation}
-\DeclareDictTranslation{cont}{cont}
-\DeclareDictTranslation{encl (plural)}{encl}
-\DeclareDictTranslation{encl (singular)}{encl}
-\DeclareDictTranslation{encl}{encl}
-\DeclareDictTranslation{Figures}{Figures}
-\DeclareDictTranslation{figures}{figures}
-\DeclareDictTranslation{Figure}{Figure}
-\DeclareDictTranslation{figure}{figure}
-\DeclareDictTranslation{From}{From}
-\DeclareDictTranslation{from}{from}
-\DeclareDictTranslation{Glossary}{Glossary}
-\DeclareDictTranslation{Index}{Index}
-\DeclareDictTranslation{Introduction}{Introduction}
-\DeclareDictTranslation{introduction}{introduction}
-\DeclareDictTranslation{List of Figures and Tables}{List of Figures and Tables}
-\DeclareDictTranslation{List of Figures}{List of Figures}
-\DeclareDictTranslation{List of Tables}{List of Tables}
-\DeclareDictTranslation{or}{or}
-\DeclareDictTranslation{Outline}{Outline}
-\DeclareDictTranslation{Overview}{Overview}
-\DeclareDictTranslation{Pages}{Pages}
-\DeclareDictTranslation{pages}{pages}
-\DeclareDictTranslation{Page}{Page}
-\DeclareDictTranslation{page}{page}
-\DeclareDictTranslation{Paragraphs}{Paragraphs}
-\DeclareDictTranslation{paragraphs}{paragraphs}
-\DeclareDictTranslation{Paragraph}{Paragraph}
-\DeclareDictTranslation{paragraph}{paragraph}
-\DeclareDictTranslation{Parts}{Parts}
-\DeclareDictTranslation{parts}{parts}
-\DeclareDictTranslation{Part}{Part}
-\DeclareDictTranslation{part}{part}
-\DeclareDictTranslation{Preface}{Preface}
-\DeclareDictTranslation{Proofs}{Proofs}
-\DeclareDictTranslation{proofs}{proofs}
-\DeclareDictTranslation{Proof}{Proof}
-\DeclareDictTranslation{proof}{proof}
-\DeclareDictTranslation{References}{References}
-\DeclareDictTranslation{Related work}{Related work}
-\DeclareDictTranslation{Related Work}{Related Work}
-\DeclareDictTranslation{Sections}{Sections}
-\DeclareDictTranslation{sections}{sections}
-\DeclareDictTranslation{Section}{Section}
-\DeclareDictTranslation{section}{section}
-\DeclareDictTranslation{See also}{See also}
-\DeclareDictTranslation{see also}{see also}
-\DeclareDictTranslation{See}{See}
-\DeclareDictTranslation{see}{see}
-\DeclareDictTranslation{Sketch of Proofs}{Sketch of Proofs}
-\DeclareDictTranslation{Sketch of proofs}{Sketch of proofs}
-\DeclareDictTranslation{Sketch of Proof}{Sketch of Proof}
-\DeclareDictTranslation{Sketch of proof}{Sketch of proof}
-\DeclareDictTranslation{Subsections}{Subsections}
-\DeclareDictTranslation{subsections}{subsections}
-\DeclareDictTranslation{Subsection}{Subsection}
-\DeclareDictTranslation{subsection}{subsection}
-\DeclareDictTranslation{Summary}{Summary}
-\DeclareDictTranslation{Tables}{Tables}
-\DeclareDictTranslation{tables}{tables}
-\DeclareDictTranslation{Table}{Table}
-\DeclareDictTranslation{table}{table}
-\DeclareDictTranslation{To}{To}
-\DeclareDictTranslation{to}{to}
diff --git a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-french.trsl b/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-french.trsl
deleted file mode 100644
index ce4965a5475..00000000000
--- a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-french.trsl
+++ /dev/null
@@ -1,87 +0,0 @@
-\ProvideDictionaryFor{French}{translations-basic-dictionary}
-
-\DeclareDictTranslation{Abstract}{R\'{e}sum\'{e}}
-\DeclareDictTranslation{Addresses}{Adresses}
-\DeclareDictTranslation{addresses}{adresses}
-\DeclareDictTranslation{Address}{Adresse}
-\DeclareDictTranslation{address}{adresse}
-\DeclareDictTranslation{and}{et}
-\DeclareDictTranslation{Appendix}{Annexe}
-\DeclareDictTranslation{Authors}{Auteurs}
-\DeclareDictTranslation{authors}{auteur}
-\DeclareDictTranslation{Author}{Auteur}
-\DeclareDictTranslation{author}{auteur}
-\DeclareDictTranslation{Bibliography}{Bibliographie}
-\DeclareDictTranslation{cc}{Copie \`{a} }
-\DeclareDictTranslation{Chapters}{Chapitres}
-\DeclareDictTranslation{chapters}{chapitres}
-\DeclareDictTranslation{Chapter}{Chapitre}
-\DeclareDictTranslation{chapter}{chapitre}
-\DeclareDictTranslation{Conclusion}{Conclusion}
-\DeclareDictTranslation{conclusion}{conclusion}
-\DeclareDictTranslation{Contents}{Contenu}
-\DeclareDictTranslation{Continuation}{Suite}
-\DeclareDictTranslation{continuation}{suite}
-\DeclareDictTranslation{cont}{suite} % FIXME: unsure
-\DeclareDictTranslation{encl (plural)}{P.~J.}
-\DeclareDictTranslation{encl (singular)}{P.~J.}
-\DeclareDictTranslation{encl}{P.~J.}
-\DeclareDictTranslation{Figures}{Figures}
-\DeclareDictTranslation{figures}{figures}
-\DeclareDictTranslation{Figure}{Figure}
-\DeclareDictTranslation{figure}{figure}
-\DeclareDictTranslation{From}{De}
-\DeclareDictTranslation{from}{de}
-\DeclareDictTranslation{Glossary}{Glossaire}
-\DeclareDictTranslation{Index}{Index}
-\DeclareDictTranslation{Introduction}{Introduction}
-\DeclareDictTranslation{introduction}{introduction}
-\DeclareDictTranslation{List of Figures and Tables}{Liste des figures et des tableaux}
-\DeclareDictTranslation{List of Figures}{Liste des figures}
-\DeclareDictTranslation{List of Tables}{Liste des tableaux}
-\DeclareDictTranslation{or}{ou}
-\DeclareDictTranslation{Outline}{Plan}
-\DeclareDictTranslation{Overview}{Sommaire}
-\DeclareDictTranslation{Pages}{Pages}
-\DeclareDictTranslation{pages}{pages}
-\DeclareDictTranslation{Page}{Page}
-\DeclareDictTranslation{page}{page}
-\DeclareDictTranslation{Paragraphs}{Paragraphes}
-\DeclareDictTranslation{paragraphs}{paragraphes}
-\DeclareDictTranslation{Paragraph}{Paragraphe}
-\DeclareDictTranslation{paragraph}{paragraphe}
-\DeclareDictTranslation{Parts}{Parties}
-\DeclareDictTranslation{parts}{parties}
-\DeclareDictTranslation{Part}{Partie}
-\DeclareDictTranslation{part}{partie}
-\DeclareDictTranslation{Preface}{Pr\'{e}face}
-\DeclareDictTranslation{Proofs}{D\'{e}monstrations}
-\DeclareDictTranslation{proofs}{d\'{e}monstrations}
-\DeclareDictTranslation{Proof}{D\'{e}monstration}
-\DeclareDictTranslation{proof}{d\'{e}monstration}
-\DeclareDictTranslation{References}{R\'{e}f\'{e}rences}
-\DeclareDictTranslation{Related work}{travaux connexes}
-\DeclareDictTranslation{Related Work}{Travaux connexes}
-\DeclareDictTranslation{Sections}{Sections}
-\DeclareDictTranslation{sections}{sections}
-\DeclareDictTranslation{Section}{Section}
-\DeclareDictTranslation{section}{section}
-\DeclareDictTranslation{See also}{Voir aussi}
-\DeclareDictTranslation{see also}{voir aussi}
-\DeclareDictTranslation{See}{Voir}
-\DeclareDictTranslation{see}{voir}
-\DeclareDictTranslation{Sketch of Proofs}{Esquisse de preuves}
-\DeclareDictTranslation{Sketch of proofs}{Esquisse de preuves}
-\DeclareDictTranslation{Sketch of Proof}{Esquisse de preuve}
-\DeclareDictTranslation{Sketch of proof}{Esquisse de preuve}
-\DeclareDictTranslation{Subsections}{Sous-sections}
-\DeclareDictTranslation{subsections}{sous-sections}
-\DeclareDictTranslation{Subsection}{Sous-section}
-\DeclareDictTranslation{subsection}{sous-section}
-\DeclareDictTranslation{Summary}{R\'{e}sum\'{e}}
-\DeclareDictTranslation{Tables}{Tables}
-\DeclareDictTranslation{tables}{tables}
-\DeclareDictTranslation{Table}{Table}
-\DeclareDictTranslation{table}{table}
-\DeclareDictTranslation{To}{Vers}%??
-\DeclareDictTranslation{to}{vers}%??
diff --git a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-german.trsl b/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-german.trsl
deleted file mode 100644
index 95732490944..00000000000
--- a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-german.trsl
+++ /dev/null
@@ -1,87 +0,0 @@
-\ProvideDictionaryFor{German}{translations-basic-dictionary}
-
-\DeclareDictTranslation{Abstract}{Zusammenfassung}
-\DeclareDictTranslation{Addresses}{Adressen}
-\DeclareDictTranslation{addresses}{Adressen}
-\DeclareDictTranslation{Address}{Adresse}
-\DeclareDictTranslation{address}{Adresse}
-\DeclareDictTranslation{and}{und}
-\DeclareDictTranslation{Appendix}{Anhang}
-\DeclareDictTranslation{Authors}{Autoren}
-\DeclareDictTranslation{authors}{Autoren}
-\DeclareDictTranslation{Author}{Autor}
-\DeclareDictTranslation{author}{Autor}
-\DeclareDictTranslation{Bibliography}{Literaturverzeichnis}
-\DeclareDictTranslation{cc}{Verteiler}
-\DeclareDictTranslation{Chapters}{Kapitel}
-\DeclareDictTranslation{chapters}{Kapitel}
-\DeclareDictTranslation{Chapter}{Kapitel}
-\DeclareDictTranslation{chapter}{Kapitel}
-\DeclareDictTranslation{Conclusion}{Zusammenfassung}
-\DeclareDictTranslation{conclusion}{Zusammenfassung}
-\DeclareDictTranslation{Contents}{Inhaltsverzeichnis}
-\DeclareDictTranslation{Continuation}{Fortsetzung}
-\DeclareDictTranslation{continuation}{Fortsetzung}
-\DeclareDictTranslation{cont}{Forts}
-\DeclareDictTranslation{encl (plural)}{Anlagen}
-\DeclareDictTranslation{encl (singular)}{Anlage}
-\DeclareDictTranslation{encl}{Anlage(n)}
-\DeclareDictTranslation{Figures}{Abbildungen}
-\DeclareDictTranslation{figures}{Abbildungen}
-\DeclareDictTranslation{Figure}{Abbildung}
-\DeclareDictTranslation{figure}{Abbildung}
-\DeclareDictTranslation{From}{Von}
-\DeclareDictTranslation{from}{von}
-\DeclareDictTranslation{Glossary}{Glossar}
-\DeclareDictTranslation{Index}{Index}
-\DeclareDictTranslation{Introduction}{Einleitung}
-\DeclareDictTranslation{introduction}{Einleitung}
-\DeclareDictTranslation{List of Figures and Tables}{Abbildungs- und Tabellenverzeichnis}
-\DeclareDictTranslation{List of Figures}{Abbildungsverzeichnis}
-\DeclareDictTranslation{List of Tables}{Tabellenverzeichnis}
-\DeclareDictTranslation{or}{oder}
-\DeclareDictTranslation{Outline}{Gliederung}
-\DeclareDictTranslation{Overview}{\"Uber\-sicht}
-\DeclareDictTranslation{Pages}{Seiten}
-\DeclareDictTranslation{pages}{Seiten}
-\DeclareDictTranslation{Page}{Seite}
-\DeclareDictTranslation{page}{Seite}
-\DeclareDictTranslation{Paragraphs}{Ab\-s\"at\-ze}
-\DeclareDictTranslation{paragraphs}{Ab\-s\"at\-ze}
-\DeclareDictTranslation{Paragraph}{Absatz}
-\DeclareDictTranslation{paragraph}{Absatz}
-\DeclareDictTranslation{Parts}{Teile}
-\DeclareDictTranslation{parts}{Teile}
-\DeclareDictTranslation{Part}{Teil}
-\DeclareDictTranslation{part}{Teil}
-\DeclareDictTranslation{Preface}{Vorwort}
-\DeclareDictTranslation{Proofs}{Beweise}
-\DeclareDictTranslation{proofs}{Beweise}
-\DeclareDictTranslation{Proof}{Beweis}
-\DeclareDictTranslation{proof}{Beweis}
-\DeclareDictTranslation{References}{Literatur}
-\DeclareDictTranslation{Related work}{Verwandte Arbeiten}
-\DeclareDictTranslation{Related Work}{Verwandte Arbeiten}
-\DeclareDictTranslation{Sections}{Abschnitte}
-\DeclareDictTranslation{sections}{Abschnitte}
-\DeclareDictTranslation{Section}{Abschnitt}
-\DeclareDictTranslation{section}{Abschnitt}
-\DeclareDictTranslation{See also}{Siehe auch}
-\DeclareDictTranslation{see also}{siehe auch}
-\DeclareDictTranslation{See}{Siehe}
-\DeclareDictTranslation{see}{siehe}
-\DeclareDictTranslation{Sketch of Proofs}{Beweisskizzen}
-\DeclareDictTranslation{Sketch of proofs}{Beweisskizzen}
-\DeclareDictTranslation{Sketch of Proof}{Beweisskizze}
-\DeclareDictTranslation{Sketch of proof}{Beweisskizze}
-\DeclareDictTranslation{Subsections}{Unterabschnitte}
-\DeclareDictTranslation{subsections}{Unterabschnitte}
-\DeclareDictTranslation{Subsection}{Unterabschnitt}
-\DeclareDictTranslation{subsection}{Unterabschnitt}
-\DeclareDictTranslation{Summary}{Zusammenfassung}
-\DeclareDictTranslation{Tables}{Tabellen}
-\DeclareDictTranslation{tables}{Tabellen}
-\DeclareDictTranslation{Table}{Tabelle}
-\DeclareDictTranslation{table}{Tabelle}
-\DeclareDictTranslation{To}{An}
-\DeclareDictTranslation{to}{an}
diff --git a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-spanish.trsl b/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-spanish.trsl
deleted file mode 100644
index 69e0824b103..00000000000
--- a/Master/texmf-dist/tex/latex/exsheets/dicts/translations-basic-dictionary-spanish.trsl
+++ /dev/null
@@ -1,87 +0,0 @@
-\ProvideDictionaryFor{Spanish}{translations-basic-dictionary}
-
-\DeclareDictTranslation{Abstract}{Resumen}
-\DeclareDictTranslation{Addresses}{Direcciones}
-\DeclareDictTranslation{addresses}{direcciones}
-\DeclareDictTranslation{Address}{Direcci\'{o}n}
-\DeclareDictTranslation{address}{direcci\'{o}n}
-\DeclareDictTranslation{and}{y}
-\DeclareDictTranslation{Appendix}{Ap\'{e}ndice}
-\DeclareDictTranslation{Authors}{Autores}
-\DeclareDictTranslation{authors}{autores}
-\DeclareDictTranslation{Author}{Autor}
-\DeclareDictTranslation{author}{autor}
-\DeclareDictTranslation{Bibliography}{Bibliograf\'{\i}a}
-\DeclareDictTranslation{cc}{c.c.}
-\DeclareDictTranslation{Chapters}{Cap\'{\i}tulos}
-\DeclareDictTranslation{chapters}{cap\'{\i}tulos}
-\DeclareDictTranslation{Chapter}{Cap\'{\i}tulo}
-\DeclareDictTranslation{chapter}{cap\'{\i}tulo}
-\DeclareDictTranslation{Conclusion}{Conclusi\'{o}n}
-\DeclareDictTranslation{conclusion}{conclusi\'{o}n}
-\DeclareDictTranslation{Contents}{Contenido}
-\DeclareDictTranslation{Continuation}{Continuaci\'{o}n}
-\DeclareDictTranslation{continuation}{continuaci\'{o}n}
-\DeclareDictTranslation{cont}{cont}
-\DeclareDictTranslation{encl (plural)}{adj.}
-\DeclareDictTranslation{encl (singular)}{adj.}
-\DeclareDictTranslation{encl}{adj.}
-\DeclareDictTranslation{Figures}{Figuras}
-\DeclareDictTranslation{figures}{figuras}
-\DeclareDictTranslation{Figure}{Figura}
-\DeclareDictTranslation{figure}{figura}
-\DeclareDictTranslation{From}{Desde}
-\DeclareDictTranslation{from}{desde}
-\DeclareDictTranslation{Glossary}{Glosario}
-\DeclareDictTranslation{Index}{\'{I}ndice}
-\DeclareDictTranslation{Introduction}{Introducci\'{o}n}
-\DeclareDictTranslation{introduction}{introducci\'{o}n}
-\DeclareDictTranslation{List of Figures and Tables}{Lista de Figuras y Tablas}
-\DeclareDictTranslation{List of Figures}{Lista de Figuras}
-\DeclareDictTranslation{List of Tables}{Lista de Tablas}
-\DeclareDictTranslation{or}{o}
-\DeclareDictTranslation{Outline}{Esbozo}
-\DeclareDictTranslation{Overview}{Visi\'{o}n General}
-\DeclareDictTranslation{Pages}{P\'{a}ginas}
-\DeclareDictTranslation{pages}{p\'{a}ginas}
-\DeclareDictTranslation{Page}{P\'{a}gina}
-\DeclareDictTranslation{page}{p\'{a}gina}
-\DeclareDictTranslation{Paragraphs}{P\'{a}rrafos}
-\DeclareDictTranslation{paragraphs}{p\'{a}rrafos}
-\DeclareDictTranslation{Paragraph}{P\'{a}rrafo}
-\DeclareDictTranslation{paragraph}{p\'{a}rrafo}
-\DeclareDictTranslation{Parts}{Partes}
-\DeclareDictTranslation{parts}{partes}
-\DeclareDictTranslation{Part}{Parte}
-\DeclareDictTranslation{part}{parte}
-\DeclareDictTranslation{Preface}{Prefacio}
-\DeclareDictTranslation{Proofs}{Demostraciones}
-\DeclareDictTranslation{proofs}{demostraciones}
-\DeclareDictTranslation{Proof}{Demostraci\'{o}n}
-\DeclareDictTranslation{proof}{demostraci\'{o}n}
-\DeclareDictTranslation{References}{Referencias}
-\DeclareDictTranslation{Related work}{Trabajo relacionado}
-\DeclareDictTranslation{Related Work}{Trabajo Relacionado}
-\DeclareDictTranslation{Sections}{Secciones}
-\DeclareDictTranslation{sections}{secciones}
-\DeclareDictTranslation{Section}{Secci\'{o}n}
-\DeclareDictTranslation{section}{secci\'{o}n}
-\DeclareDictTranslation{See also}{Ver tambi\'{e}n}
-\DeclareDictTranslation{see also}{ver tambi\'{e}n}
-\DeclareDictTranslation{See}{Ver}
-\DeclareDictTranslation{see}{ver}
-\DeclareDictTranslation{Sketch of Proofs}{Esbozo de Demostraciones}
-\DeclareDictTranslation{Sketch of proofs}{Esbozo de demostraciones}
-\DeclareDictTranslation{Sketch of Proof}{Esbozo de Demostraci\'{o}n}
-\DeclareDictTranslation{Sketch of proof}{Esbozo de demostraci\'{o}n}
-\DeclareDictTranslation{Subsections}{Subsecciones}
-\DeclareDictTranslation{subsections}{subsecciones}
-\DeclareDictTranslation{Subsection}{Subsecci\'{o}n}
-\DeclareDictTranslation{subsection}{subsecci\'{o}n}
-\DeclareDictTranslation{Summary}{Resumen}
-\DeclareDictTranslation{Tables}{Tablas}
-\DeclareDictTranslation{tables}{tablas}
-\DeclareDictTranslation{Table}{Tabla}
-\DeclareDictTranslation{table}{tabla}
-\DeclareDictTranslation{To}{Hasta}
-\DeclareDictTranslation{to}{hasta}
diff --git a/Master/texmf-dist/tex/latex/exsheets/exsheets.sty b/Master/texmf-dist/tex/latex/exsheets/exsheets.sty
index 9d899f2d815..64ce0f3e650 100644
--- a/Master/texmf-dist/tex/latex/exsheets/exsheets.sty
+++ b/Master/texmf-dist/tex/latex/exsheets/exsheets.sty
@@ -22,17 +22,11 @@
%
% The Current Maintainer of this work is Clemens Niederberger.
% ----------------------------------------------------------------------------
-% The exsheets package consists of the files
-% - exsheets.sty, exsheets_headings.def, exsheets_headings.cfg,
-% exsheets_tasks.def, exsheets_tasks.cfg, exsheets_configurations.cfg,
-% - exsheets_en.tex, exsheets_en.pdf,
-% - README
-% ----------------------------------------------------------------------------
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% ----------------------------------------------------------------------------
-\def\exsheets@date{2013/06/28}
-\def\exsheets@version{0.9h}
+\def\exsheets@date{2013/07/17}
+\def\exsheets@version{0.9i}
\RequirePackage { expl3 , xparse }
\ProvidesExplPackage
@@ -269,10 +263,12 @@
\fp_new:N \l__exsheets_points_default_fp
\fp_set:Nn \l__exsheets_points_default_fp { 1 }
\fp_new:N \l__exsheets_question_points_fp
-\fp_new:N \g__exsheets_total_points_fp
+% this one should be public:
+\fp_new:N \g_exsheets_total_points_fp
\fp_new:N \g__exsheets_bonus_sum_fp
\fp_new:N \l__exsheets_question_bonus_fp
-\fp_new:N \g__exsheets_total_bonus_fp
+% this one should be public
+\fp_new:N \g_exsheets_total_bonus_fp
\tl_new:N \l__exsheets_points_name_tl
\tl_set:Nn \l__exsheets_points_name_tl { P. }
@@ -333,10 +329,10 @@
\cs_generate_variant:Nn \exsheets_add_bonus:n { V }
\cs_new_protected_nopar:Npn \exsheets@sum@of@points #1
- { \fp_gset:Nn \g__exsheets_total_points_fp { #1 } }
+ { \fp_gset:Nn \g_exsheets_total_points_fp { #1 } }
\cs_new_protected_nopar:Npn \exsheets@sum@of@bonus #1
- { \fp_gset:Nn \g__exsheets_total_bonus_fp { #1 } }
+ { \fp_gset:Nn \g_exsheets_total_bonus_fp { #1 } }
\cs_new_nopar:Npn \exsheets_parse_points:n #1
{
@@ -477,8 +473,8 @@
\bool_if:NTF \l__exsheets_parse_points_bool
{
\IfBooleanTF { #1 }
- { \exsheets_parse_points:n { \g__exsheets_total_points_fp } }
- { \exsheets_print_points:n { \g__exsheets_total_points_fp } }
+ { \exsheets_parse_points:n { \g_exsheets_total_points_fp } }
+ { \exsheets_print_points:n { \g_exsheets_total_points_fp } }
}
{ \msg_warning:nnn { exsheets } { parse-points } { \pointssum } }
}
@@ -488,8 +484,8 @@
\bool_if:NTF \l__exsheets_parse_points_bool
{
\IfBooleanTF { #1 }
- { \exsheets_parse_bonus:n { \g__exsheets_total_bonus_fp } }
- { \exsheets_print_bonus:n { \g__exsheets_total_bonus_fp } }
+ { \exsheets_parse_bonus:n { \g_exsheets_total_bonus_fp } }
+ { \exsheets_print_bonus:n { \g_exsheets_total_bonus_fp } }
}
{ \msg_warning:nnn { exsheets } { parse-points } { \bonussum } }
}
@@ -524,20 +520,20 @@
\bool_if:nT
{
\l__exsheets_points_separate_bonus_bool ||
- \fp_compare_p:n { \g__exsheets_total_bonus_fp = 0 }
+ \fp_compare_p:n { \g_exsheets_total_bonus_fp = 0 }
}
- { \exsheets_points_name:n { \g__exsheets_total_points_fp } }
+ { \exsheets_points_name:n { \g_exsheets_total_points_fp } }
}
\exsheets_totalbonus:
\IfBooleanF { #1 }
{
- \fp_compare:nF { \g__exsheets_total_bonus_fp = 0 }
+ \fp_compare:nF { \g_exsheets_total_bonus_fp = 0 }
{
\bool_if:NTF \l__exsheets_points_separate_bonus_bool
- { \exsheets_bonus_name:n { \g__exsheets_total_bonus_fp } }
+ { \exsheets_bonus_name:n { \g_exsheets_total_bonus_fp } }
{
\exsheets_points_name:n
- { \g__exsheets_total_points_fp + \g__exsheets_total_bonus_fp }
+ { \g_exsheets_total_points_fp + \g_exsheets_total_bonus_fp }
}
}
}
@@ -549,11 +545,11 @@
{
\bool_if:NTF \l__exsheets_parse_points_bool
{
- \fp_compare:nTF { \g__exsheets_total_points_fp = 0 }
+ \fp_compare:nTF { \g_exsheets_total_points_fp = 0 }
{ ?? \, \exsheets_points_name:n { ?? } }
{
\exsheets_parse_points:n
- { \g__exsheets_total_points_fp }
+ { \g_exsheets_total_points_fp }
}
}
{ \msg_warning:nn { exsheets } { totalpoints } }
@@ -563,12 +559,12 @@
{
\bool_if:NT \l__exsheets_parse_points_bool
{
- \fp_compare:nF { \g__exsheets_total_bonus_fp = 0 }
+ \fp_compare:nF { \g_exsheets_total_bonus_fp = 0 }
{
\tl_use:N \c_space_tl
\tl_use:N \l__exsheets_points_pre_bonus_marker_tl
\exsheets_parse_bonus:n
- { \g__exsheets_total_bonus_fp }
+ { \g_exsheets_total_bonus_fp }
\tl_use:N \l__exsheets_points_post_bonus_marker_tl
}
}
@@ -703,7 +699,7 @@
\bool_if:NTF { \l__exsheets_grades_half_bool }
{ \__exsheets_fp_round_to_half:n }
{ \__exsheets_grades_round:n }
- { \g__exsheets_total_points_fp * \l__exsheets_tmpa_fp }
+ { \g_exsheets_total_points_fp * \l__exsheets_tmpa_fp }
}
\cs_new:Npn \exsheets_strip_braces:N #1
@@ -742,11 +738,11 @@
\bool_if:NTF \l__exsheets_parse_points_bool
{
\exsheets_parse_points:n
- { min( \__exsheets_grade_rounded: , \g__exsheets_total_points_fp ) }
+ { min( \__exsheets_grade_rounded: , \g_exsheets_total_points_fp ) }
\int_compare:nT { #1 = 1 }
{
\exsheets_points_name:n
- { min( \__exsheets_grade_rounded: , \g__exsheets_total_points_fp ) }
+ { min( \__exsheets_grade_rounded: , \g_exsheets_total_points_fp ) }
}
}
{ \msg_warning:nnn { exsheets } { grade-parse } { #1 } \textbf{??} }
@@ -2442,23 +2438,19 @@
{
\par
\tex_penalty:D -100 \scan_stop:
-% \group_begin:
- \dim_set:Nn \l__exsheets_tmpa_dim { #2 }
- \dim_set:Nn \l__exsheets_tmpb_dim { \pagegoal - \pagetotal - \baselineskip }
- \dim_show:N \l__exsheets_tmpa_dim
- \dim_show:N \l__exsheets_tmpb_dim
- \dim_compare:nTF { \l__exsheets_tmpa_dim > \l__exsheets_tmpb_dim }
- {
- \dim_compare:nT { \l__exsheets_tmpb_dim > 0pt } { \vfil }
- \break
- \IfBooleanF { #1 }
- {
- \dim_sub:Nn \l__exsheets_tmpa_dim { \l__exsheets_tmpb_dim }
- \vspace* { \l__exsheets_tmpa_dim }
- }
- }
- { \skip_vertical:N \l__exsheets_tmpa_dim }
-% \group_end:
+ \dim_set:Nn \l__exsheets_tmpa_dim { #2 }
+ \dim_set:Nn \l__exsheets_tmpb_dim { \pagegoal - \pagetotal - \baselineskip }
+ \dim_compare:nTF { \l__exsheets_tmpa_dim > \l__exsheets_tmpb_dim }
+ {
+ \dim_compare:nT { \l__exsheets_tmpb_dim > 0pt } { \vfil }
+ \break
+ \IfBooleanF { #1 }
+ {
+ \dim_sub:Nn \l__exsheets_tmpa_dim { \l__exsheets_tmpb_dim }
+ \vspace* { \l__exsheets_tmpa_dim }
+ }
+ }
+ { \skip_vertical:N \l__exsheets_tmpa_dim }
}
\NewDocumentCommand \examspace { sm }
{ \__exsheets_examspace:nn { #1 } { #2 } }
@@ -2579,38 +2571,41 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HISTORY:
2011/11/23 v0.1pre - first upload to bitbucket and all changes until
- considered stable enough/ready to be called 0.1alpha.
- There'll be no further descriptions until then.
+ considered stable enough/ready to be called
+ 0.1alpha. There'll be no further descriptions until
+ then.
2012/06/08 v0.1alpha - first hopefully stable version
2012/06/11 v0.1alpha-a - added headings instances, slightly rewritten
`exercises-tasks' object and `tasks' environment
-2012/06/11 v0.1alpha-b - added `multiplechoice' instance and `load-tasks' option
+2012/06/11 v0.1alpha-b - added `multiplechoice' instance and `load-tasks'
+ option
2012/06/12 v0.1alpha-c - renamed from `exercises' into `ExSheets'
2012/06/15 v0.1alpha-d - added more flexible solution printing method
-2012/06/15 v0.1beta - filled in some blanks in the documentation, now we need
- some testing!
+2012/06/15 v0.1beta - filled in some blanks in the documentation, now we
+ need some testing!
2012/09/07 v0.1beta-a - adjustments to the updated l3kernel
2012/09/08 v0.1beta-b - sort solutions printed with the `byID' key
2012/09/16 v0.1beta-c - renamed option `questions-counter-format' into
`counter-format'
-2012/09/19 v0.1beta-d - added `topic' key, provide \includequestions with options
- `all' and `IDs'
-2012/09/24 v0.1beta-e - added question properties and improved random question
- selection
-2012/09/27 v0.1 - added two headings instances, new option `headings-format'
- - small changes in the definition of the `exsheets-headings'
- object
+2012/09/19 v0.1beta-d - added `topic' key, provide \includequestions with
+ options `all' and `IDs'
+2012/09/24 v0.1beta-e - added question properties and improved random
+ question selection
+2012/09/27 v0.1 - added two headings instances, new option
+ `headings-format'
+ - small changes in the definition of the
+ `exsheets-headings' object
- preliminary version of totoc options. Unfortunatly
\exsheets@recover@number is not expandable => no
hyperref support
-2012/09/30 v0.2beta - version numbering gone crazy! this will now stay 0.2beta
- until upload to CTAN (v0.2)
+2012/09/30 v0.2beta - version numbering gone crazy! this will now stay
+ 0.2beta until upload to CTAN (v0.2)
- integrated packages `translations' and `cntformats':
trnslt: provide expandable version of `translator's
\translate
- cntfmts: outsourced previous counter formatting commands;
- should now be usable in other packages, too, and
- simplified definitions in `ExSheets'
+ cntfmts: outsourced previous counter formatting
+ commands; should now be usable in other packages,
+ too, and simplified definitions in `ExSheets'
- thanks to `translations' and `cntformats' the `totoc'
option now works with `hyperref'
2012/10/05 v0.2 - removed \sumpoints and moved the functionality to
@@ -2625,8 +2620,8 @@ HISTORY:
using \exsheets@save@number and \QuestionNumber
2012/10/08 v0.2b - improved the reference to chapter/solution numbers
in \printsolutions
- - resolved bug in \printsolutions introduced in the last
- update
+ - resolved bug in \printsolutions introduced in the
+ last update
- upload to CTAN
2012/10/23 v0.3 - bugfix in \exref
@@ -2643,17 +2638,17 @@ HISTORY:
2012/12/02 v0.5 - added \CurrentQuestionID
2012/12/06 v0.5a - bug fix: solutions had wrong numbers with
counter-format=se.qu and [print] option
-2012/12/18 v0.6 - variations, Hungarian translations, corrected Catalanian
- translations
-2012/12/23 v0.6a - bug fix: labels and items of {tasks} weren't joined at
- their baselines
+2012/12/18 v0.6 - variations, Hungarian translations, corrected
+ Catalanian translations
+2012/12/23 v0.6a - bug fix: labels and items of {tasks} weren't joined
+ at their baselines
2013/01/06 v0.6b - bug fix: ID counting fixed in \includequestions
-2013/01/19 v0.7 - extracted `tasks' environment into standalone package;
- this also lead to a slightly new syntax and a few new
- options for it
+2013/01/19 v0.7 - extracted `tasks' environment into standalone
+ package; this also lead to a slightly new syntax and
+ a few new options for it
- changed internals for random selection of questions:
- uses `pgf' instead of `lcg' and seems to be more reliable
- than before
+ uses `pgf' instead of `lcg' and seems to be more
+ reliable than before
2013/01/21 v0.7a - added option `auto-label' and questions key `label',
also added question properties `ref' and `pageref'
2013/02/17 v0.7b - bug fix: question selection by ID now works again
@@ -2686,19 +2681,26 @@ HISTORY:
2013/04/25 v0.9d - bug fix: \includequestions works correctly when used
multiple times together with ordinary instances of
the {question} environment
- - bug fix: points/parse=false correctly disables parsing
- points again
- - bug fix: \addpoints didn't add to the question property
+ - bug fix: points/parse=false correctly disables
+ parsing points again
+ - bug fix: \addpoints didn't add to the question
+ property
- new option `points/format'
- - \blank now works in math mode, it doesn't do linebreaks
- there if `ulem' doesn't allow them (which it doesn't)
+ - \blank now works in math mode, it doesn't do
+ linebreaks there if `ulem' doesn't allow them (which
+ it doesn't)
2013/05/01 v0.9e - corrected erroneous behaviour of \examspace
2013/05/26 v0.9f - fixed incorrectly placed links when the `totoc'
option is enabled and questions/solutions are at the
top of a new page because there wasn't enough place
left at the page before
2013/05/30 v0.9g - obey \if@filesw
-2013/06/28 v0.9h - cleaner internal use of \exsheets_set_question_properties:n
+2013/06/28 v0.9h - cleaner internal use of
+ \exsheets_set_question_properties:n
+2013/07/17 v0.9i - made \g__exsheets_total_bonus_fp and
+ \g__exsheets_total_points_fp public
+ - removed `translations' from the bundle
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TODO:
diff --git a/Master/texmf-dist/tex/latex/exsheets/translations.sty b/Master/texmf-dist/tex/latex/exsheets/translations.sty
deleted file mode 100644
index 9f751632426..00000000000
--- a/Master/texmf-dist/tex/latex/exsheets/translations.sty
+++ /dev/null
@@ -1,475 +0,0 @@
-% --------------------------------------------------------------------------
-% the TRANSLATIONS package
-%
-% a simple translator
-%
-% This package is part of the exsheets bundle
-% --------------------------------------------------------------------------
-% Clemens Niederberger
-% Web: https://bitbucket.org/cgnieder/exsheets/
-% E-Mail: contact@mychemistry.eu
-% --------------------------------------------------------------------------
-% Copyright 2012 Clemens Niederberger
-%
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
-%
-% This work has the LPPL maintenance status `maintained'.
-%
-% The Current Maintainer of this work is Clemens Niederberger.
-% --------------------------------------------------------------------------
-% The translations package is part of the exsheets bundle.
-% --------------------------------------------------------------------------
-% If you have any ideas, questions, suggestions or bugs to report, please
-% feel free to contact me.
-% --------------------------------------------------------------------------
-\def\@trnslt@date{2013/06/28}
-\def\@trnslt@version{v0.10}
-
-\ProvidesPackage{translations}[\@trnslt@date\space \@trnslt@version\space a simple translator]
-\RequirePackage{etoolbox}
-
-% --------------------------------------------------------------------------
-% message handling
-\def\@trnslt@error@message{%
- For details have a look at the `translations' manual.}
-
-\def\@trnslt@create@message#1{%
- \ifstrequal{#1}{Error}
- {%
- \lowercase{\csdef{@trnslt@#1}}##1{%
- \csuse{Package#1}{translations}{##1}{\@trnslt@error@message}}%
- }{%
- \lowercase{\csdef{@trnslt@#1}}##1{%
- \csuse{Package#1}{translations}{##1}}%
- }}
-\@trnslt@create@message{Error}
-\@trnslt@create@message{Warning}
-\@trnslt@create@message{WarningNoLine}
-\@trnslt@create@message{Info}
-
-\def\@trnslt@err@unknown@lang#1{%
- \@trnslt@error{Unknown language `#1'}}
-
-\def\@trnslt@warn@unknown@lang#1{%
- \@trnslt@warning{Unknown language `#1'}}
-
-\def\@trnslt@err@already@defined#1#2{%
- \@trnslt@error{The #2 translation for `#1' is already defined.}}
-
-\def\@trnslt@err@not@defined#1#2{%
- \@trnslt@error{The \@trnslt@language{#2} translation for `#1' is not defined yet.}}
-
-% --------------------------------------------------------------------------
-% check if babel or polyglossia is used
-\AtEndPreamble{
- \@ifpackageloaded{babel}{}{
- \@ifpackageloaded{polyglossia}{}
- {\@trnslt@warning{No language package found. I am going to use `english'
- as default language.}}
- }
- \ifdef\languagename{}
- {\def\languagename{english}}
- \def\@trnslt@current@language{\languagename}
- \ifdef\bbl@afterfi{}
- {\long\def\bbl@afterfi#1\fi{\fi#1}}
-}
-
-% book keeping: the following macros will be used as `etoolbox' lists that
-% keep record of defined languages, dialects and aliases
-\def\@trnslt@languages{}
-\def\@trnslt@aliases@pair{}
-\def\@trnslt@aliases@single{}
-\def\@trnslt@dialects@pair{}
-\def\@trnslt@dialects@single{}
-
-% --------------------------------------------------------------------------
-% \DeclareLanguage and \DeclareLanguageAlias
-% #1: language
-\newrobustcmd*\DeclareLanguage[1]{%
- \@trnslt@declare@language{#1}}
-\@onlypreamble\DeclareLanguage
-
-\def\@trnslt@declare@language#1{%
- \@trnslt@if@language{#1}
- {}{%
- \csdef{@trnslt@language@#1}{#1}%
- \listeadd\@trnslt@languages{#1}%
- }%
-}
-
-\def\@trnslt@language#1{%
- \csuse{@trnslt@language@#1}}
-
-\def\@trnslt@if@language#1{%
- \ifcsundef{@trnslt@language@#1}
- {\expandafter\@secondoftwo}
- {\expandafter\@firstoftwo}%
-}
-
-% #1: dialect
-% #2: language
-\newrobustcmd*\DeclareLanguageDialect[2]{%
- \@trnslt@declare@languagedialect{#1}{#2}}
-\@onlypreamble\DeclareLanguageDialect
-
-\def\@trnslt@declare@languagedialect#1#2{%
- \@trnslt@if@language{#2}
- {}{%
- \@trnslt@warn@unknown@lang{#2}%
- \@trnslt@declare@language{#2}%
- }%
- \@trnslt@if@dialect{#1}
- {% => ist schon als dialect definiert => irgendwelche weiteren checks?
- }
- {%
- \@trnslt@if@alias{#2}
- {%
- \csedef{@trnslt@dialect@#1}{{\@trnslt@alias{#2}}{#1}}%
- \@trnslt@declare@language{#1}%
- \listeadd\@trnslt@dialects@single{#1}%
- \listeadd\@trnslt@dialects@pair{{#1}{\@trnslt@alias{#2}}}%
- }
- {%
- \csdef{@trnslt@dialect@#1}{{#2}{#1}}%
- \@trnslt@declare@language{#1}%
- \listeadd\@trnslt@dialects@single{#1}%
- \listeadd\@trnslt@dialects@pair{{#1}{#2}}%
- }%
- }%
-}
-
-\def\@trnslt@dialect#1{%
- \csuse{@trnslt@dialect@#1}}
-
-\def\@trnslt@dialect@of#1{%
- \expandafter\expandafter\expandafter
- \@trnslt@dialect@of@aux
- \csname @trnslt@dialect@#1\endcsname\@empty
-}
-\def\@trnslt@dialect@of@aux#1#2{\ifx\relax#1\@empty\else#1\fi}
-
-\def\@trnslt@if@dialect#1{%
- \ifcsundef{@trnslt@dialect@#1}
- {\expandafter\@secondoftwo}
- {\expandafter\@firstoftwo}%
-}
-
-% #1: alias
-% #2: language
-\newrobustcmd*\DeclareLanguageAlias[2]{%
- \@trnslt@declare@languagealias{#1}{#2}}
-\@onlypreamble\DeclareLanguageAlias
-
-\def\@trnslt@declare@languagealias#1#2{%
- \@trnslt@if@language{#2}
- {}{%
- \@trnslt@warn@unknown@lang{#2}%
- \@trnslt@declare@language{#2}%
- }%
- \csletcs{@trnslt@language@#1}{@trnslt@language@#2}%
- \@trnslt@if@dialect{#2}
- {\csletcs{@trnslt@dialect@#1}{@trnslt@dialect@#2}}
- {}%
- \ifinlist{#1}\@trnslt@aliases@single
- {}{%
- \csdef{@trnslt@alias@#1}{#2}%
- \listeadd\@trnslt@aliases@pair{{#1}{#2}}%
- \listeadd\@trnslt@aliases@single{#1}%
- }%
-}
-
-\def\@trnslt@alias#1{%
- \csuse{@trnslt@alias@#1}}
-
-\def\@trnslt@if@alias#1{%
- \ifcsundef{@trnslt@alias@#1}
- {\expandafter\@secondoftwo}
- {\expandafter\@firstoftwo}%
-}
-
-% dummy language: `fallback':
-\DeclareLanguage{fallback}
-\DeclareLanguageAlias{Fallback}{fallback}
-
-% --------------------------------------------------------------------------
-% \DeclareTranslation, \NewTranslation and \RenewTranslation
-% #1: language
-% #2: word
-% #3: replacement
-\newrobustcmd*\DeclareTranslation[3]{%
- \@trnslt@declare@translation{#2}{#1}{#3}}
-\@onlypreamble\DeclareTranslation
-
-\newrobustcmd*\DeclareTranslationFallback[2]{%
- \@trnslt@declare@translation{#1}{fallback}{#2}}
-\@onlypreamble\DeclareTranslationFallback
-
-\newrobustcmd*\NewTranslation[3]{%
- \@trnslt@new@translation{#2}{#1}{#3}}
-\@onlypreamble\NewTranslation
-
-\newrobustcmd*\RenewTranslation[3]{%
- \@trnslt@renew@translation{#2}{#1}{#3}}
-\@onlypreamble\RenewTranslation
-
-% #1: word
-% #2: language
-% #3: replacement
-\def\@trnslt@declare@translation#1#2#3{%
- \@trnslt@if@language{#2}
- {%
- % save the <word> as <word>:
- \csdef{@trnslt@word@#1@literal}{#1}%
- % check if the language is a dialect:
- \@trnslt@if@dialect{#2}
- {\csdef{@trnslt@word@#1@\@trnslt@dialect{#2}}{#3}}
- {}%
- % check if translation already exists:
- \@trnslt@if@translation{#1}{#2}
- {}
- {\csdef{@trnslt@word@#1@\@trnslt@language{#2}}{#3}}%
- }
- {\@trnslt@err@unknown@lang{#2}}%
-}
-
-\def\@trnslt@if@translation#1#2{%
- \ifcsundef{@trnslt@word@#1@\@trnslt@language{#2}}
- {%
- \@trnslt@if@dialect{#2}
- {%
- \ifboolexpe{
- test {\ifcsundef{@trnslt@word@#1@\@trnslt@dialect{#2}}} or
- test {\ifcsundef{@trnslt@word@#1@\@trnslt@dialect@of{#2}}}
- }
- {\expandafter\@firstoftwo}
- {\expandafter\@secondoftwo}%
- }
- {\expandafter\@secondoftwo}%
- }
- {\expandafter\@firstoftwo}%
-}
-
-\def\@trnslt@new@translation#1#2#3{%
- \@trnslt@if@translation{#1}{#2}
- {\@trnslt@err@already@defined{#1}{#2}}
- {\@trnslt@declare@translation{#1}{#2}{#3}}}
-
-\def\@trnslt@renew@translation#1#2#3{%
- \@trnslt@if@translation{#1}{#2}
- {\@trnslt@declare@translation{#1}{#2}{#3}}
- {\@trnslt@err@not@defined{#1}{#2}}}
-
-% --------------------------------------------------------------------------
-% \GetTranslationFor and \GetTranslation
-% these need to be expandable!
-% #1: language
-% #2: word
-\newcommand*\GetTranslationFor[2]{%
- \@trnslt@get@translation@for{#2}{#1}}
-
-\newcommand*\GetTranslation[1]{%
- \@trnslt@get@translation@for{#1}{\@trnslt@current@language}}
-
-% #1: word #2: language
-\def\@trnslt@get@translation@for#1#2{%
- \@trnslt@if@dialect{#2}
- {%
- \ifcsdef{@trnslt@word@#1@\@trnslt@dialect{#2}}
- {\csuse{@trnslt@word@#1@\@trnslt@dialect{#2}}}
- {\csuse{@trnslt@word@#1@\@trnslt@dialect@of{#2}}}%
- }
- {\csuse{@trnslt@word@#1@\@trnslt@language{#2}}}%
-}
-
-\def\@trnslt@getandcheck@translation@for#1#2{%
- \@trnslt@if@translation{#1}{#2}
- {\@trnslt@get@translation@for{#1}{#2}}
- {%
- \@trnslt@warning{Translation for `#1' in #2 unknown. You may try to use
- \string\DeclareTranslation{#2}{#1}{ ... } in your preamble.}%
- \@trnslt@if@translation{#1}{fallback}
- {%
- \@trnslt@info{Using fallback translation for `#1'}%
- \csuse{@trnslt@word@#1@fallback}
- }%
- {\csuse{@trnslt@word@#1@literal}}%
- }%
-}
-
-% --------------------------------------------------------------------------
-% \SaveTranslationFor and \SaveTranslation
-\newrobustcmd*\SaveTranslationFor[3]{%
- \@trnslt@save@translation@for{#1}{#3}{#2}}
-
-\newrobustcmd*\SaveTranslation[2]{%
- \@trnslt@save@translation@for{#1}{#2}{\@trnslt@current@language}}
-
-\def\@trnslt@save@translation@for#1#2#3{%
- \edef#1{%
- \@trnslt@if@translation{#2}{#3}
- {\csuse{@trnslt@word@#2@\@trnslt@language{#3}}}
- {}%
- }}
-
-% --------------------------------------------------------------------------
-% \LoadDictionary and \LoadDictionaryFor
-\newrobustcmd*\LoadDictionary[1]{%
- \@trnslt@load@dictionary@for{#1}{\@trnslt@current@language}}
-\@onlypreamble\LoadDictionary
-
-\newrobustcmd*\LoadDictionaryFor[2]{%
- \@trnslt@load@dictionary@for{#2}{#1}}
-\@onlypreamble\LoadDictionaryFor
-
-% #1: name
-% #2: lang
-\def\@trnslt@load@dictionary@for#1#2{%
- \AtBeginDocument{%
- \InputIfFileExists{#1-\@trnslt@language{#2}.trsl}
- {\@trnslt@info{loading dictionary `#1' for `#2'.}}
- {\@trnslt@warning{File `#1-\@trnslt@language{#2}.trsl' not found.}}%
- }}
-
-\newrobustcmd*\ProvideDictionaryFor[2]{%
- \@trnslt@provide@dictionary@for{#1}{#2}}
-\@onlypreamble\ProvideDictionaryFor
-
-\def\@trnslt@provide@dictionary@for#1#2{%
- \def\@trnslt@dictionary@name{#2}%
- \def\@trnslt@dictionary@lang{#1}%
- \@ifnextchar[
- {\@trnslt@provide@dictionary@version}
- {\ProvidesFile{#2-#1.trsl}[(#1 translation file `#2')]}}
-
-\def\@trnslt@provide@dictionary@version[#1]{%
- \ProvidesFile
- {\@trnslt@dictionary@name-\@trnslt@dictionary@lang.trsl}%
- [(\@trnslt@dictionary@lang\space translation file `\@trnslt@dictionary@name') #1]}
-
-% \@trnslt@dictionary@language
-\newrobustcmd*\DeclareDictTranslation[2]{%
- \@trnslt@declare@translation{#1}{\@trnslt@dictionary@lang}{#2}}
-\@onlypreamble\DeclareDictTranslation
-
-% --------------------------------------------------------------------------
-% predefined languages
-\DeclareLanguage{albanian}
-\DeclareLanguage{bulgarian}
-\DeclareLanguage{catalan}
-\DeclareLanguage{croatian}
-\DeclareLanguage{czech}
-\DeclareLanguage{danish}
-\DeclareLanguage{dutch}
-\DeclareLanguage{english}
-\DeclareLanguage{finnish}
-\DeclareLanguage{french}
-\DeclareLanguage{german}
-\DeclareLanguage{greek}
-\DeclareLanguage{hebrew}
-\DeclareLanguage{hungarian}
-\DeclareLanguage{icelandic}
-\DeclareLanguage{italian}
-\DeclareLanguage{norwegian}
-\DeclareLanguage{polish}
-\DeclareLanguage{portuges}
-\DeclareLanguage{romanian}
-\DeclareLanguage{russian}
-\DeclareLanguage{serbocroatian}
-\DeclareLanguage{slovak}
-\DeclareLanguage{slovenian}
-\DeclareLanguage{spanish}
-\DeclareLanguage{swedish}
-\DeclareLanguage{turkish}
-\DeclareLanguage{ukrainian}
-
-\DeclareLanguageAlias {Albanian}{albanian}
-\DeclareLanguageAlias {Bulgarian}{bulgarian}
-\DeclareLanguageAlias {Catalan}{catalan}
-\DeclareLanguageAlias {Croatian}{croatian}
-\DeclareLanguageAlias {Czech}{czech}
-\DeclareLanguageAlias {Danish}{danish}
-\DeclareLanguageAlias {Dutch}{dutch}
-\DeclareLanguageAlias {Finnish}{finnish}
-\DeclareLanguageAlias {francais}{french}
-\DeclareLanguageAlias {Francais}{francais}
-\DeclareLanguageDialect{canadien}{french}
-\DeclareLanguageAlias {Canadien}{canadien}
-\DeclareLanguageAlias {French}{french}
-\DeclareLanguageDialect{american}{english}
-\DeclareLanguageAlias {American}{american}
-\DeclareLanguageDialect{australian}{english}
-\DeclareLanguageAlias {Australian}{australian}
-\DeclareLanguageDialect{british}{english}
-\DeclareLanguageAlias {British}{british}
-\DeclareLanguageDialect{canadian}{english}
-\DeclareLanguageAlias {Canadian}{canadian}
-\DeclareLanguageAlias {English}{english}
-\DeclareLanguageAlias {UKenglish}{british}
-\DeclareLanguageAlias {USenglish}{american}
-\DeclareLanguageDialect{austrian}{german}
-\DeclareLanguageAlias {Austrian}{austrian}
-\DeclareLanguageAlias {German}{german}
-\DeclareLanguageAlias {germanb}{german}
-\DeclareLanguageDialect{naustrian}{austrian}
-\DeclareLanguageAlias {ngerman}{german}
-\DeclareLanguageAlias {Greek}{greek}
-\DeclareLanguageAlias {polutonikogreek}{greek}
-\DeclareLanguageAlias {Hebrew}{hebrew}
-\DeclareLanguageAlias {Hungarian}{hungarian}
-\DeclareLanguageDialect{magyar}{hungarian}
-\DeclareLanguageAlias {Magyar}{magyar}
-\DeclareLanguageAlias {Icelandic}{icelandic}
-\DeclareLanguageAlias {Italian}{italian}
-\DeclareLanguageAlias {norsk}{norwegian}
-\DeclareLanguageAlias {Norsk}{norsk}
-\DeclareLanguageAlias {Norwegian}{norwegian}
-\DeclareLanguageAlias {nynorsk}{norwegian}
-\DeclareLanguageAlias {Nynorsk}{nynorsk}
-\DeclareLanguageAlias {Polish}{polish}
-\DeclareLanguageDialect{brazil}{portuges}
-\DeclareLanguageAlias {Brazil}{brazil}
-\DeclareLanguageAlias {brazilian}{brazil}
-\DeclareLanguageAlias {Brazilian}{brazilian}
-\DeclareLanguageAlias {Portuges}{portuges}
-\DeclareLanguageAlias {portuguese}{portuges}
-\DeclareLanguageAlias {Portuguese}{portuguese}
-\DeclareLanguageAlias {Romanian}{romanian}
-\DeclareLanguageAlias {Russian}{russian}
-\DeclareLanguageAlias {Serbocroatian}{serbocroatian}
-\DeclareLanguageAlias {Slovak}{slovak}
-\DeclareLanguageAlias {Slovenian}{slovenian}
-\DeclareLanguageAlias {Spanish}{spanish}
-\DeclareLanguageAlias {Swedish}{swedish}
-\DeclareLanguageDialect{swissgerman}{german}
-% this maybe should be a language of it's own:
-\DeclareLanguageAlias {Swiss}{swissgerman}
-\DeclareLanguageAlias {Swissgerman}{swissgerman}
-\DeclareLanguageAlias {Turkish}{turkish}
-\DeclareLanguageAlias {Ukrainian}{ukrainian}
-
-\endinput
-
-% HISTORY:
-2012/09/30 v0.2beta - first version (as part of the `exsheets' bundle)
-2012/10/05 v0.2 - \LoadDictionary and \LoadDictionaryFor added and loads of
- languages defined.
-2013/03/10 v0.8 - basic dictionaries for English, German, French and Spanish
- - new command \DeclareDictTranslation
-2013/04/04 v0.8a - bug fix in \DeclareDictTranslation
-2013/04/07 v0.9 - slightly improved messages
-2013/04/08 v0.9a - changed fallback warning into info
- - synchronized version number with `exsheets' until now but
- won't any more
-2013/06/22 v0.9b - added Swiss
-2013/06/28 v0.10 - declaring aliases of dialects now works as expected
- - declarings dialects of an alias now correctly declares
- the dialect to the correct base language
- - corrected a few erroneous langugae declarations
-
-