Debian Codegraph @

texmf-dist/doc/fonts/fontinst/encspecs/ot1draft.etx

raw
1 \relax
2 \documentclass[twocolumn]{article}
3 \usepackage[specification]{fontdoc}[2004/11/28]
4
5 \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
6
7 \showbranches
8
9 \begin{document}
10
11 \title{\texttt{OT1} encoding draft specification}
12 \author{Lars Hellstr\"om}
13 \date{2004/12/16}
14 \maketitle
15
16 \begin{abstract}
17 The \texttt{OT1} encoding is an attempt to describe the encoding of
18 the text fonts in Donald~E.~Knuth's \emph{Computer Modern} family
19 of fonts~\cite{ComputerModern}. This is an impossibile goal, since
20 these fonts present no less than five different encodings, but they
21 are nontheless largely treated by \LaTeX\ as having identical
22 encodings. Due to the ambiguities this creates, and in view of that
23 the \texttt{T1} encoding supersedes \texttt{OT1} as text font
24 encoding, there is little point in using the text commands for
25 distiguishing mandatory features of \texttt{OT1} from the ordinary.
26
27 \texttt{OT1} is however also used as a math font encoding (to go
28 with \texttt{OML}, \texttt{OMS}, and \texttt{OMX}), and that use is
29 today the by far most important since there is no obvious alternative
30 to the standard math font set-up. Therefore this specification
31 considers a feature of the encoding to be mandatory if it is
32 (i)~necessary for the standard math set-up or (ii)~is a text feature
33 which works for all encoding variants.
34 \end{abstract}
35
36 \encoding
37 \needsfontinstversion{1.928}
38
39
40
41 \begincomment
42 \section{Encoding variants}
43
44 This document aims to record all the encoding variations that are
45 present within the set of fonts classified by \LaTeX\ as having the
46 \texttt{OT1} encoding. It turns out that they can all be described
47 using only two parameters. One of these might be called
48 `\textit{ligaturing}' as one factor it affects is how many ligatures
49 there will be in the font. The other parameter is best called
50 `\textit{italicizing}' as it is different between italic and
51 non-italic fonts. Most of the Computer Modern fonts have
52 \(\mathit{ligaturing} = 2\) and \(\mathit{italicizing} = 0\).
53
54 \endcomment
55 \setint{ligaturing}{2}
56 \setint{italicizing}{0}
57
58
59 \begincomment
60
61
62 \section{Mandatory characters}
63
64 \subsection{Latin letters}
65 \endcomment
66
67 \nextslot{16}
68 \setslot{dotlessi}
69 \Unicode{0131}{LATIN SMALL LETTER DOTLESS I}
70 \comment{A dotless i `\i', used to produce accented letters such as
71 `\=\i'. It is not used for math.}
72 \endsetslot
73
74 \setslot{dotlessj}
75 \Unicode{F6BE}{LATIN SMALL LETTER DOTLESS J}
76 \comment{A dotless j `\j', used to produce accented letters such as
77 `\=\j'. It is not used for math. The Unicode standard does not
78 define this character, but Adobe has assigned code point
79 \texttt{U+F6BE} (which is in the private use subarea assigned by
80 Adobe) to it.}
81 \endsetslot
82
83 \nextslot{25}
84 \setslot{germandbls}
85 \Unicode{00DF}{LATIN SMALL LETTER SHARP S}
86 \comment{This slot is not used in math.}
87 \endsetslot
88
89 \setslot{ae}
90 \Unicode{00E6}{LATIN SMALL LETTER AE}
91 \comment{This slot is not used in math.}
92 \endsetslot
93
94 \setslot{oe}
95 \Unicode{0153}{LATIN SMALL LIGATURE OE}
96 \comment{This is a single letter, and should not be faked with `oe'.
97 It is not used in math.}
98 \endsetslot
99
100 \setslot{oslash}
101 \Unicode{00F8}{LATIN SMALL LETTER O WITH STROKE}
102 \comment{This slot is not used in math.}
103 \endsetslot
104
105 \setslot{AE}
106 \Unicode{00C6}{LATIN CAPITAL LETTER AE}
107 \comment{This slot is not used in math.}
108 \endsetslot
109
110 \setslot{OE}
111 \Unicode{0152}{LATIN CAPITAL LIGATURE OE}
112 \comment{This is a single letter, and should not be faked with
113 `OE'. It is not used in math.}
114 \endsetslot
115
116 \setslot{Oslash}
117 \Unicode{00D8}{LATIN CAPITAL LETTER O WITH STROKE}
118 \comment{This slot is not used in math.}
119 \endsetslot
120
121
122 \nextslot{65}
123 \setslot{A}
124 \Unicode{0041}{LATIN CAPITAL LETTER A}
125 \label{A}
126 \endsetslot
127
128 \setslot{B}
129 \Unicode{0042}{LATIN CAPITAL LETTER B}
130 \endsetslot
131
132 \setslot{C}
133 \Unicode{0043}{LATIN CAPITAL LETTER C}
134 \endsetslot
135
136 \setslot{D}
137 \Unicode{0044}{LATIN CAPITAL LETTER D}
138 \endsetslot
139
140 \setslot{E}
141 \Unicode{0045}{LATIN CAPITAL LETTER E}
142 \endsetslot
143
144 \setslot{F}
145 \Unicode{0046}{LATIN CAPITAL LETTER F}
146 \endsetslot
147
148 \setslot{G}
149 \Unicode{0047}{LATIN CAPITAL LETTER G}
150 \endsetslot
151
152 \setslot{H}
153 \Unicode{0048}{LATIN CAPITAL LETTER H}
154 \endsetslot
155
156 \setslot{I}
157 \Unicode{0049}{LATIN CAPITAL LETTER I}
158 \endsetslot
159
160 \setslot{J}
161 \Unicode{004A}{LATIN CAPITAL LETTER J}
162 \endsetslot
163
164 \setslot{K}
165 \Unicode{004B}{LATIN CAPITAL LETTER K}
166 \endsetslot
167
168 \setslot{L}
169 \Unicode{004C}{LATIN CAPITAL LETTER L}
170 \endsetslot
171
172 \setslot{M}
173 \Unicode{004D}{LATIN CAPITAL LETTER M}
174 \endsetslot
175
176 \setslot{N}
177 \Unicode{004E}{LATIN CAPITAL LETTER N}
178 \endsetslot
179
180 \setslot{O}
181 \Unicode{004F}{LATIN CAPITAL LETTER O}
182 \endsetslot
183
184 \setslot{P}
185 \Unicode{0050}{LATIN CAPITAL LETTER P}
186 \endsetslot
187
188 \setslot{Q}
189 \Unicode{0051}{LATIN CAPITAL LETTER Q}
190 \endsetslot
191
192 \setslot{R}
193 \Unicode{0052}{LATIN CAPITAL LETTER R}
194 \endsetslot
195
196 \setslot{S}
197 \Unicode{0053}{LATIN CAPITAL LETTER S}
198 \endsetslot
199
200 \setslot{T}
201 \Unicode{0054}{LATIN CAPITAL LETTER T}
202 \endsetslot
203
204 \setslot{U}
205 \Unicode{0055}{LATIN CAPITAL LETTER U}
206 \endsetslot
207
208 \setslot{V}
209 \Unicode{0056}{LATIN CAPITAL LETTER V}
210 \endsetslot
211
212 \setslot{W}
213 \Unicode{0057}{LATIN CAPITAL LETTER W}
214 \endsetslot
215
216 \setslot{X}
217 \Unicode{0058}{LATIN CAPITAL LETTER X}
218 \endsetslot
219
220 \setslot{Y}
221 \Unicode{0059}{LATIN CAPITAL LETTER Y}
222 \label{Y}
223 \endsetslot
224
225 \setslot{Z}
226 \Unicode{005A}{LATIN CAPITAL LETTER Z}
227 \endsetslot
228
229
230 \nextslot{97}
231 \setslot{a}
232 \Unicode{0061}{LATIN SMALL LETTER A}
233 \endsetslot
234
235 \setslot{b}
236 \Unicode{0062}{LATIN SMALL LETTER B}
237 \endsetslot
238
239 \setslot{c}
240 \Unicode{0063}{LATIN SMALL LETTER C}
241 \endsetslot
242
243 \setslot{d}
244 \Unicode{0064}{LATIN SMALL LETTER D}
245 \endsetslot
246
247 \setslot{e}
248 \Unicode{0065}{LATIN SMALL LETTER E}
249 \endsetslot
250
251 \setslot{f}
252 \Unicode{0066}{LATIN SMALL LETTER F}
253 \ifnumber{\int{ligaturing}}={2}\then
254 \ligature{LIG}{f}{ff}
255 \ligature{LIG}{i}{fi}
256 \ligature{LIG}{l}{fl}
257 \Fi
258 \endsetslot
259
260 \setslot{g}
261 \Unicode{0067}{LATIN SMALL LETTER G}
262 \endsetslot
263
264 \setslot{h}
265 \Unicode{0068}{LATIN SMALL LETTER H}
266 \endsetslot
267
268 \setslot{i}
269 \Unicode{0069}{LATIN SMALL LETTER I}
270 \endsetslot
271
272 \setslot{j}
273 \Unicode{006A}{LATIN SMALL LETTER J}
274 \endsetslot
275
276 \setslot{k}
277 \Unicode{006B}{LATIN SMALL LETTER K}
278 \endsetslot
279
280 \setslot{l}
281 \Unicode{006C}{LATIN SMALL LETTER L}
282 \endsetslot
283
284 \setslot{m}
285 \Unicode{006D}{LATIN SMALL LETTER M}
286 \endsetslot
287
288 \setslot{n}
289 \Unicode{006E}{LATIN SMALL LETTER N}
290 \endsetslot
291
292 \setslot{o}
293 \Unicode{006F}{LATIN SMALL LETTER O}
294 \endsetslot
295
296 \setslot{p}
297 \Unicode{0070}{LATIN SMALL LETTER P}
298 \endsetslot
299
300 \setslot{q}
301 \Unicode{0071}{LATIN SMALL LETTER Q}
302 \endsetslot
303
304 \setslot{r}
305 \Unicode{0072}{LATIN SMALL LETTER R}
306 \endsetslot
307
308 \setslot{s}
309 \Unicode{0073}{LATIN SMALL LETTER S}
310 \endsetslot
311
312 \setslot{t}
313 \Unicode{0074}{LATIN SMALL LETTER T}
314 \endsetslot
315
316 \setslot{u}
317 \Unicode{0075}{LATIN SMALL LETTER U}
318 \endsetslot
319
320 \setslot{v}
321 \Unicode{0076}{LATIN SMALL LETTER V}
322 \endsetslot
323
324 \setslot{w}
325 \Unicode{0077}{LATIN SMALL LETTER W}
326 \endsetslot
327
328 \setslot{x}
329 \Unicode{0078}{LATIN SMALL LETTER X}
330 \endsetslot
331
332 \setslot{y}
333 \Unicode{0079}{LATIN SMALL LETTER Y}
334 \endsetslot
335
336 \setslot{z}
337 \Unicode{007A}{LATIN SMALL LETTER Z}
338 \endsetslot
339
340
341 \begincomment
342 \subsection{Greek letters}
343 \endcomment
344
345 \nextslot{0}
346 \setslot{Gamma}
347 \Unicode{0393}{GREEK CAPITAL LETTER GAMMA}
348 \endsetslot
349
350 \setslot{Delta}
351 \Unicode{0394}{GREEK CAPITAL LETTER DELTA}
352 \endsetslot
353
354 \setslot{Theta}
355 \Unicode{0398}{GREEK CAPITAL LETTER THETA}
356 \endsetslot
357
358 \setslot{Lambda}
359 \Unicode{039B}{GREEK CAPITAL LETTER LAMBDA}
360 % Unicode's preferred name for this character seems to be
361 % GREEK CAPITAL LETTER LAMDA, i.e., without the `B'. Why?
362 % GREEK CAPITAL LETTER LAMBDA is listed as an alternative name.
363 \endsetslot
364
365 \setslot{Xi}
366 \Unicode{039E}{GREEK CAPITAL LETTER XI}
367 \endsetslot
368
369 \setslot{Pi}
370 \Unicode{03A0}{GREEK CAPITAL LETTER PI}
371 \endsetslot
372
373 \setslot{Sigma}
374 \Unicode{03A3}{GREEK CAPITAL LETTER SIGMA}
375 \endsetslot
376
377 \setslot{Upsilon1}
378 \Unicode{03D2}{GREEK UPSILON WITH HOOK SYMBOL}
379 \comment{This is primarily a math character and it is should
380 be visually distinct from the character in slot~\ref{Y}. This is
381 not generally the case for the normal Upsilon
382 \textunicode{03A5}{GREEK CAPITAL LETTER UPSILON}, which is by
383 the way what usually has the glyph name \texttt{Upsilon}.
384 An argument for the latter is however that all the purely
385 mathematical Upsilons that exist in the Unicode standard are
386 described as variants of the non-hook character.}
387 \endsetslot
388
389 \setslot{Phi}
390 \Unicode{03A6}{GREEK CAPITAL LETTER PHI}
391 \endsetslot
392
393 \setslot{Psi}
394 \Unicode{03A8}{GREEK CAPITAL LETTER PSI}
395 \endsetslot
396
397 \setslot{Omega}
398 \Unicode{03A9}{GREEK CAPITAL LETTER OMEGA}
399 \endsetslot
400
401
402 \begincomment
403 \subsection{Digits}
404 \endcomment
405
406 \nextslot{48}
407 \setslot{zero}
408 \Unicode{0030}{DIGIT ZERO}
409 \endsetslot
410
411 \setslot{one}
412 \Unicode{0031}{DIGIT ONE}
413 \endsetslot
414
415 \setslot{two}
416 \Unicode{0032}{DIGIT TWO}
417 \endsetslot
418
419 \setslot{three}
420 \Unicode{0033}{DIGIT THREE}
421 \endsetslot
422
423 \setslot{four}
424 \Unicode{0034}{DIGIT FOUR}
425 \endsetslot
426
427 \setslot{five}
428 \Unicode{0035}{DIGIT FIVE}
429 \endsetslot
430
431 \setslot{six}
432 \Unicode{0036}{DIGIT SIX}
433 \endsetslot
434
435 \setslot{seven}
436 \Unicode{0037}{DIGIT SEVEN}
437 \endsetslot
438
439 \setslot{eight}
440 \Unicode{0038}{DIGIT EIGHT}
441 \endsetslot
442
443 \setslot{nine}
444 \Unicode{0039}{DIGIT NINE}
445 \endsetslot
446
447
448 \begincomment
449 \subsection{Accents}
450 \endcomment
451
452 \nextslot{18}
453 \setslot{grave}
454 \Unicode{0300}{COMBINING GRAVE ACCENT}
455 \endsetslot
456
457 \setslot{acute}
458 \Unicode{0301}{COMBINING ACUTE ACCENT}
459 \endsetslot
460
461 \setslot{caron}
462 \Unicode{030C}{COMBINING CARON}
463 \comment{The caron or h\'a\v cek accent `\v{}'.}
464 \endsetslot
465
466 \setslot{breve}
467 \Unicode{0306}{COMBINING BREVE}
468 \endsetslot
469
470 \setslot{macron}
471 \Unicode{0304}{COMBINING MACRON}
472 \endsetslot
473
474 \setslot{ring}
475 \Unicode{030A}{COMBINING RING ABOVE}
476 \comment{The text definition of `\verb|\r{A}|' assumes that this
477 glyph has the same width as that in slot~\ref{A}.}
478 \endsetslot
479
480 \setslot{cedilla}
481 \Unicode{0327}{COMBINING CEDILLA}
482 \comment{This slot is not required for math, but is used by
483 the \cs{c} \LaTeX\ command.}
484 \endsetslot
485
486
487 \nextslot{94}
488 \setslot{circumflex}
489 \Unicode{0302}{COMBINING CIRCUMFLEX ACCENT}
490 \Unicode{005E}{CIRCUMFLEX ACCENT}
491 \endsetslot
492
493 \ifnumber{\int{ligaturing}}>{0}\then
494
495 \setslot{dotaccent}
496 \Unicode{0307}{COMBINING DOT ABOVE}
497 \label{dotaccent}
498 \endsetslot
499
500 \begincomment
501 \par\medskip
502 Note that the \(\mathit{ligaturing} = 0\) assignment to
503 slot~\ref{underscore} is ordinary, not mandatory.
504 \endcomment
505
506 \Fi
507
508
509 \nextslot{126}
510 \setslot{tilde}
511 \Unicode{0303}{COMBINING TILDE}
512 \Unicode{007E}{TILDE}
513 \endsetslot
514
515 \setslot{dieresis}
516 \Unicode{0308}{COMBINING DIAERESIS}
517 \endsetslot
518
519
520 \begincomment
521 \subsection{Symbols}
522 \endcomment
523
524 \nextslot{33}
525 \setslot{exclam}
526 \Unicode{0021}{EXCLAMATION MARK}
527 \Ligature{LIG}{quoteleft}{exclamdown}
528 \endsetslot
529
530 \skipslots{1}
531
532 \setslot{numbersign}
533 \Unicode{0023}{NUMBER SIGN}
534 \comment{This slot is not used for math.}
535 \endsetslot
536
537 \ifnumber{\int{italicizing}}={0}\then
538
539 \setslot{dollar}
540 \Unicode{0024}{DOLLAR SIGN}
541 \endsetslot
542
543 \Else
544
545 \setslot{sterling}
546 \Unicode{00A3}{POUND SIGN}
547 \endsetslot
548
549 \Fi
550
551 \setslot{percent}
552 \Unicode{0025}{PERCENT SIGN}
553 \comment{This slot is not used for math.}
554 \endsetslot
555
556 \setslot{ampersand}
557 \Unicode{0026}{AMPERSAND}
558 \comment{This slot is not used for math.}
559 \endsetslot
560
561 \setslot{quoteright}
562 \Unicode{2019}{RIGHT SINGLE QUOTATION MARK}
563 \comment{This slot is not used for math.}
564 \ifnumber{\int{ligaturing}}>{0}\then
565 \Ligature{LIG}{quoteright}{quotedblright}
566 \Fi
567 \endsetslot
568
569 \setslot{parenleft}
570 \Unicode{0028}{LEFT PARENTHESIS}
571 \endsetslot
572
573 \setslot{parenright}
574 \Unicode{0029}{RIGHT PARENTHESIS}
575 \endsetslot
576
577 \setslot{asterisk}
578 \Unicode{002A}{ASTERISK}
579 \comment{This slot is not used for math.}
580 \endsetslot
581
582 \setslot{plus}
583 \Unicode{002B}{PLUS SIGN}
584 \endsetslot
585
586 \setslot{comma}
587 \Unicode{002C}{COMMA}
588 \comment{This slot is not used for math.}
589 \endsetslot
590
591 \setslot{hyphen}
592 \Unicode{002D}{HYPHEN-MINUS}
593 \comment{This slot is not used for math.}
594 \ifnumber{\int{ligaturing}}>{0}\then
595 \Ligature{LIG}{hyphen}{endash}
596 \Fi
597 \endsetslot
598
599 \setslot{period}
600 \Unicode{002E}{FULL STOP}
601 \comment{This slot is not used for math.}
602 \endsetslot
603
604 \setslot{slash}
605 \Unicode{002F}{SOLIDUS}
606 \endsetslot
607
608 \nextslot{58}
609 \setslot{colon}
610 \Unicode{003A}{COLON}
611 \endsetslot
612
613 \setslot{semicolon}
614 \Unicode{003B}{SEMICOLON}
615 \endsetslot
616
617 \skipslots{1}
618
619 \setslot{equal}
620 \Unicode{003D}{EQUALS SIGN}
621 \endsetslot
622
623 \skipslots{1}
624
625 \setslot{question}
626 \Unicode{003F}{QUESTION MARK}
627 \Ligature{LIG}{quoteleft}{questiondown}
628 \endsetslot
629
630 \setslot{at}
631 \Unicode{0040}{COMMERCIAL AT}
632 \comment{This slot is not used for math.}
633 \endsetslot
634
635 \nextslot{91}
636 \setslot{bracketleft}
637 \Unicode{005B}{LEFT SQUARE BRACKET}
638 \endsetslot
639
640 \skipslots{1}
641
642 \setslot{bracketright}
643 \Unicode{005D}{RIGHT SQUARE BRACKET}
644 \endsetslot
645
646 \nextslot{96}
647 \setslot{quoteleft}
648 \Unicode{2018}{LEFT SINGLE QUOTATION MARK}
649 \comment{This slot is not used for math.}
650 \ifnumber{\int{ligaturing}}>{0}\then
651 \Ligature{LIG}{quoteleft}{quotedblleft}
652 \Fi
653 \endsetslot
654
655
656
657 \begincomment
658 \section{Ordinary characters}
659
660 \subsection{Letters}
661 \endcomment
662
663 \ifnumber{\int{ligaturing}}={2}\then
664
665 \nextslot{11}
666 \setslot{ff}
667 \charseq{
668 \Unicode{0066}{LATIN SMALL LETTER F}
669 \Unicode{0066}{LATIN SMALL LETTER F}
670 }
671 \comment{This glyph should be two characters wide in a monowidth
672 font.}
673 \ligature{LIG}{i}{ffi}
674 \ligature{LIG}{l}{ffl}
675 \endsetslot
676
677 \setslot{fi}
678 \charseq{
679 \Unicode{0066}{LATIN SMALL LETTER F}
680 \Unicode{0069}{LATIN SMALL LETTER I}
681 }
682 \comment{This glyph should be two characters wide in a monowidth
683 font.}
684 \endsetslot
685
686 \setslot{fl}
687 \charseq{
688 \Unicode{0066}{LATIN SMALL LETTER F}
689 \Unicode{006C}{LATIN SMALL LETTER L}
690 }
691 \comment{This glyph should be two characters wide in a monowidth
692 font.}
693 \endsetslot
694
695 \setslot{ffi}
696 \charseq{
697 \Unicode{0066}{LATIN SMALL LETTER F}
698 \Unicode{0066}{LATIN SMALL LETTER F}
699 \Unicode{0069}{LATIN SMALL LETTER I}
700 }
701 \comment{This glyph should be three characters wide in a monowidth
702 font.}
703 \endsetslot
704
705 \setslot{ffl}
706 \charseq{
707 \Unicode{0066}{LATIN SMALL LETTER F}
708 \Unicode{0066}{LATIN SMALL LETTER F}
709 \Unicode{006C}{LATIN SMALL LETTER L}
710 }
711 \comment{This glyph should be three characters wide in a monowidth
712 font.}
713 \endsetslot
714
715 \Fi
716
717 \nextslot{"8A}
718 \setslot{Lslash}
719 \Unicode{0141}{LATIN CAPITAL LETTER L WITH STROKE}
720 \comment{The letter `\L'.}
721 \endsetslot
722
723 \nextslot{"AA}
724 \setslot{lslash}
725 \Unicode{0142}{LATIN SMALL LETTER L WITH STROKE}
726 \comment{The letter `\l'.}
727 \endsetslot
728
729
730 \begincomment
731 \subsection{Accents}
732 \endcomment
733
734 \ifnumber{\int{ligaturing}}>{0}\then
735
736 \nextslot{125}
737 \setslot{hungarumlaut}
738 \Unicode{030B}{COMBINING DOUBLE ACUTE ACCENT}
739 \comment{The long Hungarian umlaut `\H{}'.}
740 \endsetslot
741
742 \Fi
743
744 \begincomment
745 \subsection{Symbols}
746 \endcomment
747
748 \ifnumber{\int{ligaturing}}<{2}\then
749
750 \nextslot{11}
751 \setslot{arrowup}
752 \Unicode{2191}{UPWARDS ARROW}
753 \endsetslot
754
755 \setslot{arrowdown}
756 \Unicode{2193}{DOWNWARDS ARROW}
757 \endsetslot
758
759 \setslot{quotesingle}
760 \Unicode{0027}{APOSTROPHE}
761 \endsetslot
762
763 \setslot{exclamdown}
764 \Unicode{00A1}{INVERTED EXCLAMATION MARK}
765 \endsetslot
766
767 \setslot{questiondown}
768 \Unicode{00BF}{INVERTED QUESTION MARK}
769 \endsetslot
770
771 \Fi
772
773 \nextslot{32}
774 \ifnumber{\int{ligaturing}}>{0}\then
775
776 \setslot{lslashslash}
777 \comment{When this character is followed by
778 \textunicode{004C}{LATIN CAPITAL LETTER L} then the combined
779 result is \textunicode{0141}{LATIN CAPITAL LETTER L WITH STROKE};
780 this is used by the \cs{L} command. When this character is
781 followed by \textunicode{006C}{LATIN SMALL LETTER L} then the
782 combined result is \textunicode{0142}{LATIN SMALL LETTER L WITH
783 STROKE}; this is used by the \cs{l} command. There are no further
784 semantics for this character.}
785 \ligature{LIG}{L}{Lslash}
786 \ligature{LIG}{l}{lslash}
787 \comment{These ligatures, and the characters they point to, were
788 added by Alan Jeffrey early in \textsf{fontinst} development in
789 order to allow the character in this slot to exhibit the correct
790 behaviour even in fonts where there is no corresponding glyph.}
791 \endsetslot
792
793 \Else
794
795 \setslot{visiblespace}
796 \Unicode{2423}{OPEN BOX}
797 \comment{A visible space glyph `\textvisiblespace'.}
798 \endsetslot
799
800 \Fi
801
802
803 \nextslot{34}
804 \ifnumber{\int{ligaturing}}>{0}\then
805
806 \setslot{quotedblright}
807 \Unicode{201D}{RIGHT DOUBLE QUOTATION MARK}
808 \endsetslot
809
810 \Else
811
812 \setslot{quotedbl}
813 \Unicode{0022}{QUOTATION MARK}
814 \endsetslot
815
816 \Fi
817
818 \nextslot{60}
819 \ifnumber{\int{ligaturing}}={2}\then
820
821 \setslot{exclamdown}
822 \Unicode{00A1}{INVERTED EXCLAMATION MARK}
823 \endsetslot
824
825 \skipslots{1}
826
827 \setslot{questiondown}
828 \Unicode{00BF}{INVERTED QUESTION MARK}
829 \endsetslot
830
831 \Else
832
833 \setslot{less}
834 \Unicode{003C}{LESS-THAN SIGN}
835 \endsetslot
836
837 \skipslots{1}
838
839 \setslot{greater}
840 \Unicode{003E}{GREATER-THAN SIGN}
841 \endsetslot
842
843 \Fi
844
845 \nextslot{92}
846 \ifnumber{\int{ligaturing}}>{0}\then
847
848 \setslot{quotedblleft}
849 \Unicode{201C}{LEFT DOUBLE QUOTATION MARK}
850 \endsetslot
851
852 \Else
853
854 \setslot{backslash}
855 \Unicode{005C}{REVERSE SOLIDUS}
856 \endsetslot
857
858 \nextslot{95}
859 \setslot{underscore}
860 \Unicode{005F}{LOW LINE}
861 \label{underscore}
862 \endsetslot
863
864 \begincomment
865 \par\medskip
866 Note that the \(\mathit{ligaturing} > 0\) assignment to
867 slot~\ref{dotaccent} is mandatory, not ordinary.
868 \endcomment
869
870 \Fi
871
872
873 \nextslot{123}
874 \ifnumber{\int{ligaturing}}>{0}\then
875
876 \setslot{endash}
877 \Unicode{2013}{EN DASH}
878 \Ligature{LIG}{hyphen}{emdash}
879 \endsetslot
880
881 \setslot{emdash}
882 \Unicode{2014}{EM DASH}
883 \comment{In a monowidth font this character is preferably given the
884 width of two normal characters.}
885 \endsetslot
886
887 \Else
888
889 \setslot{braceleft}
890 \Unicode{007B}{LEFT CURLY BRACKET}
891 \endsetslot
892
893 \setslot{bar}
894 \Unicode{007C}{VERTICAL LINE}
895 \endsetslot
896
897 \setslot{braceright}
898 \Unicode{007D}{RIGHT CURLY BRACKET}
899 \endsetslot
900
901 \Fi
902
903
904 \begincomment
905 \section{Fontdimens}
906 \endcomment
907
908 \setfontdimen{1}{italicslant} % italic slant
909 \setfontdimen{2}{interword} % interword space
910 \setfontdimen{3}{stretchword} % interword stretch
911 \setfontdimen{4}{shrinkword} % interword shrink
912 \setfontdimen{5}{xheight} % x-height
913 \setfontdimen{6}{quad} % quad
914 \setfontdimen{7}{extraspace} % extra space after .
915
916
917 \begincomment
918 \section{Coding scheme}
919 \endcomment
920
921 \ifnumber{\int{ligaturing}}={2}\then
922
923 \setstr{codingscheme}{TEX TEXT}
924
925 \Else\ifnumber{\int{ligaturing}}={1}\then
926
927 \setstr{codingscheme}{TEX TEXT WITHOUT F-LIGATURES}
928
929 \Else
930
931 \setstr{codingscheme}{TEX TYPEWRITER TEXT}
932
933 \Fi\Fi
934
935
936 \endencoding
937
938
939 \section{Discussion}
940
941
942 \subsection{\texttt{OT1} as math font encoding}
943
944 As source for the math requirements on the \texttt{OT1} encoding
945 was used the standard \LaTeX\ math set-up~\cite{fontdef}. Those
946 definitions that make use of \texttt{OT1} fonts either use the
947 \texttt{operators} symbol font\slash font family~0 or have math
948 class~7 (\cs{mathalpha}).
949
950 There are two slots used for math that have different assignments
951 in different encoding variants. Slot 36 (\texttt{dollar}\slash
952 \texttt{sterling}) depends on the $\mathit{italicizing}$, and is used
953 by the commands \cs{mathdollar} (called by \verb|\$|) and
954 \cs{mathsterling} (called by \cs{pounds}). This works because these
955 commands explicitly take the character from a font with the correct
956 $\mathit{italicizing}$.
957
958 Slot~95 (\texttt{dotaccent}\slash \texttt{underline}) depends on the
959 $\mathit{ligaturing}$ and is used by the \cs{dot} command. This
960 command does \emph{not} work for fonts with \(\mathit{ligaturing}=0\),
961 and hence e.g.\ the formula \verb|$\mathtt{\dot{x}}$| does not produce
962 a typewriter dotted `x', but rather an `x' and underscore printed on
963 top of each other. This is thus an error, but due to that it is
964 unlikely that the error will be missed by the author who encounters
965 it, the error is probably harmless.
966
967
968 \subsection{\texttt{OT1} as text font encoding}
969
970 The sources used to determine the text requirements on the
971 \texttt{OT1} encoding were~\cite{ltoutenc}.
972
973 It turns out that there are LICR commands which rely on non-mandatory
974 features of the font. It is mostly for the \(\mathit{ligaturing} = 0\)
975 fonts that commands produce incorrect results. The following commands
976 work with all \texttt{OT1} fonts which have \(\mathit{ligaturing} > 0\)
977 but fail with the others: \cs{L}, \cs{l}, \cs{.}, \cs{H},
978 \cs{textemdash}, \cs{textendash}, and \cs{textquotedblleft}.
979 In addition, the command \cs{textquotedblright} produces a
980 reasonable, but not exactly correct, result.
981
982 Traditionally the \cs{textexclamdown} and \cs{textquestiondown} have
983 only worked for fonts which have \(\mathit{ligaturing} = 2\), but
984 that can be fixed; see~\cite{latex/3368}.
985
986
987 \section{Changes}
988
989 The changes made to this specification since the original 2001/09/09
990 version are as follows.
991
992 2004/12/16: Changed the f-ligatures to character sequences, which
993 makes more sense for \texttt{CMap}s. Incremented needed versions
994 accordingly. /LH
995
996
997 \begin{thebibliography}{9}
998 \bibitem{ltoutenc}
999 Johannes Braams, David Carlisle, Alan Jeffrey, Frank Mittelbach,
1000 Chris Rowley, and Rainer Sch\"opf:
1001 \textit{ltoutenc.dtx}, v\,1.91 (2000);
1002 the file \texttt{ltoutenc.dtx} in the \LaTeX\ base distribution.
1003 \bibitem{latex/3368}
1004 Lars Hellstr\"om:
1005 \textit{\texttt{OT1} def.\ of \cs{textexclamdown} and
1006 \cs{textquestiondown}}, \LaTeX\ bugs database entry
1007 \textbf{latex/3368}, 2001.
1008 % ; \textsc{http:}/\slash \texttt{www.latex-project.org}\slash
1009 % \texttt{cgi-bin}\slash \texttt{ltxbugs2html\discretionary{?}{}{?}%
1010 % pr=latex/3368}.
1011 \bibitem{ComputerModern}
1012 Donald E. Knuth:
1013 \textit{Computer Modern Typefaces},
1014 volume E of \textit{Computers \& Typesetting},
1015 Ad\-di\-son--Wes\-ley, 1986, xvi+588\,pp.;
1016 ISBN~0-201-13446-2.
1017 \bibitem{fontdef}
1018 Frank Mittelbach and Rainer Sch\"opf:
1019 \textit{The \texttt{fontdef.dtx} file}, v\,2.2x (1999);
1020 the file \texttt{fontdef.dtx} in the \LaTeX\ base distribution.
1021 \end{thebibliography}
1022
1023
1024 \end{document}
1025
1026
1027