1 % \iffalse meta-comment
3 % Copyright 1989-2008 Johannes L. Braams and any individual authors
4 % listed elsewhere in this file. All rights reserved.
6 % This file is part of the Babel system.
7 % --------------------------------------
9 % It may be distributed and/or modified under the
10 % conditions of the LaTeX Project Public License, either version 1.3
11 % of this license or (at your option) any later version.
12 % The latest version of this license is in
13 % http://www.latex-project.org/lppl.txt
14 % and version 1.3 or later is part of all distributions of LaTeX
15 % version 2003/12/01 or later.
17 % This work has the LPPL maintenance status "maintained".
19 % The Current Maintainer of this work is Johannes Braams.
21 % The list of all files belonging to the Babel system is
22 % given in the file `manifest.bbl. See also `legal.bbl' for additional
25 % The list of derived (unpacked) files belonging to the distribution
26 % and covered by LPPL is defined by the unpacking scripts (with
27 % extension .ins) which are part of the distribution.
32 % Tell the \LaTeX\ system who we are and write an entry on the
35 \ProvidesFile{lsorbian.dtx}
37 %<code>\ProvidesLanguage{lsorbian}
39 %\ProvidesFile{lsorbian.dtx}
40 [2008/03/17 v1.0g Lower Sorbian support from the babel system]
42 %% File `lsorbian.dtx'
43 %% Babel package for LaTeX version 2e
44 %% Copyright (C) 1989 - 2008
45 %% by Johannes Braams, TeXniek
47 %% Lower Sorbian Language Definition File
48 %% Copyright (C) 1994 - 2008
51 % Serbski institut z. t.,
52 % Dw\'orni\v{s}\'cowa 6
53 % 02625 Budy\v{s}in/Bautzen
56 % edi at kaihh.hanse.de",
58 %% Please report errors to: Eduard Werner edi at kaihh.hanse.de
60 % This file is part of the babel system, it provides the source
61 % code for the Lower Sorbian definition file.
63 \documentclass{ltxdoc}
64 \newcommand*\TeXhax{\TeX hax}
65 \newcommand*\babel{\textsf{babel}}
66 \newcommand*\langvar{$\langle \it lang \rangle$}
67 \newcommand*\note[1]{}
68 \newcommand*\Lopt[1]{\textsf{#1}}
69 \newcommand*\file[1]{\texttt{#1}}
71 \DocInput{lsorbian.dtx}
76 % \GetFileInfo{lsorbian.dtx}
78 % \changes{lsorbian-0.1}{1994/10/10}{First version}
79 % \changes{lsorbian-1.0d}{1996/10/10}{Replaced \cs{undefined} with
80 % \cs{@undefined} and \cs{empty} with \cs{@empty} for consistency
81 % with \LaTeX, moved the definition of \cs{atcatcode} right to the
84 % \section{The Lower Sorbian language}
86 % The file \file{\filename}\footnote{The file described in this
87 % section has version number \fileversion\ and was last revised on
88 % \filedate. It was written by Eduard Werner
89 % (\texttt{edi@kaihh.hanse.de}).} It defines all the
90 % language-specific macros for Lower Sorbian.
94 % The macro |\LdfInit| takes care of preventing that this file is
95 % loaded more than once, checking the category code of the
96 % \texttt{@} sign, etc.
97 % \changes{lsorbian-1.0d}{1996/11/03}{Now use \cs{LdfInit} to perform
99 % \changes{lsorbian-1.0g}{2007/10/19}{This file can be loaded under
100 % more than one name.}
103 \LdfInit\CurrentOption{date\CurrentOption}
106 % When this file is read as an option, i.e. by the |\usepackage|
107 % command, \texttt{lsorbian} will be an `unknown' language, in which
108 % case we have to make it known. So we check for the existence of
109 % |\l@lsorbian| to see whether we have to do something here.
110 % \changes{lsorbian-1.0g}{2007/10/19}{This file can be loaded under
111 % more than one name.}
113 % \babel\ also knwos the option \Lopt{lowersorbian} we have to
114 % check that as well.
117 \ifx\l@lowersorbian\@undefined
118 \ifx\l@lsorbian\@undefined
119 \@nopatterns{Lsorbian}
120 \adddialect\l@lsorbian\z@
121 \let\l@lowersorbian\l@lsorbian
123 \let\l@lowersorbian\l@lsorbian
126 \let\l@lsorbian\l@lowersorbian
130 % The next step consists of defining commands to switch to (and
131 % from) the Lower Sorbian language.
133 % \begin{macro}{\captionslsorbian}
134 % The macro |\captionslsorbian| defines all strings used in the four
135 % standard documentclasses provided with \LaTeX.
136 % \changes{lsorbian-1.0b}{1995/07/04}{Added \cs{proofname} for
138 % \changes{lsorbian-1.0f}{2000/09/22}{Added \cs{glossaryname}}
139 % \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
142 \@namedef{captions\CurrentOption}{%
143 \def\prefacename{Zawod}%
144 \def\refname{Referency}%
145 \def\abstractname{Abstrakt}%
146 \def\bibname{Literatura}%
147 \def\chaptername{Kapitl}%
148 \def\appendixname{Dodawki}%
149 \def\contentsname{Wop\'simje\'se}%
150 \def\listfigurename{Zapis wobrazow}%
151 \def\listtablename{Zapis tabulkow}%
152 \def\indexname{Indeks}%
153 \def\figurename{Wobraz}%
154 \def\tablename{Tabulka}%
155 \def\partname{\'Z\v el}%
156 \def\enclname{P\'si\l oga}%
158 \def\headtoname{Komu}%
159 \def\pagename{Strona}%
161 \def\alsoname{gl.~teke}%
162 \def\proofname{Proof}% <-- needs translation
163 \def\glossaryname{Glossary}% <-- Needs translation
168 % \begin{macro}{\newdatelsorbian}
169 % The macro |\newdatelsorbian| redefines the command |\today| to
170 % produce Lower Sorbian dates.
171 % \changes{lsorbian-1.0e}{1997/10/01}{Use \cs{edef} to define
172 % \cs{today} to save memory}
173 % \changes{lsorbian-1.0e}{1998/03/28}{use \cs{def} instead of
175 % \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
178 \@namedef{newdate\CurrentOption}{%
179 \def\today{\number\day.~\ifcase\month\or
180 januara\or februara\or m\v erca\or apryla\or maja\or
181 junija\or julija\or awgusta\or septembra\or oktobra\or
182 nowembra\or decembra\fi
183 \space \number\year}}
187 % \begin{macro}{\olddatelsorbian}
188 % The macro |\olddatelsorbian| redefines the command |\today| to
189 % produce old-style Lower Sorbian dates.
190 % \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
193 \@namedef{olddate\CurrentOption}{%
194 \def\today{\number\day.~\ifcase\month\or
195 wjelikego ro\v zka\or
206 godownika\fi \space \number\year}}
210 % The default will be the new-style dates.
211 % \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
214 \expandafter\let\csname date\CurrentOption\expandafter\endcsname
215 \csname newdate\CurrentOption\endcsname
218 % \begin{macro}{\extraslsorbian}
219 % \begin{macro}{\noextraslsorbian}
220 % The macro |\extraslsorbian| will perform all the extra
221 % definitions needed for the lsorbian language. The macro
222 % |\noextraslsorbian| is used to cancel the actions of
223 % |\extraslsorbian|. For the moment these macros are empty but
224 % they are defined for compatibility with the other language
228 \@namedef{extras\CurrentOption}{}
229 \@namedef{noextras\CurrentOption}{}
234 % The macro |\ldf@finish| takes care of looking for a
235 % configuration file, setting the main language to be switched on
236 % at |\begin{document}| and resetting the category code of
237 % \texttt{@} to its original value.
238 % \changes{lsorbian-1.0d}{1996/11/03}{Now use \cs{ldf@finish} to wrap
240 % \changes{lsorbian-1.0g}{2007/10/19}{Make this work for more than one
243 \ldf@finish\CurrentOption
250 %% {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
251 %% Lower-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
252 %% Digits \0\1\2\3\4\5\6\7\8\9
253 %% Exclamation \! Double quote \" Hash (number) \#
254 %% Dollar \$ Percent \% Ampersand \&
255 %% Acute accent \' Left paren \( Right paren \)
256 %% Asterisk \* Plus \+ Comma \,
257 %% Minus \- Point \. Solidus \/
258 %% Colon \: Semicolon \; Less than \<
259 %% Equals \= Greater than \> Question mark \?
260 %% Commercial at \@ Left bracket \[ Backslash \\
261 %% Right bracket \] Circumflex \^ Underscore \_
262 %% Grave accent \` Left brace \{ Vertical bar \|
263 %% Right brace \} Tilde \~}