summaryrefslogtreecommitdiff
path: root/language/multilingual/eurotex/doc/eng-plain-dc.tex
blob: 3e2bba6c774cd2968b6e29d61a18a75465f14c12 (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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
\hoffset=-0.3truecm
\hsize=16.5truecm
\vsize=24.5truecm
\font\tolvfet=dcbx12
\nopagenumbers
\hfuzz=1pt
\def\idag{[March 16, 1997]}
\def\TJ{\ooalign{\hidewidth\vrule height 1.0ex depth -0.96ex 
                                  width 0.42em\kern0.03em\hidewidth\crcr T}}
\def\tj{\leavevmode\rlap{\vrule height 0.65ex depth -0.64ex width 0.28em}t}
\headline{\ifnum\pageno>1 \rm\idag\hfil page \folio\else\rm\idag\hfil\fi}
\centerline{\tolvfet Euro\TeX}
\bigskip\noindent
From version 3.0 onwards, {\TeX} allows the use of eight-bit fonts in the
manuscript. In Euro{\TeX} this is utilized, so that non-English
letters as far as possible are treated as English letters.
This description concerns the Euro{\TeX} extensions founded on plain
{\TeX}, version 3.141, with the use of dc fonts.
\bigskip
\item{$\bullet$}Non-English letters are allowed in the text part of
the manuscript (in equations only by using{\tt\ \backslash hbox}). 
All letters in the font ISO Latin 1 except{\tt\ \"y }may be used.
Letters like{\tt\ ä ö ü ß à â ç è é ê î ï ô û ù æ ø å }can hence be
typed directly into the{\tt\ tex }file. Paraphrases like{\tt\ 
\backslash "a \backslash "o \backslash "u \backslash ss
\backslash `a \backslash \caret a \backslash c c \backslash `e 
\backslash 'e \backslash \caret e \backslash \caret\backslash i 
\backslash "\backslash i \backslash \caret o 
\backslash \caret u  \backslash `u
\backslash ae \backslash o \backslash aa }are still understood, however.
The letters in the font ISO Latin 1 may also be used in control words.
Characters in ISO Latin 1 which are not letters, will as a rule not be
understood. However, {\TeX} understands the 
characters{\tt\ § ¡ ¿ £ « » }in text mode
and the characters{\tt\ $±$ $·$ }in math mode.
\item{$\bullet$}{\TeX} can hyphenate words containing the letters in
the dc font. The treatment is the same, whether the letters are
typed directly or as macros.
\item{$\bullet$}Languages can be selected with the command{\tt\ \backslash 
language\backslash $\langle${\rm language}$\rangle$}, 
where $\langle$language$\rangle$ is one of the 
words {\tt\ english german french italian polish danish norwegian
swedish icelandic finnish}. 
By the selection of language, rules for hyphenation, quotes and sentence
space are set. For each of the ten languages, a list
of syllables is read, with rules for hyphenation of words. Correct quotes in
each language appear by typing{\tt\ \backslash 
qt\{$\langle${\rm text}$\rangle$\}\ }or --- 
for single quotes ---{\tt\ \backslash siqt\{$\langle${\rm 
text}$\rangle$\}}.
The different quotes are treated below.
Sentence spaces are for all languages, except French, set 
to{\tt\ \backslash nonfrenchspacing}; for French it is set 
to{\tt\ \backslash frenchspacing}.
One may switch between languages arbitrary often within a document.
The selected language is valid until a new language is selected.
The default language is English.
\item{$\bullet$}Test on the selected language can be done
with the command{\tt\ \backslash ifnum\backslash
language=\backslash englishhyphenation }and equivalently for the other
languages. Other{\tt\ \backslash if }tests may also be used.
\item{$\bullet$}Quotes are traditionally written differently in the different
languages. The customary notation in the ten languages is:
\hihi{English} \lohi{German} \ltgt{French} \ltgt{Italian} \lohi{Polish} 
\lohi{Danish} \ltgt{Norwegian} \hiqq{Swedish} \lohi{Icelandic} \hiqq{Finnish}. 
By typing{\tt\ \backslash qt\{$\langle${\rm 
text}$\rangle$\}}, one gets the mentioned quotes in the ten
languages. Single quotes appear by 
typing{\tt\ \backslash siqt\{$\langle${\rm 
text}$\rangle$\}}. Hence, with this control word one gets:
\sihihi{English} \silohi{German} \siltgt{French} \siltgt{Italian} 
\silohi{Polish} \silohi{Danish} \siltgt{Norwegian} \sihiqq{Swedish}
\silohi{Icelandic} \sihiqq{Finnish}. Independently of the selected
language, {\tt `` }and{\tt\ '' }are still ligatures for `` and ''.
Further, {\tt << }and{\tt\ >> }are ligatures for << and >>.
They may also be produced by typing them directly, i.e., {\tt « }and{\tt\ »}.
Of course, also the single characters ` and ' can be typed directly 
with{\tt\ ` }and{\tt\ '}.
The other quotes may also be selected independently of the selected
language. The quotes can be produced as shown in the table below.
The table also shows in which languages a quote traditionally is used.
\halign{\qquad\qquad\tt #\hfil&\qquad yields\quad #\hfil&\qquad #\hfil\cr
\backslash lohi\{low-high\}&\lohi{low-high}&German Polish Danish Icelandic\cr
\backslash hihi\{high-high\}&\hihi{high-high}&English Spanish Italian\cr
\backslash hiqq\{high-equal\}&\hiqq{high-equal}&Swedish Finnish Norwegian\cr
\backslash ltgt\{outwards\}&\ltgt{outwards}&French Italian Spanish Norwegian\cr
\backslash gtlt\{inwards\}&\gtlt{inwards}&German Danish\cr
\backslash gtgt\{right\}&\gtgt{right}&Swedish Finnish\cr}
\item{}Single quotes appear by putting{\tt\ si }in front, i.e., with
the macros{\tt\ \backslash silohi \backslash sihihi \backslash sihiqq
\backslash siltgt \backslash sigtlt \backslash sigtgt}.
For ``Gänsefüßchen'' in front, the macro{\tt\ \backslash hiqq }yields a better
positioning than the ligature{\tt\ ''}:
\halign{\qquad\qquad\tt #\hfil&\qquad yields\quad #\hfil\cr
\backslash hiqq\{Swedish\}&\hiqq{Swedish}\cr
''Swedish''&''Swedish''.\cr}
\item{}Do you see the difference?
\item{$\bullet$}Macros for letters and diacritical marks.
In addition to the letters defined in the {\TeX} book, the following
letters have names of their own:
\halign{\qquad\qquad\tt #\hfil&\qquad yields\quad #\hfil&\ 
#\hfil&\qquad #\hfil\cr
\backslash dh \backslash DH &\dh &\DH &(edh)\cr
\backslash th \backslash TH &\th &\TH &(thorn)\cr
\backslash ng \backslash NG &\ng &\NG &(Lappish eng)\cr
\backslash y \ \backslash Y &\y &\Y &(Dutch ij)\cr
\backslash dj \backslash DJ &\dj &\DJ &(Croatian and Lappish d bar)\cr
\backslash lp \backslash Lp &\hbox{\lp}&\hbox{\Lp}&(Catalan l dot,
as in \qt{para\lp lel}).\cr}
\item{}({\tt\backslash lp } is actually not a letter, but a macro that puts
a dot after the l, if the word is not hyphenated there.)
Diacritical marks (umlaut, accents, etc.) can be produced as
mentioned in the {\TeX} book. Three additional macros are defined:
\halign{\qquad\qquad\tt #\hfil&\qquad yields\quad #\hfil&\qquad #\hfil\cr
\backslash k o &\k o &(ogonek, right-adjusted for \k A, \k E, 
\k a, \k u)\cr
\backslash p L &\p L &(prime, only for Czech and Slovak \p d, \p t,
\p l, \p L and Latvian \p g)\cr
\backslash r u &\r u &(ring).\cr}
\item{}With the above macros, names like Lech Wa\l\k esa, 
Pel\.eda Lazdyn\k u, Pie\v s\p tany, \TH ingvellir, Morgunbla\dh
i{\dh} and B\'a\dj a\v soaivi can be written.
Correct spellings of such names cannot be produced with the
traditional cm fonts.
\item{$\bullet$}The control symbol{\tt\ \backslash| }is used to split
characters. It can be used to split a word from a hyphen (-),
if {\TeX} does not manage to hyphenate the word.
As an example, if {\TeX} does not manage to hyphenate the 
word{\tt\ \$W\$-orthogonal}, one may instead 
type{\tt\ \$W\$-\backslash|orthogonal}.
Correspondingly, if {\TeX} does not manage to hyphenate the word
before the hyphen in an expression 
like{\tt\ Lebesgue-integrable}, one may instead 
type{\tt\ Lebesgue\backslash|-integrable}. With such a use
of{\tt\ \backslash|}, {\TeX} will be able to hyphenate the words in
question. 
Behind an apostrophe ('), {\tt \backslash| }may be used in the same
way. To make {\TeX} hyphenate the word \qt{d'Alembert} one may 
type{\tt\ d'\backslash|Alembert}.
Behind a slash (/), {\tt \backslash| }can be used in the same way,
but the macro{\tt\ \backslash hskip0pt }will there be better, since it
allows a line break just behind the slash.
The control symbol{\tt\ \backslash| }can also
be used to split the characters in a ligature.
Thus,
{\tt fl }yields the ligature \qt{fl}, whereas{\tt\ f\backslash|l
}yields \qt{f\|l}.
Such a splitting of ligatures is almost never important, but for
Cyrillic fonts it may be necessary.
In math mode, {\tt \backslash| }produces the norm character $\|$. 
\item{$\bullet$}For German hyphenation, two macros are defined. 
The macro{\tt\ \backslash SS }is capital ß (eszett). It is printed out
as \qt{SS}, but produces another hyphenation than the input{\tt\ SS}. 
The notation{\tt\ \backslash SS }always gives a correct hyphenation for
words with capital ß. This is shown in the table below:
\halign{\qquad\qquad\tt #\hfil&\qquad yields\quad #\hfil&\qquad #\hfil\cr
GRÖSSE &GRÖS-SE &(wrong)\cr
GRÖ\backslash SS E &GRÖ-SSE &(correct, compare Grö-ße)\cr
MASSTHEORIE &MASSTHEO-RIE &(one hyphen is missing)\cr
MA\backslash SS THEORIE &MASS-THEO-RIE &(complete, as in Maß-theo-rie).\cr}
\item{}The macro{\tt\ \backslash ck }(and the corresponding for
capital letters{\tt\ \backslash CK}) gives correct hyphenation in the
old spelling for the letter group \qt{ck}. The notation{\tt\ Verrü\backslash 
ck ungen }thus yields the hyphenation possibilities \qt{Ver-rückungen}, 
\qt{Verrük-kungen} and \qt{Verrückun-gen}. 
However, the macro must not be used in words where \qt{ck} cannot be
hyphenated, as in the word \qt{rückwärts}. The notation{\tt\ rü\backslash 
ck wärts }would give the hyphenation \qt{rük-kwärts} (wrong), whereas
the notation{\tt\ rückwärts }gives the hyphenation \qt{rück-wärts} (correct). 
\item{$\bullet$}For Scandinavian and German before the spelling
reform, macros  for three equal consonants that are
contracted to two, are defined.
Such consonant groups must be hyphenated, such that $2+1$ equal
consonants appear.
Examples of such words are \qt{Nu\lll ösung} and \qt{Progra\mmm odul} (German)
and \qt{to\ppp unkt} and \qt{ta\lll inje} (Norwegian), 
which on hyphenation on the spot in question are written 
\qt{Null-lösung}, \qt{Programm-modul}, \qt{topp-punkt} and \qt{tall-linje}. 
By typing{\tt\ Nu\backslash lll ösung}, 
{\tt\ Progra\backslash mmm odul},
{\tt\ to\backslash ppp unkt }and{\tt\ ta\backslash lll inje}, one
always gets a correct spelling of these words.
The following macros give correct treatment of such consonant 
groups:{\tt\ \backslash bbb},{\tt\ \backslash 
ddd},{\tt\ \backslash fff},{\tt\ \backslash ggg},{\tt\ \backslash
kkk},{\tt\ \backslash lll},{\tt\ \backslash mmm},{\tt\ \backslash
nnn},{\tt\ \backslash ppp},{\tt\ \backslash rrr},{\tt\ \backslash
sss},{\tt\ \backslash ttt}. (Correspondingly for capital
letters:{\tt\ \backslash BBB},{\tt\ \backslash 
DDD}, etc.)
\item{$\bullet$}The eight-bit fonts contain some characters which have
names of their own. They are shown in the following table:
\halign{\qquad\qquad\tt #\hfil&\qquad yields\quad #\hfil&\qquad #\hfil\cr
\backslash pound &\pound\cr
\backslash promille &\promille\cr
\backslash ? &\? &(inverse question mark)\cr 
\backslash ! &\! &(inverse exclamation mark)\cr
\backslash caret &\caret &(caret (a little different from circumflex \^{}))\cr
\backslash wave &\wave &(repeat mark (a little different from tilde \~{}))\cr
\backslash underscore &\underscore &(underscore (different from the macro{\tt\ 
\backslash \underscore\ }which yields \_))\cr
\backslash visiblespace &\visiblespace &(visible space).\cr}
\item{}The character sequences{\tt\ ?`\ }and{\tt\ !`\ }were earlier 
ligatures for
\? and \!, but they are no longer defined. In math mode, the control
symbol{\tt\ \backslash !\ }is still defined as \qt{negative thin
space}. The notation{\tt\ \backslash it\backslash\$ }gave earlier
{\it\pound}, %actually: $\mathchar"424 $, 
but now gives {\it\$}. The characters{\tt\ < > | }(and{\tt\ "}) in 
text mode were earlier only usable in typewriter fonts, but may now be
used in all text fonts.
The macros{\tt\ \backslash\{},{\tt\ \backslash\}\ }and{\tt\ \backslash
backslash }were earlier only defined in math mode, but are now valid
also in text mode.
\item{$\bullet$}In the macro{\tt\ \backslash hyphenation}, the letters
in ISO Latin 1 as well as macros for the letters in the dc fonts may
be used. Hence, one may 
type{\tt\ \backslash hyphenation\{ång-ström\} }or{\tt\ \backslash
hyphenation\{\backslash aa ng-str\backslash "om\}}. 
In both cases \qt{Ångström} will be correctly hyphenated. 
However, braces can not be used 
within{\tt\ \backslash hyphenation}. Thus, the notation{\tt\ \backslash 
hyphenation\{\{\backslash aa\}ng-str\backslash "om\} }yields an error
message in {\TeX}.
\item{$\bullet$}In the macros{\tt\ \backslash uppercase }and{\tt\ \backslash
lowercase}, the letters in ISO Latin 1 and macros for diacritical
marks may be used. Macros for letters of their own, like{\tt\ \backslash aa
\backslash oe \backslash l}, however, will not be treated correctly.
Also, the letters which change diacritical marks (like \p
d, \v D and \p t, \v T) will not be  treated correctly.
Thus, the command{\tt\ \backslash uppercase\{\backslash 
"o\backslash oe\backslash ss\backslash l\backslash k a\backslash
"\backslash i\backslash p t\} }produces
\qt{\uppercase{\"o\oe\ss\l\k a\"\i\p t}}.
In remedy of this, two new macros{\tt\ \backslash upcase }and{\tt\
\backslash lowcase }are introduced. 
They give correct treatment for all letters in the dc fonts, whether
they are typed directly or as macros, together with most letters
with diacritical marks. 
Thus, {\tt \backslash upcase\{\backslash 
"o\backslash oe\backslash ss\backslash l\backslash k a\backslash
"\backslash i\backslash p t\} }yields the result
\qt{\upcase{\"o\oe\ss\l\k a\"\i\p t}}.
An exception constitute the Lithuanian vowels with ogonek (\k i, \k u)
and the Latvian consonants with cedilla (\p g, \c k, \c l, \c n). 
{\TeX} gives an error message, if one tries to treat them 
with{\tt\ \backslash upcase }or{\tt\ \backslash lowcase}.
Also, the macros{\tt\ \backslash upcase }and{\tt\ \backslash lowcase
}do not work across paragraphs.
The active characters{\tt\ § ¡ £ « » }cannot be used with 
{\tt \backslash uppercase}, and hence not 
with{\tt\ \backslash upcase}. {\TeX} gives an error message by such a
use. The corresponding 
macros{\tt\ \backslash S \backslash !\ \backslash pound \backslash qt
}may, however, be used.
\item{$\bullet$}Print to file (with{\tt\ \backslash write}) 
--- e.g.\ in connection with preparation of an index  --- was
earlier problematic in {\TeX} for non-English letters. All letters in 
ISO Latin 1 are now printed as such, whether they are typed
directly or as macros. Other dc letters are printed as macros on
the form{\tt\ \backslash char `\caret\caret xy }. 
As an example, {\tt \backslash "o }is printed as{\tt\
ö},{\tt\ \backslash ss }is printed as{\tt\ ß}, 
{\tt \backslash oe }is printed as{\tt\ \backslash
char `\caret\caret f7 }, whereas{\tt\ \backslash k a }is printed
as{\tt\ \backslash char `\caret\caret a1 }. 
Since the macro{\tt\ \hbox{\backslash char `\caret\caret xy} }gobbles
up succeeding space, this means that space will disappear behind a
word which ends with such a macro. Letters which are not in the 
dc fonts, but which can be created with {\TeX}, will normally be
printed as macros. An exception constitute the Lithuanian vowels
with ogonek (\k i, \k u) and the Latvian consonants with
cedilla (\p g, \c k, \c l, \c n). 
These letters cannot be further treated with 
{\TeX} when they are printed to file. The problems with difficultly
readable or not treatable macros are reduced by using{\tt\ \backslash string}.
As an example, {\tt \backslash string\backslash k\backslash space 
a }produces{\tt\ \backslash k a}.
However, if the words printed to file are to be sorted, in
practice only the letters of ISO Latin 1 are appropriate in such a
print.
\item{$\bullet$}The dc fonts are used everywhere in text mode. In math
mode the cm fonts are used as mentioned in the {\TeX} book.
Below, the font dcr10 (ten-point Roman) is shown. 
The characters have the same position in all dc fonts.
The dc fonts contain the letters of the most important European
languages written with Latin letters. Unfortunately, it was impossible
to find room for the
Catalan letters \lp, \Lp, 
the Lithuanian letters \.e, \.E, \k i, \k I, \k u, \k U, \=u, \=U 
and the Latvian letters \=a, \=A, \=e, \=E, \=\i, \=I, \=u, \=U, 
\p g, \c G, \c k, \c K, \c l, \c L, \c n, \c N. 
From a Nordic point of view, it is also of interest, that the
Lappish letters \tj, \TJ\ are missing.
On the other hand, the letters \"y, \"Y do not enter into any European
language. The Dutch letter groups \y, \Y\ also seem to have a very
limited value of use.


\vfil\eject
% A testbed for font evaluation (see The METAFONTbook, Appendix H)

\tracinglostchars=0
\tolerance=1000
\raggedbottom
\nopagenumbers
\parindent=0pt
\newlinechar=`@
\hyphenpenalty=200
\doublehyphendemerits=30000

\newcount\m \newcount\n \newcount\p \newdimen\dim
\chardef\other=12

\def\today{\ifcase\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space\number\day, \number\year}
\def\hours{\n=\time \divide\n 60
  \m=-\n \multiply\m 60 \advance\m \time
  \twodigits\n\twodigits\m}
\def\twodigits#1{\ifnum #1<10 0\fi \number#1}

\def\init{%\message{@Name of the font to test = }
  \def\fontname{dcr10} %\read-1 to\fontname 
  \startfont
  %\message{Now type a test command (\string\help\space for help):}
  }
\def\startfont{\font\testfont=\fontname
%  \leftline{\sevenrm Test of \fontname\unskip\ on \today\ at \hours}
  \medskip
  \testfont \setbaselineskip
  \ifdim\fontdimen6\testfont<10pt \rightskip=0pt plus 20pt
  \else\rightskip=0pt plus 2em \fi
  \spaceskip=\fontdimen2\testfont % space between words (\raggedright)
  \xspaceskip=\fontdimen2\testfont \advance\xspaceskip by\fontdimen7\testfont}

{\catcode`\|=0 \catcode`\\=\other
|gdef|help{|message{%
\init switches to another font;@%
\end or \bye finishes the run;@%
\table prints the font layout in tabular format;@%
\text prints a sample text, assuming TeX text font conventions;@%
\sample combines \table and \text;@%
\mixture mixes a background character with a series of others;@%
\alternation interleaves a background character with a series;@%
\alphabet prints all lowercase letters within a given background;@%
\ALPHABET prints all uppercase letters within a given background;@%
\series prints a series of letters within a given background;@%
\lowers prints a comprehensive test of lowercase;@%
\uppers prints a comprehensive test of uppercase;@%
\digits prints a comprehensive test of numerals;@%
\math prints a comprehensive test of TeX math italic;@%
\names prints a text that mixes upper and lower case;@%
\punct prints a punctuation test;@%
\bigtest combines many of the above routines;@%
\help repeats this message;@%
and you can use ordinary TeX commands (e.g., to \input a file).}}}

\def\setbaselineskip{\setbox0=\hbox{\n=0
\loop\char\n \ifnum \n<255 \advance\n 1 \repeat}
\baselineskip=6pt \advance\baselineskip\ht0 \advance\baselineskip\dp0 }

\def\setchar#1{{\escapechar-1\message{\string#1 character = }%
  \def\do##1{\catcode`##1=\other}\dospecials
  \read-1 to\next
  \expandafter\finsetchar\next\next#1}}
\def\finsetchar#1#2\next#3{\global\chardef#3=`#1
  \ifnum #3=`\# \global\chardef#3=#2 \fi}
\def\promptthree{\setchar\background
  \setchar\starting \setchar\ending}

\def\mixture{\promptthree \domix\mixpattern}
\def\alternation{\promptthree \domix\altpattern}
\def\mixpattern{\0\1\0\0\1\1\0\0\0\1\1\1\0\1}
\def\altpattern{\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0}
\def\domix#1{\par\chardef\0=\background \n=\starting
  \loop \chardef\1=\n #1\endgraf
  \ifnum \n<\ending \advance\n 1 \repeat}

\def\!{\discretionary{\background}{\background}{\background}}
\def\series{\promptthree \!\doseries\starting\ending\par}
\def\doseries#1#2{\n=#1\loop\char\n\!\ifnum\n<#2\advance\n 1 \repeat}
\def\complower{\!\doseries{`a}{`z}\doseries{'31}{'34}\par}
\def\compupper{\!\doseries{`A}{`Z}\doseries{'35}{'37}\par}
\def\compdigs{\!\doseries{`0}{`9}\par}
\def\alphabet{\setchar\background\complower}
\def\ALPHABET{\setchar\background\compupper}

\def\lowers{\docomprehensive\complower{`a}{`z}{'31}{'34}}
\def\uppers{\docomprehensive\compupper{`A}{`Z}{'35}{'37}}
\def\digits{\docomprehensive\compdigs{`0}{`4}{`5}{`9}}
\def\docomprehensive#1#2#3#4#5{\par\chardef\background=#2
  \loop{#1} \ifnum\background<#3\m=\background\advance\m 1
  \chardef\background=\m \repeat \chardef\background=#4
  \loop{#1} \ifnum\background<#5\m=\background\advance\m 1
  \chardef\background=\m \repeat}

\def\names{ {\AA}ngel\aa\ Beatrice Claire
  Diana \'Erica Fran\c{c}oise Ginette H\'el\`ene Iris
  Jackie K\=aren {\L}au\.ra Mar{\'\i}a N\H{a}ta{\l}{\u\i}e {\O}ctave
  Pauline Qu\^eneau Roxanne Sabine T\~a{\'\j}a Ur\v{s}ula
  Vivian Wendy Xanthippe Yv{\o}nne Z\"azilie\par}
\def\punct{\par\dopunct{min}\dopunct{pig}\dopunct{hid}
  \dopunct{HIE}\dopunct{TIP}\dopunct{fluff}
  \$1,234.56 + 7/8 = 9\% @ \#0\par}
\def\dopunct#1{#1,\ #1:\ #1;\ `#1'\ ?`#1?\ !`#1!\ (#1)\ [#1]\ #1*\ #1.\par}

\def\bigtest{\sample
  hamburgefonstiv HAMBURGEFONSTIV\par
  \names \punct \lowers \uppers \digits}

\def\math{\textfont1=\testfont \skewchar\testfont=\skewtrial
 \mathchardef\Gamma="100 \mathchardef\Delta="101
 \mathchardef\Theta="102 \mathchardef\Lambda="103 \mathchardef\Xi="104
 \mathchardef\Pi="105 \mathchardef\Sigma="106 \mathchardef\Upsilon="107
 \mathchardef\Phi="108 \mathchardef\Psi="109 \mathchardef\Omega="10A
 \def\ii{i} \def\jj{j}
 \def\\##1{|##1|+}\mathtrial
 \def\\##1{##1_2+}\mathtrial
 \def\\##1{##1^2+}\mathtrial
 \def\\##1{##1/2+}\mathtrial
 \def\\##1{2/##1+}\mathtrial
 \def\\##1{##1,{}+}\mathtrial
 \def\\##1{d##1+}\mathtrial
 \let\ii=\imath \let\jj=\jmath \def\\##1{\hat##1+}\mathtrial}
\newcount\skewtrial \skewtrial='177
\def\mathtrial{$\\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 \\a \\b \\c \\d \\e \\f \\g
 \\h \\\ii \\\jj \\k \\l \\m \\n \\o \\p \\q \\r \\s \\t \\u \\v \\w \\x \\y
 \\z \\\alpha \\\beta \\\gamma \\\delta \\\epsilon \\\zeta \\\eta \\\theta
 \\\iota \\\kappa \\\lambda \\\mu \\\nu \\\xi \\\pi \\\rho \\\sigma \\\tau
 \\\upsilon \\\phi \\\chi \\\psi \\\omega \\\vartheta \\\varpi \\\varphi
 \\\Gamma \\\Delta \\\Theta \\\Lambda \\\Xi \\\Pi \\\Sigma \\\Upsilon
 \\\Phi \\\Psi \\\Omega \\\partial \\\ell \\\wp$\par}
\def\mathsy{\begingroup\skewtrial='060 % for math symbol font tests
 \def\mathtrial{$\\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$\par}
 \math\endgroup}

\def\oct#1{\hbox{\rm\'{}\kern-.2em\it#1\/\kern.05em}} % octal constant
\def\hex#1{\hbox{\rm\H{}\tt#1}} % hexadecimal constant
\def\setdigs#1"#2{\gdef\h{#2}% \h=hex prefix; \0\1=corresponding octal
 \m=\n \divide\m by 64 \xdef\0{\the\m}%
 \multiply\m by-64 \advance\m by\n \divide\m by 8 \xdef\1{\the\m}}
\def\testrow{\setbox0=\hbox{\penalty 1\def\\{\char"\h}%
 \\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F%
 \global\p=\lastpenalty}} % \p=1 if none of the characters exist
\def\oddline{\cr
  \noalign{\nointerlineskip}
  \multispan{19}\hrulefill&
  \setbox0=\hbox{\lower 2.3pt\hbox{\hex{\h x}}}\smash{\box0}\cr
  \noalign{\nointerlineskip}}
\newif\ifskipping
\def\evenline{\loop\skippingfalse
 \ifnum\n<256 \m=\n \divide\m 16 \chardef\next=\m
 \expandafter\setdigs\meaning\next \testrow
 \ifnum\p=1 \skippingtrue \fi\fi
 \ifskipping \global\advance\n 16 \repeat
 \ifnum\n=256 \let\next=\endchart\else\let\next=\morechart\fi
 \next}
\def\morechart{\cr\noalign{\hrule\penalty5000}
 \chartline \oddline \m=\1 \advance\m 1 \xdef\1{\the\m}
 \chartline \evenline}
\def\chartline{&\oct{\0\1x}&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&}
\def\chartstrut{\lower4.5pt\vbox to14pt{}}
\def\table{$$\global\n=0
  \halign to\hsize\bgroup
    \chartstrut##\tabskip0pt plus10pt&
    &\hfil##\hfil&\vrule##\cr
    \lower6.5pt\null
    &&&\oct0&&\oct1&&\oct2&&\oct3&&\oct4&&\oct5&&\oct6&&\oct7&\evenline}
\def\endchart{\cr\noalign{\hrule}
  \raise11.5pt\null&&&\hex 8&&\hex 9&&\hex A&&\hex B&
  &\hex C&&\hex D&&\hex E&&\hex F&\cr\egroup$$\par}
\def\:{\setbox0=\hbox{\char\n}%
  \ifdim\ht0>7.5pt\reposition
  \else\ifdim\dp0>2.5pt\reposition\fi\fi
  \box0\global\advance\n 1 }
\def\reposition{\setbox0=\vbox{\kern2pt\box0}\dim=\dp0
  \advance\dim 2pt \dp0=\dim}
\def\centerlargechars{
  \def\reposition{\setbox0=\hbox{$\vcenter{\kern2pt\box0\kern2pt}$}}}

\def\text{{\advance\baselineskip-4pt
\setbox0=\hbox{abcdefghijklmnopqrstuvwxyz}
\ifdim\hsize>2\wd0 \ifdim 15pc>2\wd0 \hsize=15pc \else \hsize=2\wd0 \fi\fi
On November 14, 1885, Senator \& Mrs.~Leland Stanford called
together at their San Francisco mansion the 24~prominent men who had
been chosen as the first trustees of The Leland Stanford Junior University.
They handed to the board the Founding Grant of the University, which they
had executed three days before. This document---with various amendments,
legislative acts, and court decrees---remains as the University's charter.
In bold, sweeping language it stipulates that the objectives of the University
are ``to qualify students for personal success and direct usefulness in life;
and to promote the publick welfare by exercising an influence in behalf of
humanity and civilization, teaching the blessings of liberty regulated by
law, and inculcating love and reverence for the great principles of
government as derived from the inalienable rights of man to life, liberty,
and the pursuit of happiness.'' \moretext
(!`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!)\par}}
\def\moretext{?`But aren't Kafka's Schlo{\ss} and {\AE}sop's {\OE}uvres
often na{\"\i}ve  vis-\`a-vis the d{\ae}monic ph{\oe}nix's official r\^ole
in fluffy souffl\'es? }
\def\omitaccents{\let\moretext=\relax}

\def\sample{\table\text}

\ifx\noinit!\else\init\fi


\table
\end