% \iffalse meta-comment
%
% Copyright 1994 Jiri Zlatuska and the authors from LaTeX3 team.
% All rights reserved. 
% \fi
\def\fileversion{v3.0}
\def\filedate{1995/02/19}
\def\docdate {1995/02/19}
% \CheckSum{524}
%% \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
%%   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
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%
%\iffalse        This is a META comment
%
% File `cs-enc.dtx'.
% Copyright (C) 1994-1995 Jiri Zlatuska and
%           (C) 1989-1994 Frank Mittelbach and Rainer Sch\"opf,
% all rights reserved.
%
%\fi
%
% \changes{v3.0}{1995/02/19}{Updated for Dec. 1994 release of \LaTeXe}
% \changes{v3.01}{1995/03/09}{Typo in IL2 opening Czech quotes corrected}
% \changes{v3.011}{1995/03/09}{Typo in IL2 opening Czech quotes corrected at last}
%
\ProvidesFile{cs-enc.dtx}
             [1994/08/24 Czech and Slovak package file]
% \title{The \texttt{cs-enc.dtx} file\thanks
%         {This file has version number \fileversion, dated \filedate.}}
%\date{\filedate}
%\author{%
%  Ji\v r\'i Zlatu\v ska\and
%  Johannes Braams\and
%  David Carlisle\and
%  Alan Jeffrey\and
%  Leslie Lamport\and
%  Frank Mittelbach\and
%  Chris Rowley\and
%  Rainer Sch\"opf}
% \def\dst{{\normalfont\scshape docstrip}}
% \setcounter{StandardModuleDepth}{1}
%
%
% \maketitle
%
% \section{Docstrip modules}
%
%    This |.dtx| file is be used to generate several related files
%    containing font encoding definitions. The mutually exculsive 
%    docstrip options are:
%    \begin{center}
%    \begin{tabular}{lp{10cm}}
%      |KOI|       & generates |KOIenc.def| for the Cork encoding, \\
%      |IL2|      & generates |IL2enc.def| for Knuth's CM encoding, \\
%    \end{tabular}
%    \end{center}
%
% \section{A driver for this document}
%
% \StopEventually{}
% 
% The next bit of code contains the documentation driver file for
% \TeX{}, i.e., the file that will produce the documentation you are
% currently reading. It will be extracted from this file by the
% \dst{} program.
%    \begin{macrocode}
%<*driver>
\documentclass{ltxdoc} 
\begin{document}
   \DocInput{cs-enc.dtx}
\end{document}
%</driver>
%    \end{macrocode}
%
% \section{Definitions for the KOI encoding}
%
% The following definitions for the KOI-8cs extensions of Knuth's 
% `\TeX{} text' encoding are based on definitions from OT1 encoding.
%    \begin{macrocode}
%<*KOI>
%    \end{macrocode}
%
% \subsection{Definitions inherited from OT1}
%
%    \begin{macrocode}
\ProvidesFile{KOIenc.def}[1995/02/19 Czech and Slovak package file]
%    \end{macrocode}
%    Declare the encoding.
%    \begin{macrocode}
\DeclareFontEncoding{KOI}{\@@KOICodes\@hyphenation}{}
%    \end{macrocode}
%    Declare the accents.
%    \begin{macrocode}
\DeclareTextAccent{\"}{KOI}{127}
\DeclareTextAccent{\'}{KOI}{19}
\DeclareTextAccent{\.}{KOI}{95}
\DeclareTextAccent{\=}{KOI}{22}
\DeclareTextAccent{\^}{KOI}{94}
\DeclareTextAccent{\`}{KOI}{18}
\DeclareTextAccent{\~}{KOI}{126}
\DeclareTextAccent{\H}{KOI}{125}
\DeclareTextAccent{\u}{KOI}{21}
\DeclareTextAccent{\v}{KOI}{20}
\DeclareTextAccent{\r}{KOI}{23}
%    \end{macrocode}
%    Some accents have to be built by hand:
%    \begin{macrocode}
\DeclareTextCommand{\b}{KOI}[1]
   {\oalign{\null#1\crcr\hidewidth\sh@ft{29}%
    \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}}
\DeclareTextCommand{\c}{KOI}[1]
   {\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
    \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
\DeclareTextCommand{\d}{KOI}[1]
   {\oalign{\null#1\crcr\hidewidth\sh@ft{08}.\hidewidth}}
%    \end{macrocode}
%    Declare the text symbols.
%    \begin{macrocode}
\DeclareTextSymbol{\AE}{KOI}{29}
\DeclareTextSymbol{\OE}{KOI}{30}
\DeclareTextSymbol{\O}{KOI}{31}
\DeclareTextSymbol{\ae}{KOI}{26}
\DeclareTextSymbol{\i}{KOI}{16}
\DeclareTextSymbol{\j}{KOI}{17}
\DeclareTextSymbol{\oe}{KOI}{27}
\DeclareTextSymbol{\o}{KOI}{28}
\DeclareTextSymbol{\ss}{KOI}{25}
\DeclareTextSymbol{\textemdash}{KOI}{124}
\DeclareTextSymbol{\textendash}{KOI}{123}
\DeclareTextSymbol{\textexclamdown}{KOI}{60}
%\DeclareTextSymbol{\texthyphenchar}{KOI}{`\-}
%\DeclareTextSymbol{\texthyphen}{KOI}{`\-}
\DeclareTextSymbol{\textquestiondown}{KOI}{62}
\DeclareTextSymbol{\textquotedblleft}{KOI}{92}
\DeclareTextSymbol{\textquotedblright}{KOI}{`\"}
\DeclareTextSymbol{\textquoteleft}{KOI}{`\`}
\DeclareTextSymbol{\textquoteright}{KOI}{`\'}
%    \end{macrocode}
%    Some symbols which are faked from others:
%    \begin{macrocode}
\DeclareTextCommand{\aa}{KOI}
   {{\accent23a}}
\DeclareTextCommand{\L}{KOI}
   {\leavevmode\setbox0\hbox{L}\hbox to\wd0{\hss\char32L}}
\DeclareTextCommand{\l}{KOI}
   {{\char32l}}
\DeclareTextCommand{\AA}{KOI}
   {\leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex%
    \rlap{\raise.67\dimen@\hbox{\char'27}}A}
\DeclareTextCommand{\SS}{KOI}
   {SS}
%    \end{macrocode}
%    In the KOI encoding, \pounds~and \$ share a slot.
%    \begin{macrocode}
\DeclareTextCommand{\textdollar}{KOI}{{%
   \ifdim \fontdimen\@ne\font >\z@
      \slshape
   \else
      \upshape
   \fi
   \char`\$}}
\DeclareTextCommand{\textsterling}{KOI}{{%
   \ifdim \fontdimen\@ne\font >\z@
      \itshape
   \else
      \fontshape{ui}\selectfont
   \fi
   \char`\$}}
%    \end{macrocode}
%
% \subsection{Definitions of the composites for KOI-8cs encoded fonts}
%
%    Declare the composites for KOI encoding.
%    \begin{macrocode}
\DeclareTextComposite{\'}{KOI}{l}{"CB}%
\DeclareTextComposite{\'}{KOI}{r}{"C6}%
\DeclareTextComposite{\'}{KOI}{a}{"C1}%
\DeclareTextComposite{\'}{KOI}{e}{"D7}%
\DeclareTextComposite{\'}{KOI}{\i}{"C9}%
\DeclareTextComposite{\'}{KOI}{i}{"C9}%
\DeclareTextComposite{\'}{KOI}{o}{"CF}%
\DeclareTextComposite{\'}{KOI}{u}{"D5}%
\DeclareTextComposite{\'}{KOI}{y}{"D9}%
\DeclareTextComposite{\'}{KOI}{L}{"EB}%
\DeclareTextComposite{\'}{KOI}{R}{"E6}%
\DeclareTextComposite{\'}{KOI}{A}{"E1}%
\DeclareTextComposite{\'}{KOI}{E}{"F7}%
\DeclareTextComposite{\'}{KOI}{I}{"E9}%
\DeclareTextComposite{\'}{KOI}{O}{"EF}%
\DeclareTextComposite{\'}{KOI}{U}{"F5}%
\DeclareTextComposite{\'}{KOI}{Y}{"F9}%
\DeclareTextComposite{\v}{KOI}{c}{"C3}%
\DeclareTextComposite{\v}{KOI}{e}{"C5}%
\DeclareTextComposite{\v}{KOI}{n}{"CE}%
\DeclareTextComposite{\v}{KOI}{r}{"D2}%
\DeclareTextComposite{\v}{KOI}{s}{"D3}%
\DeclareTextComposite{\v}{KOI}{z}{"DA}%
\DeclareTextComposite{\v}{KOI}{d}{"C4}%
\DeclareTextComposite{\v}{KOI}{t}{"D4}%
\DeclareTextComposite{\v}{KOI}{l}{"CC}%
\DeclareTextComposite{\v}{KOI}{u}{"CA}%
\DeclareTextComposite{\v}{KOI}{C}{"E3}%
\DeclareTextComposite{\v}{KOI}{D}{"E4}%
\DeclareTextComposite{\v}{KOI}{E}{"E5}%
\DeclareTextComposite{\v}{KOI}{N}{"EE}%
\DeclareTextComposite{\v}{KOI}{R}{"F2}%
\DeclareTextComposite{\v}{KOI}{S}{"F3}%
\DeclareTextComposite{\v}{KOI}{T}{"F4}%
\DeclareTextComposite{\v}{KOI}{Z}{"FA}%
\DeclareTextComposite{\v}{KOI}{L}{"EC}%
\DeclareTextComposite{\v}{KOI}{U}{"EA}%
\DeclareTextComposite{\^}{KOI}{o}{"D0}%
\DeclareTextComposite{\^}{KOI}{O}{"F0}%
\DeclareTextComposite{\"}{KOI}{a}{"D1}%
\DeclareTextComposite{\"}{KOI}{o}{"CD}%
\DeclareTextComposite{\"}{KOI}{u}{"C8}%
\DeclareTextComposite{\"}{KOI}{A}{"F1}%
\DeclareTextComposite{\"}{KOI}{O}{"ED}%
\DeclareTextComposite{\"}{KOI}{U}{"E8}%
\DeclareTextComposite{\r}{KOI}{u}{"CA}%
\DeclareTextComposite{\r}{KOI}{U}{"EA}%
%</KOI>
%    \end{macrocode}
%
% \section{Definitions for the IL2 encoding}
%
% The following definitions for the ISO-LATIN2 extension of Knuth's
% `\TeX{} text' encoding are based on definitions from OT1 encoding.
%    \begin{macrocode}
%<*IL2>
%    \end{macrocode}
%
% \subsection{Definitions inherited from OT1}
%
%    \begin{macrocode}
\ProvidesFile{IL2enc.def}[1995/02/19 Czech and Slovak package file]
%    \end{macrocode}
%    Declare the encoding.
%    \begin{macrocode}
\DeclareFontEncoding{IL2}{\csname @@IL2Codes\endcsname\@hyphenation}{}
%    \end{macrocode}
%    Declare the accents.
%    \begin{macrocode}
\DeclareTextAccent{\"}{IL2}{127}
\DeclareTextAccent{\'}{IL2}{19}
\DeclareTextAccent{\.}{IL2}{95}
\DeclareTextAccent{\=}{IL2}{22}
\DeclareTextAccent{\^}{IL2}{94}
\DeclareTextAccent{\`}{IL2}{18}
\DeclareTextAccent{\~}{IL2}{126}
\DeclareTextAccent{\H}{IL2}{125}
\DeclareTextAccent{\u}{IL2}{21}
\DeclareTextAccent{\v}{IL2}{20}
\DeclareTextAccent{\r}{IL2}{23}
%    \end{macrocode}
%    Some accents have to be built by hand:
%    \begin{macrocode}
\DeclareTextCommand{\b}{IL2}[1]
   {\oalign{\null#1\crcr\hidewidth\sh@ft{29}%
    \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}}
\DeclareTextCommand{\c}{IL2}[1]
   {\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
    \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
\DeclareTextCommand{\d}{IL2}[1]
   {\oalign{\null#1\crcr\hidewidth\sh@ft{08}.\hidewidth}}
%    \end{macrocode}
%    Declare the text symbols.
%    \begin{macrocode}
\DeclareTextSymbol{\AE}{IL2}{29}
\DeclareTextSymbol{\OE}{IL2}{30}
\DeclareTextSymbol{\O}{IL2}{31}
\DeclareTextSymbol{\ae}{IL2}{26}
\DeclareTextSymbol{\i}{IL2}{16}
\DeclareTextSymbol{\j}{IL2}{17}
\DeclareTextSymbol{\oe}{IL2}{27}
\DeclareTextSymbol{\o}{IL2}{28}
\DeclareTextSymbol{\ss}{IL2}{25}
\DeclareTextSymbol{\textemdash}{IL2}{124}
\DeclareTextSymbol{\textendash}{IL2}{123}
\DeclareTextSymbol{\textexclamdown}{IL2}{60}
%\DeclareTextSymbol{\texthyphenchar}{IL2}{`\-}
%\DeclareTextSymbol{\texthyphen}{IL2}{`\-}
\DeclareTextSymbol{\textquestiondown}{IL2}{62}
\DeclareTextSymbol{\textquotedblleft}{IL2}{92}
\DeclareTextSymbol{\textquotedblright}{IL2}{`\"}
\DeclareTextSymbol{\textquoteleft}{IL2}{`\`}
\DeclareTextSymbol{\textquoteright}{IL2}{`\'}
%    \end{macrocode}
%    Some symbols which are faked from others:
%    \begin{macrocode}
\DeclareTextCommand{\aa}{IL2}
   {{\accent23a}}
\DeclareTextCommand{\L}{IL2}
   {\leavevmode\setbox0\hbox{L}\hbox to\wd0{\hss\char32L}}
\DeclareTextCommand{\l}{IL2}
   {{\char32l}}
\DeclareTextCommand{\AA}{IL2}
   {\leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex%
    \rlap{\raise.67\dimen@\hbox{\char'27}}A}
\DeclareTextCommand{\SS}{IL2}
   {SS}
%    \end{macrocode}
%    In the IL2 encoding, \pounds~and \$ share a slot.
%    \begin{macrocode}
\DeclareTextCommand{\textdollar}{IL2}{{%
   \ifdim \fontdimen\@ne\font >\z@
      \slshape
   \else
      \upshape
   \fi
   \char`\$}}
\DeclareTextCommand{\textsterling}{IL2}{{%
   \ifdim \fontdimen\@ne\font >\z@
      \itshape
   \else
      \fontshape{ui}\selectfont
   \fi
   \char`\$}}
%    \end{macrocode}
%
% \subsection{Definitions of the composites for IL2 encoded fonts}
%
%    Declare the composites for IL2 encoding.
%    \begin{macrocode}
\DeclareTextComposite{\'}{IL2}{l}{'345}%
\DeclareTextComposite{\'}{IL2}{r}{'340}%
\DeclareTextComposite{\'}{IL2}{a}{'341}%
\DeclareTextComposite{\'}{IL2}{e}{'351}%
\DeclareTextComposite{\'}{IL2}{\i}{'355}%
\DeclareTextComposite{\'}{IL2}{i}{'355}%
\DeclareTextComposite{\'}{IL2}{o}{'363}%
\DeclareTextComposite{\'}{IL2}{u}{'372}%
\DeclareTextComposite{\'}{IL2}{y}{'375}%
\DeclareTextComposite{\'}{IL2}{L}{'305}%
\DeclareTextComposite{\'}{IL2}{R}{'300}%
\DeclareTextComposite{\'}{IL2}{A}{'301}%
\DeclareTextComposite{\'}{IL2}{E}{'311}%
\DeclareTextComposite{\'}{IL2}{I}{'315}%
\DeclareTextComposite{\'}{IL2}{O}{'323}%
\DeclareTextComposite{\'}{IL2}{U}{'332}%
\DeclareTextComposite{\'}{IL2}{Y}{'335}%
\DeclareTextComposite{\`}{IL2}{a}{'270}%
\DeclareTextComposite{\`}{IL2}{A}{'230}%
\DeclareTextComposite{\v}{IL2}{c}{'350}%
\DeclareTextComposite{\v}{IL2}{d}{'357}%
\DeclareTextComposite{\v}{IL2}{e}{'354}%
\DeclareTextComposite{\v}{IL2}{n}{'362}%
\DeclareTextComposite{\v}{IL2}{r}{'370}%
\DeclareTextComposite{\v}{IL2}{s}{'271}%
\DeclareTextComposite{\v}{IL2}{z}{'276}%
\DeclareTextComposite{\v}{IL2}{t}{'273}%
\DeclareTextComposite{\v}{IL2}{l}{'265}%
\DeclareTextComposite{\v}{IL2}{u}{'371}%
\DeclareTextComposite{\v}{IL2}{C}{'310}%
\DeclareTextComposite{\v}{IL2}{D}{'317}%
\DeclareTextComposite{\v}{IL2}{E}{'314}%
\DeclareTextComposite{\v}{IL2}{N}{'322}%
\DeclareTextComposite{\v}{IL2}{R}{'330}%
\DeclareTextComposite{\v}{IL2}{S}{'251}%
\DeclareTextComposite{\v}{IL2}{T}{'253}%
\DeclareTextComposite{\v}{IL2}{Z}{'256}%
\DeclareTextComposite{\v}{IL2}{L}{'245}%
\DeclareTextComposite{\v}{IL2}{U}{'331}%
\DeclareTextComposite{\^}{IL2}{o}{'364}%
\DeclareTextComposite{\^}{IL2}{O}{'324}%
\DeclareTextComposite{\"}{IL2}{a}{'344}%
\DeclareTextComposite{\"}{IL2}{o}{'366}%
\DeclareTextComposite{\"}{IL2}{u}{'374}%
\DeclareTextComposite{\"}{IL2}{A}{'304}%
\DeclareTextComposite{\"}{IL2}{O}{'326}%
\DeclareTextComposite{\"}{IL2}{U}{'334}%
\DeclareTextComposite{\r}{IL2}{u}{'371}%
\DeclareTextComposite{\r}{IL2}{U}{'331}%
%    \end{macrocode}
%
% \subsection{Definitions of Czech-style double quotes for IL2 encoded fonts}
%
%    Declare the commands for IL2 encoding.
% \changes{v3.01}{1995/03/09}{Typo in IL2 opening Czech quotes corrected}
% \changes{v3.011}{1995/03/09}{Typo in IL2 opening Czech quotes corrected at last}
%    \begin{macrocode}
\DeclareTextCommand{\bq}{IL2}{{\char254}}%
\DeclareTextCommand{\eq}{IL2}%
             {{\edef\@SF{\spacefactor\the\spacefactor}\char255 \@SF\relax}}%
%</IL2>
%    \end{macrocode}
%
% \Finale
%
\endinput
