From 556c8fb15a545d032fe1bb0054304c96ae6ec282 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Tue, 8 Jul 2008 12:40:07 +0000 Subject: babel v3.8l 2008/07/06 git-svn-id: svn://tug.org/texlive/trunk@9360 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/babel/athnum.pdf | Bin 97006 -> 97007 bytes Master/texmf-dist/doc/generic/babel/babel.pdf | Bin 2359870 -> 2441515 bytes Master/texmf-dist/doc/generic/babel/bbcompat.pdf | Bin 52909 -> 52244 bytes Master/texmf-dist/doc/generic/babel/bbidxglo.pdf | Bin 58703 -> 58704 bytes Master/texmf-dist/doc/generic/babel/greek-fdd.pdf | Bin 96783 -> 105706 bytes .../texmf-dist/doc/generic/babel/greek-usage.pdf | Bin 109202 -> 109202 bytes Master/texmf-dist/doc/generic/babel/grmath.pdf | Bin 68077 -> 68078 bytes Master/texmf-dist/doc/generic/babel/grsymb.pdf | Bin 66215 -> 66215 bytes Master/texmf-dist/doc/generic/babel/tb1202.pdf | Bin 174728 -> 174728 bytes Master/texmf-dist/doc/generic/babel/tb1401.pdf | Bin 96207 -> 96210 bytes Master/texmf-dist/doc/generic/babel/tb1604.pdf | Bin 123391 -> 123391 bytes Master/texmf-dist/source/generic/babel/athnum.dtx | 2 +- Master/texmf-dist/source/generic/babel/babel.dtx | 39 +- .../texmf-dist/source/generic/babel/bbcompat.dtx | 9 +- Master/texmf-dist/source/generic/babel/czech.dtx | 967 +++++++++++++++- Master/texmf-dist/source/generic/babel/czech.ins | 6 +- Master/texmf-dist/source/generic/babel/danish.dtx | 2 +- .../texmf-dist/source/generic/babel/galician.dtx | 6 +- Master/texmf-dist/source/generic/babel/greek.dtx | 2 +- Master/texmf-dist/source/generic/babel/greek.fdd | 324 +++++- Master/texmf-dist/source/generic/babel/greek.ins | 12 +- Master/texmf-dist/source/generic/babel/grmath.dtx | 2 +- Master/texmf-dist/source/generic/babel/grsymb.dtx | 2 +- Master/texmf-dist/source/generic/babel/latin.dtx | 7 +- .../texmf-dist/source/generic/babel/ngermanb.dtx | 6 +- Master/texmf-dist/source/generic/babel/slovak.dtx | 1165 +++++++++++++++++--- Master/texmf-dist/source/generic/babel/slovak.ins | 6 +- Master/texmf-dist/source/generic/babel/spanish.dtx | 15 +- Master/texmf-dist/source/generic/babel/usage.tex | 2 +- Master/texmf-dist/tex/generic/babel/athnum.sty | 2 +- Master/texmf-dist/tex/generic/babel/babel.def | 6 +- Master/texmf-dist/tex/generic/babel/babel.sty | 4 +- Master/texmf-dist/tex/generic/babel/czech.ldf | 373 ++++++- Master/texmf-dist/tex/generic/babel/danish.ldf | 2 +- Master/texmf-dist/tex/generic/babel/galician.ldf | 2 +- Master/texmf-dist/tex/generic/babel/greek.ldf | 2 +- Master/texmf-dist/tex/generic/babel/grmath.sty | 2 +- Master/texmf-dist/tex/generic/babel/grsymb.sty | 2 +- Master/texmf-dist/tex/generic/babel/hyphen.cfg | 17 +- Master/texmf-dist/tex/generic/babel/latin.ldf | 2 +- Master/texmf-dist/tex/generic/babel/latin.sty | 2 + Master/texmf-dist/tex/generic/babel/lgrcmr.fd | 11 +- Master/texmf-dist/tex/generic/babel/lgrcmro.fd | 4 +- Master/texmf-dist/tex/generic/babel/lgrcmss.fd | 12 +- Master/texmf-dist/tex/generic/babel/lgrcmtt.fd | 4 +- Master/texmf-dist/tex/generic/babel/lgrenc.def | 4 +- Master/texmf-dist/tex/generic/babel/lgrlcmss.fd | 8 +- Master/texmf-dist/tex/generic/babel/lgrlcmtt.fd | 8 +- Master/texmf-dist/tex/generic/babel/lgrlmr.fd | 133 +++ Master/texmf-dist/tex/generic/babel/lgrlmro.fd | 99 ++ Master/texmf-dist/tex/generic/babel/lgrlmss.fd | 112 ++ Master/texmf-dist/tex/generic/babel/lgrlmtt.fd | 63 ++ Master/texmf-dist/tex/generic/babel/ngermanb.ldf | 2 +- Master/texmf-dist/tex/generic/babel/romanidx.sty | 2 +- Master/texmf-dist/tex/generic/babel/slovak.ldf | 531 +++++++-- Master/texmf-dist/tex/generic/babel/spanish.ldf | 5 +- Master/texmf-dist/tex/generic/babel/switch.def | 17 +- 57 files changed, 3604 insertions(+), 401 deletions(-) create mode 100644 Master/texmf-dist/tex/generic/babel/lgrlmr.fd create mode 100644 Master/texmf-dist/tex/generic/babel/lgrlmro.fd create mode 100644 Master/texmf-dist/tex/generic/babel/lgrlmss.fd create mode 100644 Master/texmf-dist/tex/generic/babel/lgrlmtt.fd (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/generic/babel/athnum.pdf b/Master/texmf-dist/doc/generic/babel/athnum.pdf index 9ce259aa1fc..3d51736c350 100644 Binary files a/Master/texmf-dist/doc/generic/babel/athnum.pdf and b/Master/texmf-dist/doc/generic/babel/athnum.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/babel.pdf b/Master/texmf-dist/doc/generic/babel/babel.pdf index 77a3965a4a8..35c70bc95d9 100644 Binary files a/Master/texmf-dist/doc/generic/babel/babel.pdf and b/Master/texmf-dist/doc/generic/babel/babel.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/bbcompat.pdf b/Master/texmf-dist/doc/generic/babel/bbcompat.pdf index c67866ad38b..8d2db4ec657 100644 Binary files a/Master/texmf-dist/doc/generic/babel/bbcompat.pdf and b/Master/texmf-dist/doc/generic/babel/bbcompat.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/bbidxglo.pdf b/Master/texmf-dist/doc/generic/babel/bbidxglo.pdf index 186d5d1d523..e7b8149eee3 100644 Binary files a/Master/texmf-dist/doc/generic/babel/bbidxglo.pdf and b/Master/texmf-dist/doc/generic/babel/bbidxglo.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/greek-fdd.pdf b/Master/texmf-dist/doc/generic/babel/greek-fdd.pdf index 0eb2d119d24..6ee0a70c431 100644 Binary files a/Master/texmf-dist/doc/generic/babel/greek-fdd.pdf and b/Master/texmf-dist/doc/generic/babel/greek-fdd.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/greek-usage.pdf b/Master/texmf-dist/doc/generic/babel/greek-usage.pdf index 9ac339861fc..2e263472522 100644 Binary files a/Master/texmf-dist/doc/generic/babel/greek-usage.pdf and b/Master/texmf-dist/doc/generic/babel/greek-usage.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/grmath.pdf b/Master/texmf-dist/doc/generic/babel/grmath.pdf index f855a8a8f96..248bfd4cf41 100644 Binary files a/Master/texmf-dist/doc/generic/babel/grmath.pdf and b/Master/texmf-dist/doc/generic/babel/grmath.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/grsymb.pdf b/Master/texmf-dist/doc/generic/babel/grsymb.pdf index b76a4101005..00ecfd8e54f 100644 Binary files a/Master/texmf-dist/doc/generic/babel/grsymb.pdf and b/Master/texmf-dist/doc/generic/babel/grsymb.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/tb1202.pdf b/Master/texmf-dist/doc/generic/babel/tb1202.pdf index 5ea64577614..d16c6fc5acf 100644 Binary files a/Master/texmf-dist/doc/generic/babel/tb1202.pdf and b/Master/texmf-dist/doc/generic/babel/tb1202.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/tb1401.pdf b/Master/texmf-dist/doc/generic/babel/tb1401.pdf index 76c717f5fe6..9778a410cc5 100644 Binary files a/Master/texmf-dist/doc/generic/babel/tb1401.pdf and b/Master/texmf-dist/doc/generic/babel/tb1401.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel/tb1604.pdf b/Master/texmf-dist/doc/generic/babel/tb1604.pdf index 871613e5766..75baff4710d 100644 Binary files a/Master/texmf-dist/doc/generic/babel/tb1604.pdf and b/Master/texmf-dist/doc/generic/babel/tb1604.pdf differ diff --git a/Master/texmf-dist/source/generic/babel/athnum.dtx b/Master/texmf-dist/source/generic/babel/athnum.dtx index 8b4c683632b..3ea1f5325aa 100644 --- a/Master/texmf-dist/source/generic/babel/athnum.dtx +++ b/Master/texmf-dist/source/generic/babel/athnum.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2007 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. diff --git a/Master/texmf-dist/source/generic/babel/babel.dtx b/Master/texmf-dist/source/generic/babel/babel.dtx index 29358b853c0..01211823d1d 100644 --- a/Master/texmf-dist/source/generic/babel/babel.dtx +++ b/Master/texmf-dist/source/generic/babel/babel.dtx @@ -26,7 +26,7 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{3858} +% \CheckSum{3865} %% % \def\filename{babel.dtx} % \let\thisfilename\filename @@ -42,7 +42,7 @@ % %% File 'babel.dtx' %\fi -%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8j The Babel package] +%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package] %\iffalse % % Babel DOCUMENT-STYLE option for LaTeX version 2.09 or plain TeX; @@ -171,12 +171,10 @@ % number of hard-wired texts. This report describes \babel{}, a % package that makes use of the new capabilities of \TeX\ version 3 % to provide an environment in which documents can be typeset in -% a non-American language, or in more than one language. +% a language other than US English, or in more than one language. % \end{abstract} % -% \begin{multicols}{2} % \tableofcontents -% \end{multicols} % % \section{The user interface}\label{U-I} % @@ -983,7 +981,7 @@ %<+kernel&!patterns>\ProvidesFile{switch.def} %<+driver&!user>\ProvidesFile{babel.drv} %<+driver&user>\ProvidesFile{user.drv} - [2008/03/16 v3.8j % + [2008/07/06 v3.8l % %<+package> The Babel package] %<+core> Babel common definitions] %<+kernel> Babel language switching mechanism] @@ -1805,6 +1803,7 @@ % \cs{date...} instead of \cs{l@...}} % \changes{babel~3.7m}{2003/11/16}{Check for the existence of both % \cs{l@...} and \cs{date...}} +% \changes{babel~3.8l}{2008/07/06}{Use \cs{bbl@patterns}} % \begin{macrocode} \def\select@language#1{% \expandafter\ifx\csname l@#1\endcsname\relax @@ -1813,7 +1812,7 @@ \expandafter\ifx\csname date#1\endcsname\relax \@noopterr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \originalTeX % \end{macrocode} % The name of the language is stored in the control sequence @@ -1991,8 +1990,9 @@ % the extra definitions for this language. % \changes{babel~3.6d}{1997/01/07}{set the language shorthands to % `none' before switching on the extras} +% \changes{babel~3.8l}{2008/07/06}{use \cs{bbl@patterns}} % \begin{macrocode} - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \languageshorthands{none}% % \end{macrocode} % Then we set the left- and right hyphenmin variables. @@ -2011,6 +2011,23 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\bbl@patterns} +% \changes{babel~3.8l}{2008/07/06}{Macro added} +% This macro selects the hyphenation patterns by changing the +% \cs{language} register. If special hyphenation patterns +% are available specifically for the current font encoding, +% use them instead of the default. +% \begin{macrocode} +\def\bbl@patterns#1{% + \language=\expandafter\ifx\csname l@#1:\f@encoding\endcsname\relax + \csname l@#1\endcsname + \else + \csname l@#1:\f@encoding\endcsname + \fi\relax +} +% \end{macrocode} +% \end{macro} +% % \begin{environment}{hyphenrules} % \changes{babel~3.7e}{2000/01/28}{Added environment hyphenrules} % The environment \Lenv{hyphenrules} can be used to select @@ -2019,12 +2036,13 @@ % specified were not loaded it has no effect. % \changes{babel~3.8j}{2008/03/16}{Also set the hyphenmin paramters to % the correct value (PR3997)} +% \changes{babel~3.8l}{2008/07/06}{Use \cs{bbl@patterns}} % \begin{macrocode} \def\hyphenrules#1{% \expandafter\ifx\csname l@#1\endcsname\@undefined \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{#1}% \languageshorthands{none}% \expandafter\ifx\csname #1hyphenmins\endcsname\relax \set@hyphenmins\tw@\thr@@\relax @@ -2206,11 +2224,12 @@ % files. It stores its argument in |\bbl@main@language|; to be used % to switch to the correct language at the beginning of the % document. +% \changes{babel~3.8l}{2008/07/06}{Use \cs{bbl@patterns}} % \begin{macrocode} \def\main@language#1{% \def\bbl@main@language{#1}% \let\languagename\bbl@main@language - \language=\csname l@\languagename\endcsname\relax + \bbl@patterns{\languagename}% } % \end{macrocode} % The default is to use English as the main language. diff --git a/Master/texmf-dist/source/generic/babel/bbcompat.dtx b/Master/texmf-dist/source/generic/babel/bbcompat.dtx index d37db98c3c0..895223cbed6 100644 --- a/Master/texmf-dist/source/generic/babel/bbcompat.dtx +++ b/Master/texmf-dist/source/generic/babel/bbcompat.dtx @@ -26,11 +26,11 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{262} +% \CheckSum{263} % % \iffalse %<*dtx> -\ProvidesFile{bbcompat.dtx}[2008/03/21 v1.2j] +\ProvidesFile{bbcompat.dtx}[2008/07/06 v1.2k] % % %% File 'bbcompat.dtx' @@ -148,9 +148,10 @@ % \changes{bbcompat-1.2g}{2001/01/19}{Added code for usenglish and % ukenglish.sty} % \changes{bbcompat-1.2h}{2003/11/13}{Added \file{interlingua.sty}} -% \begin{macrocode} % \changes{bbcompat-1.2i}{2005/11/23}{Added \file{albanian.sty} and % \file{bahasam.sty}} +% \changes{bbcompat-1.2k}{2008/07/06}{Added \file{latin.sty}} +% \begin{macrocode} %<+albanian>\def\CurrentOption{albanian} %<+albanian>\input albanian.ldf\relax %<+american>\def\CurrentOption{american} @@ -206,6 +207,8 @@ %<+irish>\input irish.ldf\relax %<+italian>\def\CurrentOption{italian} %<+italian>\input italian.ldf\relax +%<+latin>\def\CurrentOption{latin} +%<+latin>\input latin.ldf\relax %<+lsorbian>\def\CurrentOption{lsorbian} %<+lsorbian>\input lsorbian.ldf\relax %<+magyar>\def\CurrentOption{magyar} diff --git a/Master/texmf-dist/source/generic/babel/czech.dtx b/Master/texmf-dist/source/generic/babel/czech.dtx index 16f72d3f9bc..e4ae1a91aa0 100644 --- a/Master/texmf-dist/source/generic/babel/czech.dtx +++ b/Master/texmf-dist/source/generic/babel/czech.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. @@ -26,7 +26,7 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{190} +% \CheckSum{1142} % % \iffalse % Tell the \LaTeX\ system who we are and write an entry on the @@ -34,22 +34,29 @@ %<*dtx> \ProvidesFile{czech.dtx} % -%\ProvidesLanguage{czech} +%<+code>\ProvidesLanguage{czech} %\fi %\ProvidesFile{czech.dtx} - [2005/03/29 v1.3k Czech support from the babel system] + [2008/07/06 v3.1a Czech support from the babel system] %\iffalse %% File `czech.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2005 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek % -%% Please report errors to: J.L. Braams -%% babel at braams.cistron.nl +%% Copyright (C) 2005, 2008 +%% by Petr Tesa\v r\'ik (babel at tesarici.cz) +%% +%% Czech Language Definition File +% This file is also based on CSLaTeX +% by Ji\v r\'i Zlatu\v ska, Zden\v ek Wagner, +% Jaroslav \v Snajdr and Petr Ol\v s\'ak. +% +%% Please report errors to: Petr Tesa\v r\'ik +%% babel at tesarici.cz % % This file is part of the babel system, it provides the source % code for the Czech language definition file. -% Contributions were made by Milos Lokajicek (LOKAJICK@CERNVM). %<*filedriver> \documentclass{ltxdoc} \newcommand*\TeXhax{\TeX hax} @@ -64,6 +71,9 @@ % %\fi % +% \def\CS{$\cal C\kern-.1667em +% \lower.5ex\hbox{$\cal S$}\kern-.075em$} +% % \GetFileInfo{czech.dtx} % % \changes{czech-1.0a}{1991/07/15}{Renamed babel.sty in babel.com} @@ -77,17 +87,26 @@ % \cs{@undefined} and \cs{empty} with \cs{@empty} for consistency % with \LaTeX, moved the definition of \cs{atcatcode} right to the % beginning.} +% \changes{czech-3.0}{2005/09/10}{Implemented the functionality of +% \CS\LaTeX's czech.sty. The version number was bumped to 3.0 +% to minimize confusion by being higher than the last version +% of \CS\LaTeX.} % -% \section{The Czech language} +% \section{The Czech Language} % % The file \file{\filename}\footnote{The file described in this % section has version number \fileversion\ and was last revised on -% \filedate. Contributions were made by Milos Lokajicek -% (\texttt{LOKAJICK@CERNVM}).} defines all the language definition -% macros for the Czech language. +% \filedate. It was rewritten by Petr Tesa\v r\'ik +% (\texttt{babel@tesarici.cz}).} defines all the language definition +% macros for the Czech language. It is meant as a replacement of +% \CS\LaTeX, the most-widely used standard for typesetting Czech +% documents in \LaTeX. +% +% \subsection{Usage} +% For this language |\frenchspacing| is set. % -% For this language |\frenchspacing| is set and two macros |\q| and -% |\w| for easy access to two accents are defined. +% Additionally, two macros are defined |\q| and |\w| for easy +% access to two accents are defined. % % The command |\q| is used with the letters (\texttt{t}, % \texttt{d}, \texttt{l}, and \texttt{L}) and adds a \texttt{'} to @@ -96,8 +115,69 @@ % ring-accent which appears in \aa ngstr\o m over the letters % \texttt{u} and \texttt{U}. % +% \subsection{Compatibility} +% +% Great care has been taken to ensure backward compatibility with +% \CS\LaTeX. In particular, documents which load this file with +% |\usepackage{czech}| should produce identical output with no +% modifications to the source. Additionally, all the \CS\LaTeX{} +% options are recognized: +% +% \label{tab:czech-options} +% \begin{list}{} +% {\def\makelabel#1{\sbox0{\Lopt{#1}}% +% \ifdim\wd0>\labelwidth +% \setbox0\vbox{\box0\hbox{}} \wd0=0pt \fi +% \box0\hfil} +% \setlength{\labelwidth}{2\parindent} +% \setlength{\leftmargin}{2\parindent} +% \setlength{\rightmargin}{\parindent}} +% \item[IL2, T1, OT1] +% These options set the default font encoding. Please note +% that their use is deprecated. You should use the |fontenc| +% package to select font encoding. +% +% \item[split, nosplit] +% These options control whether hyphenated words are +% automatically split according to Czech typesetting rules. +% With the \Lopt{split} option ``je-li'' is hyphenated as +% ``je-/-li''. The \Lopt{nosplit} option disables this behavior. +% +% The use of this option is strongly discouraged, as it breaks +% too many common things---hyphens cannot be used in labels, +% negative arguments to \TeX{} primitives will not work in +% horizontal mode (use \cs{minus} as a workaround), and there are +% a few other peculiarities with using this mode. +% +% \item[nocaptions] +% +% This option was used in \CS\LaTeX{} to set up Czech/Slovak +% typesetting rules, but leave the original captions and dates. +% The recommended way to achieve this is to use English as the main +% language of the document and use the environment |otherlanguage*| +% for Czech text. +% +% \item[olduv] +% There are two version of \cs{uv}. The older one allows the use +% of \cs{verb} inside the quotes but breaks any respective kerning +% with the quotes (like that in \CS{} fonts). The newer one honors +% the kerning in the font but does not allow \cs{verb} inside the +% quotes. +% +% The new version is used by default in \LaTeXe{} and the old version +% is used with plain \TeX. You may use \Lopt{olduv} to override the +% default in \LaTeXe. +% +% \item[cstex] +% This option was used to include the commands \cs{csprimeson} and +% \cs{csprimesoff}. Since these commands are always included now, +% it has been removed and the empty definition lasts for compatibility. +% \end{list} +% % \StopEventually{} % +% \subsection{Implementation} +% % The macro |\LdfInit| takes care of preventing that this file is % loaded more than once, checking the category code of the % \texttt{@} sign, etc. @@ -105,12 +185,12 @@ % initial checks} % \begin{macrocode} %<*code> -\LdfInit{czech}\captionsczech +\LdfInit\CurrentOption{date\CurrentOption} % \end{macrocode} % % When this file is read as an option, i.e. by the |\usepackage| -% command, \texttt{czech} will be an `unknown' language in which case -% we have to make it known. So we check for the existence of +% command, \texttt{czech} might be an `unknown' language in which +% case we have to make it known. So we check for the existence of % |\l@czech| to see whether we have to do something here. % % \changes{czech-1.0b}{1991/10/27}{Removed use of \cs{@ifundefined}} @@ -124,12 +204,85 @@ \adddialect\l@czech0\fi % \end{macrocode} % +% We need to define these macros early in the process. +% +% \begin{macrocode} +\def\cs@iltw@{IL2} +\newif\ifcs@splithyphens +\cs@splithyphensfalse +% \end{macrocode} +% +% If Babel is not loaded, we provide compatibility with \CS\LaTeX. +% However, if macro \cs{@ifpackageloaded} is not defined, we assume +% to be loaded from plain and provide compatibility with csplain. +% Of course, this does not work well with \LaTeX$\:$2.09, but I +% doubt anyone will ever want to use this file with \LaTeX$\:$2.09. +% +% \begin{macrocode} +\ifx\@ifpackageloaded\@undefined + \let\cs@compat@plain\relax + \message{csplain compatibility mode} +\else + \@ifpackageloaded{babel}{}{% + \let\cs@compat@latex\relax + \message{cslatex compatibility mode}} +\fi +\ifx\cs@compat@latex\relax + \ProvidesPackage{czech}[2008/07/06 v3.1a CSTeX Czech style] +% \end{macrocode} +% +% Declare \CS\LaTeX{} options (see also the descriptions on page +% \pageref{tab:czech-options}). +% +% \begin{macrocode} + \DeclareOption{IL2}{\def\encodingdefault{IL2}} + \DeclareOption {T1}{\def\encodingdefault {T1}} + \DeclareOption{OT1}{\def\encodingdefault{OT1}} + \DeclareOption{nosplit}{\cs@splithyphensfalse} + \DeclareOption{split}{\cs@splithyphenstrue} + \DeclareOption{nocaptions}{\let\cs@nocaptions=\relax} + \DeclareOption{olduv}{\let\cs@olduv=\relax} + \DeclareOption{cstex}{\relax} +% \end{macrocode} +% +% Make |IL2| encoding the default. This can be overriden with +% the other font encoding options. +% \begin{macrocode} + \ExecuteOptions{\cs@iltw@} +% \end{macrocode} +% +% Now, process the user-supplied options. +% \begin{macrocode} + \ProcessOptions +% \end{macrocode} +% +% Standard \LaTeXe{} does not include the IL2 encoding in the format. +% The encoding can be loaded later using the fontenc package, but +% \CS\LaTeX{} included IL2 by default. This means existing documents +% for \CS\LaTeX{} do not load that package, so load the encoding +% ourselves in compatibility mode. +% +% \begin{macrocode} + \ifx\encodingdefault\cs@iltw@ + \input il2enc.def + \fi +% \end{macrocode} +% +% Restore the definition of \cs{CurrentOption}, clobbered by processing +% the options. +% +% \begin{macrocode} + \def\CurrentOption{czech} +\fi +% \end{macrocode} +% % The next step consists of defining commands to switch to (and % from) the Czech language. % % \begin{macro}{\captionsczech} -% The macro |\captionsczech| defines all strings used in the four +% The macro \cs{captionsczech} defines all strings used in the four % standard documentclasses provided with \LaTeX. +% % \changes{czech-1.1}{1992/02/15}{Added \cs{seename}, \cs{alsoname} % and \cs{prefacename}} % \changes{czech-1.3f}{1995/07/04}{Added \cs{proofname} for AMS-\LaTeX} @@ -137,46 +290,55 @@ % translation for `proof'} % \changes{czech-1.3j}{2000/09/19}{Added \cs{glossaryname}} % \changes{czech-1.3k}{2004/02/18}{Added translation for Glossary} +% \changes{czech-3.0}{2005/11/25}{Updated some translations. Former +% translations were: `Dodatek' for \cs{appendixname} and `Index' +% for \cs{indexname}. Also removed spurious colon at the end of +% \cs{ccname}.} +% % \begin{macrocode} -\addto\captionsczech{% - \def\prefacename{P\v redmluva}% +\@namedef{captions\CurrentOption}{% + \def\prefacename{P\v{r}edmluva}% \def\refname{Reference}% \def\abstractname{Abstrakt}% \def\bibname{Literatura}% \def\chaptername{Kapitola}% - \def\appendixname{Dodatek}% + \def\appendixname{P\v{r}\'{\i}loha}% \def\contentsname{Obsah}% \def\listfigurename{Seznam obr\'azk\r{u}}% \def\listtablename{Seznam tabulek}% - \def\indexname{Index}% + \def\indexname{Rejst\v{r}\'{\i}k}% \def\figurename{Obr\'azek}% \def\tablename{Tabulka}% \def\partname{\v{C}\'ast}% \def\enclname{P\v{r}\'{\i}loha}% - \def\ccname{Na v\v{e}dom\'{\i}:}% + \def\ccname{Na v\v{e}dom\'{\i}}% \def\headtoname{Komu}% \def\pagename{Strana}% \def\seename{viz}% \def\alsoname{viz tak\'e}% \def\proofname{D\r{u}kaz}% - \def\glossaryname{Glos\'a\v r}% + \def\glossaryname{Slovn\'{\i}k}% }% % \end{macrocode} % \end{macro} % % \begin{macro}{\dateczech} -% The macro |\dateczech| redefines the command |\today| to produce -% Czech dates. +% The macro \cs{dateczech} redefines the command \cs{today} +% to produce Czech dates. +% +% \CS\LaTeX{} allows line break between the day and the month. +% However, this behavior has been agreed upon to be a bad thing by +% the csTeX mailing list in December 2005 and has not been adopted. +% % \changes{czech-1.3i}{1997/10/01}{Use \cs{edef} to define \cs{today} % to save memory} -% \changes{czech-1.3i}{1998/03/28}{use \cs{def} instead of \cs{edef}} +% \changes{czech-1.3i}{1998/03/28}{Use \cs{def} instead of \cs{edef}} % \begin{macrocode} -\def\dateczech{% - \def\today{\number\day.~\ifcase\month\or - ledna\or \'unora\or b\v{r}ezna\or dubna\or kv\v{e}tna\or - \v{c}ervna\or \v{c}ervence\or srpna\or z\'a\v{r}\'{\i}\or - \v{r}\'{\i}jna\or listopadu\or prosince\fi - \space \number\year}} +\@namedef{date\CurrentOption}{% + \def\today{\number\day.~\ifcase\month\or ledna\or \'unora\or + b\v{r}ezna\or dubna\or kv\v{e}tna\or \v{c}ervna\or \v{c}ervence\or + srpna\or z\'a\v{r}\'\i\or \v{r}\'{\i}jna\or listopadu\or + prosince\fi \space\number\year}} % \end{macrocode} % \end{macro} % @@ -187,25 +349,54 @@ % to cancel the actions of |\extrasczech|. This means saving the % meaning of two one-letter control sequences before defining them. % +% For Czech texts \cs{frenchspacing} should be in effect. Language +% group for shorthands is also set here. +% \changes{czech-1.3e}{1995/03/14}{now use \cs{bbl@frenchspacing} and +% \cs{bbl@nonfrenchspacing}} +% \changes{czech-3.1}{2006/10/07}{move \cs{languageshorthands} here, +% so that the language group is always initialized correctly} +% \begin{macrocode} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \bbl@frenchspacing + \languageshorthands{czech}} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \bbl@nonfrenchspacing} +% \end{macrocode} +% % \changes{czech-1.1a}{1992/07/07}{Removed typo, \cs{q} was restored % twice, once too many.} % \changes{czech-1.3e}{1995/03/15}{Use \LaTeX's \cs{v} and \cs{r} % accent commands} % \begin{macrocode} -\addto\extrasczech{\babel@save\q\let\q\v} -\addto\extrasczech{\babel@save\w\let\w\r} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \babel@save\q\let\q\v + \babel@save\w\let\w\r} % \end{macrocode} -% For Czech texts |\frenchspacing| should be in effect. We make -% sure this is the case and reset it if necessary. -% \changes{czech-1.3e}{1995/03/14}{now use \cs{bbl@frenchspacing} and -% \cs{bbl@nonfrenchspacing}} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\sq} +% \begin{macro}{\dq} +% We save the original single and double quote characters in +% \cs{sq} and \cs{dq} to make them available later. % \begin{macrocode} -\addto\extrasczech{\bbl@frenchspacing} -\addto\noextrasczech{\bbl@nonfrenchspacing} +\begingroup\catcode`\"=12\catcode`\'=12 +\def\x{\endgroup + \def\sq{'} + \def\dq{"}} +\x % \end{macrocode} % \end{macro} % \end{macro} % +% \changes{czech-3.0}{2005/12/10}{Added default for setting hyphenmin +% parameters. Values taken from \CS\LaTeX.} +% This macro is used to store the correct values of the hyphenation +% parameters |\lefthyphenmin| and |\righthyphenmin|. +% \begin{macrocode} +\providehyphenmins{\CurrentOption}{\tw@\thr@@} +% \end{macrocode} +% % \begin{macro}{\v} % \LaTeX's normal |\v| accent places a caron over the letter that % follows it (\v{o}). This is not what we want for the letters d, @@ -223,7 +414,7 @@ % % \begin{macro}{\lcaron} % \begin{macro}{\Lcaron} -% Fot the letters \texttt{l} and \texttt{L} we want to disinguish +% For the letters \texttt{l} and \texttt{L} we want to disinguish % between normal fonts and monospaced fonts. % \begin{macrocode} \def\lcaron{% @@ -245,13 +436,703 @@ % \end{macro} % \end{macro} % +% Initialize active quotes. \CS\LaTeX{} provides a way of +% converting English-style quotes into Czech-style ones. Both +% single and double quotes are affected, i.e. |``text''| is +% converted to something like |,,text``| and |`text'| is converted +% to |,text`|. This conversion can be switched on and off with +% \cs{csprimeson} and \cs{csprimesoff}.\footnote{By the way, the +% names of these macros are misleading, because the handling of +% primes in math mode is rather marginal, the most important thing +% being the handling of quotes\ldots} +% +% These quotes present various troubles, e.g. the kerning is broken, +% apostrophes are converted to closing single quote, some primitives +% are broken (most notably the |\catcode`\|\meta{char} syntax will +% not work any more), and writing them to \file{.aux} files cannot +% be handled correctly. For these reasons, these commands are only +% available in \CS\LaTeX{} compatibility mode. +% +% \begin{macrocode} +\ifx\cs@compat@latex\relax + \let\cs@ltxprim@s\prim@s + \def\csprimeson{% + \catcode`\`\active \catcode`\'\active \let\prim@s\bbl@prim@s} + \def\csprimesoff{% + \catcode`\`12 \catcode`\'12 \let\prim@s\cs@ltxprim@s} + \begingroup\catcode`\`\active + \def\x{\endgroup + \def`{\futurelet\cs@next\cs@openquote} + \def\cs@openquote{% + \ifx`\cs@next \expandafter\cs@opendq + \else \expandafter\clq + \fi}% + }\x + \begingroup\catcode`\'\active + \def\x{\endgroup + \def'{\textormath{\futurelet\cs@next\cs@closequote} + {^\bgroup\prim@s}} + \def\cs@closequote{% + \ifx'\cs@next \expandafter\cs@closedq + \else \expandafter\crq + \fi}% + }\x + \def\cs@opendq{\clqq\let\cs@next= } + \def\cs@closedq{\crqq\let\cs@next= } +% \end{macrocode} +% +% The way I recommend for typesetting quotes in Czech documents +% is to use shorthands similar to those used in German. +% +% \begin{macrocode} +\else + \initiate@active@char{"} + \expandafter\addto\csname extras\CurrentOption\endcsname{% + \bbl@activate{"}} + \expandafter\addto\csname noextras\CurrentOption\endcsname{% + \bbl@deactivate{"}} + \declare@shorthand{czech}{"`}{\clqq} + \declare@shorthand{czech}{"'}{\crqq} + \declare@shorthand{czech}{"<}{\flqq} + \declare@shorthand{czech}{">}{\frqq} + \declare@shorthand{czech}{"=}{\cs@splithyphen} +\fi +% \end{macrocode} +% +% \begin{macro}{\clqq} +% This is the CS opening quote, which is similar to the German +% quote (\cs{glqq}) but the kerning is different. +% +% For the OT1 encoding, the quote is constructed from the right +% double quote (i.e. the ``Opening quotes'' character) by moving +% it down to the baseline and shifting it to the right, or to the +% left if italic correction is positive. +% +% For T1, the ``German Opening quotes'' is used. It is moved to +% the right and the total width is enlarged. This is done in an +% attempt to minimize the difference between the OT1 and T1 +% versions. +% +% \changes{3.0}{2006/04/20}{Added \cs{leavevmode} to allow an opening +% quote at the beginning of a paragraph} +% \begin{macrocode} +\ProvideTextCommand{\clqq}{OT1}{% + \set@low@box{\textquotedblright}% + \setbox\@ne=\hbox{l\/}\dimen\@ne=\wd\@ne + \setbox\@ne=\hbox{l}\advance\dimen\@ne-\wd\@ne + \leavevmode + \ifdim\dimen\@ne>\z@\kern-.1em\box\z@\kern.1em + \else\kern.1em\box\z@\kern-.1em\fi\allowhyphens} +\ProvideTextCommand{\clqq}{T1} + {\kern.1em\quotedblbase\kern-.0158em\relax} +\ProvideTextCommandDefault{\clqq}{\UseTextSymbol{OT1}\clqq} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\crqq} +% For OT1, the CS closing quote is basically the same as +% \cs{grqq}, only the \cs{textormath} macro is not used, because +% as far as I know, \cs{grqq} does not work in math mode anyway. +% +% For T1, the character is slightly wider and shifted to the +% right to match its OT1 counterpart. +% +% \begin{macrocode} +\ProvideTextCommand{\crqq}{OT1} + {\save@sf@q{\nobreak\kern-.07em\textquotedblleft\kern.07em}} +\ProvideTextCommand{\crqq}{T1} + {\save@sf@q{\nobreak\kern.06em\textquotedblleft\kern.024em}} +\ProvideTextCommandDefault{\crqq}{\UseTextSymbol{OT1}\crqq} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\clq} +% \begin{macro}{\crq} +% +% Single CS quotes are similar to double quotes (see the +% discussion above). +% +% \begin{macrocode} +\ProvideTextCommand{\clq}{OT1} + {\set@low@box{\textquoteright}\box\z@\kern.04em\allowhyphens} +\ProvideTextCommand{\clq}{T1} + {\quotesinglbase\kern-.0428em\relax} +\ProvideTextCommandDefault{\clq}{\UseTextSymbol{OT1}\clq} +\ProvideTextCommand{\crq}{OT1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommand{\crq}{T1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommandDefault{\crq}{\UseTextSymbol{OT1}\crq} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\uv} +% There are two versions of \cs{uv}. The older one opens a group +% and uses \cs{aftergroup} to typeset the closing quotes. This +% version allows using \cs{verb} inside the quotes, because the +% enclosed text is not passed as an argument, but unfortunately +% it breaks any kerning with the quotes. Although the kerning +% with the opening quote could be fixed, the kerning with the +% closing quote cannot. +% +% The newer version is defined as a command with one parameter. +% It preserves kerning but since the quoted text is passed as an +% argument, it cannot contain \cs{verb}. +% +% Decide which version of \cs{uv} should be used. For sake +% of compatibility, we use the older version with plain \TeX{} +% and the newer version with \LaTeXe. +% \begin{macrocode} +\ifx\cs@compat@plain\@undefined\else\let\cs@olduv=\relax\fi +\ifx\cs@olduv\@undefined + \DeclareRobustCommand\uv[1]{{\leavevmode\clqq#1\crqq}} +\else + \DeclareRobustCommand\uv{\bgroup\aftergroup\closequotes + \leavevmode\clqq\let\cs@next=} + \def\closequotes{\unskip\crqq\relax} +\fi +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\cs@wordlen} +% Declare a counter to hold the length of the word after the +% hyphen. +% +% \begin{macrocode} +\newcount\cs@wordlen +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@hyphen} +% \begin{macro}{\cs@endash} +% \begin{macro}{\cs@emdash} +% Store the original hyphen in a macro. Ditto for the ligatures. +% +% \changes{czech-3.1}{2006/10/07}{ensure correct catcode for the +% saved hyphen} +% \begin{macrocode} +\begingroup\catcode`\-12 +\def\x{\endgroup + \def\cs@hyphen{-} + \def\cs@endash{--} + \def\cs@emdash{---} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@boxhyphen} +% Provide a non-breakable hyphen to be used when a compound word +% is too short to be split, i.e. the second part is shorter than +% \cs{righthyphenmin}. +% +% \begin{macrocode} + \def\cs@boxhyphen{\hbox{-}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@splithyphen} +% The macro \cs{cs@splithyphen} inserts a split hyphen, while +% allowing both parts of the compound word to be hyphenated at +% other places too. +% +% \begin{macrocode} + \def\cs@splithyphen{\kern\z@ + \discretionary{-}{\char\hyphenchar\the\font}{-}\nobreak\hskip\z@} +}\x +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{-} +% To minimize the effects of activating the hyphen character, +% the active definition expands to the non-active character +% in all cases where hyphenation cannot occur, i.e. if not +% typesetting (check \cs{protect}), not in horizontal mode, +% or in inner horizontal mode. +% +% \begin{macrocode} +\initiate@active@char{-} +\declare@shorthand{czech}{-}{% + \ifx\protect\@typeset@protect + \ifhmode + \ifinner + \bbl@afterelse\bbl@afterelse\bbl@afterelse\cs@hyphen + \else + \bbl@afterfi\bbl@afterelse\bbl@afterelse\cs@firsthyphen + \fi + \else + \bbl@afterfi\bbl@afterelse\cs@hyphen + \fi + \else + \bbl@afterfi\cs@hyphen + \fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@firsthyphen} +% \begin{macro}{\cs@firsthyph@n} +% \begin{macro}{\cs@secondhyphen} +% \begin{macro}{\cs@secondhyph@n} +% If we encounter a hyphen, check whether it is followed +% by a second or a third hyphen and if so, insert the +% corresponding ligature. +% +% If we don't find a hyphen, the token found will be placed +% in \cs{cs@token} for further analysis, and it will also stay +% in the input. +% +% \begin{macrocode} +\begingroup\catcode`\-\active +\def\x{\endgroup + \def\cs@firsthyphen{\futurelet\cs@token\cs@firsthyph@n} + \def\cs@firsthyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@secondhyphen + \else + \bbl@afterfi\cs@checkhyphen + \fi} + \def\cs@secondhyphen ##1{% + \futurelet\cs@token\cs@secondhyph@n} + \def\cs@secondhyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@emdash\@gobble + \else + \bbl@afterfi\cs@endash + \fi} +}\x +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@checkhyphen} +% Check that hyphenation is enabled, and if so, start analyzing +% the rest of the word, i.e. initialize \cs{cs@word} and \cs{cs@wordlen} +% and start processing input with \cs{cs@scanword}. +% +% \begin{macrocode} +\def\cs@checkhyphen{% + \ifnum\expandafter\hyphenchar\the\font=`\- + \def\cs@word{}\cs@wordlen\z@ + \bbl@afterelse\cs@scanword + \else + \cs@hyphen + \fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@scanword} +% \begin{macro}{\cs@continuescan} +% \begin{macro}{\cs@gettoken} +% \begin{macro}{\cs@gett@ken} +% Each token is first analyzed with \cs{cs@scanword}, which expands +% the token and passes the first token of the result to +% \cs{cs@gett@ken}. If the expanded token is not identical to the +% unexpanded one, presume that it might be expanded further and +% pass it back to \cs{cs@scanword} until you get an unexpandable +% token. Then analyze it in \cs{cs@examinetoken}. +% +% The \cs{cs@continuescan} macro does the same thing as +% \cs{cs@scanword}, but it does not require the first token to be +% in \cs{cs@token} already. +% +% \begin{macrocode} +\def\cs@scanword{\let\cs@lasttoken= \cs@token\expandafter\cs@gettoken} +\def\cs@continuescan{\let\cs@lasttoken\@undefined\expandafter\cs@gettoken} +\def\cs@gettoken{\futurelet\cs@token\cs@gett@ken} +\def\cs@gett@ken{% + \ifx\cs@token\cs@lasttoken \def\cs@next{\cs@examinetoken}% + \else \def\cs@next{\cs@scanword}% + \fi \cs@next} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{cs@examinetoken} +% Examine the token in \cs{cs@token}: +% +% \begin{itemize} +% \item +% If it is a letter (catcode 11) or other (catcode 12), add it +% to \cs{cs@word} with \cs{cs@addparam}. +% +% \item +% If it is the \cs{char} primitive, add it with \cs{cs@expandchar}. +% +% \item +% If the token starts or ends a group, ignore it with +% \cs{cs@ignoretoken}. +% +% \item +% Otherwise analyze the meaning of the token with +% \cs{cs@checkchardef} to detect primitives defined with +% \cs{chardef}. +% +% \end{itemize} +% +% \begin{macrocode} +\def\cs@examinetoken{% + \ifcat A\cs@token + \def\cs@next{\cs@addparam}% + \else\ifcat 0\cs@token + \def\cs@next{\cs@addparam}% + \else\ifx\char\cs@token + \def\cs@next{\afterassignment\cs@expandchar\let\cs@token= }% + \else\ifx\bgroup\cs@token + \def\cs@next{\cs@ignoretoken\bgroup}% + \else\ifx\egroup\cs@token + \def\cs@next{\cs@ignoretoken\egroup}% + \else\ifx\begingroup\cs@token + \def\cs@next{\cs@ignoretoken\begingroup}% + \else\ifx\endgroup\cs@token + \def\cs@next{\cs@ignoretoken\endgroup}% + \else + \def\cs@next{\expandafter\expandafter\expandafter\cs@checkchardef + \expandafter\meaning\expandafter\cs@token\string\char\end}% + \fi\fi\fi\fi\fi\fi\fi\cs@next} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@checkchardef} +% Check the meaning of a token and if it is a primitive defined +% with \cs{chardef}, pass it to \cs{\cs@examinechar} as if it were +% a \cs{char} sequence. Otherwise, there are no more word characters, +% so do the final actions in \cs{cs@nosplit}. +% +% \begin{macrocode} +\expandafter\def\expandafter\cs@checkchardef + \expandafter#\expandafter1\string\char#2\end{% + \def\cs@token{#1}% + \ifx\cs@token\@empty + \def\cs@next{\afterassignment\cs@examinechar\let\cs@token= }% + \else + \def\cs@next{\cs@nosplit}% + \fi \cs@next} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@ignoretoken} +% Add a token to \cs{cs@word} but do not update the \cs{cs@wordlen} +% counter. This is mainly useful for group starting and ending +% primitives, which need to be preserved, but do not affect the word +% boundary. +% +% \begin{macrocode} +\def\cs@ignoretoken#1{% + \edef\cs@word{\cs@word#1}% + \afterassignment\cs@continuescan\let\cs@token= } +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{cs@addparam} +% Add a token to \cs{cs@word} and check its lccode. Note that +% this macro can only be used for tokens which can be passed as +% a parameter. +% +% \begin{macrocode} +\def\cs@addparam#1{% + \edef\cs@word{\cs@word#1}% + \cs@checkcode{\lccode`#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@expandchar} +% \begin{macro}{\cs@examinechar} +% Add a \cs{char} sequence to \cs{cs@word} and check its lccode. +% The charcode is first parsed in \cs{cs@expandchar} and then the +% resulting \cs{chardef}-defined sequence is analyzed in +% \cs{cs@examinechar}. +% +% \begin{macrocode} +\def\cs@expandchar{\afterassignment\cs@examinechar\chardef\cs@token=} +\def\cs@examinechar{% + \edef\cs@word{\cs@word\char\the\cs@token\space}% + \cs@checkcode{\lccode\cs@token}} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@checkcode} +% Check the lccode of a character. If it is zero, it does not count +% to the current word, so finish it with \cs{cs@nosplit}. Otherwise +% update the \cs{cs@wordlen} counter and go on scanning the word +% with \cs{cs@continuescan}. When enough characters are gathered in +% \cs{cs@word} to allow word break, insert the split hyphen and +% finish. +% +% \begin{macrocode} +\def\cs@checkcode#1{% + \ifnum0=#1 + \def\cs@next{\cs@nosplit}% + \else + \advance\cs@wordlen\@ne + \ifnum\righthyphenmin>\the\cs@wordlen + \def\cs@next{\cs@continuescan}% + \else + \cs@splithyphen + \def\cs@next{\cs@word}% + \fi + \fi \cs@next} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@nosplit} +% Insert a non-breakable hyphen followed by the saved word. +% +% \begin{macrocode} +\def\cs@nosplit{\cs@boxhyphen\cs@word} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@hyphen} +% The \cs{minus} sequence can be used where the active hyphen +% does not work, e.g. in arguments to \TeX{} primitives in outer +% horizontal mode. +% +% \begin{macrocode} +\let\minus\cs@hyphen +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\standardhyphens} +% \begin{macro}{\splithyphens} +% These macros control whether split hyphens are allowed in Czech +% and/or Slovak texts. You may use them in any language, but the +% split hyphen is only activated for Czech and Slovak. +% +% \changes{czech-3.1}{2006/10/07}{activate with split hyphens and +% deactivate with standard hyphens, not vice versa} +% \begin{macrocode} +\def\standardhyphens{\cs@splithyphensfalse\cs@deactivatehyphens} +\def\splithyphens{\cs@splithyphenstrue\cs@activatehyphens} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@splitattr} +% Now we declare the |split| language attribute. This is +% similar to the |split| package option of cslatex, but it +% only affects Czech, not Slovak. +% +% \changes{czech-3.1}{2006/10/07}{attribute added} +% \begin{macrocode} +\def\cs@splitattr{\babel@save\ifcs@splithyphens\splithyphens} +\bbl@declare@ttribute{czech}{split}{% + \addto\extrasczech{\cs@splitattr}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@activatehyphens} +% \begin{macro}{\cs@deactivatehyphens} +% These macros are defined as \cs{relax} by default to prevent +% activating/deactivating the hyphen character. They are redefined +% when the language is switched to Czech/Slovak. At that moment +% the hyphen is also activated if split hyphens were requested with +% \cs{splithyphens}. +% +% When the language is de-activated, de-activate the hyphen and +% restore the bogus definitions of these macros. +% +% \begin{macrocode} +\let\cs@activatehyphens\relax +\let\cs@deactivatehyphens\relax +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \def\cs@activatehyphens{\bbl@activate{-}}% + \def\cs@deactivatehyphens{\bbl@deactivate{-}}% + \ifcs@splithyphens\cs@activatehyphens\fi} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \cs@deactivatehyphens + \let\cs@activatehyphens\relax + \let\cs@deactivatehyphens\relax} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@looseness} +% \begin{macro}{\looseness} +% One of the most common situations where an active hyphen will not +% work properly is the \cs{looseness} primitive. Change its definition +% so that it deactivates the hyphen if needed. +% +% \begin{macrocode} +\let\cs@looseness\looseness +\def\looseness{% + \ifcs@splithyphens + \cs@deactivatehyphens\afterassignment\cs@activatehyphens \fi + \cs@looseness} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@selectlanguage} +% \begin{macro}{\cs@main@language} +% Specifying the |nocaptions| option means that captions and dates +% are not redefined by default, but they can be switched on later +% with \cs{captionsczech} and/or \cs{dateczech}. +% +% We mimic this behavior by redefining \cs{selectlanguage}. This +% macro is called once at the beginning of the document to set the +% main language of the document. If this is \cs{cs@main@language}, +% it disables the macros for setting captions and date. In any +% case, it restores the original definition of \cs{selectlanguage} +% and expands it. +% +% The definition of \cs{selectlanguage} can be shared between Czech +% and Slovak; the actual language is stored in \cs{cs@main@language}. +% +% \begin{macrocode} +\ifx\cs@nocaptions\@undefined\else + \edef\cs@main@language{\CurrentOption} + \ifx\cs@origselect\@undefined + \let\cs@origselect=\selectlanguage + \def\selectlanguage{% + \let\selectlanguage\cs@origselect + \ifx\bbl@main@language\cs@main@language + \expandafter\cs@selectlanguage + \else + \expandafter\selectlanguage + \fi} + \def\cs@selectlanguage{% + \cs@tempdisable{captions}% + \cs@tempdisable{date}% + \selectlanguage} +% \end{macrocode} +% +% \begin{macro}{\cs@tempdisable} +% \cs{cs@tempdisable} disables a language setup macro temporarily, +% i.e. the macro with the name of \meta{\#1}|\bbl@main@language| +% just restores the original definition and purges the saved macro +% from memory. +% +% \begin{macrocode} + \def\cs@tempdisable#1{% + \def\@tempa{cs@#1}% + \def\@tempb{#1\bbl@main@language}% + \expandafter\expandafter\expandafter\let + \expandafter \csname\expandafter \@tempa \expandafter\endcsname + \csname \@tempb \endcsname + \expandafter\edef\csname \@tempb \endcsname{% + \let \expandafter\noexpand \csname \@tempb \endcsname + \expandafter\noexpand \csname \@tempa \endcsname + \let \expandafter\noexpand\csname \@tempa \endcsname + \noexpand\@undefined}} +% \end{macrocode} +% \end{macro} +% +% These macros are not needed, once the initialization is over. +% +% \begin{macrocode} + \@onlypreamble\cs@main@language + \@onlypreamble\cs@origselect + \@onlypreamble\cs@selectlanguage + \@onlypreamble\cs@tempdisable + \fi +\fi +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% The encoding of mathematical fonts should be changed to IL2. This +% allows to use accented letter in some font families. Besides, +% documents do not use CM fonts if there are equivalents in CS-fonts, +% so there is no need to have both bitmaps of CM-font and CS-font. +% +% \cs{@font@warning} and \cs{@font@info} are temporarily redefined +% to avoid annoying font warnings. +% +% \begin{macrocode} +\ifx\cs@compat@plain\@undefined +\ifx\cs@check@enc\@undefined\else + \def\cs@check@enc{ + \ifx\encodingdefault\cs@iltw@ + \let\cs@warn\@font@warning \let\@font@warning\@gobble + \let\cs@info\@font@info \let\@font@info\@gobble + \SetSymbolFont{operators}{normal}{\cs@iltw@}{cmr}{m}{n} + \SetSymbolFont{operators}{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathbf{normal}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{normal}{\cs@iltw@}{cmr}{m}{it} + \SetMathAlphabet\mathrm{normal}{\cs@iltw@}{cmr}{m}{n} + \SetMathAlphabet\mathsf{normal}{\cs@iltw@}{cmss}{m}{n} + \SetMathAlphabet\mathtt{normal}{\cs@iltw@}{cmtt}{m}{n} + \SetMathAlphabet\mathbf{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{bold}{\cs@iltw@}{cmr}{bx}{it} + \SetMathAlphabet\mathrm{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathsf{bold}{\cs@iltw@}{cmss}{bx}{n} + \SetMathAlphabet\mathtt{bold}{\cs@iltw@}{cmtt}{m}{n} + \let\@font@warning\cs@warn \let\cs@warn\@undefined + \let\@font@info\cs@info \let\cs@info\@undefined + \fi + \let\cs@check@enc\@undefined} + \AtBeginDocument{\cs@check@enc} +\fi +\fi +% \end{macrocode} +% +% \begin{macro}{cs@undoiltw@} +% +% The thing is that \LaTeXe{} core only supports the T1 encoding +% and does not bother changing the uc/lc/sfcodes when encoding +% is switched. :( However, the IL2 encoding \emph{does} change +% these codes, so if encoding is switched back from IL2, we must +% also undo the effect of this change to be compatible with +% \LaTeXe. OK, this is not the right\textsuperscript{TM} solution +% but it works. Cheers to Petr Ol\v s\'ak. +% +% \begin{macrocode} +\def\cs@undoiltw@{% + \uccode158=208 \lccode158=158 \sfcode158=1000 + \sfcode159=1000 + \uccode165=133 \lccode165=165 \sfcode165=1000 + \uccode169=137 \lccode169=169 \sfcode169=1000 + \uccode171=139 \lccode171=171 \sfcode171=1000 + \uccode174=142 \lccode174=174 \sfcode174=1000 + \uccode181=149 + \uccode185=153 + \uccode187=155 + \uccode190=0 \lccode190=0 + \uccode254=222 \lccode254=254 \sfcode254=1000 + \uccode255=223 \lccode255=255 \sfcode255=1000} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{@@enc@update} +% +% Redefine the \LaTeXe{} internal function \cs{@@enc@update} to +% change the encodings correctly. +% +% \begin{macrocode} +\ifx\cs@enc@update\@undefined +\ifx\@@enc@update\@undefined\else + \let\cs@enc@update\@@enc@update + \def\@@enc@update{\ifx\cf@encoding\cs@iltw@\cs@undoiltw@\fi + \cs@enc@update + \expandafter\ifnum\csname l@\languagename\endcsname=\the\language + \expandafter\ifx + \csname l@\languagename:\f@encoding\endcsname\relax + \else + \expandafter\expandafter\expandafter\let + \expandafter\csname + \expandafter l\expandafter @\expandafter\languagename + \expandafter\endcsname\csname l@\languagename:\f@encoding\endcsname + \fi + \language=\csname l@\languagename\endcsname\relax + \fi} +\fi\fi +% \end{macrocode} +% \end{macro} +% % The macro |\ldf@finish| takes care of looking for a % configuration file, setting the main language to be switched on % at |\begin{document}| and resetting the category code of % \texttt{@} to its original value. % \changes{czech-1.3h}{1996/11/02}{Now use \cs{ldf@finish} to wrap up} % \begin{macrocode} -\ldf@finish{czech} +\ldf@finish\CurrentOption % % \end{macrocode} % diff --git a/Master/texmf-dist/source/generic/babel/czech.ins b/Master/texmf-dist/source/generic/babel/czech.ins index 06743474603..587a0a8f89f 100644 --- a/Master/texmf-dist/source/generic/babel/czech.ins +++ b/Master/texmf-dist/source/generic/babel/czech.ins @@ -3,7 +3,7 @@ %% driver files from the doc files in this package when run through %% LaTeX or TeX. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file is part of the Babel system. @@ -53,7 +53,7 @@ \declarepreamble\mainpreamble This is a generated file. -Copyright 1989-2005 Johannes L. Braams and any individual authors +Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. This file was generated from file(s) of the Babel system. @@ -87,7 +87,7 @@ extension .ins) which are part of the distribution. \declarepreamble\fdpreamble This is a generated file. -Copyright 1989-2005 Johannes L. Braams and any individual authors +Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. This file was generated from file(s) of the Babel system. diff --git a/Master/texmf-dist/source/generic/babel/danish.dtx b/Master/texmf-dist/source/generic/babel/danish.dtx index 696561b3807..59420be6cbb 100644 --- a/Master/texmf-dist/source/generic/babel/danish.dtx +++ b/Master/texmf-dist/source/generic/babel/danish.dtx @@ -36,7 +36,7 @@ %\ProvidesLanguage{danish} %\fi %\ProvidesFile{danish.dtx} - [2008/03/17 v1.3q Danish support from the babel system] + [2008/07/06 v1.3q Danish support from the babel system] %\iffalse %% File `danish.dtx' %% Babel package for LaTeX version 2e diff --git a/Master/texmf-dist/source/generic/babel/galician.dtx b/Master/texmf-dist/source/generic/babel/galician.dtx index f531828fc92..3e7e5c4d999 100644 --- a/Master/texmf-dist/source/generic/babel/galician.dtx +++ b/Master/texmf-dist/source/generic/babel/galician.dtx @@ -28,7 +28,7 @@ % \fi % \CheckSum{2264} % \ProvidesFile{galician.dtx} -% [2007/10/11 v4.3b Galician support from the babel system] +% [2008/07/06 v4.3c Galician support from the babel system] %\iffalse %% File `galician.dtx' %% Babel package for LaTeX version 2e @@ -1236,7 +1236,7 @@ % \begin{macrocode} %<*code> \ProvidesLanguage{galician.ldf} - [2007/01/29 v4.3 Galician support from the babel system] + [2008/07/06 v4.3c Galician support from the babel system] % \end{macrocode} % % The macro |\LdfInit| takes care of preventing that this file is @@ -1433,7 +1433,7 @@ % % Now, lowercase small caps. First, we test if there are actual % small caps for the current font. If not, faked small caps are -% used. \cs{msc} tries a slightly larger font. +% used. |\msc| tries a slightly larger font. % Javier B. wrote: ``The \cs{selectfont} in \cs{gl@lsc} could % seem redundant, but it's not''. I cannot see how it can't be % redundant (it is the last thing executed by |\scshape|), but diff --git a/Master/texmf-dist/source/generic/babel/greek.dtx b/Master/texmf-dist/source/generic/babel/greek.dtx index 4f198cdee56..0e878bf22d4 100644 --- a/Master/texmf-dist/source/generic/babel/greek.dtx +++ b/Master/texmf-dist/source/generic/babel/greek.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. diff --git a/Master/texmf-dist/source/generic/babel/greek.fdd b/Master/texmf-dist/source/generic/babel/greek.fdd index c567aa5d52c..ab884f0b51a 100644 --- a/Master/texmf-dist/source/generic/babel/greek.fdd +++ b/Master/texmf-dist/source/generic/babel/greek.fdd @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. @@ -26,7 +26,7 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{105} +% \CheckSum{183} % % \iffalse This is a META comment % @@ -41,7 +41,11 @@ %\ProvidesFile{lgrcmss.fd} %\ProvidesFile{lgrlcmss.fd} %\ProvidesFile{lgrlcmtt.fd} - [2001/01/30 v2.2e % +%\ProvidesFile{lgrlmr.fd} +%\ProvidesFile{lgrlmro.fd} +%\ProvidesFile{lgrlmss.fd} +%\ProvidesFile{lgrlmtt.fd} + [2008/06/17 v2.3 % % Greek Encoding] % Greek Computer Modern] % Greek Computer Modern Outline] @@ -49,6 +53,10 @@ % Greek Computer Modern Sans Serif] % Greek Computer Modern Sans Serif slide sizes] % Greek Computer Modern Typewriter slide sizes] +% Greek Latin Modern] +% Greek Latin Modern Outline] +% Greek Latin Modern Typewriter] +% Greek Latin Modern Sans Serif] %<*fdd> ] % @@ -76,6 +84,8 @@ % \changes{greekfdd-2.1}{1997/10/31}{Produce files with lowercase % names} % \changes{greekfdd-2.2}{1998/05/16}{Added support for CB fonts v2.xx} +% \changes{greekfdd-2.3}{2008/06/17}{Added support for CB fonts v2.xx +% with extra families and Latin Modern compatibility} % % \section{Introduction} % @@ -84,6 +94,10 @@ % now the official fonts for the \Lopt{greek} option of the % \textsf{babel} package are the |cb| fonts. % +% The font definition files prduced from this documented source +% make the |cb| fonts compatible with both the Computer Modern +% collection (both CM and EC) and the Latin Modern one. +% % \StopEventually{} % % \section{The \texttt{docstrip} modules} @@ -99,6 +113,10 @@ % LGRcmtt & The typewriter font shapes\\ % LGRlcmss & The slide size Sans Serif font shapes\\ % LGRlcmtt & The slide size typewriter fonts\\ +% LGRlmr & The Roman font shapes\\ +% LGRlmro & The Outline Roman font shapes\\ +% LGRlmss & The Sans Serif font shapes\\ +% LGRlmtt & The typewriter font shapes\\ % \end{tabular} % \end{center} % A typical \dsc\ command file would then have entries like: @@ -120,12 +138,6 @@ % \changes{greekfdd-2.2e}{2000/10/26}{Added more font sizes to make % the CB fonts compatible with the EC fonts} % \begin{macrocode} -%<*fd> -\providecommand{\EC@family}[5]{% - \DeclareFontShape{#1}{#2}{#3}{#4} - {<5><6><7><8><9><10><10.95><12><14.4>% - <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} -% %<*LGRenc> \DeclareFontEncoding{LGR}{}{} \DeclareFontSubstitution{LGR}{cmr}{m}{n} @@ -160,17 +172,29 @@ % % \begin{macrocode} %<*LGRcmr> +\providecommand{\EC@family}[5]{% + \DeclareFontShape{#1}{#2}{#3}{#4} + {<5><6><7><8><9><10><10.95><12><14.4>% + <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} \DeclareFontFamily{LGR}{cmr}{} \EC@family{LGR}{cmr}{m}{n} {grmn} \EC@family{LGR}{cmr}{m}{sl} {grmo} \EC@family{LGR}{cmr}{m}{it} {grmi} \EC@family{LGR}{cmr}{m}{sc} {grmc} \EC@family{LGR}{cmr}{m}{ui} {grmu} +\EC@family{LGR}{cmr}{m}{li} {grml} +\EC@family{LGR}{cmr}{m}{rs} {gmmn} +\EC@family{LGR}{cmr}{m}{ro} {gmmo} +% \EC@family{LGR}{cmr}{bx}{sc} {grxc} \EC@family{LGR}{cmr}{bx}{n} {grxn} \EC@family{LGR}{cmr}{bx}{sl} {grxo} \EC@family{LGR}{cmr}{bx}{it} {grxi} \EC@family{LGR}{cmr}{bx}{ui} {grxu} +\EC@family{LGR}{cmr}{bx}{li} {grxl} +\EC@family{LGR}{cmr}{bx}{rs} {gmxn} +\EC@family{LGR}{cmr}{bx}{ro} {gmxo} +\EC@family{LGR}{cmr}{b}{li} {grbl} \DeclareFontShape{LGR}{cmr}{b}{n} {<->ssub*cmr/bx/n}{} \DeclareFontShape{LGR}{cmr}{b}{sc} @@ -183,6 +207,10 @@ % \changes{greekfdd-2.2b}{1999/04/03}{grmu should be gomu here...} % \begin{macrocode} %<*LGRcmro> +\providecommand{\EC@family}[5]{% + \DeclareFontShape{#1}{#2}{#3}{#4} + {<5><6><7><8><9><10><10.95><12><14.4>% + <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} \DeclareFontFamily{LGR}{cmro}{} \EC@family{LGR}{cmro}{m}{n} {gomn} \EC@family{LGR}{cmro}{m}{sl} {gomo} @@ -207,6 +235,10 @@ % font to $-1$} % \begin{macrocode} %<*LGRcmtt> +\providecommand{\EC@family}[5]{% + \DeclareFontShape{#1}{#2}{#3}{#4} + {<5><6><7><8><9><10><10.95><12><14.4>% + <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} \DeclareFontFamily{LGR}{cmtt}{\hyphenchar\font\m@ne}% \hyphenchar = -1 \EC@family{LGR}{cmtt}{m}{n} {gttn} \EC@family{LGR}{cmtt}{m}{sl} {gtto} @@ -232,17 +264,26 @@ % of x in the fontname} % \begin{macrocode} %<*LGRcmss> +\providecommand{\EC@family}[5]{% + \DeclareFontShape{#1}{#2}{#3}{#4} + {<5><6><7><8><9><10><10.95><12><14.4>% + <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} \DeclareFontFamily{LGR}{cmss}{} \EC@family{LGR}{cmss}{m}{n} {gsmn} \EC@family{LGR}{cmss}{m}{sl} {gsmo} \EC@family{LGR}{cmss}{m}{sc} {gsmc} \EC@family{LGR}{cmss}{m}{it} {gsmi} \EC@family{LGR}{cmss}{m}{ui} {gsmu} +\EC@family{LGR}{cmss}{m}{iv} {gsme} +\EC@family{LGR}{cmss}{m}{uv} {gsma} +% \EC@family{LGR}{cmss}{bx}{n} {gsxn} \EC@family{LGR}{cmss}{bx}{sl} {gsxo} \EC@family{LGR}{cmss}{bx}{sc} {gsxc} -\EC@family{LGR}{cmss}{bx}{it} {gsmi} -\EC@family{LGR}{cmss}{bx}{ui} {gsmu} +\EC@family{LGR}{cmss}{bx}{it} {gsxi} +\EC@family{LGR}{cmss}{bx}{ui} {gsxu} +\EC@family{LGR}{cmss}{bx}{iv} {gsxe} +\EC@family{LGR}{cmss}{bx}{uv} {gsxa} % % \end{macrocode} % @@ -337,6 +378,267 @@ % % \end{macrocode} % +% And now come the font definition files compatible with the Latin +% Modern family names and sizes; notice that the Latin Modern fonts +% are available only as scalable PostScript fonts, therefore they +% cope with continuous scaling; also the |cb| fonts are distributed +% as scalable PostScript fonts, so it makes sense to use the same +% size and family specifications as the LM fonts. +% +% We start with the Latin Modern Regular. +% \begin{macrocode} +%<*LGRlmr> +\DeclareFontFamily{LGR}{lmr}{} +\DeclareFontShape{LGR}{lmr}{m}{n}% + {<-5.5> grmn0500 <5.5-6.5> grmn0600 + <6.5-7.5> grmn0700 <7.5-8.5> grmn0800 + <8.5-9.5> grmn0900 <9.5-11> grmn1000 + <11-15> grmn1200 <15-> grmn1728}{} +\DeclareFontShape{LGR}{lmr}{m}{rs}% + {<-5.5> gmmn0500 <5.5-6.5> gmmn0600 + <6.5-7.5> gmmn0700 <7.5-8.5> gmmn0800 + <8.5-9.5> gmmn0900 <9.5-11> gmmn1000 + <11-15> gmmn1200 <15-> gmmn1728}{} +\DeclareFontShape{LGR}{lmr}{m}{sl}% + {<-8.5> grmo0800 <8.5-9.5> grmo0900 + <9.5-11> grmo1000 <11-15> grmo1200 + <15-> grmo1728}{} +\DeclareFontShape{LGR}{lmr}{m}{ro}% + {<-8.5> gmmo0800 <8.5-9.5> gmmo0900 + <9.5-11> gmmo1000 <11-15> gmmo1200 + <15-> gmmo1728}{} +\DeclareFontShape{LGR}{lmr}{m}{it}% + {<-7.5> grmi0700 + <7.5-8.5> grmi0800 <8.5-9.5> grmi0900 + <9.5-11> grmi1000 <11-15> grmi1200 + <15-> grmi1728}{} +\DeclareFontShape{LGR}{lmr}{m}{li}% + {<-7.5> grml0700 + <7.5-8.5> grml0800 <8.5-9.5> grml0900 + <9.5-11> grml1000 <11-15> grml1200 + <15-> grml1728}{} +\DeclareFontShape{LGR}{lmr}{m}{ui}% + {<-7.5> grmu0700 + <7.5-8.5> grmu0800 <8.5-9.5> grmu0900 + <9.5-11> grmu1000 <11-15> grmu1200 + <15-> grmu1728}{} +\DeclareFontShape{LGR}{lmr}{m}{sc}% + {<-7.5> grmc0700 + <7.5-8.5> grmc0800 <8.5-9.5> grmc0900 + <9.5-11> grmc1000 <11-15> grmc1200 + <15-> grmc1728}{} +% slanted CSC is changed to unslanted CSC +\DeclareFontShape{LGR}{lmr}{m}{scsl}% + {<-> ssub*lmr/m/sc}{} +%%%%%%%% bold and bold extended series +\DeclareFontShape{LGR}{lmr}{bx}{n} + {<-5.5> grxn0500 <5.5-6.5> grx0600 + <6.5-7.5> grxn0700 <7.5-8.5> grxn0800 + <8.5-9.5> grxn0900 <9.5-11> grxn1000 + <11-15> grxn1200 <15-> grxn1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{rs} + {<-5.5> gmxn0500 <5.5-6.5> gmx0600 + <6.5-7.5> gmxn0700 <7.5-8.5> gmxn0800 + <8.5-9.5> gmxn0900 <9.5-11> gmxn1000 + <11-15> gmxn1200 <15-> gmxn1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{it} + {<-7.5> grxi0700 + <7.5-8.5> grxi0800 <8.5-9.5> grxi0900 + <9.5-11> grxi1000 <11-15> grxi1200 + <15-> grxi1728}{} +\DeclareFontShape{LGR}{lmr}{b}{li} + {<-7.5> grbl0700 + <7.5-8.5> grbl0800 <8.5-9.5> grbl0900 + <9.5-11> grbl1000 <11-15> grbl1200 + <15-> grbl1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{li} + {<-7.5> grxl0700 + <7.5-8.5> grxl0800 <8.5-9.5> grxl0900 + <9.5-11> grxl1000 <11-15> grxl1200 + <15-> grxl1728 + }{} +\DeclareFontShape{LGR}{lmr}{bx}{ui} + {<-7.5> grxu0700 + <7.5-8.5> grxu0800 <8.5-9.5> grxu0900 + <9.5-11> grxu1000 <11-15> grxu1200 + <15-> grxu1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{sl} + {<-8.5> grxo0800 <8.5-9.5> grxo0900 + <9.5-11> grxo1000 <11-15> grxo1200 + <15-> grxo1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{ro} + {<-8.5> gmxo0800 <8.5-9.5> gmxo0900 + <9.5-11> gmxo1000 <11-15> gmxo1200 + <15-> gmxo1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{sc}% + {<-7.5> grxc0700 + <7.5-8.5> grxc0800 <8.5-9.5> grxc0900 + <9.5-11> grxc1000 <11-15> grxc1200 + <15-> grxc1728}{} +% +% \end{macrocode} +% +% Then the Latin Modern Regular Outline +% \begin{macrocode} +%<*LGRlmro> +\DeclareFontFamily{LGR}{lmro}{} +\DeclareFontShape{LGR}{lmro}{m}{n}% + {<-5.5> gomn0500 <5.5-6.5> gomn0600 + <6.5-7.5> gomn0700 <7.5-8.5> gomn0800 + <8.5-9.5> gomn0900 <9.5-11> gomn1000 + <11-15> gomn1200 <15-> gmr1728}{} +\DeclareFontShape{LGR}{lmro}{m}{sl}% + {<-8.5> gomo0800 <8.5-9.5> gomo0900 + <9.5-11> gomo1000 <11-15> gomo1200 + <15-> gomo1728}{} +\DeclareFontShape{LGR}{lmro}{m}{it}% + {<-7.5> gomi0700 + <7.5-8.5> gomi0800 <8.5-9.5> gomi0900 + <9.5-11> gomi1000 <11-15> gomi1200 + <15-> gomi1728}{} +\DeclareFontShape{LGR}{lmro}{m}{ui}% + {<-7.5> gomu0700 + <7.5-8.5> gomu0800 <8.5-9.5> gomu0900 + <9.5-11> gomu1000 <11-15> gomu1200 + <15-> gomu1728}{} +\DeclareFontShape{LGR}{lmro}{m}{sc}% + {<-7.5> gomc0700 + <7.5-8.5> gomc0800 <8.5-9.5> gomc0900 + <9.5-11> gomc1000 <11-15> gomc1200 + <15-> gomc1728}{} +% slanted CSC is changed to unslanted CSC +\DeclareFontShape{LGR}{lmro}{m}{scsl}% + {<-> ssub*lmr/m/sc}{} +%%%%%%%% bold extended series +\DeclareFontShape{LGR}{lmro}{bx}{n} + {<-5.5> goxn0500 <5.5-6.5> gox0600 + <6.5-7.5> goxn0700 <7.5-8.5> goxn0800 + <8.5-9.5> goxn0900 <9.5-11> goxn1000 + <11-15> goxn1200 <15-> goxn1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{it} + {<-7.5> goxi0700 + <7.5-8.5> goxi0800 <8.5-9.5> goxi0900 + <9.5-11> goxi1000 <11-> goxi1200 + <15-> goxi1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{ui} + {<-7.5> goxu0700 + <7.5-8.5> goxu0800 <8.5-9.5> goxu0900 + <9.5-11> goxu1000 <11-> goxu1200 + <15-> goxu1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{sl} + {<-8.5> goxo0800 <8.5-9.5> goxo0900 + <9.5-11> goxo1000 <11-15> goxo1200 + <15-> goxo1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{sc}% + {<-7.5> goxc0700 + <7.5-8.5> goxc0800 <8.5-9.5> goxc0900 + <9.5-11> goxc1000 <11-15> goxc1200 + <15-> goxc1728}{} +% +% \end{macrocode} +% +% Now the Latin Modern Sans Serif +% +% \begin{macrocode} +%<*LGRlmss> +\DeclareFontFamily{LGR}{lmss}{} +\DeclareFontShape{LGR}{lmss}{m}{n} + {<-8.5> gsmn0800 + <8.5-9.5> gsmn0900 <9.5-11> gsmn1000 + <11-15.5> gsmn1200 <15.5-> gsmn1728}{} +\DeclareFontShape{LGR}{lmss}{m}{it} + {<-8.5> gsmi0800 + <8.5-9.5> gsmi0900 <9.5-11> gsmi1000 + <11-15.5> gsmi1200 <15.5-> gsmi1728}{} +\DeclareFontShape{LGR}{lmss}{m}{iv} + {<-8.5> gsme0800 + <8.5-9.5> gsme0900 <9.5-11> gsme1000 + <11-15.5> gsme1200 <15.5-> gsme1728}{} +\DeclareFontShape{LGR}{lmss}{m}{ui} + {<-8.5> gsmu0800 + <8.5-9.5> gsmu0900 <9.5-11> gsmu1000 + <11-15.5> gsmu1200 <15.5-> gsmu1728}{} +\DeclareFontShape{LGR}{lmss}{m}{uv} + {<-8.5> gsma0800 + <8.5-9.5> gsma0900 <9.5-11> gsma1000 + <11-15.5> gsma1200 <15.5-> gsma1728}{} +\DeclareFontShape{LGR}{lmss}{m}{sl} + {<-8.5> gsmo0800 + <8.5-9.5> gsmo0900 <9.5-11> gsmo1000 + <11-15.5> gsmo1200 <15.5-> gsmo1728}{} +\DeclareFontShape{LGR}{lmss}{m}{sc} + {<-8.5> gsmc0800 + <8.5-9.5> gsmc0900 <9.5-11> gsmc1000 + <11-15.5> gsmc1200 <15.5-> gsmc1728}{} +%%%%%%%% semibold condensed series substituted with medium series +\DeclareFontShape{LGR}{lmss}{sbc}{n} +{<-> ssub*lmss/m/n}{} +\DeclareFontShape{LGR}{lmss}{sbc}{sl} +{<-> ssub*/lmss/m/sl}{} +\DeclareFontShape{LGR}{lmss}{sbc}{it} +{<->ssub*lmss/m/sl}{} +%%%%%%%%% bold extended series +\DeclareFontShape{LGR}{lmss}{bx}{n} + {<-8.5> gsxn0800 + <8.5-9.5> gsxn0900 <9.5-11> gsxn1000 + <11-15.5> gsxn1200 <15.5-> gsxn1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{sl} + {<-8.5> gsxo0800 + <8.5-9.5> gsxo0900 <9.5-11> gsxo1000 + <11-15.5> gsxo1200 <15.5-> gsxo1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{it} + {<-8.5> gsxi0800 + <8.5-9.5> gsxi0900 <9.5-11> gsxi1000 + <11-15.5> gsxi1200 <15.5-> gsxi1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{iv} + {<-8.5> gsxe0800 + <8.5-9.5> gsxe0900 <9.5-11> gsxe1000 + <11-15.5> gsxe1200 <15.5-> gsxe1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{ui} + {<-8.5> gsxu0800 + <8.5-9.5> gsxu0900 <9.5-11> gsxu1000 + <11-15.5> gsxu1200 <15.5-> gsxu1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{uv} + {<-8.5> gsxa0800 + <8.5-9.5> gsxa0900 <9.5-11> gsxa1000 + <11-15.5> gsxa1200 <15.5-> gsxa1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{sc} + {<-8.5> gsxc0800 + <8.5-9.5> gsxc0900 <9.5-11> gsxc1000 + <11-15.5> gsxc1200 <15.5-> gsxc1728}{} +% +% \end{macrocode} +% +% And finally the Latin Modern typewriter font. +% +% \begin{macrocode} +%<*LGRlmtt> +\DeclareFontFamily{LGR}{lmtt}{\hyphenchar\font\m@ne} +\DeclareFontShape{LGR}{lmtt}{m}{n} + {<-8.5> gttn0800 <8.5-9.5> gttn0900 + <9.5-11> gttn1000 <11-15> gttn1200 + <15-> gttn1728}{} +\DeclareFontShape{LGR}{lmtt}{m}{it} + {<-> ssub*lgr/lmtt/m/sl}{} +\DeclareFontShape{LGR}{lmtt}{m}{sl} + {<-8.5> gtto0800 <8.5-9.5> gtto0900 + <9.5-11> gtto1000 <11-15> gtto1200 + <15-> gtto1728}{} +\DeclareFontShape{LGR}{lmtt}{m}{sc} + {<-8.5> gttc0800 <8.5-9.5> gttc0900 + <9.5-11> gttc1000 <11-15> gttc1200 + <15-> gttc1728}{} +% shape undefined, substituted with unslanted +\DeclareFontShape{LGR}{lmtt}{m}{scsl}{<-> ssub*lmtt/m/sc}{} +% +% \end{macrocode} +% +% The slide fonts have not been mapped to the Latin Modern +% families and sizes, because there are no slide fonts in the LM +% collection. Moreover nowadays the traditional slide fonts are +% very seldom used, since slides are produced with other classes +% different from the class |slides|, and they use different fonts. +% % The next line goes into all files and in addition prevents \dsc{} % from adding any further code from the main source file (such as a % character table. diff --git a/Master/texmf-dist/source/generic/babel/greek.ins b/Master/texmf-dist/source/generic/babel/greek.ins index e1eb1481ebd..69e4a247c2c 100644 --- a/Master/texmf-dist/source/generic/babel/greek.ins +++ b/Master/texmf-dist/source/generic/babel/greek.ins @@ -3,7 +3,7 @@ %% driver files from the doc files in this package when run through %% LaTeX or TeX. %% -%% Copyright 1989-2007 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file is part of the Babel system. @@ -31,7 +31,7 @@ %% %% --------------- start of docstrip commands ------------------ %% -\def\filedate{2007/10/20} +\def\filedate{2008/07/06} \def\batchfile{greek.ins} \input docstrip.tex @@ -53,7 +53,7 @@ \declarepreamble\mainpreamble This is a generated file. -Copyright 1989-2007 Johannes L. Braams and any individual authors +Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. This file was generated from file(s) of the Babel system. @@ -87,7 +87,7 @@ extension .ins) which are part of the distribution. \declarepreamble\fdpreamble This is a generated file. -Copyright 1989-2005 Johannes L. Braams and any individual authors +Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. This file was generated from file(s) of the Babel system. @@ -139,6 +139,10 @@ of this file under its original name. \file{lgrcmss.fd}{\from{greek.fdd}{fd,LGRcmss}} \file{lgrlcmtt.fd}{\from{greek.fdd}{fd,LGRlcmtt}} \file{lgrlcmss.fd}{\from{greek.fdd}{fd,LGRlcmss}} + \file{lgrlmr.fd}{\from{greek.fdd}{fd,LGRlmr}} + \file{lgrlmro.fd}{\from{greek.fdd}{fd,LGRlmro}} + \file{lgrlmtt.fd}{\from{greek.fdd}{fd,LGRlmtt}} + \file{lgrlmss.fd}{\from{greek.fdd}{fd,LGRlmss}} } \ifToplevel{ diff --git a/Master/texmf-dist/source/generic/babel/grmath.dtx b/Master/texmf-dist/source/generic/babel/grmath.dtx index be42c48545a..000daadcd86 100644 --- a/Master/texmf-dist/source/generic/babel/grmath.dtx +++ b/Master/texmf-dist/source/generic/babel/grmath.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. diff --git a/Master/texmf-dist/source/generic/babel/grsymb.dtx b/Master/texmf-dist/source/generic/babel/grsymb.dtx index ef783fbd48d..189ca4afe5c 100644 --- a/Master/texmf-dist/source/generic/babel/grsymb.dtx +++ b/Master/texmf-dist/source/generic/babel/grsymb.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. diff --git a/Master/texmf-dist/source/generic/babel/latin.dtx b/Master/texmf-dist/source/generic/babel/latin.dtx index 32d6462c607..138c6771271 100644 --- a/Master/texmf-dist/source/generic/babel/latin.dtx +++ b/Master/texmf-dist/source/generic/babel/latin.dtx @@ -36,7 +36,7 @@ %\ProvidesFile{latin.ldf} %\fi %\ProvidesFile{latin.dtx}% - [2008/03/21 v2.0k Latin support from the babel system] + [2008/07/06 v2.0l Latin support from the babel system] %\iffalse %% File `latin.dtx' %% Babel package for LaTeX version 2e @@ -91,6 +91,7 @@ % problem} % \changes{latin-2.0j}{2008/03/17}{Added a missing comment char and a % missing closing brace} +% \changes{latin-2.0l}{2008/07/06}{Added two missing \cs{end} macro's} % % \section{The Latin language} % @@ -454,8 +455,6 @@ documentation for explanation}{\@ehd}}} \addto\extraslatin{\let\ProsodicMarksOff\relax} % \end{macrocode} -% \end{macro} -% \end{macro} % % Then we temporarily set the caret and the equals sign to active % characters so that they can receive their definitions. But first @@ -479,6 +478,8 @@ \addto\noextraswithprosodicmarks{\bbl@deactivate{=}}% \addto\extraswithprosodicmarks{\ProsodicMarks} % \end{macrocode} +% \end{macro} +% \end{macro} % % \begin{macro}{\ProsodicMarks} % Next we define the defining macro for the active characters diff --git a/Master/texmf-dist/source/generic/babel/ngermanb.dtx b/Master/texmf-dist/source/generic/babel/ngermanb.dtx index a2d4ba129d0..481a274d284 100644 --- a/Master/texmf-dist/source/generic/babel/ngermanb.dtx +++ b/Master/texmf-dist/source/generic/babel/ngermanb.dtx @@ -37,7 +37,7 @@ %\ProvidesLanguage{ngermanb} %\fi %\ProvidesFile{ngermanb.dtx} - [2008/03/17 v2.6m new German support from the babel system] + [2008/07/06 v2.6n new German support from the babel system] %\iffalse %% File `ngermanb.dtx' %% Babel package for LaTeX version 2e @@ -134,7 +134,9 @@ % % \begin{macro}{\captionsngerman} % \begin{macro}{\captionsnaustrian} -% Either the macro |\captionnsgerman| or the macro +% \changes{ngermab-v2.6n}{2008/07/06}{Corrected typo +% \cs{captionnsgerman}} +% Either the macro |\captionsngerman| or the macro % |\captionsnaustrian| will define all strings used in the four % standard document classes provided with \LaTeX. % diff --git a/Master/texmf-dist/source/generic/babel/slovak.dtx b/Master/texmf-dist/source/generic/babel/slovak.dtx index 8b47f53b86e..d2d0c00a79b 100644 --- a/Master/texmf-dist/source/generic/babel/slovak.dtx +++ b/Master/texmf-dist/source/generic/babel/slovak.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. @@ -26,21 +26,21 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{402} +% \CheckSum{1382} % \iffalse % Tell the \LaTeX\ system who we are and write an entry on the % transcript. %<*dtx> \ProvidesFile{slovak.dtx} % -%\ProvidesLanguage{slovak} +%<+code>\ProvidesLanguage{slovak} %\fi %\ProvidesFile{slovak.dtx} - [2005/03/31 v1.3a Slovak support from the babel system] + [2008/07/06 v3.1a Slovak support from the babel system] %\iffalse %% File `slovak.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2005 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek % %% Slovak Language Definition File @@ -63,8 +63,15 @@ % Deutschland % Tobias.Schlemmer at web.de % -%% Please report errors to: J.L. Braams babel at braams.cistron.nl -%% Tobias Schlemmer Tobias.Schlemmer at web.de +%% Copyright (C) 2005-2008 +%% by Petr Tesa\v r\'ik (babel at tesarici.cz) +% +% This file is also based on CSLaTeX +% by Ji\v r\'i Zlatu\v ska, Zden\v ek Wagner, +% Jaroslav \v Snajdr and Petr Ol\v s\'ak. +% +%% Please report errors to: Petr Tesa\v r\'ik +%% babel at tesarici.cz % % This file is part of the babel system, it provides the source % code for the Slovak language definition file. @@ -81,6 +88,10 @@ \end{document} % %\fi +% +% \def\CS{$\cal C\kern-.1667em +% \lower.5ex\hbox{$\cal S$}\kern-.075em$} +% % \GetFileInfo{slovak.dtx} % % \changes{slovak-1.0}{1992/07/15}{First version} @@ -93,14 +104,19 @@ % beginning.} % \changes{slovak-1.3a}{2004/02/20}{Added contributed shorthand % definitions} +% \changes{slovak-3.0}{2005/09/10}{Implemented the functionality of +% \CS\LaTeX's slovak.sty. The version number was bumped to 3.0 +% to minimize confusion by being higher than the last version +% of \CS\LaTeX.} % % \section{The Slovak language} % % The file \file{\filename}\footnote{The file described in this % section has version number \fileversion\ and was last revised on -% \filedate. It was written by Jana Chlebikova +% \filedate. It was originally written by Jana Chlebikova % (\texttt{chlebik@euromath.dk}) and modified by Tobias Schlemmer -% (\texttt{Tobias.Schlemmer@web.de}).} defines all the +% (\texttt{Tobias.Schlemmer@web.de}). It was then rewritten by +% Petr Tesa\v r\'ik (\texttt{babel@tesarici.cz}).} defines all the % language-specific macros for the Slovak language. % % For this language the macro |\q| is defined. It was used with the @@ -112,7 +128,7 @@ % use this encoding, please, feel free to redefine |\q| in your file. % I think babel will honour this |;-)|. % -% For this language the characters |"|, |'| and |^| are ade +% For this language the characters |"|, |'| and |^| are made % active. In table~\ref{tab:slovak-quote} an overview is given of % its purpose. Also the vertical placement of the % umlaut can be controlled this way. @@ -166,8 +182,69 @@ % \end{center} % \end{table} % +% \subsection{Compatibility} +% +% Great care has been taken to ensure backward compatibility with +% \CS\LaTeX. In particular, documents which load this file with +% |\usepackage{slovak}| should produce identical output with no +% modifications to the source. Additionally, all the \CS\LaTeX{} +% options are recognized: +% +% \label{tab:slovak-options} +% \begin{list}{} +% {\def\makelabel#1{\sbox0{\Lopt{#1}}% +% \ifdim\wd0>\labelwidth +% \setbox0\vbox{\box0\hbox{}} \wd0=0pt \fi +% \box0\hfil} +% \setlength{\labelwidth}{2\parindent} +% \setlength{\leftmargin}{2\parindent} +% \setlength{\rightmargin}{\parindent}} +% \item[IL2, T1, OT1] +% These options set the default font encoding. Please note +% that their use is deprecated. You should use the |fontenc| +% package to select font encoding. +% +% \item[split, nosplit] +% These options control whether hyphenated words are +% automatically split according to Slovak typesetting rules. +% With the \Lopt{split} option ``je-li'' is hyphenated as +% ``je-/-li''. The \Lopt{nosplit} option disables this behavior. +% +% The use of this option is strongly discouraged, as it breaks +% too many common things---hyphens cannot be used in labels, +% negative arguments to \TeX{} primitives will not work in +% horizontal mode (use \cs{minus} as a workaround), and there are +% a few other peculiarities with using this mode. +% +% \item[nocaptions] +% +% This option was used in \CS\LaTeX{} to set up Czech/Slovak +% typesetting rules, but leave the original captions and dates. +% The recommended way to achieve this is to use English as the main +% language of the document and use the environment |otherlanguage*| +% for Czech text. +% +% \item[olduv] +% There are two version of \cs{uv}. The older one allows the use +% of \cs{verb} inside the quotes but breaks any respective kerning +% with the quotes (like that in \CS{} fonts). The newer one honors +% the kerning in the font but does not allow \cs{verb} inside the +% quotes. +% +% The new version is used by default in \LaTeXe{} and the old version +% is used with plain \TeX. You may use \Lopt{olduv} to override the +% default in \LaTeXe. +% +% \item[cstex] +% This option was used to include the commands \cs{csprimeson} and +% \cs{csprimesoff}. Since these commands are always included now, +% it has been removed and the empty definition lasts for compatibility. +% \end{list} +% % \StopEventually{} % +% \subsection{Implementation} +% % The macro |\LdfInit| takes care of preventing that this file is % loaded more than once, checking the category code of the % \texttt{@} sign, etc. @@ -175,7 +252,7 @@ % initial checks} % \begin{macrocode} %<*code> -\LdfInit{slovak}\captionsslovak +\LdfInit\CurrentOption{date\CurrentOption} % \end{macrocode} % % When this file is read as an option, i.e. by the |\usepackage| @@ -191,20 +268,97 @@ \adddialect\l@slovak0\fi % \end{macrocode} % +% We need to define these macros early in the process. +% +% \begin{macrocode} +\def\cs@iltw@{IL2} +\newif\ifcs@splithyphens +\cs@splithyphensfalse +% \end{macrocode} +% +% If Babel is not loaded, we provide compatibility with \CS\LaTeX. +% However, if macro \cs{@ifpackageloaded} is not defined, we assume +% to be loaded from plain and provide compatibility with csplain. +% Of course, this does not work well with \LaTeX$\:$2.09, but I +% doubt anyone will ever want to use this file with \LaTeX$\:$2.09. +% +% \begin{macrocode} +\ifx\@ifpackageloaded\@undefined + \let\cs@compat@plain\relax + \message{csplain compatibility mode} +\else + \@ifpackageloaded{babel}{}{% + \let\cs@compat@latex\relax + \message{cslatex compatibility mode}} +\fi +\ifx\cs@compat@latex\relax + \ProvidesPackage{slovak}[2008/07/06 v3.1a CSTeX Slovak style] +% \end{macrocode} +% +% Declare \CS\LaTeX{} options (see also the descriptions on page +% \pageref{tab:slovak-options}). +% +% \begin{macrocode} + \DeclareOption{IL2}{\def\encodingdefault{IL2}} + \DeclareOption {T1}{\def\encodingdefault {T1}} + \DeclareOption{OT1}{\def\encodingdefault{OT1}} + \DeclareOption{nosplit}{\cs@splithyphensfalse} + \DeclareOption{split}{\cs@splithyphenstrue} + \DeclareOption{nocaptions}{\let\cs@nocaptions=\relax} + \DeclareOption{olduv}{\let\cs@olduv=\relax} + \DeclareOption{cstex}{\relax} +% \end{macrocode} +% +% Make |IL2| encoding the default. This can be overriden with +% the other font encoding options. +% \begin{macrocode} + \ExecuteOptions{\cs@iltw@} +% \end{macrocode} +% +% Now, process the user-supplied options. +% \begin{macrocode} + \ProcessOptions +% \end{macrocode} +% +% Standard \LaTeXe{} does not include the IL2 encoding in the format. +% The encoding can be loaded later using the fontenc package, but +% \CS\LaTeX{} included IL2 by default. This means existing documents +% for \CS\LaTeX{} do not load that package, so load the encoding +% ourselves in compatibility mode. +% +% \begin{macrocode} + \ifx\encodingdefault\cs@iltw@ + \input il2enc.def + \fi +% \end{macrocode} +% +% Restore the definition of \cs{CurrentOption}, clobbered by processing +% the options. +% +% \begin{macrocode} + \def\CurrentOption{slovak} +\fi +% \end{macrocode} +% % The next step consists of defining commands to switch to (and % from) the Slovak language. % -% \begin{macro}{\captionsslovak} -% The macro |\captionsslovak| defines all strings used in the four +% \begin{macro}{\captionsslovak} +% The macro \cs{captionsslovak} defines all strings used in the four % standard documentclasses provided with \LaTeX. % \changes{slovak-1.2g}{1995/07/04}{Added \cs{proofname} for % AMS-\LaTeX} % \changes{slovak-1.2k}{1999/02/28}{Repaired a few spelling mistakes} % \changes{slovak-1.2l}{2000/09/20}{Added \cs{glossaryname}} +% \changes{slovak-3.0}{2005/12/22}{Updated some translations. Former +% translations were: `\'Uvod' for \cs{prefacename}, `Referencie' for +% \cs{refname}, `Index' for \cs{indexname}, `Obr\'azok' for +% \cs{figurename}, `Pr\'ilohy' for \cs{enclname}, `CC' for \cs{ccname}, +% `Komu' for \cs{headtoname}, `Strana' for \cs{pagename}} % \begin{macrocode} -\addto\captionsslovak{% - \def\prefacename{\'Uvod}% - \def\refname{Referencie}% +\@namedef{captions\CurrentOption}{% + \def\prefacename{Predhovor}% + \def\refname{Literat\'ura}% \def\abstractname{Abstrakt}% \def\bibname{Literat\'ura}% \def\chaptername{Kapitola}% @@ -212,179 +366,918 @@ \def\contentsname{Obsah}% \def\listfigurename{Zoznam obr\'azkov}% \def\listtablename{Zoznam tabuliek}% - \def\indexname{Index}% - \def\figurename{Obr\'azok}% - \def\tablename{Tabu\q lka}%%% special letter l with hook - \def\partname{\v{C}as\q t}%%% special letter t with hook - \def\enclname{Pr\'{\i}lohy}% - \def\ccname{CC}% - \def\headtoname{Komu}% - \def\pagename{Strana}% - \def\seename{vi\q d}%%% Special letter d with hook - \def\alsoname{vi\q d tie\v z}%%% Special letter d with hook + \def\indexname{Register}% + \def\figurename{Obr.}% + \def\tablename{Tabu\v{l}ka}% + \def\partname{\v{C}as\v{t}}% + \def\enclname{Pr\'{\i}loha}% + \def\ccname{cc.}% + \def\headtoname{Pre}% + \def\pagename{Str.}% + \def\seename{vi\v{d}}% + \def\alsoname{vi\v{d} tie\v{z}}% \def\proofname{D\^okaz}% - \def\glossaryname{Glossary}% <-- Needs translation - } + \def\glossaryname{Slovn\'{\i}k}% + }% % \end{macrocode} -% \end{macro} +% \end{macro} % -% \begin{macro}{\dateslovak} -% The macro |\dateslovak| redefines the command |\today| to produce -% Slovak dates. +% \begin{macro}{\dateslovak} +% The macro \cs{dateslovak} redefines the command \cs{today} +% to produce Slovak dates. % \changes{slovak-1.2j}{1997/10/01}{Use \cs{edef} to define % \cs{today} to save memory} % \changes{slovak-1.2j}{1998/03/28}{use \cs{def} instead of \cs{edef}} % \changes{slovak-1.2k}{1999/02/28}{Repaired a spelling mistake} % \begin{macrocode} -\def\dateslovak{% +\@namedef{date\CurrentOption}{% \def\today{\number\day.~\ifcase\month\or janu\'ara\or febru\'ara\or marca\or apr\'{\i}la\or m\'aja\or j\'una\or j\'ula\or augusta\or septembra\or okt\'obra\or novembra\or decembra\fi \space \number\year}} % \end{macrocode} -% \end{macro} +% \end{macro} % -% \begin{macro}{\extrasslovak} -% \begin{macro}{\noextrasslovak} -% The macro |\extrasslovak| will perform all the extra definitions -% needed for the Slovak language. The macro |\noextrasslovak| is -% used to cancel the actions of |\extrasslovak|. -% For Slovak three characters are used to define shorthands, they -% need to be made active. -% \changes{slovak-1.3a}{2004/02/20}{Make three characters available -% for shorthands} +% \begin{macro}{\extrasslovak} +% \begin{macro}{\noextrasslovak} +% The macro \cs{extrasslovak} will perform all the extra definitions +% needed for the Slovak language. The macro \cs{noextrasslovak} is +% used to cancel the actions of \cs{extrasslovak}. % +% For Slovak texts \cs{frenchspacing} should be in effect. Language +% group for shorthands is also set here. +% \changes{slovak-3.0}{1995/04/21}{now use \cs{bbl@frenchspacing} and +% \cs{bbl@nonfrenchspacing}} +% \changes{slovak-3.1}{2006/10/07}{move \cs{languageshorthands} here, +% so that the language group is always initialized correctly} % \begin{macrocode} -\addto\extrasslovak{\languageshorthands{slovak}} -\initiate@active@char{^} -\addto\extrasslovak{\bbl@activate{^}} -\addto\noextrasslovak{\bbl@deactivate{^}} -\initiate@active@char{"} -\addto\extrasslovak{\bbl@activate{"}\umlautlow} -\addto\noextrasslovak{\bbl@deactivate{"}\umlauthigh} -\initiate@active@char{'} -\@ifpackagewith{babel}{activeacute}{% - \addto\extrasslovak{\bbl@activate{'}} - \addto\noextrasslovak{\bbl@deactivate{'}}% - }{} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \bbl@frenchspacing + \languageshorthands{slovak}} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \bbl@nonfrenchspacing} % \end{macrocode} % -% % \changes{slovak-1.2e}{1995/05/28}{Use \LaTeX's \cs{v} accent % command} % \begin{macrocode} -\addto\extrasslovak{\babel@save\q\let\q\v} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \babel@save\q\let\q\v} % \end{macrocode} % -% \changes{slovak-1.2b}{1994/06/04}{Added setting of left- and -% righthyphenmin} -% -% The slovak hyphenation patterns should be used with -% |\lefthyphenmin| set to~2 and |\righthyphenmin| set to~2. -% \changes{slovak-1.2e}{1995/05/28}{Now use \cs{slovakhyphenmins}} -% \changes{slovak-1.2l}{2000/09/22}{Now use \cs{providehyphenmins} to -% provide a default value} +% For Slovak three characters are used to define shorthands, they +% need to be made active. +% \changes{slovak-1.3a}{2004/02/20}{Make three characters available +% for shorthands} % \begin{macrocode} -\providehyphenmins{\CurrentOption}{\tw@\tw@} +\ifx\cs@compat@latex\relax\else + \initiate@active@char{^} + \addto\extrasslovak{\bbl@activate{^}} + \addto\noextrasslovak{\bbl@deactivate{^}} + \initiate@active@char{"} + \addto\extrasslovak{\bbl@activate{"}\umlautlow} + \addto\noextrasslovak{\bbl@deactivate{"}\umlauthigh} + \initiate@active@char{'} + \@ifpackagewith{babel}{activeacute}{% + \addto\extrasslovak{\bbl@activate{'}} + \addto\noextrasslovak{\bbl@deactivate{'}}% + }{} +\fi % \end{macrocode} -% \end{macro} -% \end{macro} +% \end{macro} +% \end{macro} % +% \begin{macro}{\sq} % \begin{macro}{\dq} -% We save the original double quote character in |\dq| to keep -% it available, the math accent |\"| can now be typed as |"|. +% We save the original single and double quote characters in +% \cs{sq} and \cs{dq} to make them available later. The math +% accent |\"| can now be typed as |"|. % \begin{macrocode} -\begingroup \catcode`\"12 +\begingroup\catcode`\"=12\catcode`\'=12 \def\x{\endgroup \def\sq{'} \def\dq{"}} \x % \end{macrocode} -% \end{macro} +% \end{macro} +% \end{macro} +% +% \changes{slovak-1.2b}{1994/06/04}{Added setting of left- and +% righthyphenmin} +% +% The slovak hyphenation patterns should be used with +% |\lefthyphenmin| set to~2 and |\righthyphenmin| set to~3. +% \changes{slovak-1.2e}{1995/05/28}{Now use \cs{slovakhyphenmins}} +% \changes{slovak-1.2l}{2000/09/22}{Now use \cs{providehyphenmins} to +% provide a default value} +% \changes{slovak-3.0}{2005/12/22}{Changed default \cs{righthyphenmin} +% to 3 characters.} +% \begin{macrocode} +\providehyphenmins{\CurrentOption}{\tw@\thr@@} +% \end{macrocode} % % In order to prevent problems with the active |^| we add a % shorthand on system level which expands to a `normal |^|. % \begin{macrocode} -\declare@shorthand{system}{^}{\csname normal@char\string^\endcsname} +\ifx\cs@compat@latex\relax\else + \declare@shorthand{system}{^}{\csname normal@char\string^\endcsname} % \end{macrocode} % % Now we can define the doublequote macros: the umlauts, % \begin{macrocode} -\declare@shorthand{slovak}{"a}{\textormath{\"{a}\allowhyphens}{\ddot a}} -\declare@shorthand{slovak}{"o}{\textormath{\"{o}\allowhyphens}{\ddot o}} -\declare@shorthand{slovak}{"u}{\textormath{\"{u}\allowhyphens}{\ddot u}} -\declare@shorthand{slovak}{"A}{\textormath{\"{A}\allowhyphens}{\ddot A}} -\declare@shorthand{slovak}{"O}{\textormath{\"{O}\allowhyphens}{\ddot O}} -\declare@shorthand{slovak}{"U}{\textormath{\"{U}\allowhyphens}{\ddot U}} + \declare@shorthand{slovak}{"a}{\textormath{\"{a}\allowhyphens}{\ddot a}} + \declare@shorthand{slovak}{"o}{\textormath{\"{o}\allowhyphens}{\ddot o}} + \declare@shorthand{slovak}{"u}{\textormath{\"{u}\allowhyphens}{\ddot u}} + \declare@shorthand{slovak}{"A}{\textormath{\"{A}\allowhyphens}{\ddot A}} + \declare@shorthand{slovak}{"O}{\textormath{\"{O}\allowhyphens}{\ddot O}} + \declare@shorthand{slovak}{"U}{\textormath{\"{U}\allowhyphens}{\ddot U}} % \end{macrocode} % tremas, % \begin{macrocode} -\declare@shorthand{slovak}{"e}{\textormath{\"{e}\allowhyphens}{\ddot e}} -\declare@shorthand{slovak}{"E}{\textormath{\"{E}\allowhyphens}{\ddot E}} -\declare@shorthand{slovak}{"i}{\textormath{\"{\i}\allowhyphens}% - {\ddot\imath}} -\declare@shorthand{slovak}{"I}{\textormath{\"{I}\allowhyphens}{\ddot I}} + \declare@shorthand{slovak}{"e}{\textormath{\"{e}\allowhyphens}{\ddot e}} + \declare@shorthand{slovak}{"E}{\textormath{\"{E}\allowhyphens}{\ddot E}} + \declare@shorthand{slovak}{"i}{\textormath{\"{\i}\allowhyphens}% + {\ddot\imath}} + \declare@shorthand{slovak}{"I}{\textormath{\"{I}\allowhyphens}{\ddot I}} % \end{macrocode} % other slovak characters % \begin{macrocode} -\declare@shorthand{slovak}{^c}{\textormath{\v{c}\allowhyphens}{\check{c}}} -\declare@shorthand{slovak}{^d}{\textormath{\q{d}\allowhyphens}{\check{d}}} -\declare@shorthand{slovak}{^l}{\textormath{\q{l}\allowhyphens}{\check{l}}} -\declare@shorthand{slovak}{^n}{\textormath{\v{n}\allowhyphens}{\check{n}}} -\declare@shorthand{slovak}{^o}{\textormath{\^{o}\allowhyphens}{\hat{o}}} -\declare@shorthand{slovak}{^s}{\textormath{\v{s}\allowhyphens}{\check{s}}} -\declare@shorthand{slovak}{^t}{\textormath{\q{t}\allowhyphens}{\check{t}}} -\declare@shorthand{slovak}{^z}{\textormath{\v{z}\allowhyphens}{\check{z}}} -\declare@shorthand{slovak}{^C}{\textormath{\v{C}\allowhyphens}{\check{C}}} -\declare@shorthand{slovak}{^D}{\textormath{\v{D}\allowhyphens}{\check{D}}} -\declare@shorthand{slovak}{^L}{\textormath{\q{L}\allowhyphens}{\check{L}}} -\declare@shorthand{slovak}{^N}{\textormath{\v{N}\allowhyphens}{\check{N}}} -\declare@shorthand{slovak}{^O}{\textormath{\^{O}\allowhyphens}{\hat{O}}} -\declare@shorthand{slovak}{^S}{\textormath{\v{S}\allowhyphens}{\check{S}}} -\declare@shorthand{slovak}{^T}{\textormath{\v{T}\allowhyphens}{\check{T}}} -\declare@shorthand{slovak}{^Z}{\textormath{\v{Z}\allowhyphens}{\check{Z}}} + \declare@shorthand{slovak}{^c}{\textormath{\v{c}\allowhyphens}{\check{c}}} + \declare@shorthand{slovak}{^d}{\textormath{\q{d}\allowhyphens}{\check{d}}} + \declare@shorthand{slovak}{^l}{\textormath{\q{l}\allowhyphens}{\check{l}}} + \declare@shorthand{slovak}{^n}{\textormath{\v{n}\allowhyphens}{\check{n}}} + \declare@shorthand{slovak}{^o}{\textormath{\^{o}\allowhyphens}{\hat{o}}} + \declare@shorthand{slovak}{^s}{\textormath{\v{s}\allowhyphens}{\check{s}}} + \declare@shorthand{slovak}{^t}{\textormath{\q{t}\allowhyphens}{\check{t}}} + \declare@shorthand{slovak}{^z}{\textormath{\v{z}\allowhyphens}{\check{z}}} + \declare@shorthand{slovak}{^C}{\textormath{\v{C}\allowhyphens}{\check{C}}} + \declare@shorthand{slovak}{^D}{\textormath{\v{D}\allowhyphens}{\check{D}}} + \declare@shorthand{slovak}{^L}{\textormath{\q{L}\allowhyphens}{\check{L}}} + \declare@shorthand{slovak}{^N}{\textormath{\v{N}\allowhyphens}{\check{N}}} + \declare@shorthand{slovak}{^O}{\textormath{\^{O}\allowhyphens}{\hat{O}}} + \declare@shorthand{slovak}{^S}{\textormath{\v{S}\allowhyphens}{\check{S}}} + \declare@shorthand{slovak}{^T}{\textormath{\v{T}\allowhyphens}{\check{T}}} + \declare@shorthand{slovak}{^Z}{\textormath{\v{Z}\allowhyphens}{\check{Z}}} % \end{macrocode} % acute accents, % \begin{macrocode} -\@ifpackagewith{babel}{activeacute}{% - \declare@shorthand{slovak}{'a}{\textormath{\'a\allowhyphens}{^{\prime}a}} - \declare@shorthand{slovak}{'e}{\textormath{\'e\allowhyphens}{^{\prime}e}} - \declare@shorthand{slovak}{'i}{\textormath{\'\i{}\allowhyphens}{^{\prime}i}} - \declare@shorthand{slovak}{'l}{\textormath{\'l\allowhyphens}{^{\prime}l}} - \declare@shorthand{slovak}{'o}{\textormath{\'o\allowhyphens}{^{\prime}o}} - \declare@shorthand{slovak}{'r}{\textormath{\'r\allowhyphens}{^{\prime}r}} - \declare@shorthand{slovak}{'u}{\textormath{\'u\allowhyphens}{^{\prime}u}} - \declare@shorthand{slovak}{'y}{\textormath{\'y\allowhyphens}{^{\prime}y}} - \declare@shorthand{slovak}{'A}{\textormath{\'A\allowhyphens}{^{\prime}A}} - \declare@shorthand{slovak}{'E}{\textormath{\'E\allowhyphens}{^{\prime}E}} - \declare@shorthand{slovak}{'I}{\textormath{\'I\allowhyphens}{^{\prime}I}} - \declare@shorthand{slovak}{'L}{\textormath{\'L\allowhyphens}{^{\prime}l}} - \declare@shorthand{slovak}{'O}{\textormath{\'O\allowhyphens}{^{\prime}O}} - \declare@shorthand{slovak}{'R}{\textormath{\'R\allowhyphens}{^{\prime}R}} - \declare@shorthand{slovak}{'U}{\textormath{\'U\allowhyphens}{^{\prime}U}} - \declare@shorthand{slovak}{'Y}{\textormath{\'Y\allowhyphens}{^{\prime}Y}} - \declare@shorthand{slovak}{''}{% - \textormath{\textquotedblright}{\sp\bgroup\prim@s'}} - }{} -% \end{macrocode} -% german and french quotes, -% \begin{macrocode} -\declare@shorthand{slovak}{"`}{\glqq} -\declare@shorthand{slovak}{"'}{\grqq} -\declare@shorthand{slovak}{"<}{\flqq} -\declare@shorthand{slovak}{">}{\frqq} -% \end{macrocode} + \@ifpackagewith{babel}{activeacute}{% + \declare@shorthand{slovak}{'a}{\textormath{\'a\allowhyphens}{^{\prime}a}} + \declare@shorthand{slovak}{'e}{\textormath{\'e\allowhyphens}{^{\prime}e}} + \declare@shorthand{slovak}{'i}{\textormath{\'\i{}\allowhyphens}{^{\prime}i}} + \declare@shorthand{slovak}{'l}{\textormath{\'l\allowhyphens}{^{\prime}l}} + \declare@shorthand{slovak}{'o}{\textormath{\'o\allowhyphens}{^{\prime}o}} + \declare@shorthand{slovak}{'r}{\textormath{\'r\allowhyphens}{^{\prime}r}} + \declare@shorthand{slovak}{'u}{\textormath{\'u\allowhyphens}{^{\prime}u}} + \declare@shorthand{slovak}{'y}{\textormath{\'y\allowhyphens}{^{\prime}y}} + \declare@shorthand{slovak}{'A}{\textormath{\'A\allowhyphens}{^{\prime}A}} + \declare@shorthand{slovak}{'E}{\textormath{\'E\allowhyphens}{^{\prime}E}} + \declare@shorthand{slovak}{'I}{\textormath{\'I\allowhyphens}{^{\prime}I}} + \declare@shorthand{slovak}{'L}{\textormath{\'L\allowhyphens}{^{\prime}l}} + \declare@shorthand{slovak}{'O}{\textormath{\'O\allowhyphens}{^{\prime}O}} + \declare@shorthand{slovak}{'R}{\textormath{\'R\allowhyphens}{^{\prime}R}} + \declare@shorthand{slovak}{'U}{\textormath{\'U\allowhyphens}{^{\prime}U}} + \declare@shorthand{slovak}{'Y}{\textormath{\'Y\allowhyphens}{^{\prime}Y}} + \declare@shorthand{slovak}{''}{% + \textormath{\textquotedblright}{\sp\bgroup\prim@s'}} + }{} + % \end{macrocode} % and some additional commands: % \begin{macrocode} -\declare@shorthand{slovak}{"-}{\nobreak\-\bbl@allowhyphens} -\declare@shorthand{slovak}{"|}{% - \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}% - \bbl@allowhyphens}{}} -\declare@shorthand{slovak}{""}{\hskip\z@skip} -\declare@shorthand{slovak}{"~}{\textormath{\leavevmode\hbox{-}}{-}} -\declare@shorthand{slovak}{"=}{\nobreak-\hskip\z@skip} + \declare@shorthand{slovak}{"-}{\nobreak\-\bbl@allowhyphens} + \declare@shorthand{slovak}{"|}{% + \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}% + \bbl@allowhyphens}{}} + \declare@shorthand{slovak}{""}{\hskip\z@skip} + \declare@shorthand{slovak}{"~}{\textormath{\leavevmode\hbox{-}}{-}} + \declare@shorthand{slovak}{"=}{\cs@splithyphen} +\fi +% \end{macrocode} +% +% \begin{macro}{\v} +% \LaTeX's normal |\v| accent places a caron over the letter that +% follows it (\v{o}). This is not what we want for the letters d, +% t, l and L; for those the accent should change shape. This is +% acheived by the following. +% \begin{macrocode} +\AtBeginDocument{% + \DeclareTextCompositeCommand{\v}{OT1}{t}{% + t\kern-.23em\raise.24ex\hbox{'}} + \DeclareTextCompositeCommand{\v}{OT1}{d}{% + d\kern-.13em\raise.24ex\hbox{'}} + \DeclareTextCompositeCommand{\v}{OT1}{l}{\lcaron{}} + \DeclareTextCompositeCommand{\v}{OT1}{L}{\Lcaron{}}} +% \end{macrocode} +% +% \begin{macro}{\lcaron} +% \begin{macro}{\Lcaron} +% For the letters \texttt{l} and \texttt{L} we want to disinguish +% between normal fonts and monospaced fonts. +% \begin{macrocode} +\def\lcaron{% + \setbox0\hbox{M}\setbox\tw@\hbox{i}% + \ifdim\wd0>\wd\tw@\relax + l\kern-.13em\raise.24ex\hbox{'}\kern-.11em% + \else + l\raise.45ex\hbox to\z@{\kern-.35em '\hss}% + \fi} +\def\Lcaron{% + \setbox0\hbox{M}\setbox\tw@\hbox{i}% + \ifdim\wd0>\wd\tw@\relax + L\raise.24ex\hbox to\z@{\kern-.28em'\hss}% + \else + L\raise.45ex\hbox to\z@{\kern-.40em '\hss}% + \fi} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% +% Initialize active quotes. \CS\LaTeX{} provides a way of +% converting English-style quotes into Slovak-style ones. Both +% single and double quotes are affected, i.e. |``text''| is +% converted to something like |,,text``| and |`text'| is converted +% to |,text`|. This conversion can be switched on and off with +% \cs{csprimeson} and \cs{csprimesoff}.\footnote{By the way, the +% names of these macros are misleading, because the handling of +% primes in math mode is rather marginal, the most important thing +% being the handling of quotes\ldots} +% +% These quotes present various troubles, e.g. the kerning is broken, +% apostrophes are converted to closing single quote, some primitives +% are broken (most notably the |\catcode`\|\meta{char} syntax will +% not work any more), and writing them to \file{.aux} files cannot +% be handled correctly. For these reasons, these commands are only +% available in \CS\LaTeX{} compatibility mode. +% +% \begin{macrocode} +\ifx\cs@compat@latex\relax + \let\cs@ltxprim@s\prim@s + \def\csprimeson{% + \catcode``\active \catcode`'\active \let\prim@s\bbl@prim@s} + \def\csprimesoff{% + \catcode``12 \catcode`'12 \let\prim@s\cs@ltxprim@s} + \begingroup\catcode``\active + \def\x{\endgroup + \def`{\futurelet\cs@next\cs@openquote} + \def\cs@openquote{% + \ifx`\cs@next \expandafter\cs@opendq + \else \expandafter\clq + \fi}% + }\x + \begingroup\catcode`'\active + \def\x{\endgroup + \def'{\textormath{\futurelet\cs@next\cs@closequote} + {^\bgroup\prim@s}} + \def\cs@closequote{% + \ifx'\cs@next \expandafter\cs@closedq + \else \expandafter\crq + \fi}% + }\x + \def\cs@opendq{\clqq\let\cs@next= } + \def\cs@closedq{\crqq\let\cs@next= } +% \end{macrocode} +% +% The way I recommend for typesetting quotes in Slovak documents +% is to use shorthands similar to those used in German. +% +% \changes{3.0}{2006/04/21}{|"`| and |"'| changed from German quotes +% to Slovak quotes} +% \begin{macrocode} +\else + \declare@shorthand{slovak}{"`}{\clqq} + \declare@shorthand{slovak}{"'}{\crqq} + \declare@shorthand{slovak}{"<}{\flqq} + \declare@shorthand{slovak}{">}{\frqq} +\fi +% \end{macrocode} +% +% \begin{macro}{\clqq} +% This is the CS opening quote, which is similar to the German +% quote (\cs{glqq}) but the kerning is different. +% +% For the OT1 encoding, the quote is constructed from the right +% double quote (i.e. the ``Opening quotes'' character) by moving +% it down to the baseline and shifting it to the right, or to the +% left if italic correction is positive. +% +% For T1, the ``German Opening quotes'' is used. It is moved to +% the right and the total width is enlarged. This is done in an +% attempt to minimize the difference between the OT1 and T1 +% versions. +% +% \changes{3.0}{2006/04/20}{Added \cs{leavevmode} to allow an opening +% quote at the beginning of a paragraph} +% \begin{macrocode} +\ProvideTextCommand{\clqq}{OT1}{% + \set@low@box{\textquotedblright}% + \setbox\@ne=\hbox{l\/}\dimen\@ne=\wd\@ne + \setbox\@ne=\hbox{l}\advance\dimen\@ne-\wd\@ne + \leavevmode + \ifdim\dimen\@ne>\z@\kern-.1em\box\z@\kern.1em + \else\kern.1em\box\z@\kern-.1em\fi\allowhyphens} +\ProvideTextCommand{\clqq}{T1} + {\kern.1em\quotedblbase\kern-.0158em\relax} +\ProvideTextCommandDefault{\clqq}{\UseTextSymbol{OT1}\clqq} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\crqq} +% For OT1, the CS closing quote is basically the same as +% \cs{grqq}, only the \cs{textormath} macro is not used, because +% as far as I know, \cs{grqq} does not work in math mode anyway. +% +% For T1, the character is slightly wider and shifted to the +% right to match its OT1 counterpart. +% +% \begin{macrocode} +\ProvideTextCommand{\crqq}{OT1} + {\save@sf@q{\nobreak\kern-.07em\textquotedblleft\kern.07em}} +\ProvideTextCommand{\crqq}{T1} + {\save@sf@q{\nobreak\kern.06em\textquotedblleft\kern.024em}} +\ProvideTextCommandDefault{\crqq}{\UseTextSymbol{OT1}\crqq} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\clq} +% \begin{macro}{\crq} +% +% Single CS quotes are similar to double quotes (see the +% discussion above). +% +% \begin{macrocode} +\ProvideTextCommand{\clq}{OT1} + {\set@low@box{\textquoteright}\box\z@\kern.04em\allowhyphens} +\ProvideTextCommand{\clq}{T1} + {\quotesinglbase\kern-.0428em\relax} +\ProvideTextCommandDefault{\clq}{\UseTextSymbol{OT1}\clq} +\ProvideTextCommand{\crq}{OT1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommand{\crq}{T1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommandDefault{\crq}{\UseTextSymbol{OT1}\crq} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\uv} +% There are two versions of \cs{uv}. The older one opens a group +% and uses \cs{aftergroup} to typeset the closing quotes. This +% version allows using \cs{verb} inside the quotes, because the +% enclosed text is not passed as an argument, but unfortunately +% it breaks any kerning with the quotes. Although the kerning +% with the opening quote could be fixed, the kerning with the +% closing quote cannot. +% +% The newer version is defined as a command with one parameter. +% It preserves kerning but since the quoted text is passed as an +% argument, it cannot contain \cs{verb}. +% +% Decide which version of \cs{uv} should be used. For sake +% of compatibility, we use the older version with plain \TeX{} +% and the newer version with \LaTeXe. +% \begin{macrocode} +\ifx\cs@compat@plain\@undefined\else\let\cs@olduv=\relax\fi +\ifx\cs@olduv\@undefined + \DeclareRobustCommand\uv[1]{{\leavevmode\clqq#1\crqq}} +\else + \DeclareRobustCommand\uv{\bgroup\aftergroup\closequotes + \leavevmode\clqq\let\cs@next=} + \def\closequotes{\unskip\crqq\relax} +\fi +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@wordlen} +% Declare a counter to hold the length of the word after the +% hyphen. +% +% \begin{macrocode} +\newcount\cs@wordlen +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@hyphen} +% \begin{macro}{\cs@endash} +% \begin{macro}{\cs@emdash} +% Store the original hyphen in a macro. Ditto for the ligatures. +% +% \changes{slovak-3.1}{2006/10/07}{ensure correct catcode for the +% saved hyphen} +% \begin{macrocode} +\begingroup\catcode`\-12 +\def\x{\endgroup + \def\cs@hyphen{-} + \def\cs@endash{--} + \def\cs@emdash{---} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@boxhyphen} +% Provide a non-breakable hyphen to be used when a compound word +% is too short to be split, i.e. the second part is shorter than +% \cs{righthyphenmin}. +% +% \begin{macrocode} + \def\cs@boxhyphen{\hbox{-}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@splithyphen} +% The macro \cs{cs@splithyphen} inserts a split hyphen, while +% allowing both parts of the compound word to be hyphenated at +% other places too. +% +% \begin{macrocode} + \def\cs@splithyphen{\kern\z@ + \discretionary{-}{\char\hyphenchar\the\font}{-}\nobreak\hskip\z@} +}\x +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{-} +% To minimize the effects of activating the hyphen character, +% the active definition expands to the non-active character +% in all cases where hyphenation cannot occur, i.e. if not +% typesetting (check \cs{protect}), not in horizontal mode, +% or in inner horizontal mode. +% +% \begin{macrocode} +\initiate@active@char{-} +\declare@shorthand{slovak}{-}{% + \ifx\protect\@typeset@protect + \ifhmode + \ifinner + \bbl@afterelse\bbl@afterelse\bbl@afterelse\cs@hyphen + \else + \bbl@afterfi\bbl@afterelse\bbl@afterelse\cs@firsthyphen + \fi + \else + \bbl@afterfi\bbl@afterelse\cs@hyphen + \fi + \else + \bbl@afterfi\cs@hyphen + \fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@firsthyphen} +% \begin{macro}{\cs@firsthyph@n} +% \begin{macro}{\cs@secondhyphen} +% \begin{macro}{\cs@secondhyph@n} +% If we encounter a hyphen, check whether it is followed +% by a second or a third hyphen and if so, insert the +% corresponding ligature. +% +% If we don't find a hyphen, the token found will be placed +% in \cs{cs@token} for further analysis, and it will also stay +% in the input. +% +% \begin{macrocode} +\begingroup\catcode`\-\active +\def\x{\endgroup + \def\cs@firsthyphen{\futurelet\cs@token\cs@firsthyph@n} + \def\cs@firsthyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@secondhyphen + \else + \bbl@afterfi\cs@checkhyphen + \fi} + \def\cs@secondhyphen ##1{% + \futurelet\cs@token\cs@secondhyph@n} + \def\cs@secondhyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@emdash\@gobble + \else + \bbl@afterfi\cs@endash + \fi} +}\x +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@checkhyphen} +% Check that hyphenation is enabled, and if so, start analyzing +% the rest of the word, i.e. initialize \cs{cs@word} and \cs{cs@wordlen} +% and start processing input with \cs{cs@scanword}. +% +% \begin{macrocode} +\def\cs@checkhyphen{% + \ifnum\expandafter\hyphenchar\the\font=`\- + \def\cs@word{}\cs@wordlen\z@ + \bbl@afterelse\cs@scanword + \else + \cs@hyphen + \fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@scanword} +% \begin{macro}{\cs@continuescan} +% \begin{macro}{\cs@gettoken} +% \begin{macro}{\cs@gett@ken} +% Each token is first analyzed with \cs{cs@scanword}, which expands +% the token and passes the first token of the result to +% \cs{cs@gett@ken}. If the expanded token is not identical to the +% unexpanded one, presume that it might be expanded further and +% pass it back to \cs{cs@scanword} until you get an unexpandable +% token. Then analyze it in \cs{cs@examinetoken}. +% +% The \cs{cs@continuescan} macro does the same thing as +% \cs{cs@scanword}, but it does not require the first token to be +% in \cs{cs@token} already. +% +% \begin{macrocode} +\def\cs@scanword{\let\cs@lasttoken= \cs@token\expandafter\cs@gettoken} +\def\cs@continuescan{\let\cs@lasttoken\@undefined\expandafter\cs@gettoken} +\def\cs@gettoken{\futurelet\cs@token\cs@gett@ken} +\def\cs@gett@ken{% + \ifx\cs@token\cs@lasttoken \def\cs@next{\cs@examinetoken}% + \else \def\cs@next{\cs@scanword}% + \fi \cs@next} +% \end{macrocode} +% \end{macro} +% \end{macro} +% \end{macro} +% \end{macro} +% +% \begin{macro}{cs@examinetoken} +% Examine the token in \cs{cs@token}: +% +% \begin{itemize} +% \item +% If it is a letter (catcode 11) or other (catcode 12), add it +% to \cs{cs@word} with \cs{cs@addparam}. +% +% \item +% If it is the \cs{char} primitive, add it with \cs{cs@expandchar}. +% +% \item +% If the token starts or ends a group, ignore it with +% \cs{cs@ignoretoken}. +% +% \item +% Otherwise analyze the meaning of the token with +% \cs{cs@checkchardef} to detect primitives defined with +% \cs{chardef}. +% +% \end{itemize} +% +% \begin{macrocode} +\def\cs@examinetoken{% + \ifcat A\cs@token + \def\cs@next{\cs@addparam}% + \else\ifcat 0\cs@token + \def\cs@next{\cs@addparam}% + \else\ifx\char\cs@token + \def\cs@next{\afterassignment\cs@expandchar\let\cs@token= }% + \else\ifx\bgroup\cs@token + \def\cs@next{\cs@ignoretoken\bgroup}% + \else\ifx\egroup\cs@token + \def\cs@next{\cs@ignoretoken\egroup}% + \else\ifx\begingroup\cs@token + \def\cs@next{\cs@ignoretoken\begingroup}% + \else\ifx\endgroup\cs@token + \def\cs@next{\cs@ignoretoken\endgroup}% + \else + \def\cs@next{\expandafter\expandafter\expandafter\cs@checkchardef + \expandafter\meaning\expandafter\cs@token\string\char\end}% + \fi\fi\fi\fi\fi\fi\fi\cs@next} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@checkchardef} +% Check the meaning of a token and if it is a primitive defined +% with \cs{chardef}, pass it to \cs{\cs@examinechar} as if it were +% a \cs{char} sequence. Otherwise, there are no more word characters, +% so do the final actions in \cs{cs@nosplit}. +% +% \begin{macrocode} +\expandafter\def\expandafter\cs@checkchardef + \expandafter#\expandafter1\string\char#2\end{% + \def\cs@token{#1}% + \ifx\cs@token\@empty + \def\cs@next{\afterassignment\cs@examinechar\let\cs@token= }% + \else + \def\cs@next{\cs@nosplit}% + \fi \cs@next} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@ignoretoken} +% Add a token to \cs{cs@word} but do not update the \cs{cs@wordlen} +% counter. This is mainly useful for group starting and ending +% primitives, which need to be preserved, but do not affect the word +% boundary. +% +% \begin{macrocode} +\def\cs@ignoretoken#1{% + \edef\cs@word{\cs@word#1}% + \afterassignment\cs@continuescan\let\cs@token= } +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{cs@addparam} +% Add a token to \cs{cs@word} and check its lccode. Note that +% this macro can only be used for tokens which can be passed as +% a parameter. +% +% \begin{macrocode} +\def\cs@addparam#1{% + \edef\cs@word{\cs@word#1}% + \cs@checkcode{\lccode`#1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@expandchar} +% \begin{macro}{\cs@examinechar} +% Add a \cs{char} sequence to \cs{cs@word} and check its lccode. +% The charcode is first parsed in \cs{cs@expandchar} and then the +% resulting \cs{chardef}-defined sequence is analyzed in +% \cs{cs@examinechar}. +% +% \begin{macrocode} +\def\cs@expandchar{\afterassignment\cs@examinechar\chardef\cs@token=} +\def\cs@examinechar{% + \edef\cs@word{\cs@word\char\the\cs@token\space}% + \cs@checkcode{\lccode\cs@token}} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@checkcode} +% Check the lccode of a character. If it is zero, it does not count +% to the current word, so finish it with \cs{cs@nosplit}. Otherwise +% update the \cs{cs@wordlen} counter and go on scanning the word +% with \cs{cs@continuescan}. When enough characters are gathered in +% \cs{cs@word} to allow word break, insert the split hyphen and +% finish. +% +% \begin{macrocode} +\def\cs@checkcode#1{% + \ifnum0=#1 + \def\cs@next{\cs@nosplit}% + \else + \advance\cs@wordlen\@ne + \ifnum\righthyphenmin>\the\cs@wordlen + \def\cs@next{\cs@continuescan}% + \else + \cs@splithyphen + \def\cs@next{\cs@word}% + \fi + \fi \cs@next} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@nosplit} +% Insert a non-breakable hyphen followed by the saved word. +% +% \begin{macrocode} +\def\cs@nosplit{\cs@boxhyphen\cs@word} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@hyphen} +% The \cs{minus} sequence can be used where the active hyphen +% does not work, e.g. in arguments to \TeX{} primitives in outer +% horizontal mode. +% +% \begin{macrocode} +\let\minus\cs@hyphen +% \end{macrocode} +% \end{macro} + +% \begin{macro}{\standardhyphens} +% \begin{macro}{\splithyphens} +% These macros control whether split hyphens are allowed in Czech +% and/or Slovak texts. You may use them in any language, but the +% split hyphen is only activated for Czech and Slovak. +% +% \changes{slovak-3.1}{2006/10/07}{activate with split hyphens and +% deactivate with standard hyphens, not vice versa} +% \begin{macrocode} +\def\standardhyphens{\cs@splithyphensfalse\cs@deactivatehyphens} +\def\splithyphens{\cs@splithyphenstrue\cs@activatehyphens} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@splitattr} +% Now we declare the |split| language attribute. This is +% similar to the |split| package option of cslatex, but it +% only affects Slovak, not Czech. +% +% \changes{slovak-3.1}{2006/10/07}{attribute added} +% \begin{macrocode} +\def\cs@splitattr{\babel@save\ifcs@splithyphens\splithyphens} +\bbl@declare@ttribute{slovak}{split}{% + \addto\extrasslovak{\cs@splitattr}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\cs@activatehyphens} +% \begin{macro}{\cs@deactivatehyphens} +% These macros are defined as \cs{relax} by default to prevent +% activating/deactivating the hyphen character. They are redefined +% when the language is switched to Czech/Slovak. At that moment +% the hyphen is also activated if split hyphens were requested with +% \cs{splithyphens}. +% +% When the language is de-activated, de-activate the hyphen and +% restore the bogus definitions of these macros. +% +% \begin{macrocode} +\let\cs@activatehyphens\relax +\let\cs@deactivatehyphens\relax +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \def\cs@activatehyphens{\bbl@activate{-}}% + \def\cs@deactivatehyphens{\bbl@deactivate{-}}% + \ifcs@splithyphens\cs@activatehyphens\fi} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \cs@deactivatehyphens + \let\cs@activatehyphens\relax + \let\cs@deactivatehyphens\relax} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@looseness} +% \begin{macro}{\looseness} +% One of the most common situations where an active hyphen will not +% work properly is the \cs{looseness} primitive. Change its definition +% so that it deactivates the hyphen if needed. +% +% \begin{macrocode} +\let\cs@looseness\looseness +\def\looseness{% + \ifcs@splithyphens + \cs@deactivatehyphens\afterassignment\cs@activatehyphens \fi + \cs@looseness} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% \begin{macro}{\cs@selectlanguage} +% \begin{macro}{\cs@main@language} +% Specifying the |nocaptions| option means that captions and dates +% are not redefined by default, but they can be switched on later +% with \cs{captionsslovak} and/or \cs{dateslovak}. +% +% We mimic this behavior by redefining \cs{selectlanguage}. This +% macro is called once at the beginning of the document to set the +% main language of the document. If this is \cs{cs@main@language}, +% it disables the macros for setting captions and date. In any +% case, it restores the original definition of \cs{selectlanguage} +% and expands it. +% +% The definition of \cs{selectlanguage} can be shared between Czech +% and Slovak; the actual language is stored in \cs{cs@main@language}. +% +% \begin{macrocode} +\ifx\cs@nocaptions\@undefined\else + \edef\cs@main@language{\CurrentOption} + \ifx\cs@origselect\@undefined + \let\cs@origselect=\selectlanguage + \def\selectlanguage{% + \let\selectlanguage\cs@origselect + \ifx\bbl@main@language\cs@main@language + \expandafter\cs@selectlanguage + \else + \expandafter\selectlanguage + \fi} + \def\cs@selectlanguage{% + \cs@tempdisable{captions}% + \cs@tempdisable{date}% + \selectlanguage} +% \end{macrocode} +% +% \begin{macro}{\cs@tempdisable} +% \cs{cs@tempdisable} disables a language setup macro temporarily, +% i.e. the macro with the name of \meta{\#1}|\bbl@main@language| +% just restores the original definition and purges the saved macro +% from memory. +% +% \begin{macrocode} + \def\cs@tempdisable#1{% + \def\@tempa{cs@#1}% + \def\@tempb{#1\bbl@main@language}% + \expandafter\expandafter\expandafter\let + \expandafter \csname\expandafter \@tempa \expandafter\endcsname + \csname \@tempb \endcsname + \expandafter\edef\csname \@tempb \endcsname{% + \let \expandafter\noexpand \csname \@tempb \endcsname + \expandafter\noexpand \csname \@tempa \endcsname + \let \expandafter\noexpand\csname \@tempa \endcsname + \noexpand\@undefined}} +% \end{macrocode} +% \end{macro} +% +% These macros are not needed, once the initialization is over. +% +% \begin{macrocode} + \@onlypreamble\cs@main@language + \@onlypreamble\cs@origselect + \@onlypreamble\cs@selectlanguage + \@onlypreamble\cs@tempdisable + \fi +\fi +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% The encoding of mathematical fonts should be changed to IL2. This +% allows to use accented letter in some font families. Besides, +% documents do not use CM fonts if there are equivalents in CS-fonts, +% so there is no need to have both bitmaps of CM-font and CS-font. +% +% \cs{@font@warning} and \cs{@font@info} are temporarily redefined +% to avoid annoying font warnings. +% +% \begin{macrocode} +\ifx\cs@compat@plain\@undefined +\ifx\cs@check@enc\@undefined\else + \def\cs@check@enc{ + \ifx\encodingdefault\cs@iltw@ + \let\cs@warn\@font@warning \let\@font@warning\@gobble + \let\cs@info\@font@info \let\@font@info\@gobble + \SetSymbolFont{operators}{normal}{\cs@iltw@}{cmr}{m}{n} + \SetSymbolFont{operators}{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathbf{normal}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{normal}{\cs@iltw@}{cmr}{m}{it} + \SetMathAlphabet\mathrm{normal}{\cs@iltw@}{cmr}{m}{n} + \SetMathAlphabet\mathsf{normal}{\cs@iltw@}{cmss}{m}{n} + \SetMathAlphabet\mathtt{normal}{\cs@iltw@}{cmtt}{m}{n} + \SetMathAlphabet\mathbf{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{bold}{\cs@iltw@}{cmr}{bx}{it} + \SetMathAlphabet\mathrm{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathsf{bold}{\cs@iltw@}{cmss}{bx}{n} + \SetMathAlphabet\mathtt{bold}{\cs@iltw@}{cmtt}{m}{n} + \let\@font@warning\cs@warn \let\cs@warn\@undefined + \let\@font@info\cs@info \let\cs@info\@undefined + \fi + \let\cs@check@enc\@undefined} + \AtBeginDocument{\cs@check@enc} +\fi +\fi +% \end{macrocode} +% +% \begin{macro}{cs@undoiltw@} +% +% The thing is that \LaTeXe{} core only supports the T1 encoding +% and does not bother changing the uc/lc/sfcodes when encoding +% is switched. :( However, the IL2 encoding \emph{does} change +% these codes, so if encoding is switched back from IL2, we must +% also undo the effect of this change to be compatible with +% \LaTeXe. OK, this is not the right\textsuperscript{TM} solution +% but it works. Cheers to Petr Ol\v s\'ak. +% +% \begin{macrocode} +\def\cs@undoiltw@{% + \uccode158=208 \lccode158=158 \sfcode158=1000 + \sfcode159=1000 + \uccode165=133 \lccode165=165 \sfcode165=1000 + \uccode169=137 \lccode169=169 \sfcode169=1000 + \uccode171=139 \lccode171=171 \sfcode171=1000 + \uccode174=142 \lccode174=174 \sfcode174=1000 + \uccode181=149 + \uccode185=153 + \uccode187=155 + \uccode190=0 \lccode190=0 + \uccode254=222 \lccode254=254 \sfcode254=1000 + \uccode255=223 \lccode255=255 \sfcode255=1000} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{@@enc@update} +% +% Redefine the \LaTeXe{} internal function \cs{@@enc@update} to +% change the encodings correctly. +% +% \begin{macrocode} +\ifx\cs@enc@update\@undefined +\ifx\@@enc@update\@undefined\else + \let\cs@enc@update\@@enc@update + \def\@@enc@update{\ifx\cf@encoding\cs@iltw@\cs@undoiltw@\fi + \cs@enc@update + \expandafter\ifnum\csname l@\languagename\endcsname=\the\language + \expandafter\ifx + \csname l@\languagename:\f@encoding\endcsname\relax + \else + \expandafter\expandafter\expandafter\let + \expandafter\csname + \expandafter l\expandafter @\expandafter\languagename + \expandafter\endcsname\csname l@\languagename:\f@encoding\endcsname + \fi + \language=\csname l@\languagename\endcsname\relax + \fi} +\fi\fi % \end{macrocode} +% \end{macro} % % The macro |\ldf@finish| takes care of looking for a % configuration file, setting the main language to be switched on @@ -392,7 +1285,7 @@ % \texttt{@} to its original value. % \changes{slovak-1.2i}{1996/11/03}{Now use \cs{ldf@finish} to wrap up} % \begin{macrocode} -\ldf@finish{slovak} +\ldf@finish\CurrentOption % % \end{macrocode} % diff --git a/Master/texmf-dist/source/generic/babel/slovak.ins b/Master/texmf-dist/source/generic/babel/slovak.ins index 3a007b7c3c7..c8c7d88326d 100644 --- a/Master/texmf-dist/source/generic/babel/slovak.ins +++ b/Master/texmf-dist/source/generic/babel/slovak.ins @@ -3,7 +3,7 @@ %% driver files from the doc files in this package when run through %% LaTeX or TeX. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file is part of the Babel system. @@ -53,7 +53,7 @@ \declarepreamble\mainpreamble This is a generated file. -Copyright 1989-2005 Johannes L. Braams and any individual authors +Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. This file was generated from file(s) of the Babel system. @@ -87,7 +87,7 @@ extension .ins) which are part of the distribution. \declarepreamble\fdpreamble This is a generated file. -Copyright 1989-2005 Johannes L. Braams and any individual authors +Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. This file was generated from file(s) of the Babel system. diff --git a/Master/texmf-dist/source/generic/babel/spanish.dtx b/Master/texmf-dist/source/generic/babel/spanish.dtx index 733b5e4f437..8b0166f8035 100644 --- a/Master/texmf-dist/source/generic/babel/spanish.dtx +++ b/Master/texmf-dist/source/generic/babel/spanish.dtx @@ -26,13 +26,17 @@ % and covered by LPPL is defined by the unpacking scripts (with % extension .ins) which are part of the distribution. % \fi -% \CheckSum{2059} +% \ifx\langdeffile\undefined +% \CheckSum{2145} +% \else +% \CheckSum{2061} +% \fi % \ProvidesFile{spanish.dtx} -% [2008/05/24 v5.0d Spanish support from the babel system] +% [2008/07/06 v5.0e Spanish support from the babel system] %\iffalse %% File `spanish.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2004 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek % %% Spanish Language Definition File @@ -1650,7 +1654,7 @@ % \begin{macrocode} %<*code> \ProvidesLanguage{spanish.ldf} - [2008/05/25 v5.0d Spanish support from the babel system] + [2008/07/06 v5.0e Spanish support from the babel system] \LdfInit{spanish}\captionsspanish \edef\es@savedcatcodes{% @@ -2360,6 +2364,8 @@ % possible later use in the |cfg| file. In non \LaTeXe{} formats % is always executed. % +% \changes{spanish-5.0e}{2008/07/06}{Two acutes in a row should be +% turned into a double right quote} % \begin{macrocode} \begingroup \catcode`\'=12 @@ -2370,6 +2376,7 @@ \es@a A\es@a E\es@a I\es@a O\es@a U% \es@declare{'n}{\~n}% \es@declare{'N}{\~N}% + \es@declare{''}{\textquotedblright}% % \end{macrocode} % % But \textsf{spanish} allows two category codes for |'|, diff --git a/Master/texmf-dist/source/generic/babel/usage.tex b/Master/texmf-dist/source/generic/babel/usage.tex index 1c3573bdb0f..122cd8b07e4 100644 --- a/Master/texmf-dist/source/generic/babel/usage.tex +++ b/Master/texmf-dist/source/generic/babel/usage.tex @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2008 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. diff --git a/Master/texmf-dist/tex/generic/babel/athnum.sty b/Master/texmf-dist/tex/generic/babel/athnum.sty index f010fe0a423..ae42f15a2da 100644 --- a/Master/texmf-dist/tex/generic/babel/athnum.sty +++ b/Master/texmf-dist/tex/generic/babel/athnum.sty @@ -7,7 +7,7 @@ %% athnum.dtx (with options: `package') %% This is a generated file. %% -%% Copyright 1989-2007 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. diff --git a/Master/texmf-dist/tex/generic/babel/babel.def b/Master/texmf-dist/tex/generic/babel/babel.def index e4c237cb05c..f8af910ce8a 100644 --- a/Master/texmf-dist/tex/generic/babel/babel.def +++ b/Master/texmf-dist/tex/generic/babel/babel.def @@ -38,7 +38,7 @@ %% extension .ins) which are part of the distribution. %% %% File 'babel.dtx' -%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8j The Babel package] +%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package] %% Babel package for LaTeX2e. %% Copyright (C) 1989 -- 2008 by Johannes Braams, %% TeXniek @@ -56,7 +56,7 @@ } \fi \ProvidesFile{babel.def} - [2008/03/16 v3.8j % + [2008/07/06 v3.8l % Babel common definitions] \ifx\AtBeginDocument\@undefined \input plain.def\relax @@ -123,7 +123,7 @@ \def\main@language#1{% \def\bbl@main@language{#1}% \let\languagename\bbl@main@language - \language=\csname l@\languagename\endcsname\relax + \bbl@patterns{\languagename}% } \ifx\l@english\@undefined \let\l@english\z@ diff --git a/Master/texmf-dist/tex/generic/babel/babel.sty b/Master/texmf-dist/tex/generic/babel/babel.sty index 203d60c69dc..c6c6048d897 100644 --- a/Master/texmf-dist/tex/generic/babel/babel.sty +++ b/Master/texmf-dist/tex/generic/babel/babel.sty @@ -39,7 +39,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] %% File 'babel.dtx' -%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8j The Babel package] +%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package] %% Babel package for LaTeX2e. %% Copyright (C) 1989 -- 2008 by Johannes Braams, %% TeXniek @@ -47,7 +47,7 @@ %% Please report errors to: J.L. Braams %% babel at braams.xs4all.nl \ProvidesPackage{babel} - [2008/03/16 v3.8j % + [2008/07/06 v3.8l % The Babel package] \ifx\LdfInit\@undefined\input babel.def\relax\fi \DeclareOption{acadian}{\input{frenchb.ldf}} diff --git a/Master/texmf-dist/tex/generic/babel/czech.ldf b/Master/texmf-dist/tex/generic/babel/czech.ldf index c7bbb1dcfb4..1c4a22186a5 100644 --- a/Master/texmf-dist/tex/generic/babel/czech.ldf +++ b/Master/texmf-dist/tex/generic/babel/czech.ldf @@ -7,7 +7,7 @@ %% czech.dtx (with options: `code') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -37,50 +37,91 @@ %% and covered by LPPL is defined by the unpacking scripts (with %% extension .ins) which are part of the distribution. \ProvidesLanguage{czech} - [2005/03/29 v1.3k Czech support from the babel system] + [2008/07/06 v3.1a Czech support from the babel system] %% File `czech.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2005 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek -%% Please report errors to: J.L. Braams -%% babel at braams.cistron.nl -\LdfInit{czech}\captionsczech +%% Copyright (C) 2005, 2008 +%% by Petr Tesa\v r\'ik (babel at tesarici.cz) +%% +%% Czech Language Definition File +%% Please report errors to: Petr Tesa\v r\'ik +%% babel at tesarici.cz +\LdfInit\CurrentOption{date\CurrentOption} \ifx\l@czech\@undefined \@nopatterns{Czech} \adddialect\l@czech0\fi -\addto\captionsczech{% - \def\prefacename{P\v redmluva}% +\def\cs@iltw@{IL2} +\newif\ifcs@splithyphens +\cs@splithyphensfalse +\ifx\@ifpackageloaded\@undefined + \let\cs@compat@plain\relax + \message{csplain compatibility mode} +\else + \@ifpackageloaded{babel}{}{% + \let\cs@compat@latex\relax + \message{cslatex compatibility mode}} +\fi +\ifx\cs@compat@latex\relax + \ProvidesPackage{czech}[2008/07/06 v3.1a CSTeX Czech style] + \DeclareOption{IL2}{\def\encodingdefault{IL2}} + \DeclareOption {T1}{\def\encodingdefault {T1}} + \DeclareOption{OT1}{\def\encodingdefault{OT1}} + \DeclareOption{nosplit}{\cs@splithyphensfalse} + \DeclareOption{split}{\cs@splithyphenstrue} + \DeclareOption{nocaptions}{\let\cs@nocaptions=\relax} + \DeclareOption{olduv}{\let\cs@olduv=\relax} + \DeclareOption{cstex}{\relax} + \ExecuteOptions{\cs@iltw@} + \ProcessOptions + \ifx\encodingdefault\cs@iltw@ + \input il2enc.def + \fi + \def\CurrentOption{czech} +\fi +\@namedef{captions\CurrentOption}{% + \def\prefacename{P\v{r}edmluva}% \def\refname{Reference}% \def\abstractname{Abstrakt}% \def\bibname{Literatura}% \def\chaptername{Kapitola}% - \def\appendixname{Dodatek}% + \def\appendixname{P\v{r}\'{\i}loha}% \def\contentsname{Obsah}% \def\listfigurename{Seznam obr\'azk\r{u}}% \def\listtablename{Seznam tabulek}% - \def\indexname{Index}% + \def\indexname{Rejst\v{r}\'{\i}k}% \def\figurename{Obr\'azek}% \def\tablename{Tabulka}% \def\partname{\v{C}\'ast}% \def\enclname{P\v{r}\'{\i}loha}% - \def\ccname{Na v\v{e}dom\'{\i}:}% + \def\ccname{Na v\v{e}dom\'{\i}}% \def\headtoname{Komu}% \def\pagename{Strana}% \def\seename{viz}% \def\alsoname{viz tak\'e}% \def\proofname{D\r{u}kaz}% - \def\glossaryname{Glos\'a\v r}% + \def\glossaryname{Slovn\'{\i}k}% }% -\def\dateczech{% - \def\today{\number\day.~\ifcase\month\or - ledna\or \'unora\or b\v{r}ezna\or dubna\or kv\v{e}tna\or - \v{c}ervna\or \v{c}ervence\or srpna\or z\'a\v{r}\'{\i}\or - \v{r}\'{\i}jna\or listopadu\or prosince\fi - \space \number\year}} -\addto\extrasczech{\babel@save\q\let\q\v} -\addto\extrasczech{\babel@save\w\let\w\r} -\addto\extrasczech{\bbl@frenchspacing} -\addto\noextrasczech{\bbl@nonfrenchspacing} +\@namedef{date\CurrentOption}{% + \def\today{\number\day.~\ifcase\month\or ledna\or \'unora\or + b\v{r}ezna\or dubna\or kv\v{e}tna\or \v{c}ervna\or \v{c}ervence\or + srpna\or z\'a\v{r}\'\i\or \v{r}\'{\i}jna\or listopadu\or + prosince\fi \space\number\year}} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \bbl@frenchspacing + \languageshorthands{czech}} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \bbl@nonfrenchspacing} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \babel@save\q\let\q\v + \babel@save\w\let\w\r} +\begingroup\catcode`\"=12\catcode`\'=12 +\def\x{\endgroup + \def\sq{'} + \def\dq{"}} +\x +\providehyphenmins{\CurrentOption}{\tw@\thr@@} \AtBeginDocument{% \DeclareTextCompositeCommand{\v}{OT1}{t}{% t\kern-.23em\raise.24ex\hbox{'}} @@ -102,7 +143,293 @@ \else L\raise.45ex\hbox to\z@{\kern-.40em '\hss}% \fi} -\ldf@finish{czech} +\ifx\cs@compat@latex\relax + \let\cs@ltxprim@s\prim@s + \def\csprimeson{% + \catcode`\`\active \catcode`\'\active \let\prim@s\bbl@prim@s} + \def\csprimesoff{% + \catcode`\`12 \catcode`\'12 \let\prim@s\cs@ltxprim@s} + \begingroup\catcode`\`\active + \def\x{\endgroup + \def`{\futurelet\cs@next\cs@openquote} + \def\cs@openquote{% + \ifx`\cs@next \expandafter\cs@opendq + \else \expandafter\clq + \fi}% + }\x + \begingroup\catcode`\'\active + \def\x{\endgroup + \def'{\textormath{\futurelet\cs@next\cs@closequote} + {^\bgroup\prim@s}} + \def\cs@closequote{% + \ifx'\cs@next \expandafter\cs@closedq + \else \expandafter\crq + \fi}% + }\x + \def\cs@opendq{\clqq\let\cs@next= } + \def\cs@closedq{\crqq\let\cs@next= } +\else + \initiate@active@char{"} + \expandafter\addto\csname extras\CurrentOption\endcsname{% + \bbl@activate{"}} + \expandafter\addto\csname noextras\CurrentOption\endcsname{% + \bbl@deactivate{"}} + \declare@shorthand{czech}{"`}{\clqq} + \declare@shorthand{czech}{"'}{\crqq} + \declare@shorthand{czech}{"<}{\flqq} + \declare@shorthand{czech}{">}{\frqq} + \declare@shorthand{czech}{"=}{\cs@splithyphen} +\fi +\ProvideTextCommand{\clqq}{OT1}{% + \set@low@box{\textquotedblright}% + \setbox\@ne=\hbox{l\/}\dimen\@ne=\wd\@ne + \setbox\@ne=\hbox{l}\advance\dimen\@ne-\wd\@ne + \leavevmode + \ifdim\dimen\@ne>\z@\kern-.1em\box\z@\kern.1em + \else\kern.1em\box\z@\kern-.1em\fi\allowhyphens} +\ProvideTextCommand{\clqq}{T1} + {\kern.1em\quotedblbase\kern-.0158em\relax} +\ProvideTextCommandDefault{\clqq}{\UseTextSymbol{OT1}\clqq} +\ProvideTextCommand{\crqq}{OT1} + {\save@sf@q{\nobreak\kern-.07em\textquotedblleft\kern.07em}} +\ProvideTextCommand{\crqq}{T1} + {\save@sf@q{\nobreak\kern.06em\textquotedblleft\kern.024em}} +\ProvideTextCommandDefault{\crqq}{\UseTextSymbol{OT1}\crqq} +\ProvideTextCommand{\clq}{OT1} + {\set@low@box{\textquoteright}\box\z@\kern.04em\allowhyphens} +\ProvideTextCommand{\clq}{T1} + {\quotesinglbase\kern-.0428em\relax} +\ProvideTextCommandDefault{\clq}{\UseTextSymbol{OT1}\clq} +\ProvideTextCommand{\crq}{OT1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommand{\crq}{T1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommandDefault{\crq}{\UseTextSymbol{OT1}\crq} +\ifx\cs@compat@plain\@undefined\else\let\cs@olduv=\relax\fi +\ifx\cs@olduv\@undefined + \DeclareRobustCommand\uv[1]{{\leavevmode\clqq#1\crqq}} +\else + \DeclareRobustCommand\uv{\bgroup\aftergroup\closequotes + \leavevmode\clqq\let\cs@next=} + \def\closequotes{\unskip\crqq\relax} +\fi +\newcount\cs@wordlen +\begingroup\catcode`\-12 +\def\x{\endgroup + \def\cs@hyphen{-} + \def\cs@endash{--} + \def\cs@emdash{---} + \def\cs@boxhyphen{\hbox{-}} + \def\cs@splithyphen{\kern\z@ + \discretionary{-}{\char\hyphenchar\the\font}{-}\nobreak\hskip\z@} +}\x +\initiate@active@char{-} +\declare@shorthand{czech}{-}{% + \ifx\protect\@typeset@protect + \ifhmode + \ifinner + \bbl@afterelse\bbl@afterelse\bbl@afterelse\cs@hyphen + \else + \bbl@afterfi\bbl@afterelse\bbl@afterelse\cs@firsthyphen + \fi + \else + \bbl@afterfi\bbl@afterelse\cs@hyphen + \fi + \else + \bbl@afterfi\cs@hyphen + \fi} +\begingroup\catcode`\-\active +\def\x{\endgroup + \def\cs@firsthyphen{\futurelet\cs@token\cs@firsthyph@n} + \def\cs@firsthyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@secondhyphen + \else + \bbl@afterfi\cs@checkhyphen + \fi} + \def\cs@secondhyphen ##1{% + \futurelet\cs@token\cs@secondhyph@n} + \def\cs@secondhyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@emdash\@gobble + \else + \bbl@afterfi\cs@endash + \fi} +}\x +\def\cs@checkhyphen{% + \ifnum\expandafter\hyphenchar\the\font=`\- + \def\cs@word{}\cs@wordlen\z@ + \bbl@afterelse\cs@scanword + \else + \cs@hyphen + \fi} +\def\cs@scanword{\let\cs@lasttoken= \cs@token\expandafter\cs@gettoken} +\def\cs@continuescan{\let\cs@lasttoken\@undefined\expandafter\cs@gettoken} +\def\cs@gettoken{\futurelet\cs@token\cs@gett@ken} +\def\cs@gett@ken{% + \ifx\cs@token\cs@lasttoken \def\cs@next{\cs@examinetoken}% + \else \def\cs@next{\cs@scanword}% + \fi \cs@next} +\def\cs@examinetoken{% + \ifcat A\cs@token + \def\cs@next{\cs@addparam}% + \else\ifcat 0\cs@token + \def\cs@next{\cs@addparam}% + \else\ifx\char\cs@token + \def\cs@next{\afterassignment\cs@expandchar\let\cs@token= }% + \else\ifx\bgroup\cs@token + \def\cs@next{\cs@ignoretoken\bgroup}% + \else\ifx\egroup\cs@token + \def\cs@next{\cs@ignoretoken\egroup}% + \else\ifx\begingroup\cs@token + \def\cs@next{\cs@ignoretoken\begingroup}% + \else\ifx\endgroup\cs@token + \def\cs@next{\cs@ignoretoken\endgroup}% + \else + \def\cs@next{\expandafter\expandafter\expandafter\cs@checkchardef + \expandafter\meaning\expandafter\cs@token\string\char\end}% + \fi\fi\fi\fi\fi\fi\fi\cs@next} +\expandafter\def\expandafter\cs@checkchardef + \expandafter#\expandafter1\string\char#2\end{% + \def\cs@token{#1}% + \ifx\cs@token\@empty + \def\cs@next{\afterassignment\cs@examinechar\let\cs@token= }% + \else + \def\cs@next{\cs@nosplit}% + \fi \cs@next} +\def\cs@ignoretoken#1{% + \edef\cs@word{\cs@word#1}% + \afterassignment\cs@continuescan\let\cs@token= } +\def\cs@addparam#1{% + \edef\cs@word{\cs@word#1}% + \cs@checkcode{\lccode`#1}} +\def\cs@expandchar{\afterassignment\cs@examinechar\chardef\cs@token=} +\def\cs@examinechar{% + \edef\cs@word{\cs@word\char\the\cs@token\space}% + \cs@checkcode{\lccode\cs@token}} +\def\cs@checkcode#1{% + \ifnum0=#1 + \def\cs@next{\cs@nosplit}% + \else + \advance\cs@wordlen\@ne + \ifnum\righthyphenmin>\the\cs@wordlen + \def\cs@next{\cs@continuescan}% + \else + \cs@splithyphen + \def\cs@next{\cs@word}% + \fi + \fi \cs@next} +\def\cs@nosplit{\cs@boxhyphen\cs@word} +\let\minus\cs@hyphen + +\def\standardhyphens{\cs@splithyphensfalse\cs@deactivatehyphens} +\def\splithyphens{\cs@splithyphenstrue\cs@activatehyphens} +\def\cs@splitattr{\babel@save\ifcs@splithyphens\splithyphens} +\bbl@declare@ttribute{czech}{split}{% + \addto\extrasczech{\cs@splitattr}} +\let\cs@activatehyphens\relax +\let\cs@deactivatehyphens\relax +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \def\cs@activatehyphens{\bbl@activate{-}}% + \def\cs@deactivatehyphens{\bbl@deactivate{-}}% + \ifcs@splithyphens\cs@activatehyphens\fi} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \cs@deactivatehyphens + \let\cs@activatehyphens\relax + \let\cs@deactivatehyphens\relax} +\let\cs@looseness\looseness +\def\looseness{% + \ifcs@splithyphens + \cs@deactivatehyphens\afterassignment\cs@activatehyphens \fi + \cs@looseness} +\ifx\cs@nocaptions\@undefined\else + \edef\cs@main@language{\CurrentOption} + \ifx\cs@origselect\@undefined + \let\cs@origselect=\selectlanguage + \def\selectlanguage{% + \let\selectlanguage\cs@origselect + \ifx\bbl@main@language\cs@main@language + \expandafter\cs@selectlanguage + \else + \expandafter\selectlanguage + \fi} + \def\cs@selectlanguage{% + \cs@tempdisable{captions}% + \cs@tempdisable{date}% + \selectlanguage} + \def\cs@tempdisable#1{% + \def\@tempa{cs@#1}% + \def\@tempb{#1\bbl@main@language}% + \expandafter\expandafter\expandafter\let + \expandafter \csname\expandafter \@tempa \expandafter\endcsname + \csname \@tempb \endcsname + \expandafter\edef\csname \@tempb \endcsname{% + \let \expandafter\noexpand \csname \@tempb \endcsname + \expandafter\noexpand \csname \@tempa \endcsname + \let \expandafter\noexpand\csname \@tempa \endcsname + \noexpand\@undefined}} + \@onlypreamble\cs@main@language + \@onlypreamble\cs@origselect + \@onlypreamble\cs@selectlanguage + \@onlypreamble\cs@tempdisable + \fi +\fi +\ifx\cs@compat@plain\@undefined +\ifx\cs@check@enc\@undefined\else + \def\cs@check@enc{ + \ifx\encodingdefault\cs@iltw@ + \let\cs@warn\@font@warning \let\@font@warning\@gobble + \let\cs@info\@font@info \let\@font@info\@gobble + \SetSymbolFont{operators}{normal}{\cs@iltw@}{cmr}{m}{n} + \SetSymbolFont{operators}{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathbf{normal}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{normal}{\cs@iltw@}{cmr}{m}{it} + \SetMathAlphabet\mathrm{normal}{\cs@iltw@}{cmr}{m}{n} + \SetMathAlphabet\mathsf{normal}{\cs@iltw@}{cmss}{m}{n} + \SetMathAlphabet\mathtt{normal}{\cs@iltw@}{cmtt}{m}{n} + \SetMathAlphabet\mathbf{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{bold}{\cs@iltw@}{cmr}{bx}{it} + \SetMathAlphabet\mathrm{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathsf{bold}{\cs@iltw@}{cmss}{bx}{n} + \SetMathAlphabet\mathtt{bold}{\cs@iltw@}{cmtt}{m}{n} + \let\@font@warning\cs@warn \let\cs@warn\@undefined + \let\@font@info\cs@info \let\cs@info\@undefined + \fi + \let\cs@check@enc\@undefined} + \AtBeginDocument{\cs@check@enc} +\fi +\fi +\def\cs@undoiltw@{% + \uccode158=208 \lccode158=158 \sfcode158=1000 + \sfcode159=1000 + \uccode165=133 \lccode165=165 \sfcode165=1000 + \uccode169=137 \lccode169=169 \sfcode169=1000 + \uccode171=139 \lccode171=171 \sfcode171=1000 + \uccode174=142 \lccode174=174 \sfcode174=1000 + \uccode181=149 + \uccode185=153 + \uccode187=155 + \uccode190=0 \lccode190=0 + \uccode254=222 \lccode254=254 \sfcode254=1000 + \uccode255=223 \lccode255=255 \sfcode255=1000} +\ifx\cs@enc@update\@undefined +\ifx\@@enc@update\@undefined\else + \let\cs@enc@update\@@enc@update + \def\@@enc@update{\ifx\cf@encoding\cs@iltw@\cs@undoiltw@\fi + \cs@enc@update + \expandafter\ifnum\csname l@\languagename\endcsname=\the\language + \expandafter\ifx + \csname l@\languagename:\f@encoding\endcsname\relax + \else + \expandafter\expandafter\expandafter\let + \expandafter\csname + \expandafter l\expandafter @\expandafter\languagename + \expandafter\endcsname\csname l@\languagename:\f@encoding\endcsname + \fi + \language=\csname l@\languagename\endcsname\relax + \fi} +\fi\fi +\ldf@finish\CurrentOption %% %% \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 diff --git a/Master/texmf-dist/tex/generic/babel/danish.ldf b/Master/texmf-dist/tex/generic/babel/danish.ldf index 388dc25ec65..a489d2d6ac4 100644 --- a/Master/texmf-dist/tex/generic/babel/danish.ldf +++ b/Master/texmf-dist/tex/generic/babel/danish.ldf @@ -37,7 +37,7 @@ %% and covered by LPPL is defined by the unpacking scripts (with %% extension .ins) which are part of the distribution. \ProvidesLanguage{danish} - [2008/03/17 v1.3q Danish support from the babel system] + [2008/07/06 v1.3q Danish support from the babel system] %% File `danish.dtx' %% Babel package for LaTeX version 2e %% Copyright (C) 1989 - 2008 diff --git a/Master/texmf-dist/tex/generic/babel/galician.ldf b/Master/texmf-dist/tex/generic/babel/galician.ldf index 4cdc56c7815..d060c6c72e3 100644 --- a/Master/texmf-dist/tex/generic/babel/galician.ldf +++ b/Master/texmf-dist/tex/generic/babel/galician.ldf @@ -54,7 +54,7 @@ %% \section{\textsf{galician} coma lingua principal} \ProvidesLanguage{galician.ldf} - [2007/01/29 v4.3 Galician support from the babel system] + [2008/07/06 v4.3c Galician support from the babel system] \LdfInit{galician}\captionsgalician \ifx\undefined\l@galician \@nopatterns{Galician} diff --git a/Master/texmf-dist/tex/generic/babel/greek.ldf b/Master/texmf-dist/tex/generic/babel/greek.ldf index 37348fd2da7..44b5509a88a 100644 --- a/Master/texmf-dist/tex/generic/babel/greek.ldf +++ b/Master/texmf-dist/tex/generic/babel/greek.ldf @@ -7,7 +7,7 @@ %% greek.dtx (with options: `code') %% This is a generated file. %% -%% Copyright 1989-2007 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. diff --git a/Master/texmf-dist/tex/generic/babel/grmath.sty b/Master/texmf-dist/tex/generic/babel/grmath.sty index c81e11446f2..aeff09bdc8d 100644 --- a/Master/texmf-dist/tex/generic/babel/grmath.sty +++ b/Master/texmf-dist/tex/generic/babel/grmath.sty @@ -7,7 +7,7 @@ %% grmath.dtx (with options: `package') %% This is a generated file. %% -%% Copyright 1989-2007 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. diff --git a/Master/texmf-dist/tex/generic/babel/grsymb.sty b/Master/texmf-dist/tex/generic/babel/grsymb.sty index 91c5edac985..2f54c8a9c91 100644 --- a/Master/texmf-dist/tex/generic/babel/grsymb.sty +++ b/Master/texmf-dist/tex/generic/babel/grsymb.sty @@ -7,7 +7,7 @@ %% grsymb.dtx (with options: `package') %% This is a generated file. %% -%% Copyright 1989-2007 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. diff --git a/Master/texmf-dist/tex/generic/babel/hyphen.cfg b/Master/texmf-dist/tex/generic/babel/hyphen.cfg index 9e29ee8598a..0465777e983 100644 --- a/Master/texmf-dist/tex/generic/babel/hyphen.cfg +++ b/Master/texmf-dist/tex/generic/babel/hyphen.cfg @@ -38,7 +38,7 @@ %% extension .ins) which are part of the distribution. %% %% File 'babel.dtx' -%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8j The Babel package] +%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package] %% Babel package for LaTeX2e. %% Copyright (C) 1989 -- 2008 by Johannes Braams, %% TeXniek @@ -72,7 +72,7 @@ \endgroup} \fi \ProvidesFile{hyphen.cfg} - [2008/03/16 v3.8j % + [2008/07/06 v3.8l % Babel language switching mechanism] \ifx\AtBeginDocument\@undefined \input plain.def\relax @@ -153,7 +153,7 @@ \expandafter\ifx\csname date#1\endcsname\relax \@noopterr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \originalTeX \expandafter\def\expandafter\originalTeX \expandafter{\csname noextras#1\endcsname @@ -201,7 +201,7 @@ \expandafter\ifx\csname l@#1\endcsname\relax \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \languageshorthands{none}% \csname extras#1\endcsname \expandafter\ifx\csname #1hyphenmins\endcsname\relax @@ -212,11 +212,18 @@ \fi \fi } +\def\bbl@patterns#1{% + \language=\expandafter\ifx\csname l@#1:\f@encoding\endcsname\relax + \csname l@#1\endcsname + \else + \csname l@#1:\f@encoding\endcsname + \fi\relax +} \def\hyphenrules#1{% \expandafter\ifx\csname l@#1\endcsname\@undefined \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{#1}% \languageshorthands{none}% \expandafter\ifx\csname #1hyphenmins\endcsname\relax \set@hyphenmins\tw@\thr@@\relax diff --git a/Master/texmf-dist/tex/generic/babel/latin.ldf b/Master/texmf-dist/tex/generic/babel/latin.ldf index 8e058749290..0ba24cc5c66 100644 --- a/Master/texmf-dist/tex/generic/babel/latin.ldf +++ b/Master/texmf-dist/tex/generic/babel/latin.ldf @@ -39,7 +39,7 @@ %% %% Copyright 1999-2007 Claudio Beccari All rights reserved. \ProvidesFile{latin.ldf} - [2008/03/21 v2.0k Latin support from the babel system] + [2008/07/06 v2.0l Latin support from the babel system] %% File `latin.dtx' %% Babel package for LaTeX version 2e %% Copyright (C) 1989 - 2008 diff --git a/Master/texmf-dist/tex/generic/babel/latin.sty b/Master/texmf-dist/tex/generic/babel/latin.sty index 0bb3f76e320..2b8c1dba4fb 100644 --- a/Master/texmf-dist/tex/generic/babel/latin.sty +++ b/Master/texmf-dist/tex/generic/babel/latin.sty @@ -73,6 +73,8 @@ \bblstyerror \fi \fi +\def\CurrentOption{latin} +\input latin.ldf\relax %% %% \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 diff --git a/Master/texmf-dist/tex/generic/babel/lgrcmr.fd b/Master/texmf-dist/tex/generic/babel/lgrcmr.fd index bb0f0b5220a..e3a1bb5e28b 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrcmr.fd +++ b/Master/texmf-dist/tex/generic/babel/lgrcmr.fd @@ -7,7 +7,7 @@ %% greek.fdd (with options: `fd,LGRcmr') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,7 +40,7 @@ %% of this file under its original name. %% \ProvidesFile{lgrcmr.fd} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Computer Modern] \providecommand{\EC@family}[5]{% \DeclareFontShape{#1}{#2}{#3}{#4} @@ -52,11 +52,18 @@ \EC@family{LGR}{cmr}{m}{it} {grmi} \EC@family{LGR}{cmr}{m}{sc} {grmc} \EC@family{LGR}{cmr}{m}{ui} {grmu} +\EC@family{LGR}{cmr}{m}{li} {grml} +\EC@family{LGR}{cmr}{m}{rs} {gmmn} +\EC@family{LGR}{cmr}{m}{ro} {gmmo} \EC@family{LGR}{cmr}{bx}{sc} {grxc} \EC@family{LGR}{cmr}{bx}{n} {grxn} \EC@family{LGR}{cmr}{bx}{sl} {grxo} \EC@family{LGR}{cmr}{bx}{it} {grxi} \EC@family{LGR}{cmr}{bx}{ui} {grxu} +\EC@family{LGR}{cmr}{bx}{li} {grxl} +\EC@family{LGR}{cmr}{bx}{rs} {gmxn} +\EC@family{LGR}{cmr}{bx}{ro} {gmxo} +\EC@family{LGR}{cmr}{b}{li} {grbl} \DeclareFontShape{LGR}{cmr}{b}{n} {<->ssub*cmr/bx/n}{} \DeclareFontShape{LGR}{cmr}{b}{sc} diff --git a/Master/texmf-dist/tex/generic/babel/lgrcmro.fd b/Master/texmf-dist/tex/generic/babel/lgrcmro.fd index 51bee910130..5e0d352da4f 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrcmro.fd +++ b/Master/texmf-dist/tex/generic/babel/lgrcmro.fd @@ -7,7 +7,7 @@ %% greek.fdd (with options: `fd,LGRcmro') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,7 +40,7 @@ %% of this file under its original name. %% \ProvidesFile{lgrcmro.fd} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Computer Modern Outline] \providecommand{\EC@family}[5]{% \DeclareFontShape{#1}{#2}{#3}{#4} diff --git a/Master/texmf-dist/tex/generic/babel/lgrcmss.fd b/Master/texmf-dist/tex/generic/babel/lgrcmss.fd index 03919f55188..1926c007edc 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrcmss.fd +++ b/Master/texmf-dist/tex/generic/babel/lgrcmss.fd @@ -7,7 +7,7 @@ %% greek.fdd (with options: `fd,LGRcmss') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,7 +40,7 @@ %% of this file under its original name. %% \ProvidesFile{lgrcmss.fd} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Computer Modern Sans Serif] \providecommand{\EC@family}[5]{% \DeclareFontShape{#1}{#2}{#3}{#4} @@ -52,11 +52,15 @@ \EC@family{LGR}{cmss}{m}{sc} {gsmc} \EC@family{LGR}{cmss}{m}{it} {gsmi} \EC@family{LGR}{cmss}{m}{ui} {gsmu} +\EC@family{LGR}{cmss}{m}{iv} {gsme} +\EC@family{LGR}{cmss}{m}{uv} {gsma} \EC@family{LGR}{cmss}{bx}{n} {gsxn} \EC@family{LGR}{cmss}{bx}{sl} {gsxo} \EC@family{LGR}{cmss}{bx}{sc} {gsxc} -\EC@family{LGR}{cmss}{bx}{it} {gsmi} -\EC@family{LGR}{cmss}{bx}{ui} {gsmu} +\EC@family{LGR}{cmss}{bx}{it} {gsxi} +\EC@family{LGR}{cmss}{bx}{ui} {gsxu} +\EC@family{LGR}{cmss}{bx}{iv} {gsxe} +\EC@family{LGR}{cmss}{bx}{uv} {gsxa} \endinput %% %% End of file `lgrcmss.fd'. diff --git a/Master/texmf-dist/tex/generic/babel/lgrcmtt.fd b/Master/texmf-dist/tex/generic/babel/lgrcmtt.fd index cf4ffa824d1..24440bf434e 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrcmtt.fd +++ b/Master/texmf-dist/tex/generic/babel/lgrcmtt.fd @@ -7,7 +7,7 @@ %% greek.fdd (with options: `fd,LGRcmtt') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,7 +40,7 @@ %% of this file under its original name. %% \ProvidesFile{lgrcmtt.fd} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Computer Modern Typewriter] \providecommand{\EC@family}[5]{% \DeclareFontShape{#1}{#2}{#3}{#4} diff --git a/Master/texmf-dist/tex/generic/babel/lgrenc.def b/Master/texmf-dist/tex/generic/babel/lgrenc.def index d3c2f15db24..7f96aa73ea8 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrenc.def +++ b/Master/texmf-dist/tex/generic/babel/lgrenc.def @@ -7,7 +7,7 @@ %% greek.fdd (with options: `LGRenc') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,7 +40,7 @@ %% of this file under its original name. %% \ProvidesFile{lgrenc.def} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Encoding] \DeclareFontEncoding{LGR}{}{} \DeclareFontSubstitution{LGR}{cmr}{m}{n} diff --git a/Master/texmf-dist/tex/generic/babel/lgrlcmss.fd b/Master/texmf-dist/tex/generic/babel/lgrlcmss.fd index 1254ad5bbe7..427a66f351c 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrlcmss.fd +++ b/Master/texmf-dist/tex/generic/babel/lgrlcmss.fd @@ -7,7 +7,7 @@ %% greek.fdd (with options: `fd,LGRlcmss') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,12 +40,8 @@ %% of this file under its original name. %% \ProvidesFile{lgrlcmss.fd} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Computer Modern Sans Serif slide sizes] -\providecommand{\EC@family}[5]{% - \DeclareFontShape{#1}{#2}{#3}{#4} - {<5><6><7><8><9><10><10.95><12><14.4>% - <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} \DeclareFontFamily{LGR}{lcmss}{} \DeclareFontShape{LGR}{lcmss}{m}{n}{% <7><8><10><12><13.82><16.59><19.91><23.89><28.66><34.4><41.28> diff --git a/Master/texmf-dist/tex/generic/babel/lgrlcmtt.fd b/Master/texmf-dist/tex/generic/babel/lgrlcmtt.fd index 8a5e0aa3589..b2dbd3ae457 100644 --- a/Master/texmf-dist/tex/generic/babel/lgrlcmtt.fd +++ b/Master/texmf-dist/tex/generic/babel/lgrlcmtt.fd @@ -7,7 +7,7 @@ %% greek.fdd (with options: `fd,LGRlcmtt') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -40,12 +40,8 @@ %% of this file under its original name. %% \ProvidesFile{lgrlcmtt.fd} - [2001/01/30 v2.2e % + [2008/06/17 v2.3 % Greek Computer Modern Typewriter slide sizes] -\providecommand{\EC@family}[5]{% - \DeclareFontShape{#1}{#2}{#3}{#4} - {<5><6><7><8><9><10><10.95><12><14.4>% - <17.28><20.74><24.88><29.86><35.83>genb*#5}{}} \DeclareFontFamily{LGR}{lcmtt}{\hyphenchar\font\m@ne} \DeclareFontShape{LGR}{lcmtt}{m}{n}{% <7><8><10><12><13.82><16.59><19.91><23.89><28.66><34.4><41.28> diff --git a/Master/texmf-dist/tex/generic/babel/lgrlmr.fd b/Master/texmf-dist/tex/generic/babel/lgrlmr.fd new file mode 100644 index 00000000000..14cb1ae47c4 --- /dev/null +++ b/Master/texmf-dist/tex/generic/babel/lgrlmr.fd @@ -0,0 +1,133 @@ +%% +%% This is file `lgrlmr.fd', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% greek.fdd (with options: `fd,LGRlmr') +%% This is a generated file. +%% +%% Copyright 1989-2008 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file was generated from file(s) of the Babel system. +%% --------------------------------------------------------- +%% +%% It 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 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the Babel +%% system. You may however distribute the Babel system without +%% such generated files. +%% +%% The list of all files belonging to the Babel distribution is +%% given in the file `manifest.bbl'. See also `legal.bbl for additional +%% information. +%% +%% In particular, permission is granted to customize the declarations in +%% this file to serve the needs of your installation. +%% +%% However, NO PERMISSION is granted to distribute a modified version +%% of this file under its original name. +%% +\ProvidesFile{lgrlmr.fd} + [2008/06/17 v2.3 % + Greek Latin Modern] +\DeclareFontFamily{LGR}{lmr}{} +\DeclareFontShape{LGR}{lmr}{m}{n}% + {<-5.5> grmn0500 <5.5-6.5> grmn0600 + <6.5-7.5> grmn0700 <7.5-8.5> grmn0800 + <8.5-9.5> grmn0900 <9.5-11> grmn1000 + <11-15> grmn1200 <15-> grmn1728}{} +\DeclareFontShape{LGR}{lmr}{m}{rs}% + {<-5.5> gmmn0500 <5.5-6.5> gmmn0600 + <6.5-7.5> gmmn0700 <7.5-8.5> gmmn0800 + <8.5-9.5> gmmn0900 <9.5-11> gmmn1000 + <11-15> gmmn1200 <15-> gmmn1728}{} +\DeclareFontShape{LGR}{lmr}{m}{sl}% + {<-8.5> grmo0800 <8.5-9.5> grmo0900 + <9.5-11> grmo1000 <11-15> grmo1200 + <15-> grmo1728}{} +\DeclareFontShape{LGR}{lmr}{m}{ro}% + {<-8.5> gmmo0800 <8.5-9.5> gmmo0900 + <9.5-11> gmmo1000 <11-15> gmmo1200 + <15-> gmmo1728}{} +\DeclareFontShape{LGR}{lmr}{m}{it}% + {<-7.5> grmi0700 + <7.5-8.5> grmi0800 <8.5-9.5> grmi0900 + <9.5-11> grmi1000 <11-15> grmi1200 + <15-> grmi1728}{} +\DeclareFontShape{LGR}{lmr}{m}{li}% + {<-7.5> grml0700 + <7.5-8.5> grml0800 <8.5-9.5> grml0900 + <9.5-11> grml1000 <11-15> grml1200 + <15-> grml1728}{} +\DeclareFontShape{LGR}{lmr}{m}{ui}% + {<-7.5> grmu0700 + <7.5-8.5> grmu0800 <8.5-9.5> grmu0900 + <9.5-11> grmu1000 <11-15> grmu1200 + <15-> grmu1728}{} +\DeclareFontShape{LGR}{lmr}{m}{sc}% + {<-7.5> grmc0700 + <7.5-8.5> grmc0800 <8.5-9.5> grmc0900 + <9.5-11> grmc1000 <11-15> grmc1200 + <15-> grmc1728}{} +\DeclareFontShape{LGR}{lmr}{m}{scsl}% + {<-> ssub*lmr/m/sc}{} +%%%%%%%% bold and bold extended series +\DeclareFontShape{LGR}{lmr}{bx}{n} + {<-5.5> grxn0500 <5.5-6.5> grx0600 + <6.5-7.5> grxn0700 <7.5-8.5> grxn0800 + <8.5-9.5> grxn0900 <9.5-11> grxn1000 + <11-15> grxn1200 <15-> grxn1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{rs} + {<-5.5> gmxn0500 <5.5-6.5> gmx0600 + <6.5-7.5> gmxn0700 <7.5-8.5> gmxn0800 + <8.5-9.5> gmxn0900 <9.5-11> gmxn1000 + <11-15> gmxn1200 <15-> gmxn1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{it} + {<-7.5> grxi0700 + <7.5-8.5> grxi0800 <8.5-9.5> grxi0900 + <9.5-11> grxi1000 <11-15> grxi1200 + <15-> grxi1728}{} +\DeclareFontShape{LGR}{lmr}{b}{li} + {<-7.5> grbl0700 + <7.5-8.5> grbl0800 <8.5-9.5> grbl0900 + <9.5-11> grbl1000 <11-15> grbl1200 + <15-> grbl1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{li} + {<-7.5> grxl0700 + <7.5-8.5> grxl0800 <8.5-9.5> grxl0900 + <9.5-11> grxl1000 <11-15> grxl1200 + <15-> grxl1728 + }{} +\DeclareFontShape{LGR}{lmr}{bx}{ui} + {<-7.5> grxu0700 + <7.5-8.5> grxu0800 <8.5-9.5> grxu0900 + <9.5-11> grxu1000 <11-15> grxu1200 + <15-> grxu1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{sl} + {<-8.5> grxo0800 <8.5-9.5> grxo0900 + <9.5-11> grxo1000 <11-15> grxo1200 + <15-> grxo1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{ro} + {<-8.5> gmxo0800 <8.5-9.5> gmxo0900 + <9.5-11> gmxo1000 <11-15> gmxo1200 + <15-> gmxo1728}{} +\DeclareFontShape{LGR}{lmr}{bx}{sc}% + {<-7.5> grxc0700 + <7.5-8.5> grxc0800 <8.5-9.5> grxc0900 + <9.5-11> grxc1000 <11-15> grxc1200 + <15-> grxc1728}{} +\endinput +%% +%% End of file `lgrlmr.fd'. diff --git a/Master/texmf-dist/tex/generic/babel/lgrlmro.fd b/Master/texmf-dist/tex/generic/babel/lgrlmro.fd new file mode 100644 index 00000000000..cbfa0c8f97e --- /dev/null +++ b/Master/texmf-dist/tex/generic/babel/lgrlmro.fd @@ -0,0 +1,99 @@ +%% +%% This is file `lgrlmro.fd', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% greek.fdd (with options: `fd,LGRlmro') +%% This is a generated file. +%% +%% Copyright 1989-2008 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file was generated from file(s) of the Babel system. +%% --------------------------------------------------------- +%% +%% It 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 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the Babel +%% system. You may however distribute the Babel system without +%% such generated files. +%% +%% The list of all files belonging to the Babel distribution is +%% given in the file `manifest.bbl'. See also `legal.bbl for additional +%% information. +%% +%% In particular, permission is granted to customize the declarations in +%% this file to serve the needs of your installation. +%% +%% However, NO PERMISSION is granted to distribute a modified version +%% of this file under its original name. +%% +\ProvidesFile{lgrlmro.fd} + [2008/06/17 v2.3 % + Greek Latin Modern Outline] +\DeclareFontFamily{LGR}{lmro}{} +\DeclareFontShape{LGR}{lmro}{m}{n}% + {<-5.5> gomn0500 <5.5-6.5> gomn0600 + <6.5-7.5> gomn0700 <7.5-8.5> gomn0800 + <8.5-9.5> gomn0900 <9.5-11> gomn1000 + <11-15> gomn1200 <15-> gmr1728}{} +\DeclareFontShape{LGR}{lmro}{m}{sl}% + {<-8.5> gomo0800 <8.5-9.5> gomo0900 + <9.5-11> gomo1000 <11-15> gomo1200 + <15-> gomo1728}{} +\DeclareFontShape{LGR}{lmro}{m}{it}% + {<-7.5> gomi0700 + <7.5-8.5> gomi0800 <8.5-9.5> gomi0900 + <9.5-11> gomi1000 <11-15> gomi1200 + <15-> gomi1728}{} +\DeclareFontShape{LGR}{lmro}{m}{ui}% + {<-7.5> gomu0700 + <7.5-8.5> gomu0800 <8.5-9.5> gomu0900 + <9.5-11> gomu1000 <11-15> gomu1200 + <15-> gomu1728}{} +\DeclareFontShape{LGR}{lmro}{m}{sc}% + {<-7.5> gomc0700 + <7.5-8.5> gomc0800 <8.5-9.5> gomc0900 + <9.5-11> gomc1000 <11-15> gomc1200 + <15-> gomc1728}{} +\DeclareFontShape{LGR}{lmro}{m}{scsl}% + {<-> ssub*lmr/m/sc}{} +%%%%%%%% bold extended series +\DeclareFontShape{LGR}{lmro}{bx}{n} + {<-5.5> goxn0500 <5.5-6.5> gox0600 + <6.5-7.5> goxn0700 <7.5-8.5> goxn0800 + <8.5-9.5> goxn0900 <9.5-11> goxn1000 + <11-15> goxn1200 <15-> goxn1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{it} + {<-7.5> goxi0700 + <7.5-8.5> goxi0800 <8.5-9.5> goxi0900 + <9.5-11> goxi1000 <11-> goxi1200 + <15-> goxi1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{ui} + {<-7.5> goxu0700 + <7.5-8.5> goxu0800 <8.5-9.5> goxu0900 + <9.5-11> goxu1000 <11-> goxu1200 + <15-> goxu1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{sl} + {<-8.5> goxo0800 <8.5-9.5> goxo0900 + <9.5-11> goxo1000 <11-15> goxo1200 + <15-> goxo1728}{} +\DeclareFontShape{LGR}{lmro}{bx}{sc}% + {<-7.5> goxc0700 + <7.5-8.5> goxc0800 <8.5-9.5> goxc0900 + <9.5-11> goxc1000 <11-15> goxc1200 + <15-> goxc1728}{} +\endinput +%% +%% End of file `lgrlmro.fd'. diff --git a/Master/texmf-dist/tex/generic/babel/lgrlmss.fd b/Master/texmf-dist/tex/generic/babel/lgrlmss.fd new file mode 100644 index 00000000000..45829bcb14d --- /dev/null +++ b/Master/texmf-dist/tex/generic/babel/lgrlmss.fd @@ -0,0 +1,112 @@ +%% +%% This is file `lgrlmss.fd', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% greek.fdd (with options: `fd,LGRlmss') +%% This is a generated file. +%% +%% Copyright 1989-2008 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file was generated from file(s) of the Babel system. +%% --------------------------------------------------------- +%% +%% It 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 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the Babel +%% system. You may however distribute the Babel system without +%% such generated files. +%% +%% The list of all files belonging to the Babel distribution is +%% given in the file `manifest.bbl'. See also `legal.bbl for additional +%% information. +%% +%% In particular, permission is granted to customize the declarations in +%% this file to serve the needs of your installation. +%% +%% However, NO PERMISSION is granted to distribute a modified version +%% of this file under its original name. +%% +\ProvidesFile{lgrlmss.fd} + [2008/06/17 v2.3 % + Greek Latin Modern Sans Serif] +\DeclareFontFamily{LGR}{lmss}{} +\DeclareFontShape{LGR}{lmss}{m}{n} + {<-8.5> gsmn0800 + <8.5-9.5> gsmn0900 <9.5-11> gsmn1000 + <11-15.5> gsmn1200 <15.5-> gsmn1728}{} +\DeclareFontShape{LGR}{lmss}{m}{it} + {<-8.5> gsmi0800 + <8.5-9.5> gsmi0900 <9.5-11> gsmi1000 + <11-15.5> gsmi1200 <15.5-> gsmi1728}{} +\DeclareFontShape{LGR}{lmss}{m}{iv} + {<-8.5> gsme0800 + <8.5-9.5> gsme0900 <9.5-11> gsme1000 + <11-15.5> gsme1200 <15.5-> gsme1728}{} +\DeclareFontShape{LGR}{lmss}{m}{ui} + {<-8.5> gsmu0800 + <8.5-9.5> gsmu0900 <9.5-11> gsmu1000 + <11-15.5> gsmu1200 <15.5-> gsmu1728}{} +\DeclareFontShape{LGR}{lmss}{m}{uv} + {<-8.5> gsma0800 + <8.5-9.5> gsma0900 <9.5-11> gsma1000 + <11-15.5> gsma1200 <15.5-> gsma1728}{} +\DeclareFontShape{LGR}{lmss}{m}{sl} + {<-8.5> gsmo0800 + <8.5-9.5> gsmo0900 <9.5-11> gsmo1000 + <11-15.5> gsmo1200 <15.5-> gsmo1728}{} +\DeclareFontShape{LGR}{lmss}{m}{sc} + {<-8.5> gsmc0800 + <8.5-9.5> gsmc0900 <9.5-11> gsmc1000 + <11-15.5> gsmc1200 <15.5-> gsmc1728}{} +%%%%%%%% semibold condensed series substituted with medium series +\DeclareFontShape{LGR}{lmss}{sbc}{n} +{<-> ssub*lmss/m/n}{} +\DeclareFontShape{LGR}{lmss}{sbc}{sl} +{<-> ssub*/lmss/m/sl}{} +\DeclareFontShape{LGR}{lmss}{sbc}{it} +{<->ssub*lmss/m/sl}{} +%%%%%%%%% bold extended series +\DeclareFontShape{LGR}{lmss}{bx}{n} + {<-8.5> gsxn0800 + <8.5-9.5> gsxn0900 <9.5-11> gsxn1000 + <11-15.5> gsxn1200 <15.5-> gsxn1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{sl} + {<-8.5> gsxo0800 + <8.5-9.5> gsxo0900 <9.5-11> gsxo1000 + <11-15.5> gsxo1200 <15.5-> gsxo1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{it} + {<-8.5> gsxi0800 + <8.5-9.5> gsxi0900 <9.5-11> gsxi1000 + <11-15.5> gsxi1200 <15.5-> gsxi1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{iv} + {<-8.5> gsxe0800 + <8.5-9.5> gsxe0900 <9.5-11> gsxe1000 + <11-15.5> gsxe1200 <15.5-> gsxe1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{ui} + {<-8.5> gsxu0800 + <8.5-9.5> gsxu0900 <9.5-11> gsxu1000 + <11-15.5> gsxu1200 <15.5-> gsxu1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{uv} + {<-8.5> gsxa0800 + <8.5-9.5> gsxa0900 <9.5-11> gsxa1000 + <11-15.5> gsxa1200 <15.5-> gsxa1728}{} +\DeclareFontShape{LGR}{lmss}{bx}{sc} + {<-8.5> gsxc0800 + <8.5-9.5> gsxc0900 <9.5-11> gsxc1000 + <11-15.5> gsxc1200 <15.5-> gsxc1728}{} +\endinput +%% +%% End of file `lgrlmss.fd'. diff --git a/Master/texmf-dist/tex/generic/babel/lgrlmtt.fd b/Master/texmf-dist/tex/generic/babel/lgrlmtt.fd new file mode 100644 index 00000000000..1571a3aa1f9 --- /dev/null +++ b/Master/texmf-dist/tex/generic/babel/lgrlmtt.fd @@ -0,0 +1,63 @@ +%% +%% This is file `lgrlmtt.fd', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% greek.fdd (with options: `fd,LGRlmtt') +%% This is a generated file. +%% +%% Copyright 1989-2008 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file was generated from file(s) of the Babel system. +%% --------------------------------------------------------- +%% +%% It 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 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the Babel +%% system. You may however distribute the Babel system without +%% such generated files. +%% +%% The list of all files belonging to the Babel distribution is +%% given in the file `manifest.bbl'. See also `legal.bbl for additional +%% information. +%% +%% In particular, permission is granted to customize the declarations in +%% this file to serve the needs of your installation. +%% +%% However, NO PERMISSION is granted to distribute a modified version +%% of this file under its original name. +%% +\ProvidesFile{lgrlmtt.fd} + [2008/06/17 v2.3 % + Greek Latin Modern Typewriter] +\DeclareFontFamily{LGR}{lmtt}{\hyphenchar\font\m@ne} +\DeclareFontShape{LGR}{lmtt}{m}{n} + {<-8.5> gttn0800 <8.5-9.5> gttn0900 + <9.5-11> gttn1000 <11-15> gttn1200 + <15-> gttn1728}{} +\DeclareFontShape{LGR}{lmtt}{m}{it} + {<-> ssub*lgr/lmtt/m/sl}{} +\DeclareFontShape{LGR}{lmtt}{m}{sl} + {<-8.5> gtto0800 <8.5-9.5> gtto0900 + <9.5-11> gtto1000 <11-15> gtto1200 + <15-> gtto1728}{} +\DeclareFontShape{LGR}{lmtt}{m}{sc} + {<-8.5> gttc0800 <8.5-9.5> gttc0900 + <9.5-11> gttc1000 <11-15> gttc1200 + <15-> gttc1728}{} +\DeclareFontShape{LGR}{lmtt}{m}{scsl}{<-> ssub*lmtt/m/sc}{} +\endinput +%% +%% End of file `lgrlmtt.fd'. diff --git a/Master/texmf-dist/tex/generic/babel/ngermanb.ldf b/Master/texmf-dist/tex/generic/babel/ngermanb.ldf index 1b0da8920d0..1b42f7d9056 100644 --- a/Master/texmf-dist/tex/generic/babel/ngermanb.ldf +++ b/Master/texmf-dist/tex/generic/babel/ngermanb.ldf @@ -37,7 +37,7 @@ %% and covered by LPPL is defined by the unpacking scripts (with %% extension .ins) which are part of the distribution. \ProvidesLanguage{ngermanb} - [2008/03/17 v2.6m new German support from the babel system] + [2008/07/06 v2.6n new German support from the babel system] %% File `ngermanb.dtx' %% Babel package for LaTeX version 2e %% Copyright (C) 1989 - 2008 diff --git a/Master/texmf-dist/tex/generic/babel/romanidx.sty b/Master/texmf-dist/tex/generic/babel/romanidx.sty index e7ec8f3d75f..2a8699d038c 100644 --- a/Master/texmf-dist/tex/generic/babel/romanidx.sty +++ b/Master/texmf-dist/tex/generic/babel/romanidx.sty @@ -38,7 +38,7 @@ %% extension .ins) which are part of the distribution. %% File `spanish.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2004 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek %% Spanish Language Definition File %% Copyright (C) 1997 - 2008 diff --git a/Master/texmf-dist/tex/generic/babel/slovak.ldf b/Master/texmf-dist/tex/generic/babel/slovak.ldf index ab936b0831b..8940617958a 100644 --- a/Master/texmf-dist/tex/generic/babel/slovak.ldf +++ b/Master/texmf-dist/tex/generic/babel/slovak.ldf @@ -7,7 +7,7 @@ %% slovak.dtx (with options: `code') %% This is a generated file. %% -%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% %% This file was generated from file(s) of the Babel system. @@ -37,25 +37,55 @@ %% and covered by LPPL is defined by the unpacking scripts (with %% extension .ins) which are part of the distribution. \ProvidesLanguage{slovak} - [2005/03/31 v1.3a Slovak support from the babel system] + [2008/07/06 v3.1a Slovak support from the babel system] %% File `slovak.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2005 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek %% Slovak Language Definition File %% Copyright (C) 1989 - 2001 %% by Jana Chlebikova %% Copyright (C) 2002-2005 %% by Tobias Schlemmer -%% Please report errors to: J.L. Braams babel at braams.cistron.nl -%% Tobias Schlemmer Tobias.Schlemmer at web.de -\LdfInit{slovak}\captionsslovak +%% Copyright (C) 2005-2008 +%% by Petr Tesa\v r\'ik (babel at tesarici.cz) +%% Please report errors to: Petr Tesa\v r\'ik +%% babel at tesarici.cz +\LdfInit\CurrentOption{date\CurrentOption} \ifx\l@slovak\@undefined \@nopatterns{Slovak} \adddialect\l@slovak0\fi -\addto\captionsslovak{% - \def\prefacename{\'Uvod}% - \def\refname{Referencie}% +\def\cs@iltw@{IL2} +\newif\ifcs@splithyphens +\cs@splithyphensfalse +\ifx\@ifpackageloaded\@undefined + \let\cs@compat@plain\relax + \message{csplain compatibility mode} +\else + \@ifpackageloaded{babel}{}{% + \let\cs@compat@latex\relax + \message{cslatex compatibility mode}} +\fi +\ifx\cs@compat@latex\relax + \ProvidesPackage{slovak}[2008/07/06 v3.1a CSTeX Slovak style] + \DeclareOption{IL2}{\def\encodingdefault{IL2}} + \DeclareOption {T1}{\def\encodingdefault {T1}} + \DeclareOption{OT1}{\def\encodingdefault{OT1}} + \DeclareOption{nosplit}{\cs@splithyphensfalse} + \DeclareOption{split}{\cs@splithyphenstrue} + \DeclareOption{nocaptions}{\let\cs@nocaptions=\relax} + \DeclareOption{olduv}{\let\cs@olduv=\relax} + \DeclareOption{cstex}{\relax} + \ExecuteOptions{\cs@iltw@} + \ProcessOptions + \ifx\encodingdefault\cs@iltw@ + \input il2enc.def + \fi + \def\CurrentOption{slovak} +\fi +\@namedef{captions\CurrentOption}{% + \def\prefacename{Predhovor}% + \def\refname{Literat\'ura}% \def\abstractname{Abstrakt}% \def\bibname{Literat\'ura}% \def\chaptername{Kapitola}% @@ -63,104 +93,411 @@ \def\contentsname{Obsah}% \def\listfigurename{Zoznam obr\'azkov}% \def\listtablename{Zoznam tabuliek}% - \def\indexname{Index}% - \def\figurename{Obr\'azok}% - \def\tablename{Tabu\q lka}%%% special letter l with hook - \def\partname{\v{C}as\q t}%%% special letter t with hook - \def\enclname{Pr\'{\i}lohy}% - \def\ccname{CC}% - \def\headtoname{Komu}% - \def\pagename{Strana}% - \def\seename{vi\q d}%%% Special letter d with hook - \def\alsoname{vi\q d tie\v z}%%% Special letter d with hook + \def\indexname{Register}% + \def\figurename{Obr.}% + \def\tablename{Tabu\v{l}ka}% + \def\partname{\v{C}as\v{t}}% + \def\enclname{Pr\'{\i}loha}% + \def\ccname{cc.}% + \def\headtoname{Pre}% + \def\pagename{Str.}% + \def\seename{vi\v{d}}% + \def\alsoname{vi\v{d} tie\v{z}}% \def\proofname{D\^okaz}% - \def\glossaryname{Glossary}% <-- Needs translation - } -\def\dateslovak{% + \def\glossaryname{Slovn\'{\i}k}% + }% +\@namedef{date\CurrentOption}{% \def\today{\number\day.~\ifcase\month\or janu\'ara\or febru\'ara\or marca\or apr\'{\i}la\or m\'aja\or j\'una\or j\'ula\or augusta\or septembra\or okt\'obra\or novembra\or decembra\fi \space \number\year}} -\addto\extrasslovak{\languageshorthands{slovak}} -\initiate@active@char{^} -\addto\extrasslovak{\bbl@activate{^}} -\addto\noextrasslovak{\bbl@deactivate{^}} -\initiate@active@char{"} -\addto\extrasslovak{\bbl@activate{"}\umlautlow} -\addto\noextrasslovak{\bbl@deactivate{"}\umlauthigh} -\initiate@active@char{'} -\@ifpackagewith{babel}{activeacute}{% - \addto\extrasslovak{\bbl@activate{'}} - \addto\noextrasslovak{\bbl@deactivate{'}}% - }{} -\addto\extrasslovak{\babel@save\q\let\q\v} -\providehyphenmins{\CurrentOption}{\tw@\tw@} -\begingroup \catcode`\"12 +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \bbl@frenchspacing + \languageshorthands{slovak}} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \bbl@nonfrenchspacing} +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \babel@save\q\let\q\v} +\ifx\cs@compat@latex\relax\else + \initiate@active@char{^} + \addto\extrasslovak{\bbl@activate{^}} + \addto\noextrasslovak{\bbl@deactivate{^}} + \initiate@active@char{"} + \addto\extrasslovak{\bbl@activate{"}\umlautlow} + \addto\noextrasslovak{\bbl@deactivate{"}\umlauthigh} + \initiate@active@char{'} + \@ifpackagewith{babel}{activeacute}{% + \addto\extrasslovak{\bbl@activate{'}} + \addto\noextrasslovak{\bbl@deactivate{'}}% + }{} +\fi +\begingroup\catcode`\"=12\catcode`\'=12 \def\x{\endgroup \def\sq{'} \def\dq{"}} \x -\declare@shorthand{system}{^}{\csname normal@char\string^\endcsname} -\declare@shorthand{slovak}{"a}{\textormath{\"{a}\allowhyphens}{\ddot a}} -\declare@shorthand{slovak}{"o}{\textormath{\"{o}\allowhyphens}{\ddot o}} -\declare@shorthand{slovak}{"u}{\textormath{\"{u}\allowhyphens}{\ddot u}} -\declare@shorthand{slovak}{"A}{\textormath{\"{A}\allowhyphens}{\ddot A}} -\declare@shorthand{slovak}{"O}{\textormath{\"{O}\allowhyphens}{\ddot O}} -\declare@shorthand{slovak}{"U}{\textormath{\"{U}\allowhyphens}{\ddot U}} -\declare@shorthand{slovak}{"e}{\textormath{\"{e}\allowhyphens}{\ddot e}} -\declare@shorthand{slovak}{"E}{\textormath{\"{E}\allowhyphens}{\ddot E}} -\declare@shorthand{slovak}{"i}{\textormath{\"{\i}\allowhyphens}% - {\ddot\imath}} -\declare@shorthand{slovak}{"I}{\textormath{\"{I}\allowhyphens}{\ddot I}} -\declare@shorthand{slovak}{^c}{\textormath{\v{c}\allowhyphens}{\check{c}}} -\declare@shorthand{slovak}{^d}{\textormath{\q{d}\allowhyphens}{\check{d}}} -\declare@shorthand{slovak}{^l}{\textormath{\q{l}\allowhyphens}{\check{l}}} -\declare@shorthand{slovak}{^n}{\textormath{\v{n}\allowhyphens}{\check{n}}} -\declare@shorthand{slovak}{^o}{\textormath{\^{o}\allowhyphens}{\hat{o}}} -\declare@shorthand{slovak}{^s}{\textormath{\v{s}\allowhyphens}{\check{s}}} -\declare@shorthand{slovak}{^t}{\textormath{\q{t}\allowhyphens}{\check{t}}} -\declare@shorthand{slovak}{^z}{\textormath{\v{z}\allowhyphens}{\check{z}}} -\declare@shorthand{slovak}{^C}{\textormath{\v{C}\allowhyphens}{\check{C}}} -\declare@shorthand{slovak}{^D}{\textormath{\v{D}\allowhyphens}{\check{D}}} -\declare@shorthand{slovak}{^L}{\textormath{\q{L}\allowhyphens}{\check{L}}} -\declare@shorthand{slovak}{^N}{\textormath{\v{N}\allowhyphens}{\check{N}}} -\declare@shorthand{slovak}{^O}{\textormath{\^{O}\allowhyphens}{\hat{O}}} -\declare@shorthand{slovak}{^S}{\textormath{\v{S}\allowhyphens}{\check{S}}} -\declare@shorthand{slovak}{^T}{\textormath{\v{T}\allowhyphens}{\check{T}}} -\declare@shorthand{slovak}{^Z}{\textormath{\v{Z}\allowhyphens}{\check{Z}}} -\@ifpackagewith{babel}{activeacute}{% - \declare@shorthand{slovak}{'a}{\textormath{\'a\allowhyphens}{^{\prime}a}} - \declare@shorthand{slovak}{'e}{\textormath{\'e\allowhyphens}{^{\prime}e}} - \declare@shorthand{slovak}{'i}{\textormath{\'\i{}\allowhyphens}{^{\prime}i}} - \declare@shorthand{slovak}{'l}{\textormath{\'l\allowhyphens}{^{\prime}l}} - \declare@shorthand{slovak}{'o}{\textormath{\'o\allowhyphens}{^{\prime}o}} - \declare@shorthand{slovak}{'r}{\textormath{\'r\allowhyphens}{^{\prime}r}} - \declare@shorthand{slovak}{'u}{\textormath{\'u\allowhyphens}{^{\prime}u}} - \declare@shorthand{slovak}{'y}{\textormath{\'y\allowhyphens}{^{\prime}y}} - \declare@shorthand{slovak}{'A}{\textormath{\'A\allowhyphens}{^{\prime}A}} - \declare@shorthand{slovak}{'E}{\textormath{\'E\allowhyphens}{^{\prime}E}} - \declare@shorthand{slovak}{'I}{\textormath{\'I\allowhyphens}{^{\prime}I}} - \declare@shorthand{slovak}{'L}{\textormath{\'L\allowhyphens}{^{\prime}l}} - \declare@shorthand{slovak}{'O}{\textormath{\'O\allowhyphens}{^{\prime}O}} - \declare@shorthand{slovak}{'R}{\textormath{\'R\allowhyphens}{^{\prime}R}} - \declare@shorthand{slovak}{'U}{\textormath{\'U\allowhyphens}{^{\prime}U}} - \declare@shorthand{slovak}{'Y}{\textormath{\'Y\allowhyphens}{^{\prime}Y}} - \declare@shorthand{slovak}{''}{% - \textormath{\textquotedblright}{\sp\bgroup\prim@s'}} - }{} -\declare@shorthand{slovak}{"`}{\glqq} -\declare@shorthand{slovak}{"'}{\grqq} -\declare@shorthand{slovak}{"<}{\flqq} -\declare@shorthand{slovak}{">}{\frqq} -\declare@shorthand{slovak}{"-}{\nobreak\-\bbl@allowhyphens} -\declare@shorthand{slovak}{"|}{% - \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}% - \bbl@allowhyphens}{}} -\declare@shorthand{slovak}{""}{\hskip\z@skip} -\declare@shorthand{slovak}{"~}{\textormath{\leavevmode\hbox{-}}{-}} -\declare@shorthand{slovak}{"=}{\nobreak-\hskip\z@skip} -\ldf@finish{slovak} +\providehyphenmins{\CurrentOption}{\tw@\thr@@} +\ifx\cs@compat@latex\relax\else + \declare@shorthand{system}{^}{\csname normal@char\string^\endcsname} + \declare@shorthand{slovak}{"a}{\textormath{\"{a}\allowhyphens}{\ddot a}} + \declare@shorthand{slovak}{"o}{\textormath{\"{o}\allowhyphens}{\ddot o}} + \declare@shorthand{slovak}{"u}{\textormath{\"{u}\allowhyphens}{\ddot u}} + \declare@shorthand{slovak}{"A}{\textormath{\"{A}\allowhyphens}{\ddot A}} + \declare@shorthand{slovak}{"O}{\textormath{\"{O}\allowhyphens}{\ddot O}} + \declare@shorthand{slovak}{"U}{\textormath{\"{U}\allowhyphens}{\ddot U}} + \declare@shorthand{slovak}{"e}{\textormath{\"{e}\allowhyphens}{\ddot e}} + \declare@shorthand{slovak}{"E}{\textormath{\"{E}\allowhyphens}{\ddot E}} + \declare@shorthand{slovak}{"i}{\textormath{\"{\i}\allowhyphens}% + {\ddot\imath}} + \declare@shorthand{slovak}{"I}{\textormath{\"{I}\allowhyphens}{\ddot I}} + \declare@shorthand{slovak}{^c}{\textormath{\v{c}\allowhyphens}{\check{c}}} + \declare@shorthand{slovak}{^d}{\textormath{\q{d}\allowhyphens}{\check{d}}} + \declare@shorthand{slovak}{^l}{\textormath{\q{l}\allowhyphens}{\check{l}}} + \declare@shorthand{slovak}{^n}{\textormath{\v{n}\allowhyphens}{\check{n}}} + \declare@shorthand{slovak}{^o}{\textormath{\^{o}\allowhyphens}{\hat{o}}} + \declare@shorthand{slovak}{^s}{\textormath{\v{s}\allowhyphens}{\check{s}}} + \declare@shorthand{slovak}{^t}{\textormath{\q{t}\allowhyphens}{\check{t}}} + \declare@shorthand{slovak}{^z}{\textormath{\v{z}\allowhyphens}{\check{z}}} + \declare@shorthand{slovak}{^C}{\textormath{\v{C}\allowhyphens}{\check{C}}} + \declare@shorthand{slovak}{^D}{\textormath{\v{D}\allowhyphens}{\check{D}}} + \declare@shorthand{slovak}{^L}{\textormath{\q{L}\allowhyphens}{\check{L}}} + \declare@shorthand{slovak}{^N}{\textormath{\v{N}\allowhyphens}{\check{N}}} + \declare@shorthand{slovak}{^O}{\textormath{\^{O}\allowhyphens}{\hat{O}}} + \declare@shorthand{slovak}{^S}{\textormath{\v{S}\allowhyphens}{\check{S}}} + \declare@shorthand{slovak}{^T}{\textormath{\v{T}\allowhyphens}{\check{T}}} + \declare@shorthand{slovak}{^Z}{\textormath{\v{Z}\allowhyphens}{\check{Z}}} + \@ifpackagewith{babel}{activeacute}{% + \declare@shorthand{slovak}{'a}{\textormath{\'a\allowhyphens}{^{\prime}a}} + \declare@shorthand{slovak}{'e}{\textormath{\'e\allowhyphens}{^{\prime}e}} + \declare@shorthand{slovak}{'i}{\textormath{\'\i{}\allowhyphens}{^{\prime}i}} + \declare@shorthand{slovak}{'l}{\textormath{\'l\allowhyphens}{^{\prime}l}} + \declare@shorthand{slovak}{'o}{\textormath{\'o\allowhyphens}{^{\prime}o}} + \declare@shorthand{slovak}{'r}{\textormath{\'r\allowhyphens}{^{\prime}r}} + \declare@shorthand{slovak}{'u}{\textormath{\'u\allowhyphens}{^{\prime}u}} + \declare@shorthand{slovak}{'y}{\textormath{\'y\allowhyphens}{^{\prime}y}} + \declare@shorthand{slovak}{'A}{\textormath{\'A\allowhyphens}{^{\prime}A}} + \declare@shorthand{slovak}{'E}{\textormath{\'E\allowhyphens}{^{\prime}E}} + \declare@shorthand{slovak}{'I}{\textormath{\'I\allowhyphens}{^{\prime}I}} + \declare@shorthand{slovak}{'L}{\textormath{\'L\allowhyphens}{^{\prime}l}} + \declare@shorthand{slovak}{'O}{\textormath{\'O\allowhyphens}{^{\prime}O}} + \declare@shorthand{slovak}{'R}{\textormath{\'R\allowhyphens}{^{\prime}R}} + \declare@shorthand{slovak}{'U}{\textormath{\'U\allowhyphens}{^{\prime}U}} + \declare@shorthand{slovak}{'Y}{\textormath{\'Y\allowhyphens}{^{\prime}Y}} + \declare@shorthand{slovak}{''}{% + \textormath{\textquotedblright}{\sp\bgroup\prim@s'}} + }{} + % \end{macrocode} + \declare@shorthand{slovak}{"-}{\nobreak\-\bbl@allowhyphens} + \declare@shorthand{slovak}{"|}{% + \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}% + \bbl@allowhyphens}{}} + \declare@shorthand{slovak}{""}{\hskip\z@skip} + \declare@shorthand{slovak}{"~}{\textormath{\leavevmode\hbox{-}}{-}} + \declare@shorthand{slovak}{"=}{\cs@splithyphen} +\fi +\AtBeginDocument{% + \DeclareTextCompositeCommand{\v}{OT1}{t}{% + t\kern-.23em\raise.24ex\hbox{'}} + \DeclareTextCompositeCommand{\v}{OT1}{d}{% + d\kern-.13em\raise.24ex\hbox{'}} + \DeclareTextCompositeCommand{\v}{OT1}{l}{\lcaron{}} + \DeclareTextCompositeCommand{\v}{OT1}{L}{\Lcaron{}}} +\def\lcaron{% + \setbox0\hbox{M}\setbox\tw@\hbox{i}% + \ifdim\wd0>\wd\tw@\relax + l\kern-.13em\raise.24ex\hbox{'}\kern-.11em% + \else + l\raise.45ex\hbox to\z@{\kern-.35em '\hss}% + \fi} +\def\Lcaron{% + \setbox0\hbox{M}\setbox\tw@\hbox{i}% + \ifdim\wd0>\wd\tw@\relax + L\raise.24ex\hbox to\z@{\kern-.28em'\hss}% + \else + L\raise.45ex\hbox to\z@{\kern-.40em '\hss}% + \fi} +\ifx\cs@compat@latex\relax + \let\cs@ltxprim@s\prim@s + \def\csprimeson{% + \catcode``\active \catcode`'\active \let\prim@s\bbl@prim@s} + \def\csprimesoff{% + \catcode``12 \catcode`'12 \let\prim@s\cs@ltxprim@s} + \begingroup\catcode``\active + \def\x{\endgroup + \def`{\futurelet\cs@next\cs@openquote} + \def\cs@openquote{% + \ifx`\cs@next \expandafter\cs@opendq + \else \expandafter\clq + \fi}% + }\x + \begingroup\catcode`'\active + \def\x{\endgroup + \def'{\textormath{\futurelet\cs@next\cs@closequote} + {^\bgroup\prim@s}} + \def\cs@closequote{% + \ifx'\cs@next \expandafter\cs@closedq + \else \expandafter\crq + \fi}% + }\x + \def\cs@opendq{\clqq\let\cs@next= } + \def\cs@closedq{\crqq\let\cs@next= } +\else + \declare@shorthand{slovak}{"`}{\clqq} + \declare@shorthand{slovak}{"'}{\crqq} + \declare@shorthand{slovak}{"<}{\flqq} + \declare@shorthand{slovak}{">}{\frqq} +\fi +\ProvideTextCommand{\clqq}{OT1}{% + \set@low@box{\textquotedblright}% + \setbox\@ne=\hbox{l\/}\dimen\@ne=\wd\@ne + \setbox\@ne=\hbox{l}\advance\dimen\@ne-\wd\@ne + \leavevmode + \ifdim\dimen\@ne>\z@\kern-.1em\box\z@\kern.1em + \else\kern.1em\box\z@\kern-.1em\fi\allowhyphens} +\ProvideTextCommand{\clqq}{T1} + {\kern.1em\quotedblbase\kern-.0158em\relax} +\ProvideTextCommandDefault{\clqq}{\UseTextSymbol{OT1}\clqq} +\ProvideTextCommand{\crqq}{OT1} + {\save@sf@q{\nobreak\kern-.07em\textquotedblleft\kern.07em}} +\ProvideTextCommand{\crqq}{T1} + {\save@sf@q{\nobreak\kern.06em\textquotedblleft\kern.024em}} +\ProvideTextCommandDefault{\crqq}{\UseTextSymbol{OT1}\crqq} +\ProvideTextCommand{\clq}{OT1} + {\set@low@box{\textquoteright}\box\z@\kern.04em\allowhyphens} +\ProvideTextCommand{\clq}{T1} + {\quotesinglbase\kern-.0428em\relax} +\ProvideTextCommandDefault{\clq}{\UseTextSymbol{OT1}\clq} +\ProvideTextCommand{\crq}{OT1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommand{\crq}{T1} + {\save@sf@q{\nobreak\textquoteleft\kern.17em}} +\ProvideTextCommandDefault{\crq}{\UseTextSymbol{OT1}\crq} +\ifx\cs@compat@plain\@undefined\else\let\cs@olduv=\relax\fi +\ifx\cs@olduv\@undefined + \DeclareRobustCommand\uv[1]{{\leavevmode\clqq#1\crqq}} +\else + \DeclareRobustCommand\uv{\bgroup\aftergroup\closequotes + \leavevmode\clqq\let\cs@next=} + \def\closequotes{\unskip\crqq\relax} +\fi +\newcount\cs@wordlen +\begingroup\catcode`\-12 +\def\x{\endgroup + \def\cs@hyphen{-} + \def\cs@endash{--} + \def\cs@emdash{---} + \def\cs@boxhyphen{\hbox{-}} + \def\cs@splithyphen{\kern\z@ + \discretionary{-}{\char\hyphenchar\the\font}{-}\nobreak\hskip\z@} +}\x +\initiate@active@char{-} +\declare@shorthand{slovak}{-}{% + \ifx\protect\@typeset@protect + \ifhmode + \ifinner + \bbl@afterelse\bbl@afterelse\bbl@afterelse\cs@hyphen + \else + \bbl@afterfi\bbl@afterelse\bbl@afterelse\cs@firsthyphen + \fi + \else + \bbl@afterfi\bbl@afterelse\cs@hyphen + \fi + \else + \bbl@afterfi\cs@hyphen + \fi} +\begingroup\catcode`\-\active +\def\x{\endgroup + \def\cs@firsthyphen{\futurelet\cs@token\cs@firsthyph@n} + \def\cs@firsthyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@secondhyphen + \else + \bbl@afterfi\cs@checkhyphen + \fi} + \def\cs@secondhyphen ##1{% + \futurelet\cs@token\cs@secondhyph@n} + \def\cs@secondhyph@n{% + \ifx -\cs@token + \bbl@afterelse\cs@emdash\@gobble + \else + \bbl@afterfi\cs@endash + \fi} +}\x +\def\cs@checkhyphen{% + \ifnum\expandafter\hyphenchar\the\font=`\- + \def\cs@word{}\cs@wordlen\z@ + \bbl@afterelse\cs@scanword + \else + \cs@hyphen + \fi} +\def\cs@scanword{\let\cs@lasttoken= \cs@token\expandafter\cs@gettoken} +\def\cs@continuescan{\let\cs@lasttoken\@undefined\expandafter\cs@gettoken} +\def\cs@gettoken{\futurelet\cs@token\cs@gett@ken} +\def\cs@gett@ken{% + \ifx\cs@token\cs@lasttoken \def\cs@next{\cs@examinetoken}% + \else \def\cs@next{\cs@scanword}% + \fi \cs@next} +\def\cs@examinetoken{% + \ifcat A\cs@token + \def\cs@next{\cs@addparam}% + \else\ifcat 0\cs@token + \def\cs@next{\cs@addparam}% + \else\ifx\char\cs@token + \def\cs@next{\afterassignment\cs@expandchar\let\cs@token= }% + \else\ifx\bgroup\cs@token + \def\cs@next{\cs@ignoretoken\bgroup}% + \else\ifx\egroup\cs@token + \def\cs@next{\cs@ignoretoken\egroup}% + \else\ifx\begingroup\cs@token + \def\cs@next{\cs@ignoretoken\begingroup}% + \else\ifx\endgroup\cs@token + \def\cs@next{\cs@ignoretoken\endgroup}% + \else + \def\cs@next{\expandafter\expandafter\expandafter\cs@checkchardef + \expandafter\meaning\expandafter\cs@token\string\char\end}% + \fi\fi\fi\fi\fi\fi\fi\cs@next} +\expandafter\def\expandafter\cs@checkchardef + \expandafter#\expandafter1\string\char#2\end{% + \def\cs@token{#1}% + \ifx\cs@token\@empty + \def\cs@next{\afterassignment\cs@examinechar\let\cs@token= }% + \else + \def\cs@next{\cs@nosplit}% + \fi \cs@next} +\def\cs@ignoretoken#1{% + \edef\cs@word{\cs@word#1}% + \afterassignment\cs@continuescan\let\cs@token= } +\def\cs@addparam#1{% + \edef\cs@word{\cs@word#1}% + \cs@checkcode{\lccode`#1}} +\def\cs@expandchar{\afterassignment\cs@examinechar\chardef\cs@token=} +\def\cs@examinechar{% + \edef\cs@word{\cs@word\char\the\cs@token\space}% + \cs@checkcode{\lccode\cs@token}} +\def\cs@checkcode#1{% + \ifnum0=#1 + \def\cs@next{\cs@nosplit}% + \else + \advance\cs@wordlen\@ne + \ifnum\righthyphenmin>\the\cs@wordlen + \def\cs@next{\cs@continuescan}% + \else + \cs@splithyphen + \def\cs@next{\cs@word}% + \fi + \fi \cs@next} +\def\cs@nosplit{\cs@boxhyphen\cs@word} +\let\minus\cs@hyphen + +\def\standardhyphens{\cs@splithyphensfalse\cs@deactivatehyphens} +\def\splithyphens{\cs@splithyphenstrue\cs@activatehyphens} +\def\cs@splitattr{\babel@save\ifcs@splithyphens\splithyphens} +\bbl@declare@ttribute{slovak}{split}{% + \addto\extrasslovak{\cs@splitattr}} +\let\cs@activatehyphens\relax +\let\cs@deactivatehyphens\relax +\expandafter\addto\csname extras\CurrentOption\endcsname{% + \def\cs@activatehyphens{\bbl@activate{-}}% + \def\cs@deactivatehyphens{\bbl@deactivate{-}}% + \ifcs@splithyphens\cs@activatehyphens\fi} +\expandafter\addto\csname noextras\CurrentOption\endcsname{% + \cs@deactivatehyphens + \let\cs@activatehyphens\relax + \let\cs@deactivatehyphens\relax} +\let\cs@looseness\looseness +\def\looseness{% + \ifcs@splithyphens + \cs@deactivatehyphens\afterassignment\cs@activatehyphens \fi + \cs@looseness} +\ifx\cs@nocaptions\@undefined\else + \edef\cs@main@language{\CurrentOption} + \ifx\cs@origselect\@undefined + \let\cs@origselect=\selectlanguage + \def\selectlanguage{% + \let\selectlanguage\cs@origselect + \ifx\bbl@main@language\cs@main@language + \expandafter\cs@selectlanguage + \else + \expandafter\selectlanguage + \fi} + \def\cs@selectlanguage{% + \cs@tempdisable{captions}% + \cs@tempdisable{date}% + \selectlanguage} + \def\cs@tempdisable#1{% + \def\@tempa{cs@#1}% + \def\@tempb{#1\bbl@main@language}% + \expandafter\expandafter\expandafter\let + \expandafter \csname\expandafter \@tempa \expandafter\endcsname + \csname \@tempb \endcsname + \expandafter\edef\csname \@tempb \endcsname{% + \let \expandafter\noexpand \csname \@tempb \endcsname + \expandafter\noexpand \csname \@tempa \endcsname + \let \expandafter\noexpand\csname \@tempa \endcsname + \noexpand\@undefined}} + \@onlypreamble\cs@main@language + \@onlypreamble\cs@origselect + \@onlypreamble\cs@selectlanguage + \@onlypreamble\cs@tempdisable + \fi +\fi +\ifx\cs@compat@plain\@undefined +\ifx\cs@check@enc\@undefined\else + \def\cs@check@enc{ + \ifx\encodingdefault\cs@iltw@ + \let\cs@warn\@font@warning \let\@font@warning\@gobble + \let\cs@info\@font@info \let\@font@info\@gobble + \SetSymbolFont{operators}{normal}{\cs@iltw@}{cmr}{m}{n} + \SetSymbolFont{operators}{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathbf{normal}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{normal}{\cs@iltw@}{cmr}{m}{it} + \SetMathAlphabet\mathrm{normal}{\cs@iltw@}{cmr}{m}{n} + \SetMathAlphabet\mathsf{normal}{\cs@iltw@}{cmss}{m}{n} + \SetMathAlphabet\mathtt{normal}{\cs@iltw@}{cmtt}{m}{n} + \SetMathAlphabet\mathbf{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathit{bold}{\cs@iltw@}{cmr}{bx}{it} + \SetMathAlphabet\mathrm{bold}{\cs@iltw@}{cmr}{bx}{n} + \SetMathAlphabet\mathsf{bold}{\cs@iltw@}{cmss}{bx}{n} + \SetMathAlphabet\mathtt{bold}{\cs@iltw@}{cmtt}{m}{n} + \let\@font@warning\cs@warn \let\cs@warn\@undefined + \let\@font@info\cs@info \let\cs@info\@undefined + \fi + \let\cs@check@enc\@undefined} + \AtBeginDocument{\cs@check@enc} +\fi +\fi +\def\cs@undoiltw@{% + \uccode158=208 \lccode158=158 \sfcode158=1000 + \sfcode159=1000 + \uccode165=133 \lccode165=165 \sfcode165=1000 + \uccode169=137 \lccode169=169 \sfcode169=1000 + \uccode171=139 \lccode171=171 \sfcode171=1000 + \uccode174=142 \lccode174=174 \sfcode174=1000 + \uccode181=149 + \uccode185=153 + \uccode187=155 + \uccode190=0 \lccode190=0 + \uccode254=222 \lccode254=254 \sfcode254=1000 + \uccode255=223 \lccode255=255 \sfcode255=1000} +\ifx\cs@enc@update\@undefined +\ifx\@@enc@update\@undefined\else + \let\cs@enc@update\@@enc@update + \def\@@enc@update{\ifx\cf@encoding\cs@iltw@\cs@undoiltw@\fi + \cs@enc@update + \expandafter\ifnum\csname l@\languagename\endcsname=\the\language + \expandafter\ifx + \csname l@\languagename:\f@encoding\endcsname\relax + \else + \expandafter\expandafter\expandafter\let + \expandafter\csname + \expandafter l\expandafter @\expandafter\languagename + \expandafter\endcsname\csname l@\languagename:\f@encoding\endcsname + \fi + \language=\csname l@\languagename\endcsname\relax + \fi} +\fi\fi +\ldf@finish\CurrentOption %% %% \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 diff --git a/Master/texmf-dist/tex/generic/babel/spanish.ldf b/Master/texmf-dist/tex/generic/babel/spanish.ldf index cc3e5d6e546..6096f5f220b 100644 --- a/Master/texmf-dist/tex/generic/babel/spanish.ldf +++ b/Master/texmf-dist/tex/generic/babel/spanish.ldf @@ -38,7 +38,7 @@ %% extension .ins) which are part of the distribution. %% File `spanish.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2004 +%% Copyright (C) 1989 - 2008 %% by Johannes Braams, TeXniek %% Spanish Language Definition File %% Copyright (C) 1997 - 2008 @@ -52,7 +52,7 @@ \ProvidesLanguage{spanish.ldf} - [2008/05/25 v5.0d Spanish support from the babel system] + [2008/07/06 v5.0e Spanish support from the babel system] \LdfInit{spanish}\captionsspanish \edef\es@savedcatcodes{% @@ -638,6 +638,7 @@ \es@a A\es@a E\es@a I\es@a O\es@a U% \es@declare{'n}{\~n}% \es@declare{'N}{\~N}% + \es@declare{''}{\textquotedblright}% \let\es@pr@m@s\bbl@pr@m@s \def\bbl@pr@m@s{% \ifx'\@let@token diff --git a/Master/texmf-dist/tex/generic/babel/switch.def b/Master/texmf-dist/tex/generic/babel/switch.def index 99eb2966d0d..6de2ee9ec1f 100644 --- a/Master/texmf-dist/tex/generic/babel/switch.def +++ b/Master/texmf-dist/tex/generic/babel/switch.def @@ -38,7 +38,7 @@ %% extension .ins) which are part of the distribution. %% %% File 'babel.dtx' -%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8j The Babel package] +%%\ProvidesFile{babel.dtx}[2008/03/16 v3.8l The Babel package] %% Babel package for LaTeX2e. %% Copyright (C) 1989 -- 2008 by Johannes Braams, %% TeXniek @@ -66,7 +66,7 @@ \endgroup} \fi \ProvidesFile{switch.def} - [2008/03/16 v3.8j % + [2008/07/06 v3.8l % Babel language switching mechanism] \ifx\AtBeginDocument\@undefined \def\adddialect{} @@ -151,7 +151,7 @@ \expandafter\ifx\csname date#1\endcsname\relax \@noopterr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \originalTeX \expandafter\def\expandafter\originalTeX \expandafter{\csname noextras#1\endcsname @@ -199,7 +199,7 @@ \expandafter\ifx\csname l@#1\endcsname\relax \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{\languagename}% \languageshorthands{none}% \csname extras#1\endcsname \expandafter\ifx\csname #1hyphenmins\endcsname\relax @@ -210,11 +210,18 @@ \fi \fi } +\def\bbl@patterns#1{% + \language=\expandafter\ifx\csname l@#1:\f@encoding\endcsname\relax + \csname l@#1\endcsname + \else + \csname l@#1:\f@encoding\endcsname + \fi\relax +} \def\hyphenrules#1{% \expandafter\ifx\csname l@#1\endcsname\@undefined \@nolanerr{#1}% \else - \language=\csname l@#1\endcsname\relax + \bbl@patterns{#1}% \languageshorthands{none}% \expandafter\ifx\csname #1hyphenmins\endcsname\relax \set@hyphenmins\tw@\thr@@\relax -- cgit v1.2.3