summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mltex/testmlft.tex
blob: 878a9420d22d4f7d04fe9b7f0ab573aa51e7f3b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
%%
%% This is file `testmlsw.tex'.
%% Copyright (C) 1996-1998 Bernd Raichle; all rights reserved.
%%
%% See copyright statement in file `lo1enc.def'.
%%
%%
%% - Checks hyphenation w.r.t font encoding alias.
%% - Checks \DeclareTextComposite declarations.
%% - Can and should be used with a standard TeX or MLTeX!
%%
%% CHANGES:
%% 1998/11/17 0.9a
%%    First released version.
%% 1999/03/09 0.9b
%%    Added lines with composite and special glyphs because
%%    I have missed a definition in `lo1enc.def' making the
%%    accent macros \d and \b fail for LO1.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{testmlft.tex}%
    [1999/03/09 v0.9b Test file for MLTeX LaTeX support (br)]
\documentclass{minimal}
\nofiles
\newcommand{\type}[1]{\typeout{^^J#1}#1}

%% For non-MLTeX and/or TeX versions < 3.0
%% define dummys for \charsubdefmax and \errorcontextlines,
%% these registers are not changed within this test file.
\ifx\charsubdefmax\undefined \chardef\charsubdefmax=0 \fi
\ifx\errorcontextlines\undefined \else \errorcontextlines=2\fi

\typeout{^^J=== charsubdefmax before: \number\charsubdefmax.^^J}
\usepackage[switchonly]{mltex}
\typeout{^^J=== charsubdefmax after: \number\charsubdefmax.^^J}

\usepackage[latin1]{inputenc}

\begin{document}

\type{=== Current encoding is
    \csname cf@encoding\endcsname\space
   (\csname f@encoding\endcsname).}


--- Simple Tests ---

\type{=== Test using LO1 font encoding, accent macros, 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 LO1 font encoding, 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 LO1 font encoding, 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 OT1 font encoding, french hyphenation patterns:}
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

composite glyphs:
\"b \"B \'b \'B \.b \.B \=b \=B \^b \^B \`b \`B
\~b \~B \H{b} \H{B} \u{b} \u{B} \v{b} \v{B} \r{b} \r{B}
\b{b} \b{B} \c{b} \c{B} \d{b} \d{B}

special glyphs: \AE \OE \O \ae \i \j \oe \o \ss
\textemdash \textendash \textexclamdown \textquestiondown
\textquotedblleft \textquotedblright
\textquoteleft \textquoteright
\L \l \textdollar \textsterling
}

--- Major Tests ---

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

--- End of Tests ---
\end{document}