%
% Test file -- can be used with a standard TeX or MLTeX
%
\documentclass{minimal}
\nofiles

\ifx\charsubdefmax\undefined \chardef\charsubdefmax=0 \fi
\ifx\errorcontextlines\undefined \else \errorcontextlines=2\fi

\usepackage[latin1]{inputenc}

\typeout{charsubdefmax before: \number\charsubdefmax}
\usepackage[OT1]{mlfntenc}
\typeout{charsubdefmax after: \number\charsubdefmax}


\newcommand{\type}[1]{\typeout{^^J#1}#1}

\begin{document}

--- Simple Tests ---

\type{Test using accent macros and Latin-1 chars:}
t\"ater \'el\`eve élève
\showhyphens{\"ubertragen \'el\`eve élève}


\expandafter\ifx\csname l@german\endcsname\relax \else
{\language=\csname l@german\endcsname

\type{Test using german hyphenation patterns:}
t\"ater \'el\`eve
\showhyphens{\"ubertragen \'el\`eve}
}
\fi


\expandafter\ifx\csname l@german\endcsname\relax \else
{\language=\csname l@french\endcsname

\type{Test using french hyphenation patterns:}
t\"ater \'el\`eve
\showhyphens{\"ubertragen \'el\`eve}
\showhyphens{abondamment abstinence anh\'eler d\'el\'egu\'e}

\fontencoding{OT1}\selectfont
\renewcommand{\encodingdefault}{OT1}%% for \showhyphens!
\type{Test using french hyphenation patterns (OT1):}
t\"ater \'el\`eve d\'el\'egu\'e
\showhyphens{\"ubertragen \'el\`eve}
\showhyphens{abondamment abstinence anh\'eler d\'el\'egu\'e}
}
\fi


\def\test{%

\`A \'A \^A \~A \"A \u{A} \r{A}
\`a \'a \^a \~a \"a \u{a} \r{a}

\c{C} \'C \v{C} \c{c} \'c \v{c}
\v{D}
\u{G} \u{g}

\`E \'E \^E \~E \"E \v{E}
\`e \'e \^e \~e \"e \v{e}

\`I \'I \^I \~I \"I \.I
\`i \'i \^i \~i \"i \.i
\`{\i} \'{\i} \^{\i} \~{\i} \"{\i} \.{\i}

\~N \'N \v{N} \~n \'n \v{n}

\`O \'O \^O \~O \"O \H{O}
\`o \'o \^o \~o \"o \H{o}

\'R \v{R} \'r \v{r}

\'S \v{S} \c{S} \'s \v{s} \c{s}

\v{T} \c{T} \c{t}

\`U \'U \^U \~U \"U \H{U} \r{U}
\`u \'u \^u \~u \"u \H{u} \r{u}

\'Y \'y

\'Z \v{Z} \.Z \'z \v{z} \.z
}

--- Major Tests ---

{\fontencoding{T1}\selectfont --- T1:\par \test\par}
{\fontencoding{OT1}\selectfont --- OT1:\par \test\par}
{\fontencoding{LO1}\selectfont --- LO1:\par \test\par}

\end{document}

