diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-13 20:56:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-13 20:56:28 +0000 |
commit | 4051e62d67488110f9f2581f603e5c360214df06 (patch) | |
tree | ef1014562493018e735e9e26970d86c8e4bb1ecf /Master/texmf-dist/tex/latex/translator/translator.sty | |
parent | 1f8e033a767c8068af2527a02533a3987c2c98d9 (diff) |
rm translator files
git-svn-id: svn://tug.org/texlive/trunk@18941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/translator/translator.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/translator/translator.sty | 158 |
1 files changed, 0 insertions, 158 deletions
diff --git a/Master/texmf-dist/tex/latex/translator/translator.sty b/Master/texmf-dist/tex/latex/translator/translator.sty deleted file mode 100644 index bb99ad35e4d..00000000000 --- a/Master/texmf-dist/tex/latex/translator/translator.sty +++ /dev/null @@ -1,158 +0,0 @@ -% Copyright 2007 by Till Tantau -% Copyright 2010 by Vedran Mileti\'c -% -% This file may be distributed and/or modified -% -% 1. under the LaTeX Project Public License and/or -% 2. under the GNU Public License. -% -% See the documentation file for more details. - -\def\translatorversion{1.01} - -\ProvidesPackage{translator}[2010/04/26 ver \translatorversion] - -\RequirePackage{keyval} - -\def\trans@languages{English} - -\newcommand\uselanguage[2][]{% - \g@addto@macro\trans@languages{,#2}% -} - -\newcommand\languagealias[2]{% - \expandafter\def\csname tr@ml@#1\endcsname{#2}% -} - -\input{translator-language-mappings} - -\newcommand\languagepath[1]{\def\trans@languagepath{#1}} -\def\trans@languagepath{\languagename,English} - -\define@key{translator}{to}{\def\trans@to{#1}} - -\newcommand\iftranslationdefined[4][]{% - \def\trans@to{\trans@defaultto}% - \setkeys{translator}{#1}% - \expandafter\ifx\csname tr@@@\trans@to @#2\endcsname\@undefined% - \let\trans@next=\@firstoftwo% - \else% - \let\trans@next=\@secondoftwo% - \fi% - \trans@next{#3}{#4}% -} - -\newcommand\deftranslation[3][]{% - \def\trans@to{\trans@defaultto}% - \setkeys{translator}{#1}% - \expandafter\def\csname tr@@@\trans@to @#2\endcsname{#3}% -} - -\newcommand\newtranslation[3][]{% - \iftranslationdefined[#1]{#2}{% - \PackageError{translator}{Translation of ``#2'' already defined.}{}% - }% - {% - \deftranslation[#1]{#2}{#3}% - }% -} - -\newcommand\renewtranslation[3][]{% - \iftranslationdefined[#1]{#2}{% - \deftranslation[#1]{#2}{#3}% - }% - {% - \PackageError{translator}{Translation of ``#2'' not defined.}{}% - }% -} - -\newcommand\providetranslation[3][]{% - \iftranslationdefined[#1]{#2}{% - }% - {% - \deftranslation[#1]{#2}{#3}% - }% -} - - - -\newcommand\translatelet[3][]{% - \edef\trans@to{\trans@languagepath}% - \setkeys{translator}{#1}% - \let\trans@trans\@empty% - \let\trans@list\@empty% - \@for\trans@lang:=\trans@to\do% - {% - \expandafter\ifx\csname tr@ml@\trans@lang\endcsname\relax% - \else% - \expandafter\let\expandafter\trans@lang\expandafter=\csname tr@ml@\trans@lang\endcsname% - \fi% - \edef\trans@list{\trans@list,\trans@lang}% - }% - \@for\trans@lang:=\trans@list\do% - {% - \expandafter\ifx\csname tr@@@\trans@lang @#3\endcsname\relax% - \else% - \ifx\trans@trans\@empty% - \expandafter\expandafter\expandafter\def - \expandafter\expandafter\expandafter\trans@trans - \expandafter\expandafter\expandafter{\csname tr@@@\trans@lang @#3\endcsname}% - \fi% - \fi% - }% - \ifx\trans@trans\@empty% - \def\trans@trans{#3}% - \fi% - \let#2=\trans@trans% -} - - - -\DeclareRobustCommand\translate[2][]{% - \translatelet[#1]\trans@temp{#2}% - \trans@temp% -} - - - -\def\trans@dictionaries{} - -\newcommand\usedictionary[1]{% - \g@addto@macro\trans@dictionaries{\usedictionary{#1}}% -} - -\def\trans@defaultto{English} - -\AtBeginDocument{% - \renewcommand\usedictionary[1]{% - \@for\trans@lang:=\trans@languages\do{% - \ifx\trans@lang\@empty% - \else% - \expandafter\ifx\csname ver@#1-\trans@lang.dict\endcsname\relax% - \edef\trans@temp{% - \def\noexpand\trans@defaultto{\trans@lang}% - \noexpand\InputIfFileExists{#1-\trans@lang.dict}{}{}% - \def\noexpand\trans@defaultto{\trans@defaultto}% - }% - \trans@temp% - \fi% - \fi% - }}% - \trans@dictionaries% -} - -\def\ProvidesDictionary#1#2{% - \begingroup - \catcode`\ 10 % - \@makeother\/% - \@ifnextchar[%] - {\@providesdictionary{#1}{#2}}{\@providesdictionary{#1}{#2}[]}% - } -\def\@providesdictionary#1#2[#3]{% - \wlog{Dictionary: #1, Language: #2 #3}% - \expandafter\xdef\csname ver@#1-#2.dict\endcsname{#3}% - \endgroup% -} - - -\endinput |