summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/babel/lsorbian.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/babel/lsorbian.dtx')
-rw-r--r--Master/texmf-dist/source/generic/babel/lsorbian.dtx62
1 files changed, 44 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/generic/babel/lsorbian.dtx b/Master/texmf-dist/source/generic/babel/lsorbian.dtx
index 9f528f8aa9c..5ed352dadcf 100644
--- a/Master/texmf-dist/source/generic/babel/lsorbian.dtx
+++ b/Master/texmf-dist/source/generic/babel/lsorbian.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1989-2005 Johannes L. Braams and any individual authors
+% Copyright 1989-2007 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{129}
+% \CheckSum{152}
% \iffalse
%
% Tell the \LaTeX\ system who we are and write an entry on the
@@ -37,15 +37,15 @@
%<code>\ProvidesLanguage{lsorbian}
%\fi
%\ProvidesFile{lsorbian.dtx}
- [2005/03/31 v1.0f Lower Sorbian support from the babel system]
+ [2007/10/19 v1.0g Lower Sorbian support from the babel system]
%\iffalse
%% File `lsorbian.dtx'
%% Babel package for LaTeX version 2e
-%% Copyright (C) 1989 - 2005
+%% Copyright (C) 1989 - 2007
%% by Johannes Braams, TeXniek
%
%% Lower Sorbian Language Definition File
-%% Copyright (C) 1994 - 2005
+%% Copyright (C) 1994 - 2007
%% by Eduard Werner
% Werner, Eduard",
% Serbski institut z. t.,
@@ -95,21 +95,36 @@
% loaded more than once, checking the category code of the
% \texttt{@} sign, etc.
% \changes{lsorbian-1.0d}{1996/11/03}{Now use \cs{LdfInit} to perform
-% initial checks}
+% initial checks}
+% \changes{lsorbian-1.0g}{2007/10/19}{This file can be loaded under
+% more than one name.}
% \begin{macrocode}
%<*code>
-\LdfInit{lsorbian}\captionslsorbian
+\LdfInit\CurrentOption{date\CurrentOption}
% \end{macrocode}
%
% When this file is read as an option, i.e. by the |\usepackage|
-% command, \texttt{lsorbian} will be an `unknown' languagein which
+% command, \texttt{lsorbian} will be an `unknown' language, in which
% case we have to make it known. So we check for the existence of
% |\l@lsorbian| to see whether we have to do something here.
+% \changes{lsorbian-1.0g}{2007/10/19}{This file can be loaded under
+% more than one name.}
+% As
+% \babel\ also knwos the option \Lopt{lowersorbian} we have to
+% check that as well.
%
% \begin{macrocode}
-\ifx\l@lsorbian\@undefined
- \@nopatterns{Lsorbian}
- \adddialect\l@lsorbian\l@usorbian\fi
+\ifx\l@lowersorbian\@undefined
+ \ifx\l@lsorbian\@undefined
+ \@nopatterns{Lsorbian}
+ \adddialect\l@lsorbian\z@
+ \let\l@lowersorbian\l@lsorbian
+ \else
+ \let\l@lowersorbian\l@lsorbian
+ \fi
+\else
+ \let\l@lsorbian\l@lowersorbian
+\fi
% \end{macrocode}
%
% The next step consists of defining commands to switch to (and
@@ -121,8 +136,10 @@
% \changes{lsorbian-1.0b}{1995/07/04}{Added \cs{proofname} for
% AMS-\LaTeX}
% \changes{lsorbian-1.0f}{2000/09/22}{Added \cs{glossaryname}}
+% \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
+% option name.}
% \begin{macrocode}
-\addto\captionslsorbian{%
+\@namedef{captions\CurrentOption}{%
\def\prefacename{Zawod}%
\def\refname{Referency}%
\def\abstractname{Abstrakt}%
@@ -155,8 +172,10 @@
% \cs{today} to save memory}
% \changes{lsorbian-1.0e}{1998/03/28}{use \cs{def} instead of
% \cs{edef}}
+% \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
+% option name.}
% \begin{macrocode}
-\def\newdatelsorbian{%
+\@namedef{newdate\CurrentOption}{%
\def\today{\number\day.~\ifcase\month\or
januara\or februara\or m\v erca\or apryla\or maja\or
junija\or julija\or awgusta\or septembra\or oktobra\or
@@ -168,8 +187,10 @@
% \begin{macro}{\olddatelsorbian}
% The macro |\olddatelsorbian| redefines the command |\today| to
% produce old-style Lower Sorbian dates.
+% \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
+% option name.}
% \begin{macrocode}
-\def\olddatelsorbian{%
+\@namedef{olddate\CurrentOption}{%
\def\today{\number\day.~\ifcase\month\or
wjelikego ro\v zka\or
ma\l ego ro\v zka\or
@@ -187,8 +208,11 @@
% \end{macro}
%
% The default will be the new-style dates.
+% \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
+% option name.}
% \begin{macrocode}
-\let\datelsorbian\newdatelsorbian
+\expandafter\let\csname date\CurrentOption\expandafter\endcsname
+ \csname newdate\CurrentOption\endcsname
% \end{macrocode}
%
% \begin{macro}{\extraslsorbian}
@@ -201,8 +225,8 @@
% definition files.
%
% \begin{macrocode}
-\addto\extraslsorbian{}
-\addto\noextraslsorbian{}
+\@namedef{extras\CurrentOption}{}
+\@namedef{noextras\CurrentOption}{}
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -213,8 +237,10 @@
% \texttt{@} to its original value.
% \changes{lsorbian-1.0d}{1996/11/03}{Now use \cs{ldf@finish} to wrap
% up}
+% \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
+% option name}
% \begin{macrocode}
-\ldf@finish{lsorbian}
+\ldf@finish\CurrentOption
%</code>
% \end{macrocode}
%