1 % \iffalse meta-comment
\r
3 % Copyright 2012 Javier Bezos and any individual authors
\r
4 % listed elsewhere in this file. All rights reserved.
\r
6 % This file is part of the Babel system.
\r
7 % --------------------------------------
\r
9 % It may be distributed and/or modified under the
\r
10 % conditions of the LaTeX Project Public License, either version 1.3
\r
11 % of this license or (at your option) any later version.
\r
12 % The latest version of this license is in
\r
13 % http://www.latex-project.org/lppl.txt
\r
14 % and version 1.3 or later is part of all distributions of LaTeX
\r
15 % version 2003/12/01 or later.
\r
17 % This work has the LPPL maintenance status "maintained".
\r
19 % The Current Maintainer of this work is Javier Bezos.
\r
21 % The list of all files belonging to the Babel system is
\r
22 % given in the file `manifest.bbl. See also `legal.bbl' for additional
\r
25 % The list of derived (unpacked) files belonging to the distribution
\r
26 % and covered by LPPL is defined by the unpacking scripts (with
\r
27 % extension .ins) which are part of the distribution.
\r
31 % Tell the \LaTeX\ system who we are and write an entry on the
\r
34 \ProvidesFile{nil.dtx}
\r
36 %<code>\ProvidesLanguage{nil}
\r
38 %\ProvidesFile{nil.dtx}
\r
39 [2012/07/06 v0.1 Nil support from the babel system]
\r
42 %% Babel package for LaTeX version 2e
\r
43 %% Copyright (C) 1989 - 2005
\r
44 %% by Johannes Braams, TeXniek
\r
46 %% Please report errors to: J.L. Braams
\r
47 %% babel at braams.cistron.nl
\r
49 % This file is part of the babel system, it provides the source
\r
50 % code for the Nil language definition file.
\r
52 \documentclass{ltxdoc}
\r
53 \newcommand*\TeXhax{\TeX hax}
\r
54 \newcommand*\babel{\textsf{babel}}
\r
55 \newcommand*\langvar{$\langle \mathit lang \rangle$}
\r
56 \newcommand*\note[1]{}
\r
57 \newcommand*\Lopt[1]{\textsf{#1}}
\r
58 \newcommand*\file[1]{\texttt{#1}}
\r
64 % \GetFileInfo{nil.dtx}
\r
66 % \section{The `nil' language}
\r
68 % This `language' does, except setting the hyphenation patterns to
\r
71 % For this language currently no special definitions are needed or
\r
76 % The macro |\LdfInit| takes care of preventing that this file is
\r
77 % loaded more than once, checking the category code of the
\r
78 % \texttt{@} sign, etc.
\r
81 \LdfInit{nil}{datenil}
\r
84 % When this file is read as an option, i.e. by the |\usepackage|
\r
85 % command, \texttt{nil} could be an `unknown' language in which
\r
86 % case we have to make it known.
\r
88 \ifx\l@nohyphenation\@undefined
\r
92 \let\l@nil\l@nohyphenation
\r
95 % This macro is used to store the values of the hyphenation
\r
96 % parameters |\lefthyphenmin| and |\righthyphenmin|.
\r
98 \providehyphenmins{\CurrentOption}{\z@\z@}
\r
102 % The next step consists of defining commands to switch to (and
\r
103 % from) the `nil' language.
\r
104 % \begin{macro}{\captionnil}
\r
105 % \begin{macro}{\datenil}
\r
106 % \begin{macrocode}
\r
107 \let\captionsnil\@empty
\r
108 \let\datenil\@empty
\r
113 % The macro |\ldf@finish| takes care of looking for a
\r
114 % configuration file, setting the main language to be switched on
\r
115 % at |\begin{document}| and resetting the category code of
\r
116 % \texttt{@} to its original value.
\r
117 % \begin{macrocode}
\r
125 %% {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
\r
126 %% 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
\r
127 %% Digits \0\1\2\3\4\5\6\7\8\9
\r
128 %% Exclamation \! Double quote \" Hash (number) \#
\r
129 %% Dollar \$ Percent \% Ampersand \&
\r
130 %% Acute accent \' Left paren \( Right paren \)
\r
131 %% Asterisk \* Plus \+ Comma \,
\r
132 %% Minus \- Point \. Solidus \/
\r
133 %% Colon \: Semicolon \; Less than \<
\r
134 %% Equals \= Greater than \> Question mark \?
\r
135 %% Commercial at \@ Left bracket \[ Backslash \\
\r
136 %% Right bracket \] Circumflex \^ Underscore \_
\r
137 %% Grave accent \` Left brace \{ Vertical bar \|
\r
138 %% Right brace \} Tilde \~}
\r