| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 2019-2025 |
| 4 |
% The LaTeX Project and any individual authors listed elsewhere |
| 5 |
% in this file. |
| 6 |
% |
| 7 |
% This file is part of the LaTeX base system. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 10 |
% It may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 12 |
% of this license or (at your option) any later version. |
| 13 |
% The latest version of this license is in |
| 14 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008 or later. |
| 17 |
% |
| 18 |
% This file has the LPPL maintenance status "maintained". |
| 19 |
% |
| 20 |
% The list of all files belonging to the LaTeX base distribution is |
| 21 |
% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 22 |
% information. |
| 23 |
% |
| 24 |
% The list of derived (unpacked) files belonging to the distribution |
| 25 |
% and covered by LPPL is defined by the unpacking scripts (with |
| 26 |
% extension .ins) which are part of the distribution. |
| 27 |
% |
| 28 |
%%% From File: lttextcomp.dtx |
| 29 |
% |
| 30 |
% \fi |
| 31 |
% |
| 32 |
% |
| 33 |
% \iffalse |
| 34 |
% |
| 35 |
%<*driver> |
| 36 |
% \fi |
| 37 |
% |
| 38 |
% |
| 39 |
\ProvidesFile{lttextcomp.dtx} |
| 40 |
[2024/11/19 v1.1d LaTeX Kernel (text companion symbols)] |
| 41 |
% \iffalse |
| 42 |
\documentclass{ltxdoc} |
| 43 |
\begin{document} |
| 44 |
\DocInput{lttextcomp.dtx} |
| 45 |
\end{document} |
| 46 |
%</driver> |
| 47 |
% \fi |
| 48 |
% |
| 49 |
% |
| 50 |
% |
| 51 |
% |
| 52 |
% \GetFileInfo{lttextcomp.dtx} |
| 53 |
% \title{Providing additional text symbols\\ |
| 54 |
% (previously available through the \texttt{textcomp} package)\thanks |
| 55 |
% {This file has version number |
| 56 |
% \fileversion\ dated \filedate}} |
| 57 |
% |
| 58 |
% \author{Frank Mittelbach} |
| 59 |
% |
| 60 |
% \MaintainedByLaTeXTeam{latex} |
| 61 |
% \maketitle |
| 62 |
% |
| 63 |
% This file contains the implementation for accessing the glyphs |
| 64 |
% provided by the \texttt{TS1} encoding (Text Companion |
| 65 |
% Encoding). This is now offered as part of the kernel and so the |
| 66 |
% \texttt{textcomp} package which used to provide the definitions is |
| 67 |
% now mainly needed for compatibility reasons (and doesn't do much any |
| 68 |
% more). |
| 69 |
% |
| 70 |
% |
| 71 |
% |
| 72 |
% \MaybeStop{} |
| 73 |
% |
| 74 |
% \changes{v1.0e}{2021/03/19} |
| 75 |
% {Use \cs{NewModuleRelease}} |
| 76 |
% \begin{macrocode} |
| 77 |
%<*2ekernel|latexrelease> |
| 78 |
%<latexrelease>\NewModuleRelease{2020/02/02}{lttextcomp} |
| 79 |
%<latexrelease> {Text Companion symbols} |
| 80 |
% \end{macrocode} |
| 81 |
% |
| 82 |
% \begin{macro}{\oldstylenums} |
| 83 |
% \begin{macro}{\legacyoldstylenums} |
| 84 |
% |
| 85 |
% Preserve the old definition of \cs{oldstylenums} under a different name. |
| 86 |
% |
| 87 |
% This macro implements old style numerals but only works if we |
| 88 |
% assume that the standard math fonts are used. Thus it needs |
| 89 |
% changing in case other math encodings are used. |
| 90 |
% \begin{macrocode} |
| 91 |
\DeclareRobustCommand\legacyoldstylenums[1]{% |
| 92 |
\begingroup |
| 93 |
% \end{macrocode} |
| 94 |
% Provide spacing using the interword space of the current font. |
| 95 |
% \begin{macrocode} |
| 96 |
\spaceskip\fontdimen\tw@\font |
| 97 |
% \end{macrocode} |
| 98 |
% Then switch to the math italic font. We don't change the current |
| 99 |
% value of |\f@series| which means that you can use bold numerals |
| 100 |
% if |\bfseries| is in force. As family we use |\rmdefault| which |
| 101 |
% means that this only works if there exist an |OML| encoded |
| 102 |
% version of that font or rather a corresponding |.fd| file (which |
| 103 |
% is the case for standard \LaTeX{} fonts even though they only |
| 104 |
% contain substitutions). |
| 105 |
% \changes{v3.0j}{1999/02/12}{Use \cs{rmdefault} instead of \texttt{cmm} |
| 106 |
% (pr/2954)} |
| 107 |
% \begin{macrocode} |
| 108 |
\usefont{OML}{\rmdefault}{\f@series}{it}% |
| 109 |
\mathgroup\symletters #1% |
| 110 |
\endgroup |
| 111 |
} |
| 112 |
% \end{macrocode} |
| 113 |
% |
| 114 |
% And here is the improved one that adjusts depending on surroundings. |
| 115 |
% \begin{macrocode} |
| 116 |
\DeclareRobustCommand\oldstylenums[1]{% |
| 117 |
\begingroup |
| 118 |
\ifmmode |
| 119 |
\mathgroup\symletters #1% |
| 120 |
\else |
| 121 |
% \end{macrocode} |
| 122 |
% The \cs{CheckEncodingSubset} is discussed below. |
| 123 |
% \begin{macrocode} |
| 124 |
\CheckEncodingSubset\@use@text@encoding{TS1}\tc@oldstylesubst2{{#1}}% |
| 125 |
\fi |
| 126 |
\endgroup |
| 127 |
} |
| 128 |
% \end{macrocode} |
| 129 |
% The helper to select the substitution if needed. |
| 130 |
% \begin{macrocode} |
| 131 |
\def\tc@oldstylesubst#1{% |
| 132 |
\tc@errorwarn |
| 133 |
{Oldstyle digits unavailable for |
| 134 |
family \f@family.\MessageBreak |
| 135 |
Default oldstyle digits used instead}\@eha |
| 136 |
\bgroup |
| 137 |
\expand@font@defaults |
| 138 |
% \end{macrocode} |
| 139 |
% The substitution defaults are provided in the file \texttt{fonttext.ltx}. |
| 140 |
% \begin{macrocode} |
| 141 |
\ifx\f@family\rmdef@ult |
| 142 |
\fontfamily\rmsubstdefault |
| 143 |
\else\ifx\f@family\sfdef@ult |
| 144 |
\fontfamily\sfsubstdefault |
| 145 |
\else\ifx\f@family\ttdef@ult |
| 146 |
\fontfamily\ttsubstdefault |
| 147 |
\else |
| 148 |
\fontfamily\textcompsubstdefault |
| 149 |
\fi\fi\fi |
| 150 |
\fontencoding{TS1}\selectfont#1% |
| 151 |
\egroup |
| 152 |
} |
| 153 |
% \end{macrocode} |
| 154 |
% \end{macro} |
| 155 |
% \end{macro} |
| 156 |
% |
| 157 |
% \begin{macro}{\textcompsubstdefault} |
| 158 |
% Here is the default for the ``unknown'' case: |
| 159 |
% \begin{macrocode} |
| 160 |
\def\textcompsubstdefault{\rmsubstdefault} |
| 161 |
% \end{macrocode} |
| 162 |
% \end{macro} |
| 163 |
% |
| 164 |
% |
| 165 |
% |
| 166 |
% |
| 167 |
% To set up the glyphs for the subsets we need a number helpers. |
| 168 |
% |
| 169 |
% \begin{macro}{\tc@errorwarn} |
| 170 |
% To we produce errors, warnings, or only info in the transcripts |
| 171 |
% if glyphs require substitutions? By default it is ``info'' |
| 172 |
% only. With the \texttt{textcomp} package that can be changed. |
| 173 |
% \begin{macrocode} |
| 174 |
\def\tc@errorwarn#1#2{\@latex@info{#1}} |
| 175 |
% \end{macrocode} |
| 176 |
% \end{macro} |
| 177 |
|
| 178 |
|
| 179 |
% \begin{macro}{\tc@subst} |
| 180 |
% |
| 181 |
% \changes{v1.0b}{2020/01/22}{The overall default is \cs{textcompsubstdefault} |
| 182 |
% not \cs{substdefault}} |
| 183 |
% \begin{macrocode} |
| 184 |
\def\tc@subst#1{% |
| 185 |
\tc@errorwarn |
| 186 |
{Symbol \string#1 not provided by\MessageBreak |
| 187 |
font family \f@family\space |
| 188 |
in TS1 encoding.\MessageBreak Default family used instead}\@eha |
| 189 |
\bgroup |
| 190 |
\expand@font@defaults |
| 191 |
\ifx\f@family\rmdef@ult |
| 192 |
\fontfamily\rmsubstdefault |
| 193 |
\else\ifx\f@family\sfdef@ult |
| 194 |
\fontfamily\sfsubstdefault |
| 195 |
\else\ifx\f@family\ttdef@ult |
| 196 |
\fontfamily\ttsubstdefault |
| 197 |
\else |
| 198 |
\fontfamily\textcompsubstdefault |
| 199 |
\fi\fi\fi |
| 200 |
% \end{macrocode} |
| 201 |
% Whatever default was chosen, we claim now (locally hopefully) |
| 202 |
% that it can handle all slots (even if not true) to avoid looping |
| 203 |
% in certain situations, e.g., when something was set up incorrectly. |
| 204 |
% \begin{macrocode} |
| 205 |
\@namedef{TS1:\f@family}{0}% |
| 206 |
\selectfont#1% |
| 207 |
\egroup |
| 208 |
} |
| 209 |
% \end{macrocode} |
| 210 |
% \end{macro} |
| 211 |
% |
| 212 |
% |
| 213 |
% |
| 214 |
% |
| 215 |
% |
| 216 |
% \begin{macro}{\tc@fake@euro} |
| 217 |
% |\tc@fake@euro| is an example of a ``fake'' definition to use in arg |#3| of |
| 218 |
% the command |\CheckEncodingSubset| when a symbol is not available in a |
| 219 |
% certain font family. Here we produce a poor man's Euro symbol by combining |
| 220 |
% a ``C'' with a ``=''. |
| 221 |
% \begin{macrocode} |
| 222 |
\def\tc@fake@euro#1{% |
| 223 |
\leavevmode |
| 224 |
\@font@info{Faking \noexpand#1for font family |
| 225 |
\f@family\MessageBreak in TS1 encoding}% |
| 226 |
\valign{##\cr |
| 227 |
\vfil\hbox to 0.07em{\dimen@\f@size\p@ |
| 228 |
\math@fontsfalse |
| 229 |
\fontsize{.7\dimen@}\z@\selectfont=\hss}% |
| 230 |
\vfil\cr% |
| 231 |
\hbox{C}\crcr |
| 232 |
}% |
| 233 |
} |
| 234 |
% \end{macrocode} |
| 235 |
% \end{macro} |
| 236 |
% |
| 237 |
% |
| 238 |
% |
| 239 |
% |
| 240 |
% \begin{macro}{\tc@check@symbol} |
| 241 |
% \begin{macro}{\tc@check@accent} |
| 242 |
% These are two abbreviations that we use below to check symbols |
| 243 |
% and accents in TS1. Only there to save some space, e.g., we can |
| 244 |
% then write |
| 245 |
%\begin{verbatim} |
| 246 |
%\DeclareTextCommandDefault{\textcurrency}{\tc@check@symbol3\textcurrency} |
| 247 |
%\end{verbatim} |
| 248 |
% to ensure that |\textcurrency| is only typeset if the current |
| 249 |
% font has a \texttt{TS1} subset id of less than 3. Otherwise |
| 250 |
% |\tc@error| is called telling the user that for this font family |
| 251 |
% |\textcurrency| is not available. |
| 252 |
% \begin{macrocode} |
| 253 |
\def\tc@check@symbol{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@subst} |
| 254 |
% \end{macrocode} |
| 255 |
% |
| 256 |
% Accents have been made an error in the \texttt{textcomp} package when |
| 257 |
% not available. Now that we provide the functionality in the |
| 258 |
% kernel we avoid the error by swapping in a \texttt{T1} accent if |
| 259 |
% the \texttt{TS1} accent is not available. |
| 260 |
% \begin{macrocode} |
| 261 |
%\def\tc@check@accent{\CheckEncodingSubset\UseTextAccent{TS1}\tc@error} |
| 262 |
% \end{macrocode} |
| 263 |
% |
| 264 |
% \begin{macrocode} |
| 265 |
\def\tc@check@accent#1{\CheckEncodingSubset\UseTextAccent |
| 266 |
{TS1}{\tc@swap@accent#1}} |
| 267 |
\def\tc@swap@accent#1#2{\UseTextAccent{T1}#1} |
| 268 |
% \end{macrocode} |
| 269 |
% \end{macro} |
| 270 |
% \end{macro} |
| 271 |
% |
| 272 |
|
| 273 |
% \section{Sub-encodings} |
| 274 |
% |
| 275 |
% Here are the default definitions for the \texttt{TS1} symbols. |
| 276 |
% First those that we assume are always available if a font |
| 277 |
% implements \texttt{TS1}. |
| 278 |
% |
| 279 |
% \begin{macrocode} |
| 280 |
\DeclareTextSymbolDefault{\textdollar}{TS1} |
| 281 |
\UndeclareTextCommand{\textdollar}{OT1} % don't use the OT1 def any longer |
| 282 |
% \end{macrocode} |
| 283 |
% |
| 284 |
% \begin{macrocode} |
| 285 |
\DeclareTextSymbolDefault{\textsterling}{TS1} |
| 286 |
\UndeclareTextCommand{\textsterling}{OT1}% don't use the OT1 def any longer |
| 287 |
% \end{macrocode} |
| 288 |
% |
| 289 |
% \begin{macrocode} |
| 290 |
\DeclareTextSymbolDefault{\textperthousand}{TS1} |
| 291 |
\UndeclareTextCommand{\textperthousand}{T1} % don't use the T1 def |
| 292 |
% \end{macrocode} |
| 293 |
% Using \cs{UndeclareTextCommand} above is enough only if the |
| 294 |
% encoding definition files are not reloaded afterwards. In the |
| 295 |
% past that happened if \texttt{fontenc} was used in the document |
| 296 |
% preamble (not any longer). So in some sense it is better to fully remove |
| 297 |
% them from the encoding files, but for rollbacks it is easier to |
| 298 |
% keep them in for now. |
| 299 |
% |
| 300 |
% These are the standard \texttt{itemize} and footnote symbols |
| 301 |
% originally taken from \texttt{OMS} and now from \texttt{TS1}: |
| 302 |
% \begin{macrocode} |
| 303 |
\DeclareTextSymbolDefault{\textasteriskcentered}{TS1} |
| 304 |
\DeclareTextSymbolDefault{\textbullet}{TS1} |
| 305 |
\DeclareTextSymbolDefault{\textdaggerdbl}{TS1} |
| 306 |
\DeclareTextSymbolDefault{\textdagger}{TS1} |
| 307 |
\DeclareTextSymbolDefault{\textparagraph}{TS1} |
| 308 |
\DeclareTextSymbolDefault{\textperiodcentered}{TS1} |
| 309 |
\DeclareTextSymbolDefault{\textsection}{TS1} |
| 310 |
% \end{macrocode} |
| 311 |
% |
| 312 |
% And here are the other \texttt{TS1} glyphs that are implemented |
| 313 |
% by every font (or nearly every)---a few are commented out and |
| 314 |
% moved to sub-encoding 9, |
| 315 |
% because they aren't around in some fonts. |
| 316 |
% \begin{macrocode} |
| 317 |
%%\DeclareTextSymbolDefault{\textbardbl}{TS1} % subst in sub-enc 9 above |
| 318 |
\DeclareTextSymbolDefault{\textbrokenbar}{TS1} |
| 319 |
%%\DeclareTextSymbolDefault{\textcelsius}{TS1} % subst in sub-enc 9 above |
| 320 |
\DeclareTextSymbolDefault{\textcent}{TS1} |
| 321 |
\DeclareTextSymbolDefault{\textcopyright}{TS1} |
| 322 |
\DeclareTextSymbolDefault{\textdegree}{TS1} |
| 323 |
\DeclareTextSymbolDefault{\textdiv}{TS1} |
| 324 |
\DeclareTextSymbolDefault{\textlnot}{TS1} |
| 325 |
\DeclareTextSymbolDefault{\textonehalf}{TS1} |
| 326 |
\DeclareTextSymbolDefault{\textonequarter}{TS1} |
| 327 |
%%\DeclareTextSymbolDefault{\textonesuperior}{TS1} % subst in sub-enc 9 above |
| 328 |
\DeclareTextSymbolDefault{\textordfeminine}{TS1} |
| 329 |
\DeclareTextSymbolDefault{\textordmasculine}{TS1} |
| 330 |
\DeclareTextSymbolDefault{\textpm}{TS1} |
| 331 |
\DeclareTextSymbolDefault{\textquotesingle}{TS1} |
| 332 |
\DeclareTextSymbolDefault{\textquotestraightbase}{TS1} |
| 333 |
\DeclareTextSymbolDefault{\textquotestraightdblbase}{TS1} |
| 334 |
\DeclareTextSymbolDefault{\textregistered}{TS1} |
| 335 |
%%\DeclareTextSymbolDefault{\textthreequartersemdash}{TS1} % subst in sub-enc 9 above |
| 336 |
\DeclareTextSymbolDefault{\textthreequarters}{TS1} |
| 337 |
%%\DeclareTextSymbolDefault{\textthreesuperior}{TS1} % subst in sub-enc 9 above |
| 338 |
\DeclareTextSymbolDefault{\texttimes}{TS1} |
| 339 |
\DeclareTextSymbolDefault{\texttrademark}{TS1} |
| 340 |
%%\DeclareTextSymbolDefault{\texttwelveudash}{TS1} % subst in sub-enc 9 above |
| 341 |
%%\DeclareTextSymbolDefault{\texttwosuperior}{TS1} % subst in sub-enc 9 above |
| 342 |
\DeclareTextSymbolDefault{\textyen}{TS1} |
| 343 |
% \end{macrocode} |
| 344 |
% |
| 345 |
% \begin{macrocode} |
| 346 |
\DeclareTextSymbolDefault{\textcapitalcompwordmark}{TS1} |
| 347 |
\DeclareTextSymbolDefault{\textascendercompwordmark}{TS1} |
| 348 |
% \end{macrocode} |
| 349 |
% |
| 350 |
% |
| 351 |
% In the following sections the remaining default definitions are |
| 352 |
% ordered by sub-encoding in which they are become |
| 353 |
% \textbf{unavailable}, i.e., they are not provided in the |
| 354 |
% sub-encoding with that number and all sub-encodings with higher |
| 355 |
% numbers. |
| 356 |
% |
| 357 |
% Thus the symbols that are available in sub-encoding $x$ are the |
| 358 |
% symbols above (always available) and the symbols listed as becoming |
| 359 |
% unavailable in sub-encodings $x+1$ and higher. |
| 360 |
% |
| 361 |
% \subsection{Unavailable in sub-encoding \texttt{1} and higher (drop symbols not working in |
| 362 |
% Latin Modern)} |
| 363 |
% |
| 364 |
% The \cs{textcircled} is available but the glyph is simply too |
| 365 |
% small so we keep using the \texttt{OMS} glyph. |
| 366 |
% \begin{macrocode} |
| 367 |
\DeclareTextCommandDefault{\textcircled} |
| 368 |
{\CheckEncodingSubset\UseTextAccent{TS1}{\UseTextAccent{OMS}}1\textcircled} |
| 369 |
% \end{macrocode} |
| 370 |
% |
| 371 |
% |
| 372 |
% |
| 373 |
% |
| 374 |
% |
| 375 |
% \subsection{Unavailable in sub-encoding \texttt{2} (majority of new OTF fonts via autoinst) and higher} |
| 376 |
% |
| 377 |
% \begin{macrocode} |
| 378 |
\DeclareTextCommandDefault{\t} |
| 379 |
{\CheckEncodingSubset\UseTextAccent{TS1}{\UseTextAccent{OML}}2\t} |
| 380 |
% \end{macrocode} |
| 381 |
% |
| 382 |
% Capital accents are really only very seldom implemented, so from |
| 383 |
% sub-encoding \texttt{2} onwards we use the normal \texttt{T1} |
| 384 |
% accents if they are asked for in the document. |
| 385 |
% |
| 386 |
% In Unicode engines we don't implement them at all but always use |
| 387 |
% the basic accents instead. whether that works or not really |
| 388 |
% depends on the font, something like \verb=\"X= usually comes out |
| 389 |
% wrong in Unicode engines. |
| 390 |
% |
| 391 |
% \begin{macrocode} |
| 392 |
\ifx\Umathcode\@undefined |
| 393 |
\DeclareTextCommandDefault{\capitalacute} |
| 394 |
{\tc@check@accent{\'}2\capitalacute} |
| 395 |
\DeclareTextCommandDefault{\capitalbreve} |
| 396 |
{\tc@check@accent{\u}2\capitalbreve} |
| 397 |
\DeclareTextCommandDefault{\capitalcaron} |
| 398 |
{\tc@check@accent{\v}2\capitalcaron} |
| 399 |
\DeclareTextCommandDefault{\capitalcedilla} |
| 400 |
{\tc@check@accent{\c}2\capitalcedilla} |
| 401 |
\DeclareTextCommandDefault{\capitalcircumflex} |
| 402 |
{\tc@check@accent{\^}2\capitalcircumflex} |
| 403 |
\DeclareTextCommandDefault{\capitaldieresis} |
| 404 |
{\tc@check@accent{\"}2\capitaldieresis} |
| 405 |
\DeclareTextCommandDefault{\capitaldotaccent} |
| 406 |
{\tc@check@accent{\.}2\capitaldotaccent} |
| 407 |
\DeclareTextCommandDefault{\capitalgrave} |
| 408 |
{\tc@check@accent{\`}2\capitalgrave} |
| 409 |
\DeclareTextCommandDefault{\capitalhungarumlaut} |
| 410 |
{\tc@check@accent{\H}2\capitalhungarumlaut} |
| 411 |
\DeclareTextCommandDefault{\capitalmacron} |
| 412 |
{\tc@check@accent{\=}2\capitalmacron} |
| 413 |
\DeclareTextCommandDefault{\capitalogonek} |
| 414 |
{\tc@check@accent{\k}2\capitalogonek} |
| 415 |
\DeclareTextCommandDefault{\capitalring} |
| 416 |
{\tc@check@accent{\r}2\capitalring} |
| 417 |
\DeclareTextCommandDefault{\capitaltie} |
| 418 |
{\tc@check@accent{\t}2\capitaltie} |
| 419 |
\DeclareTextCommandDefault{\capitaltilde} |
| 420 |
{\tc@check@accent{\~}2\capitaltilde} |
| 421 |
% \end{macrocode} |
| 422 |
% For \cs{newtie} and \cs{capitalnewtie} this is actually wrong, they should pick up |
| 423 |
% the accent from the substitution font (not done yet). |
| 424 |
% \begin{macrocode} |
| 425 |
\DeclareTextCommandDefault{\newtie} |
| 426 |
{\tc@check@accent{\t}2\newtie} |
| 427 |
\DeclareTextCommandDefault{\capitalnewtie} |
| 428 |
{\tc@check@accent{\t}2\capitalnewtie} |
| 429 |
% \end{macrocode} |
| 430 |
% |
| 431 |
% In Unicode engines we just execute the simple accents: |
| 432 |
% \changes{v1.0c}{2020/02/10}{Use \cs{@tabacckludge} for |
| 433 |
% tabbing where necessary (gh/271)} |
| 434 |
% \changes{v1.0d}{2020/04/29}{Make all capital accents text |
| 435 |
% commands for hyperref (gh/332)} |
| 436 |
% \begin{macrocode} |
| 437 |
\else |
| 438 |
\DeclareTextCommandDefault\capitalacute{\@tabacckludge'} |
| 439 |
\DeclareTextCommandDefault\capitalbreve{\u} |
| 440 |
\DeclareTextCommandDefault\capitalcaron{\v} |
| 441 |
\DeclareTextCommandDefault\capitalcedilla{\c} |
| 442 |
\DeclareTextCommandDefault\capitalcircumflex{\^} |
| 443 |
\DeclareTextCommandDefault\capitaldieresis{\"} |
| 444 |
\DeclareTextCommandDefault\capitaldotaccent{\.} |
| 445 |
\DeclareTextCommandDefault\capitalgrave{\@tabacckludge`} |
| 446 |
\DeclareTextCommandDefault\capitalhungarumlaut{\H} |
| 447 |
\DeclareTextCommandDefault\capitalmacron{\@tabacckludge=} |
| 448 |
\DeclareTextCommandDefault\capitalnewtie{\t} |
| 449 |
\DeclareTextCommandDefault\capitalogonek{\k} |
| 450 |
\DeclareTextCommandDefault\capitalring{\r} |
| 451 |
\DeclareTextCommandDefault\capitaltie{\t} |
| 452 |
\DeclareTextCommandDefault\capitaltilde{\~} |
| 453 |
\DeclareTextCommandDefault\newtie{\t} |
| 454 |
\fi |
| 455 |
% \end{macrocode} |
| 456 |
% |
| 457 |
% |
| 458 |
% |
| 459 |
% |
| 460 |
% The next two symbols exist in some fonts (faked?), but we ignore |
| 461 |
% that to keep the subsets reasonable compact and most important linear. |
| 462 |
% \begin{macrocode} |
| 463 |
\DeclareTextCommandDefault{\textlbrackdbl} |
| 464 |
{\tc@check@symbol2\textlbrackdbl} |
| 465 |
\DeclareTextCommandDefault{\textrbrackdbl} |
| 466 |
{\tc@check@symbol2\textrbrackdbl} |
| 467 |
% \end{macrocode} |
| 468 |
% |
| 469 |
% |
| 470 |
% Old style numerals are again in some fonts but using |
| 471 |
% \texttt{-OsF}, etc.\ is the better approach to get them, so we |
| 472 |
% claim they aren't in sub-encoding 2 as that's true for most |
| 473 |
% fonts. |
| 474 |
% \begin{macrocode} |
| 475 |
\DeclareTextCommandDefault{\texteightoldstyle} |
| 476 |
{\tc@check@symbol2\texteightoldstyle} |
| 477 |
\DeclareTextCommandDefault{\textfiveoldstyle} |
| 478 |
{\tc@check@symbol2\textfiveoldstyle} |
| 479 |
\DeclareTextCommandDefault{\textfouroldstyle} |
| 480 |
{\tc@check@symbol2\textfouroldstyle} |
| 481 |
\DeclareTextCommandDefault{\textnineoldstyle} |
| 482 |
{\tc@check@symbol2\textnineoldstyle} |
| 483 |
\DeclareTextCommandDefault{\textoneoldstyle} |
| 484 |
{\tc@check@symbol2\textoneoldstyle} |
| 485 |
\DeclareTextCommandDefault{\textsevenoldstyle} |
| 486 |
{\tc@check@symbol2\textsevenoldstyle} |
| 487 |
\DeclareTextCommandDefault{\textsixoldstyle} |
| 488 |
{\tc@check@symbol2\textsixoldstyle} |
| 489 |
\DeclareTextCommandDefault{\textthreeoldstyle} |
| 490 |
{\tc@check@symbol2\textthreeoldstyle} |
| 491 |
\DeclareTextCommandDefault{\texttwooldstyle} |
| 492 |
{\tc@check@symbol2\texttwooldstyle} |
| 493 |
\DeclareTextCommandDefault{\textzerooldstyle} |
| 494 |
{\tc@check@symbol2\textzerooldstyle} |
| 495 |
% \end{macrocode} |
| 496 |
% |
| 497 |
% |
| 498 |
% |
| 499 |
% The next set of glyphs is special to \TeX{} fonts (and available |
| 500 |
% with a few older PS fonts supported through virtual fonts), but |
| 501 |
% not any longer in the majority of fonts provided through |
| 502 |
% autoinst, so we pretend there aren't available in sub-encoding 2 |
| 503 |
% and below. |
| 504 |
% \begin{macrocode} |
| 505 |
\DeclareTextCommandDefault{\textacutedbl} |
| 506 |
{\tc@check@symbol2\textacutedbl} |
| 507 |
\DeclareTextCommandDefault{\textasciiacute} |
| 508 |
{\tc@check@symbol2\textasciiacute} |
| 509 |
\DeclareTextCommandDefault{\textasciibreve} |
| 510 |
{\tc@check@symbol2\textasciibreve} |
| 511 |
\DeclareTextCommandDefault{\textasciicaron} |
| 512 |
{\tc@check@symbol2\textasciicaron} |
| 513 |
\DeclareTextCommandDefault{\textasciidieresis} |
| 514 |
{\tc@check@symbol2\textasciidieresis} |
| 515 |
\DeclareTextCommandDefault{\textasciigrave} |
| 516 |
{\tc@check@symbol2\textasciigrave} |
| 517 |
\DeclareTextCommandDefault{\textasciimacron} |
| 518 |
{\tc@check@symbol2\textasciimacron} |
| 519 |
\DeclareTextCommandDefault{\textgravedbl} |
| 520 |
{\tc@check@symbol2\textgravedbl} |
| 521 |
\DeclareTextCommandDefault{\texttildelow} |
| 522 |
{\tc@check@symbol2\texttildelow} |
| 523 |
% \end{macrocode} |
| 524 |
% |
| 525 |
% |
| 526 |
% Finally those below are only available in CM-based fonts but in |
| 527 |
% no font that has its origin outside of the \TeX{} world. |
| 528 |
% \begin{macrocode} |
| 529 |
\DeclareTextCommandDefault{\textbaht} |
| 530 |
{\tc@check@symbol2\textbaht} |
| 531 |
\DeclareTextCommandDefault{\textbigcircle} |
| 532 |
{\tc@check@symbol2\textbigcircle} |
| 533 |
\DeclareTextCommandDefault{\textborn} |
| 534 |
{\tc@check@symbol2\textborn} |
| 535 |
\DeclareTextCommandDefault{\textcentoldstyle} |
| 536 |
{\tc@check@symbol2\textcentoldstyle} |
| 537 |
\DeclareTextCommandDefault{\textcircledP} |
| 538 |
{\tc@check@symbol2\textcircledP} |
| 539 |
\DeclareTextCommandDefault{\textcopyleft} |
| 540 |
{\tc@check@symbol2\textcopyleft} |
| 541 |
\DeclareTextCommandDefault{\textdblhyphenchar} |
| 542 |
{\tc@check@symbol2\textdblhyphenchar} |
| 543 |
\DeclareTextCommandDefault{\textdblhyphen} |
| 544 |
{\tc@check@symbol2\textdblhyphen} |
| 545 |
\DeclareTextCommandDefault{\textdied} |
| 546 |
{\tc@check@symbol2\textdied} |
| 547 |
\DeclareTextCommandDefault{\textdiscount} |
| 548 |
{\tc@check@symbol2\textdiscount} |
| 549 |
\DeclareTextCommandDefault{\textdivorced} |
| 550 |
{\tc@check@symbol2\textdivorced} |
| 551 |
\DeclareTextCommandDefault{\textdollaroldstyle} |
| 552 |
{\tc@check@symbol2\textdollaroldstyle} |
| 553 |
\DeclareTextCommandDefault{\textguarani} |
| 554 |
{\tc@check@symbol2\textguarani} |
| 555 |
\DeclareTextCommandDefault{\textleaf} |
| 556 |
{\tc@check@symbol2\textleaf} |
| 557 |
\DeclareTextCommandDefault{\textlquill} |
| 558 |
{\tc@check@symbol2\textlquill} |
| 559 |
\DeclareTextCommandDefault{\textmarried} |
| 560 |
{\tc@check@symbol2\textmarried} |
| 561 |
\DeclareTextCommandDefault{\textmho} |
| 562 |
{\tc@check@symbol2\textmho} |
| 563 |
\DeclareTextCommandDefault{\textmusicalnote} |
| 564 |
{\tc@check@symbol2\textmusicalnote} |
| 565 |
\DeclareTextCommandDefault{\textnaira} |
| 566 |
{\tc@check@symbol2\textnaira} |
| 567 |
\DeclareTextCommandDefault{\textopenbullet} |
| 568 |
{\tc@check@symbol2\textopenbullet} |
| 569 |
\DeclareTextCommandDefault{\textpeso} |
| 570 |
{\tc@check@symbol2\textpeso} |
| 571 |
\DeclareTextCommandDefault{\textpilcrow} |
| 572 |
{\tc@check@symbol2\textpilcrow} |
| 573 |
\DeclareTextCommandDefault{\textrecipe} |
| 574 |
{\tc@check@symbol2\textrecipe} |
| 575 |
\DeclareTextCommandDefault{\textreferencemark} |
| 576 |
{\tc@check@symbol2\textreferencemark} |
| 577 |
\DeclareTextCommandDefault{\textrquill} |
| 578 |
{\tc@check@symbol2\textrquill} |
| 579 |
\DeclareTextCommandDefault{\textservicemark} |
| 580 |
{\tc@check@symbol2\textservicemark} |
| 581 |
\DeclareTextCommandDefault{\textsurd} |
| 582 |
{\tc@check@symbol2\textsurd} |
| 583 |
% \end{macrocode} |
| 584 |
% |
| 585 |
% The \cs{textpertenthousand} also belongs in this group but here |
| 586 |
% we have a choice: in T1 there is a definition for |
| 587 |
% \cs{textpertenthousand} making the symbol up from \% and |
| 588 |
% \verb=\char 24= (twice) but in many fonts that char doesn't exist |
| 589 |
% and the slot is reused for random ligatures. So better not use it |
| 590 |
% because often it is wrong. But pointing to TS1 is also not great |
| 591 |
% as only a few fonts have it as a real symbol, so we get a |
| 592 |
% substitution to CM or LM. |
| 593 |
% |
| 594 |
% Alternatively we could just state that the symbol is unavailable in |
| 595 |
% those fonts. For now I substitute. |
| 596 |
% \begin{macrocode} |
| 597 |
\DeclareTextCommandDefault{\textpertenthousand} |
| 598 |
{\tc@check@symbol2\textpertenthousand} |
| 599 |
\UndeclareTextCommand{\textpertenthousand}{T1} |
| 600 |
% \end{macrocode} |
| 601 |
% |
| 602 |
% |
| 603 |
% |
| 604 |
% \subsection{Unavailable in sub-encoding \texttt{3} and higher} |
| 605 |
% |
| 606 |
% Sub-encoding \texttt{2} is the one where we loose many |
| 607 |
% symbols. In the higher-numbered sub-encodings we see only a few |
| 608 |
% dropped additionally. |
| 609 |
% \begin{macrocode} |
| 610 |
\DeclareTextCommandDefault{\textlangle} |
| 611 |
{\tc@check@symbol3\textlangle} |
| 612 |
\DeclareTextCommandDefault{\textrangle} |
| 613 |
{\tc@check@symbol3\textrangle} |
| 614 |
% \end{macrocode} |
| 615 |
% |
| 616 |
% |
| 617 |
% |
| 618 |
% |
| 619 |
% |
| 620 |
% \subsection{Unavailable in sub-encoding \texttt{4} and higher} |
| 621 |
% |
| 622 |
% \begin{macrocode} |
| 623 |
\DeclareTextCommandDefault{\textcolonmonetary} |
| 624 |
{\tc@check@symbol4\textcolonmonetary} |
| 625 |
\DeclareTextCommandDefault{\textdong} |
| 626 |
{\tc@check@symbol4\textdong} |
| 627 |
\DeclareTextCommandDefault{\textdownarrow} |
| 628 |
{\tc@check@symbol4\textdownarrow} |
| 629 |
\DeclareTextCommandDefault{\textleftarrow} |
| 630 |
{\tc@check@symbol4\textleftarrow} |
| 631 |
\DeclareTextCommandDefault{\textlira} |
| 632 |
{\tc@check@symbol4\textlira} |
| 633 |
\DeclareTextCommandDefault{\textrightarrow} |
| 634 |
{\tc@check@symbol4\textrightarrow} |
| 635 |
\DeclareTextCommandDefault{\textuparrow} |
| 636 |
{\tc@check@symbol4\textuparrow} |
| 637 |
\DeclareTextCommandDefault{\textwon} |
| 638 |
{\tc@check@symbol4\textwon} |
| 639 |
% \end{macrocode} |
| 640 |
% |
| 641 |
% |
| 642 |
% |
| 643 |
% |
| 644 |
% |
| 645 |
% \subsection{Unavailable in sub-encoding \texttt{5} (most older PS fonts) and higher} |
| 646 |
% |
| 647 |
% Most older PS fonts (supported in \TeX{} since the early nineties |
| 648 |
% when virtual fonts became available) are sorted under this |
| 649 |
% sub-encoding. But in reality, many of them don't have all glyphs |
| 650 |
% that should be available in sub-encoding \texttt{5}. Instead they |
| 651 |
% show little squares, i.e., they produce ``tofu'' if you are |
| 652 |
% unlucky. |
| 653 |
% |
| 654 |
% But the coverage is so random that it is impossible to sort them |
| 655 |
% properly and if we tried to ensure that they only typeset those |
| 656 |
% glyphs that are really always available, we would have to put them all into |
| 657 |
% sub-encoding \texttt{9}; so putting them into 5 is really a compromise. |
| 658 |
% |
| 659 |
% Modern fonts usually don't typeset a tofu character if a glyph is |
| 660 |
% missing. They are therefore only classified as sub-encoding \texttt{5} if they |
| 661 |
% really support its glyph set completely. |
| 662 |
% \begin{macrocode} |
| 663 |
\DeclareTextCommandDefault{\textestimated} |
| 664 |
{\tc@check@symbol5\textestimated} |
| 665 |
\DeclareTextCommandDefault{\textnumero} |
| 666 |
{\tc@check@symbol5\textnumero} |
| 667 |
% \end{macrocode} |
| 668 |
% |
| 669 |
% |
| 670 |
% |
| 671 |
% |
| 672 |
% \subsection{Unavailable in sub-encoding \texttt{6} and higher} |
| 673 |
% |
| 674 |
% \begin{macrocode} |
| 675 |
\DeclareTextCommandDefault{\textflorin} |
| 676 |
{\tc@check@symbol6\textflorin} |
| 677 |
\DeclareTextCommandDefault{\textcurrency} |
| 678 |
{\tc@check@symbol6\textcurrency} |
| 679 |
% \end{macrocode} |
| 680 |
% |
| 681 |
% |
| 682 |
% |
| 683 |
% \subsection{Unavailable in sub-encoding \texttt{7} and higher} |
| 684 |
% |
| 685 |
% \begin{macrocode} |
| 686 |
\DeclareTextCommandDefault{\textfractionsolidus} |
| 687 |
{\tc@check@symbol7\textfractionsolidus} |
| 688 |
\DeclareTextCommandDefault{\textohm} |
| 689 |
{\tc@check@symbol7\textohm} |
| 690 |
\DeclareTextCommandDefault{\textmu} |
| 691 |
{\tc@check@symbol7\textmu} |
| 692 |
\DeclareTextCommandDefault{\textminus} |
| 693 |
{\tc@check@symbol7\textminus} |
| 694 |
% \end{macrocode} |
| 695 |
% |
| 696 |
% |
| 697 |
% |
| 698 |
% \subsection{Unavailable in sub-encoding \texttt{8} and higher} |
| 699 |
% |
| 700 |
% \begin{macrocode} |
| 701 |
\DeclareTextCommandDefault{\textblank} |
| 702 |
{\tc@check@symbol{8}\textblank} |
| 703 |
\DeclareTextCommandDefault{\textinterrobangdown} |
| 704 |
{\tc@check@symbol{8}\textinterrobangdown} |
| 705 |
\DeclareTextCommandDefault{\textinterrobang} |
| 706 |
{\tc@check@symbol{8}\textinterrobang} |
| 707 |
% \end{macrocode} |
| 708 |
% |
| 709 |
% Fonts with this sub-encoding don't have a Euro symbol, but |
| 710 |
% instead of substituting we fake it. |
| 711 |
% \begin{macrocode} |
| 712 |
\DeclareTextCommandDefault{\texteuro} |
| 713 |
{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro{8}\texteuro} |
| 714 |
% \end{macrocode} |
| 715 |
% |
| 716 |
% |
| 717 |
% |
| 718 |
% |
| 719 |
% \subsection{Unavailable in Sub-encoding \texttt{9} (most missing)} |
| 720 |
% |
| 721 |
% \begin{macrocode} |
| 722 |
\DeclareTextCommandDefault{\textcelsius} |
| 723 |
{\tc@check@symbol{9}\textcelsius} |
| 724 |
\DeclareTextCommandDefault{\textonesuperior} |
| 725 |
{\tc@check@symbol{9}\textonesuperior} |
| 726 |
\DeclareTextCommandDefault{\textthreequartersemdash} |
| 727 |
{\tc@check@symbol{9}\textthreequartersemdash} |
| 728 |
\DeclareTextCommandDefault{\textthreesuperior} |
| 729 |
{\tc@check@symbol{9}\textthreesuperior} |
| 730 |
\DeclareTextCommandDefault{\texttwelveudash} |
| 731 |
{\tc@check@symbol{9}\texttwelveudash} |
| 732 |
\DeclareTextCommandDefault{\texttwosuperior} |
| 733 |
{\tc@check@symbol{9}\texttwosuperior} |
| 734 |
\DeclareTextCommandDefault{\textbardbl} |
| 735 |
{\tc@check@symbol{9}\textbardbl} |
| 736 |
% \end{macrocode} |
| 737 |
% |
| 738 |
% |
| 739 |
% |
| 740 |
% |
| 741 |
% \section{Unicode engine specials} |
| 742 |
% |
| 743 |
% If we are using a unicode engine we handle some glyphs differently, |
| 744 |
% so this here are the definitions for the Unicode encoding |
| 745 |
% (overwriting the defaults above). |
| 746 |
|
| 747 |
% \begin{macrocode} |
| 748 |
\ifx \Umathcode\@undefined \else |
| 749 |
% \end{macrocode} |
| 750 |
% |
| 751 |
% This set should be taken from \texttt{TS1} encoding even if it |
| 752 |
% means you get it from the default font for that encoding. |
| 753 |
% \begin{macrocode} |
| 754 |
%\DeclareTextSymbol{\textcopyleft}{TS1}{171} |
| 755 |
%\DeclareTextSymbol{\textdblhyphen}{TS1}{45} |
| 756 |
%\DeclareTextSymbol{\textdblhyphenchar}{TS1}{127} |
| 757 |
%\DeclareTextSymbol{\textquotestraightbase}{TS1}{13} |
| 758 |
%\DeclareTextSymbol{\textquotestraightdblbase}{TS1}{18} |
| 759 |
%\DeclareTextSymbol{\textleaf}{TS1}{108} |
| 760 |
%\DeclareTextSymbol{\texttwelveudash}{TS1}{21} |
| 761 |
%\DeclareTextSymbol{\textthreequartersemdash}{TS1}{22} |
| 762 |
% \end{macrocode} |
| 763 |
% |
| 764 |
% If oldstyle numerals are asked for we just use \cs{oldstylenums}. |
| 765 |
% \begin{macrocode} |
| 766 |
\DeclareTextCommand{\textzerooldstyle} \UnicodeEncodingName{\oldstylenums{0}} |
| 767 |
\DeclareTextCommand{\textoneoldstyle} \UnicodeEncodingName{\oldstylenums{1}} |
| 768 |
\DeclareTextCommand{\texttwooldstyle} \UnicodeEncodingName{\oldstylenums{2}} |
| 769 |
\DeclareTextCommand{\textthreeoldstyle}\UnicodeEncodingName{\oldstylenums{3}} |
| 770 |
\DeclareTextCommand{\textfouroldstyle} \UnicodeEncodingName{\oldstylenums{4}} |
| 771 |
\DeclareTextCommand{\textfiveoldstyle} \UnicodeEncodingName{\oldstylenums{5}} |
| 772 |
\DeclareTextCommand{\textsixoldstyle} \UnicodeEncodingName{\oldstylenums{6}} |
| 773 |
\DeclareTextCommand{\textsevenoldstyle}\UnicodeEncodingName{\oldstylenums{7}} |
| 774 |
\DeclareTextCommand{\texteightoldstyle}\UnicodeEncodingName{\oldstylenums{8}} |
| 775 |
\DeclareTextCommand{\textnineoldstyle} \UnicodeEncodingName{\oldstylenums{9}} |
| 776 |
% \end{macrocode} |
| 777 |
% These have Unicode slots so this should be integrated into TU explicitly |
| 778 |
% \begin{macrocode} |
| 779 |
\DeclareTextSymbol{\textpilcrow} \UnicodeEncodingName{"00B6} |
| 780 |
\DeclareTextSymbol{\textborn} \UnicodeEncodingName{"002A} |
| 781 |
\DeclareTextSymbol{\textdied} \UnicodeEncodingName{"2020} |
| 782 |
\DeclareTextSymbol{\textlbrackdbl} \UnicodeEncodingName{"27E6} |
| 783 |
\DeclareTextSymbol{\textrbrackdbl} \UnicodeEncodingName{"27E7} |
| 784 |
\DeclareTextSymbol{\textguarani} \UnicodeEncodingName{"20B2} |
| 785 |
% \end{macrocode} |
| 786 |
% We could make \cs{textcentoldstyle} and \cs{textdollaroldstyle} |
| 787 |
% point to dollar and cent in the Unicode encoding |
| 788 |
% \begin{macrocode} |
| 789 |
%\DeclareTextSymbol{\textcentoldstyle} \UnicodeEncodingName{"00A2} |
| 790 |
%\DeclareTextSymbol{\textdollaroldstyle}\UnicodeEncodingName{"0024} |
| 791 |
% \end{macrocode} |
| 792 |
% but I think it is better to pick them up from TS1 even if that |
| 793 |
% usually means LMR fonts |
| 794 |
% \begin{macrocode} |
| 795 |
\DeclareTextSymbol{\textdollaroldstyle}{TS1}{138} |
| 796 |
\DeclareTextSymbol{\textcentoldstyle} {TS1}{139} |
| 797 |
% \end{macrocode} |
| 798 |
% |
| 799 |
% |
| 800 |
% \begin{macrocode} |
| 801 |
\fi % --- END of Unicode engines specials |
| 802 |
% \end{macrocode} |
| 803 |
% |
| 804 |
% \section{Font family sub-encodings setup} |
| 805 |
% |
| 806 |
% We declare the subsets for a good number of fonts in the kernel |
| 807 |
% \ldots |
| 808 |
% |
| 809 |
% But first the default for anything that is not declared. We use |
| 810 |
% \texttt{9} which is most likely much too conservative, but with the |
| 811 |
% advantage that we aren't getting missing glyphs (or at least that |
| 812 |
% this is very unlikely). |
| 813 |
% For nearly all font in the \TeX{} Live distribution of 2019 |
| 814 |
% ``correct'' classifications are given below, so that this default |
| 815 |
% is only used for new font families, and over time the right |
| 816 |
% classifications can be added here too. |
| 817 |
% \begin{macrocode} |
| 818 |
\DeclareEncodingSubset{TS1}{?}{9} |
| 819 |
% \end{macrocode} |
| 820 |
% |
| 821 |
% This first block contains the fonts that have been already |
| 822 |
% supported by the \texttt{textcomp} package way back, i.e., the |
| 823 |
% font families that have \TeX{} support since the mid-nineties. |
| 824 |
% \changes{v1.1a}{2024/01/27}{Adjusted/corrected TS1 sub-encoding |
| 825 |
% declarations for various families (gh/1257)} |
| 826 |
% \begin{macrocode} |
| 827 |
\DeclareEncodingSubset{TS1}{ccr} {0} |
| 828 |
\DeclareEncodingSubset{TS1}{cmbr} {0} |
| 829 |
% \end{macrocode} |
| 830 |
% The following 4 declarations are now part of the corresponding |
| 831 |
% \texttt{.fd} file, hopefully other will follow so that this list |
| 832 |
% of declarations can eventually be removed from the kernel (where |
| 833 |
% it doesn't belong). |
| 834 |
% \begin{macrocode} |
| 835 |
%\DeclareEncodingSubset{TS1}{cmr} {0} |
| 836 |
%\DeclareEncodingSubset{TS1}{cmss} {0} |
| 837 |
%\DeclareEncodingSubset{TS1}{cmtt} {0} |
| 838 |
%\DeclareEncodingSubset{TS1}{cmvtt} {0} |
| 839 |
% \end{macrocode} |
| 840 |
% |
| 841 |
% \begin{macrocode} |
| 842 |
\DeclareEncodingSubset{TS1}{cmtl} {0} |
| 843 |
\DeclareEncodingSubset{TS1}{pxr} {0} |
| 844 |
\DeclareEncodingSubset{TS1}{pxss} {0} |
| 845 |
\DeclareEncodingSubset{TS1}{pxtt} {0} |
| 846 |
\DeclareEncodingSubset{TS1}{qag} {0} |
| 847 |
\DeclareEncodingSubset{TS1}{qbk} {0} |
| 848 |
\DeclareEncodingSubset{TS1}{qcr} {0} |
| 849 |
\DeclareEncodingSubset{TS1}{qcs} {0} |
| 850 |
\DeclareEncodingSubset{TS1}{qhvc} {0} |
| 851 |
\DeclareEncodingSubset{TS1}{qhv} {0} |
| 852 |
\DeclareEncodingSubset{TS1}{qpl} {0} |
| 853 |
\DeclareEncodingSubset{TS1}{qtm} {0} |
| 854 |
\DeclareEncodingSubset{TS1}{qzc} {0} |
| 855 |
\DeclareEncodingSubset{TS1}{txr} {0} |
| 856 |
\DeclareEncodingSubset{TS1}{txss} {0} |
| 857 |
\DeclareEncodingSubset{TS1}{txtt} {0} |
| 858 |
% \end{macrocode} |
| 859 |
% |
| 860 |
% \begin{macrocode} |
| 861 |
\DeclareEncodingSubset{TS1}{lmr} {1} |
| 862 |
\DeclareEncodingSubset{TS1}{lmdh} {1} |
| 863 |
\DeclareEncodingSubset{TS1}{lmss} {1} |
| 864 |
\DeclareEncodingSubset{TS1}{lmssq} {1} |
| 865 |
\DeclareEncodingSubset{TS1}{lmvtt} {1} |
| 866 |
% \end{macrocode} |
| 867 |
% The lmtt family is missing TM, SM, and perthousand for some |
| 868 |
% reason, so the first safe sub-encoding would be 2, but that is |
| 869 |
% then missing out a huge number of glyphs that are available, so |
| 870 |
% we claim it is sub-encoding 1 even if this can lead to missing glyphs. |
| 871 |
% \begin{macrocode} |
| 872 |
\DeclareEncodingSubset{TS1}{lmtt} {1} % missing TM, SM and pertenthousand |
| 873 |
% \end{macrocode} |
| 874 |
% |
| 875 |
% The next three families have been removed from TeX Live, but we |
| 876 |
% keep the definitions |
| 877 |
% \begin{macrocode} |
| 878 |
\DeclareEncodingSubset{TS1}{ptmx} {2} |
| 879 |
\DeclareEncodingSubset{TS1}{ptmj} {2} |
| 880 |
\DeclareEncodingSubset{TS1}{ul8} {2} |
| 881 |
% \end{macrocode} |
| 882 |
% |
| 883 |
% The next set are the early PostScript font implementations, these |
| 884 |
% days there are better alternatives, but \ldots. Note that, their |
| 885 |
% virtual fonts contain a lot of ``tofu'' in form of black squares, |
| 886 |
% thus they don't even give a missing character warning if you |
| 887 |
% select such a glyph. This is why they are set as sub-encoding 5. |
| 888 |
% \begin{macrocode} |
| 889 |
\DeclareEncodingSubset{TS1}{bch} {5} % tofu for blank, ohm |
| 890 |
\DeclareEncodingSubset{TS1}{futj}{5} % tofu for blank, interrobang/down, ohm |
| 891 |
\DeclareEncodingSubset{TS1}{futs}{5} % tofu for blank, ohm |
| 892 |
\DeclareEncodingSubset{TS1}{futx}{5} % probably (currently broken distrib) |
| 893 |
\DeclareEncodingSubset{TS1}{pag} {5} % tofu for blank, interrobang/down, ohm |
| 894 |
\DeclareEncodingSubset{TS1}{pbk} {5} % tofu for blank, interrobang/down, ohm |
| 895 |
\DeclareEncodingSubset{TS1}{pcr} {5} % tofu for blank, interrobang/down, ohm |
| 896 |
\DeclareEncodingSubset{TS1}{phv} {5} % tofu for blank, interrobang/down, ohm |
| 897 |
\DeclareEncodingSubset{TS1}{pnc} {5} % tofu for blank, interrobang/down, ohm |
| 898 |
\DeclareEncodingSubset{TS1}{pplj}{5} % tofu for blank |
| 899 |
\DeclareEncodingSubset{TS1}{pplx}{5} % tofu for blank |
| 900 |
\DeclareEncodingSubset{TS1}{ppl} {5} % tofu for blank interrobang/down |
| 901 |
\DeclareEncodingSubset{TS1}{ptm} {5} % tofu for blank, interrobang/down, ohm |
| 902 |
\DeclareEncodingSubset{TS1}{pzc} {5} % tofu for blank, interrobang/down, ohm |
| 903 |
\DeclareEncodingSubset{TS1}{ul9} {5} % tofu for blank, interrobang/down, ohm |
| 904 |
% \end{macrocode} |
| 905 |
% |
| 906 |
% The next set suffers from the same problem and they contain even |
| 907 |
% fewer real glyphs. |
| 908 |
% \begin{macrocode} |
| 909 |
\DeclareEncodingSubset{TS1}{dayroms}{6} % tofu for blank, interrobang/down, ohm |
| 910 |
\DeclareEncodingSubset{TS1}{dayrom} {6} % tofu for blank, interrobang/down, ohm |
| 911 |
\DeclareEncodingSubset{TS1}{augie}{8} % really only missing euro |
| 912 |
\DeclareEncodingSubset{TS1}{put} {8} |
| 913 |
\DeclareEncodingSubset{TS1}{uag} {8} % probably (currently broken distrib) |
| 914 |
\DeclareEncodingSubset{TS1}{ugq} {8} |
| 915 |
% \end{macrocode} |
| 916 |
% |
| 917 |
% \begin{macrocode} |
| 918 |
\DeclareEncodingSubset{TS1}{zi4} {9} |
| 919 |
% \end{macrocode} |
| 920 |
% |
| 921 |
% LucidaBright (sold through TUG) probably not quite correct, I |
| 922 |
% guess as I have the older fonts \ldots |
| 923 |
% \begin{macrocode} |
| 924 |
\DeclareEncodingSubset{TS1}{hls} {5} |
| 925 |
\DeclareEncodingSubset{TS1}{hlst} {5} |
| 926 |
\DeclareEncodingSubset{TS1}{hlct} {5} |
| 927 |
\DeclareEncodingSubset{TS1}{hlh} {5} |
| 928 |
\DeclareEncodingSubset{TS1}{hlx} {8} |
| 929 |
\DeclareEncodingSubset{TS1}{hlce} {8} |
| 930 |
\DeclareEncodingSubset{TS1}{hlcn} {8} |
| 931 |
\DeclareEncodingSubset{TS1}{hlcw} {8} |
| 932 |
\DeclareEncodingSubset{TS1}{hlcf} {8} |
| 933 |
% \end{macrocode} |
| 934 |
% |
| 935 |
% Below are the newer fonts that have support files for |
| 936 |
% \LaTeX{}. With very few exceptions the classifications are done |
| 937 |
% so that all characters are correctly produced (either being |
| 938 |
% available in the font or substituted). |
| 939 |
% |
| 940 |
% There are a few fonts that contain ``tofu'' squares in places |
| 941 |
% (instead of a real glyph) and in a few cases some really seldom |
| 942 |
% needed chars are unavailable, i.e., produce missing glyphs (to |
| 943 |
% avoid that a large number of available chars are unnecessarily |
| 944 |
% substituted). |
| 945 |
% |
| 946 |
% Encoding declarations for these font families shouldn't really be |
| 947 |
% in the kernel, but part of the \texttt{.fd} files for the |
| 948 |
% family. When we introduced the concept in 2021 we had some hope |
| 949 |
% that this would happen over time and that we could take the |
| 950 |
% declarations out---after all it is nearly impossible to maintain |
| 951 |
% it correctly in the kernel, given that fonts may get new glyphs |
| 952 |
% added (happened for several of them in the recent year) which is |
| 953 |
% something we wouldn't notice. However, so far this hasn't |
| 954 |
% happened, so in 2024, I went through the current set and adjusted |
| 955 |
% the declarations in several places. |
| 956 |
% |
| 957 |
% Next four are wrong and still need adjustment: |
| 958 |
% \begin{macrocode} |
| 959 |
\DeclareEncodingSubset{TS1}{lato-*} {0} % with a bunch of tofu inside |
| 960 |
\DeclareEncodingSubset{TS1}{opensans-*} {0} % with a bunch of tofu inside |
| 961 |
\DeclareEncodingSubset{TS1}{cantarell-*} {0} % with a bunch of tofu inside |
| 962 |
\DeclareEncodingSubset{TS1}{tli} {1} % with lots of tofu inside |
| 963 |
% \end{macrocode} |
| 964 |
% |
| 965 |
% \begin{macrocode} |
| 966 |
\DeclareEncodingSubset{TS1}{fbb-*} {2} % missing centoldstyle |
| 967 |
% \end{macrocode} |
| 968 |
% |
| 969 |
% |
| 970 |
% \begin{macrocode} |
| 971 |
\DeclareEncodingSubset{TS1}{Alegreya-*} {2} |
| 972 |
\DeclareEncodingSubset{TS1}{AlegreyaSans-*} {2} |
| 973 |
\DeclareEncodingSubset{TS1}{BaskervilleF-*} {2} |
| 974 |
\DeclareEncodingSubset{TS1}{DejaVuSans-TLF} {2} |
| 975 |
\DeclareEncodingSubset{TS1}{DejaVuSansCondensed-TLF} {2} |
| 976 |
% \end{macrocode} |
| 977 |
% Next one is missing \cs{textfractionsolidus} but is otherwise |
| 978 |
% completely sub-encoding 2 so we use that sub-encoding. |
| 979 |
% \begin{macrocode} |
| 980 |
\DeclareEncodingSubset{TS1}{DejaVuSansMono-TLF} {2} |
| 981 |
% \end{macrocode} |
| 982 |
% |
| 983 |
% \begin{macrocode} |
| 984 |
\DeclareEncodingSubset{TS1}{EBGaramond-*} {2} |
| 985 |
\DeclareEncodingSubset{TS1}{Merriwthr-OsF} {2} |
| 986 |
\DeclareEncodingSubset{TS1}{MerriwthrSans-OsF} {2} |
| 987 |
\DeclareEncodingSubset{TS1}{Montserrat-*} {2} |
| 988 |
\DeclareEncodingSubset{TS1}{MontserratAlternates-*} {2} |
| 989 |
\DeclareEncodingSubset{TS1}{NotoSansMono-TLF} {2} |
| 990 |
\DeclareEncodingSubset{TS1}{NotoSansMono-TOsF} {2} |
| 991 |
\DeclareEncodingSubset{TS1}{Tempora-TLF} {2} |
| 992 |
\DeclareEncodingSubset{TS1}{Tempora-TOsF} {2} |
| 993 |
\DeclareEncodingSubset{TS1}{XCharter-TLF} {2} |
| 994 |
\DeclareEncodingSubset{TS1}{XCharter-TOsF} {2} |
| 995 |
\DeclareEncodingSubset{TS1}{erewhon-*} {2} |
| 996 |
% \end{macrocode} |
| 997 |
% |
| 998 |
% \begin{macrocode} |
| 999 |
\DeclareEncodingSubset{TS1}{Arimo-TLF} {3} |
| 1000 |
\DeclareEncodingSubset{TS1}{Crlt-*} {3} |
| 1001 |
\DeclareEncodingSubset{TS1}{IBMPlexMono-TLF} {3} |
| 1002 |
\DeclareEncodingSubset{TS1}{IBMPlexSans-TLF} {3} |
| 1003 |
\DeclareEncodingSubset{TS1}{IBMPlexSerif-TLF} {3} |
| 1004 |
\DeclareEncodingSubset{TS1}{SourceCodePro-TLF} {3} |
| 1005 |
\DeclareEncodingSubset{TS1}{SourceCodePro-TOsF} {3} |
| 1006 |
\DeclareEncodingSubset{TS1}{SourceSansPro-*} {3} |
| 1007 |
\DeclareEncodingSubset{TS1}{SourceSerifPro-*} {3} |
| 1008 |
\DeclareEncodingSubset{TS1}{Tinos-TLF} {3} |
| 1009 |
% \end{macrocode} |
| 1010 |
% |
| 1011 |
% \begin{macrocode} |
| 1012 |
\DeclareEncodingSubset{TS1}{AccanthisADFStdNoThree-LF}{4} |
| 1013 |
\DeclareEncodingSubset{TS1}{Cabin-TLF} {4} |
| 1014 |
\DeclareEncodingSubset{TS1}{Caladea-TLF} {4} |
| 1015 |
\DeclareEncodingSubset{TS1}{Chivo-*} {4} |
| 1016 |
\DeclareEncodingSubset{TS1}{ClearSans-TLF} {4} |
| 1017 |
\DeclareEncodingSubset{TS1}{Coelacanth-LF} {4} |
| 1018 |
\DeclareEncodingSubset{TS1}{CrimsonPro-*} {4} |
| 1019 |
\DeclareEncodingSubset{TS1}{FiraMono-TLF} {4} |
| 1020 |
\DeclareEncodingSubset{TS1}{FiraMono-TOsF} {4} |
| 1021 |
\DeclareEncodingSubset{TS1}{FiraSans-*} {4} |
| 1022 |
\DeclareEncodingSubset{TS1}{Go-TLF} {4} |
| 1023 |
\DeclareEncodingSubset{TS1}{GoMono-TLF} {4} |
| 1024 |
\DeclareEncodingSubset{TS1}{InriaSans-*} {4} |
| 1025 |
\DeclareEncodingSubset{TS1}{InriaSerif-*} {4} |
| 1026 |
\DeclareEncodingSubset{TS1}{LibertinusSans-*} {4} |
| 1027 |
\DeclareEncodingSubset{TS1}{LibertinusSerif-*} {4} |
| 1028 |
\DeclareEncodingSubset{TS1}{LibreBodoni-TLF} {4} |
| 1029 |
\DeclareEncodingSubset{TS1}{LibreFranklin-TLF} {4} |
| 1030 |
\DeclareEncodingSubset{TS1}{LinguisticsPro-LF} {4} |
| 1031 |
\DeclareEncodingSubset{TS1}{LinguisticsPro-OsF} {4} |
| 1032 |
\DeclareEncodingSubset{TS1}{LinuxBiolinumT-*} {4} |
| 1033 |
\DeclareEncodingSubset{TS1}{LinuxLibertineT-*} {4} |
| 1034 |
\DeclareEncodingSubset{TS1}{MintSpirit-*} {4} |
| 1035 |
\DeclareEncodingSubset{TS1}{MintSpiritNoTwo-*} {4} |
| 1036 |
\DeclareEncodingSubset{TS1}{PTMono-TLF} {4} |
| 1037 |
\DeclareEncodingSubset{TS1}{PTSans-TLF} {4} |
| 1038 |
\DeclareEncodingSubset{TS1}{PTSansCaption-TLF} {4} |
| 1039 |
\DeclareEncodingSubset{TS1}{PTSansNarrow-TLF} {4} |
| 1040 |
\DeclareEncodingSubset{TS1}{PTSerif-TLF} {4} |
| 1041 |
\DeclareEncodingSubset{TS1}{PTSerifCaption-TLF} {4} |
| 1042 |
\DeclareEncodingSubset{TS1}{Raleway-TLF} {4} |
| 1043 |
\DeclareEncodingSubset{TS1}{Raleway-TOsF} {4} |
| 1044 |
\DeclareEncodingSubset{TS1}{Roboto-*} {4} |
| 1045 |
\DeclareEncodingSubset{TS1}{RobotoMono-TLF} {4} |
| 1046 |
\DeclareEncodingSubset{TS1}{RobotoSlab-TLF} {4} |
| 1047 |
\DeclareEncodingSubset{TS1}{Rosario-*} {4} |
| 1048 |
\DeclareEncodingSubset{TS1}{SticksTooText-*} {4} |
| 1049 |
\DeclareEncodingSubset{TS1}{UniversalisADFStd-LF} {4} |
| 1050 |
% \end{macrocode} |
| 1051 |
% |
| 1052 |
% \begin{macrocode} |
| 1053 |
\DeclareEncodingSubset{TS1}{Almndr-OsF} {5} |
| 1054 |
\DeclareEncodingSubset{TS1}{Baskervaldx-*} {5} |
| 1055 |
\DeclareEncodingSubset{TS1}{Bttr-TLF} {5} |
| 1056 |
\DeclareEncodingSubset{TS1}{Cinzel-LF} {5} |
| 1057 |
\DeclareEncodingSubset{TS1}{CinzelDecorative-LF} {5} |
| 1058 |
\DeclareEncodingSubset{TS1}{Cochineal-*} {5} |
| 1059 |
\DeclareEncodingSubset{TS1}{DejaVuSerif-TLF} {5} |
| 1060 |
\DeclareEncodingSubset{TS1}{DejaVuSerifCondensed-TLF} {5} |
| 1061 |
\DeclareEncodingSubset{TS1}{GilliusADF-LF} {5} |
| 1062 |
\DeclareEncodingSubset{TS1}{GilliusADFCond-LF} {5} |
| 1063 |
\DeclareEncodingSubset{TS1}{GilliusADFNoTwo-LF} {5} |
| 1064 |
\DeclareEncodingSubset{TS1}{GilliusADFNoTwoCond-LF} {5} |
| 1065 |
\DeclareEncodingSubset{TS1}{OldStandard-TLF} {5} |
| 1066 |
\DeclareEncodingSubset{TS1}{PlyfrDisplay-TLF} {5} |
| 1067 |
\DeclareEncodingSubset{TS1}{PlyfrDisplay-TOsF} {5} |
| 1068 |
\DeclareEncodingSubset{TS1}{TheanoDidot-TLF} {5} |
| 1069 |
\DeclareEncodingSubset{TS1}{TheanoDidot-TOsF} {5} |
| 1070 |
\DeclareEncodingSubset{TS1}{TheanoModern-TLF} {5} |
| 1071 |
\DeclareEncodingSubset{TS1}{TheanoModern-TOsF} {5} |
| 1072 |
\DeclareEncodingSubset{TS1}{TheanoOldStyle-TLF} {5} |
| 1073 |
\DeclareEncodingSubset{TS1}{TheanoOldStyle-TOsF} {5} |
| 1074 |
\DeclareEncodingSubset{TS1}{charssil-TLF} {5} |
| 1075 |
% \end{macrocode} |
| 1076 |
% |
| 1077 |
% \begin{macrocode} |
| 1078 |
\DeclareEncodingSubset{TS1}{Crimson-TLF} {6} |
| 1079 |
\DeclareEncodingSubset{TS1}{LibertinusSerifDisplay-LF}{6} |
| 1080 |
\DeclareEncodingSubset{TS1}{LinuxLibertineDisplayT-*} {6} |
| 1081 |
\DeclareEncodingSubset{TS1}{LinuxLibertineMonoT-LF} {6} |
| 1082 |
\DeclareEncodingSubset{TS1}{LinuxLibertineMonoT-TLF} {6} |
| 1083 |
\DeclareEncodingSubset{TS1}{Ovrlck-LF} {6} |
| 1084 |
% \end{macrocode} |
| 1085 |
% |
| 1086 |
% \begin{macrocode} |
| 1087 |
\DeclareEncodingSubset{TS1}{ComicNeue-TLF} {7} |
| 1088 |
\DeclareEncodingSubset{TS1}{ComicNeueAngular-TLF} {7} |
| 1089 |
\DeclareEncodingSubset{TS1}{CormorantGaramond-*} {7} |
| 1090 |
\DeclareEncodingSubset{TS1}{Heuristica-TLF} {7} |
| 1091 |
\DeclareEncodingSubset{TS1}{Heuristica-TOsF} {7} |
| 1092 |
\DeclareEncodingSubset{TS1}{IMFELLEnglish-TLF} {7} |
| 1093 |
\DeclareEncodingSubset{TS1}{LibreBskrvl-TLF} {7} |
| 1094 |
\DeclareEncodingSubset{TS1}{LibreCsln-*} {7} |
| 1095 |
\DeclareEncodingSubset{TS1}{Lbstr-LF} {7} |
| 1096 |
\DeclareEncodingSubset{TS1}{Mrcls-LF} {7} |
| 1097 |
% \end{macrocode} |
| 1098 |
% Strangely enough NotoSerif and NotoSans are sub-encoding 7 as |
| 1099 |
% they are missing \cs{textminus} and several other glyphs. In |
| 1100 |
% contrast, the NotoSansMono is far more complete. |
| 1101 |
% \begin{macrocode} |
| 1102 |
\DeclareEncodingSubset{TS1}{NotoSans-*} {7} |
| 1103 |
\DeclareEncodingSubset{TS1}{NotoSerif-*} {7} |
| 1104 |
\DeclareEncodingSubset{TS1}{Quattro-LF} {7} |
| 1105 |
\DeclareEncodingSubset{TS1}{QuattroSans-LF} {7} |
| 1106 |
\DeclareEncodingSubset{TS1}{Frm-LF} {7} % the superiors are missing |
| 1107 |
% \end{macrocode} |
| 1108 |
% |
| 1109 |
% \begin{macrocode} |
| 1110 |
\DeclareEncodingSubset{TS1}{LibertinusMono-TLF} {8} |
| 1111 |
% \end{macrocode} |
| 1112 |
% |
| 1113 |
% \begin{macrocode} |
| 1114 |
\DeclareEncodingSubset{TS1}{AlgolRevived-TLF} {9} |
| 1115 |
% \end{macrocode} |
| 1116 |
% |
| 1117 |
% |
| 1118 |
% |
| 1119 |
% |
| 1120 |
% \section{Legacy symbol support for lists and footnote symbols} |
| 1121 |
% |
| 1122 |
% \begin{macro}{\UseLegacyTextSymbols} |
| 1123 |
% |
| 1124 |
% \begin{macrocode} |
| 1125 |
\def\UseLegacyTextSymbols{% |
| 1126 |
\DeclareTextSymbolDefault{\textasteriskcentered}{OMS}% |
| 1127 |
\DeclareTextSymbolDefault{\textbardbl}{OMS}% |
| 1128 |
\DeclareTextSymbolDefault{\textbullet}{OMS}% |
| 1129 |
\DeclareTextSymbolDefault{\textdaggerdbl}{OMS}% |
| 1130 |
\DeclareTextSymbolDefault{\textdagger}{OMS}% |
| 1131 |
\DeclareTextSymbolDefault{\textparagraph}{OMS}% |
| 1132 |
\DeclareTextSymbolDefault{\textperiodcentered}{OMS}% |
| 1133 |
\DeclareTextSymbolDefault{\textsection}{OMS}% |
| 1134 |
\UndeclareTextCommand{\textsection}{T1}% |
| 1135 |
\expandafter\let\csname oldstylenums \expandafter\endcsname |
| 1136 |
\csname legacyoldstylenums \endcsname |
| 1137 |
} |
| 1138 |
% \end{macrocode} |
| 1139 |
% \end{macro} |
| 1140 |
|
| 1141 |
|
| 1142 |
|
| 1143 |
% \begin{macro}{\textlegacyasteriskcentered} |
| 1144 |
% \begin{macro}{\textlegacybardbl} |
| 1145 |
% \begin{macro}{\textlegacybullet} |
| 1146 |
% \begin{macro}{\textlegacydaggerdbl} |
| 1147 |
% \begin{macro}{\textlegacydagger} |
| 1148 |
% \begin{macro}{\textlegacyparagraph} |
| 1149 |
% \begin{macro}{\textlegacyperiodcentered} |
| 1150 |
% \begin{macro}{\textlegacysection} |
| 1151 |
% |
| 1152 |
% Here are new names for the legacy symbols that \LaTeX{} used to |
| 1153 |
% pick up from the \texttt{OMS} encoded fonts (and used for itemize |
| 1154 |
% lists or footnote symbols). |
| 1155 |
% |
| 1156 |
% We go the roundabout way via separate OMS declarations so that |
| 1157 |
%\begin{verbatim} |
| 1158 |
% \renewcommand\textbullet{\textlegacybullet} |
| 1159 |
%\end{verbatim} |
| 1160 |
% doesn't produce an endless loop. |
| 1161 |
% \begin{macrocode} |
| 1162 |
\DeclareTextSymbol{\textlegacyasteriskcentered}{OMS}{3} % "03 |
| 1163 |
\DeclareTextSymbol{\textlegacybardbl}{OMS}{107} % "6B |
| 1164 |
\DeclareTextSymbol{\textlegacybullet}{OMS}{15} % "0F |
| 1165 |
\DeclareTextSymbol{\textlegacydaggerdbl}{OMS}{122} % "7A |
| 1166 |
\DeclareTextSymbol{\textlegacydagger}{OMS}{121} % "79 |
| 1167 |
\DeclareTextSymbol{\textlegacyparagraph}{OMS}{123} % "7B |
| 1168 |
\DeclareTextSymbol{\textlegacyperiodcentered}{OMS}{1} % "01 |
| 1169 |
\DeclareTextSymbol{\textlegacysection}{OMS}{120} % "78 |
| 1170 |
% \end{macrocode} |
| 1171 |
% |
| 1172 |
% \begin{macrocode} |
| 1173 |
\DeclareTextSymbolDefault{\textlegacyasteriskcentered}{OMS} |
| 1174 |
\DeclareTextSymbolDefault{\textlegacybardbl}{OMS} |
| 1175 |
\DeclareTextSymbolDefault{\textlegacybullet}{OMS} |
| 1176 |
\DeclareTextSymbolDefault{\textlegacydaggerdbl}{OMS} |
| 1177 |
\DeclareTextSymbolDefault{\textlegacydagger}{OMS} |
| 1178 |
\DeclareTextSymbolDefault{\textlegacyparagraph}{OMS} |
| 1179 |
\DeclareTextSymbolDefault{\textlegacyperiodcentered}{OMS} |
| 1180 |
\DeclareTextSymbolDefault{\textlegacysection}{OMS} |
| 1181 |
% \end{macrocode} |
| 1182 |
% \end{macro} |
| 1183 |
% \end{macro} |
| 1184 |
% \end{macro} |
| 1185 |
% \end{macro} |
| 1186 |
% \end{macro} |
| 1187 |
% \end{macro} |
| 1188 |
% \end{macro} |
| 1189 |
% \end{macro} |
| 1190 |
|
| 1191 |
% |
| 1192 |
% |
| 1193 |
% Supporting rollback \ldots |
| 1194 |
% \begin{macrocode} |
| 1195 |
%</2ekernel|latexrelease> |
| 1196 |
%<latexrelease> |
| 1197 |
%<latexrelease>\IncludeInRelease{0000/00/00}% |
| 1198 |
%<latexrelease> {lttextcomp}{Undefine text companion symbols}% |
| 1199 |
%<latexrelease> |
| 1200 |
%<latexrelease>\DeclareRobustCommand\oldstylenums[1]{% |
| 1201 |
%<latexrelease> \begingroup |
| 1202 |
%<latexrelease> \spaceskip\fontdimen\tw@\font |
| 1203 |
%<latexrelease> \usefont{OML}{\rmdefault}{\f@series}{it}% |
| 1204 |
%<latexrelease> \mathgroup\symletters #1% |
| 1205 |
%<latexrelease> \endgroup |
| 1206 |
%<latexrelease>} |
| 1207 |
%<latexrelease>\let\legacyoldstylenums\@undefined |
| 1208 |
%<latexrelease>\def\textcompsubstdefault{cmr} |
| 1209 |
%<latexrelease> |
| 1210 |
%<latexrelease>\let\DeclareEncodingSubset\@undefined |
| 1211 |
%<latexrelease>\let\CheckEncodingSubset\@undefined |
| 1212 |
%<latexrelease> |
| 1213 |
%<latexrelease>\DeclareTextSymbolDefault{\textdollar}{OT1} |
| 1214 |
%<latexrelease>\DeclareTextSymbolDefault{\textsterling}{OT1} |
| 1215 |
%<latexrelease>\DeclareTextCommand{\textdollar}{OT1}{\hmode@bgroup |
| 1216 |
%<latexrelease> \ifdim \fontdimen\@ne\font >\z@ |
| 1217 |
%<latexrelease> \slshape |
| 1218 |
%<latexrelease> \else |
| 1219 |
%<latexrelease> \upshape |
| 1220 |
%<latexrelease> \fi |
| 1221 |
%<latexrelease> \char`\$\egroup} |
| 1222 |
%<latexrelease>\DeclareTextCommand{\textsterling}{OT1}{\hmode@bgroup |
| 1223 |
%<latexrelease> \ifdim \fontdimen\@ne\font >\z@ |
| 1224 |
%<latexrelease> \itshape |
| 1225 |
%<latexrelease> \else |
| 1226 |
%<latexrelease> \fontshape{ui}\selectfont |
| 1227 |
%<latexrelease> \fi |
| 1228 |
%<latexrelease> \char`\$\egroup} |
| 1229 |
%<latexrelease>\DeclareTextCommand{\textperthousand}{T1} |
| 1230 |
%<latexrelease> {\%\char 24 } |
| 1231 |
%<latexrelease> |
| 1232 |
%<latexrelease>\DeclareTextSymbolDefault{\textasteriskcentered}{OMS} |
| 1233 |
%<latexrelease>\DeclareTextSymbolDefault{\textbullet}{OMS} |
| 1234 |
%<latexrelease>\DeclareTextSymbolDefault{\textdaggerdbl}{OMS} |
| 1235 |
%<latexrelease>\DeclareTextSymbolDefault{\textdagger}{OMS} |
| 1236 |
%<latexrelease>\DeclareTextSymbolDefault{\textparagraph}{OMS} |
| 1237 |
%<latexrelease>\DeclareTextSymbolDefault{\textperiodcentered}{OMS} |
| 1238 |
%<latexrelease>\DeclareTextSymbolDefault{\textsection}{OMS} |
| 1239 |
%<latexrelease> |
| 1240 |
%<latexrelease>\DeclareTextSymbolDefault{\textbardbl}{OMS} |
| 1241 |
%<latexrelease>\let\textbrokenbar\@undefined |
| 1242 |
%<latexrelease>\let\textcelsius\@undefined |
| 1243 |
%<latexrelease>\let\textcent\@undefined |
| 1244 |
%<latexrelease>\DeclareTextCommandDefault{\textcopyright} |
| 1245 |
%<latexrelease> {\textcircled{c}} |
| 1246 |
%<latexrelease>\let\textdegree\@undefined |
| 1247 |
%<latexrelease>\let\textdiv\@undefined |
| 1248 |
%<latexrelease>\let\textlnot\@undefined |
| 1249 |
%<latexrelease>\let\textonehalf\@undefined |
| 1250 |
%<latexrelease>\let\textonequarter\@undefined |
| 1251 |
%<latexrelease>\let\textonesuperior\@undefined |
| 1252 |
%<latexrelease>\DeclareTextCommandDefault{\textordfeminine} |
| 1253 |
%<latexrelease> {\textsuperscript{a}} |
| 1254 |
%<latexrelease>\DeclareTextCommandDefault{\textordmasculine} |
| 1255 |
%<latexrelease> {\textsuperscript{o}} |
| 1256 |
%<latexrelease>\let\textpm\@undefined |
| 1257 |
%<latexrelease>\let\textquotesingle\@undefined |
| 1258 |
%<latexrelease>\let\textquotestraightbase\@undefined |
| 1259 |
%<latexrelease>\let\textquotestraightdblbase\@undefined |
| 1260 |
%<latexrelease>\DeclareTextCommandDefault{\textregistered} |
| 1261 |
%<latexrelease> {\textcircled{% |
| 1262 |
%<latexrelease> \check@mathfonts\fontsize\sf@size\z@ |
| 1263 |
%<latexrelease> \math@fontsfalse\selectfont R}} |
| 1264 |
%<latexrelease>\let\textthreequartersemdash\@undefined |
| 1265 |
%<latexrelease>\let\textthreequarters\@undefined |
| 1266 |
%<latexrelease>\let\textthreesuperior\@undefined |
| 1267 |
%<latexrelease>\let\texttimes\@undefined |
| 1268 |
%<latexrelease>\DeclareTextCommandDefault{\texttrademark} |
| 1269 |
%<latexrelease> {\textsuperscript{TM}} |
| 1270 |
%<latexrelease>\let\texttwelveudash\@undefined |
| 1271 |
%<latexrelease>\let\texttwosuperior\@undefined |
| 1272 |
%<latexrelease>\let\textyen\@undefined |
| 1273 |
%<latexrelease> |
| 1274 |
%<latexrelease>\let\textcapitalcompwordmark\@undefined |
| 1275 |
%<latexrelease>\let\textascendercompwordmark\@undefined |
| 1276 |
%<latexrelease> |
| 1277 |
%<latexrelease>\DeclareTextAccentDefault{\textcircled}{OMS} |
| 1278 |
%<latexrelease>\DeclareTextAccentDefault{\t}{OML} |
| 1279 |
%<latexrelease> |
| 1280 |
%<latexrelease>\let\capitalacute\@undefined |
| 1281 |
%<latexrelease>\let\capitalbreve\@undefined |
| 1282 |
%<latexrelease>\let\capitalcaron\@undefined |
| 1283 |
%<latexrelease>\let\capitalcedilla\@undefined |
| 1284 |
%<latexrelease>\let\capitalcircumflex\@undefined |
| 1285 |
%<latexrelease>\let\capitaldieresis\@undefined |
| 1286 |
%<latexrelease>\let\capitaldotaccent\@undefined |
| 1287 |
%<latexrelease>\let\capitalgrave\@undefined |
| 1288 |
%<latexrelease>\let\capitalhungarumlaut\@undefined |
| 1289 |
%<latexrelease>\let\capitalmacron\@undefined |
| 1290 |
%<latexrelease>\let\capitalnewtie\@undefined |
| 1291 |
%<latexrelease>\let\capitalogonek\@undefined |
| 1292 |
%<latexrelease>\let\capitalring\@undefined |
| 1293 |
%<latexrelease>\let\capitaltie\@undefined |
| 1294 |
%<latexrelease>\let\capitaltilde\@undefined |
| 1295 |
%<latexrelease>\let\newtie\@undefined |
| 1296 |
%<latexrelease> |
| 1297 |
%<latexrelease>\let\textlbrackdbl\@undefined |
| 1298 |
%<latexrelease>\let\textrbrackdbl\@undefined |
| 1299 |
%<latexrelease> |
| 1300 |
%<latexrelease>\let\texteightoldstyle\@undefined |
| 1301 |
%<latexrelease>\let\textfiveoldstyle\@undefined |
| 1302 |
%<latexrelease>\let\textfouroldstyle\@undefined |
| 1303 |
%<latexrelease>\let\textnineoldstyle\@undefined |
| 1304 |
%<latexrelease>\let\textoneoldstyle\@undefined |
| 1305 |
%<latexrelease>\let\textsevenoldstyle\@undefined |
| 1306 |
%<latexrelease>\let\textsixoldstyle\@undefined |
| 1307 |
%<latexrelease>\let\textthreeoldstyle\@undefined |
| 1308 |
%<latexrelease>\let\texttwooldstyle\@undefined |
| 1309 |
%<latexrelease>\let\textzerooldstyle\@undefined |
| 1310 |
%<latexrelease> |
| 1311 |
%<latexrelease>\let\textacutedbl\@undefined |
| 1312 |
%<latexrelease>\let\textasciiacute\@undefined |
| 1313 |
%<latexrelease>\let\textasciibreve\@undefined |
| 1314 |
%<latexrelease>\let\textasciicaron\@undefined |
| 1315 |
%<latexrelease>\let\textasciidieresis\@undefined |
| 1316 |
%<latexrelease>\let\textasciigrave\@undefined |
| 1317 |
%<latexrelease>\let\textasciimacron\@undefined |
| 1318 |
%<latexrelease>\let\textgravedbl\@undefined |
| 1319 |
%<latexrelease>\let\texttildelow\@undefined |
| 1320 |
%<latexrelease> |
| 1321 |
%<latexrelease>\let\textbaht\@undefined |
| 1322 |
%<latexrelease>\let\textbigcircle\@undefined |
| 1323 |
%<latexrelease>\let\textborn\@undefined |
| 1324 |
%<latexrelease>\let\textcentoldstyle\@undefined |
| 1325 |
%<latexrelease>\let\textcircledP\@undefined |
| 1326 |
%<latexrelease>\let\textcopyleft\@undefined |
| 1327 |
%<latexrelease>\let\textdblhyphenchar\@undefined |
| 1328 |
%<latexrelease>\let\textdblhyphen\@undefined |
| 1329 |
%<latexrelease>\let\textdied\@undefined |
| 1330 |
%<latexrelease>\let\textdiscount\@undefined |
| 1331 |
%<latexrelease>\let\textdivorced\@undefined |
| 1332 |
%<latexrelease>\let\textdollaroldstyle\@undefined |
| 1333 |
%<latexrelease>\let\textguarani\@undefined |
| 1334 |
%<latexrelease>\let\textleaf\@undefined |
| 1335 |
%<latexrelease>\let\textlquill\@undefined |
| 1336 |
%<latexrelease>\let\textmarried\@undefined |
| 1337 |
%<latexrelease>\let\textmho\@undefined |
| 1338 |
%<latexrelease>\let\textmusicalnote\@undefined |
| 1339 |
%<latexrelease>\let\textnaira\@undefined |
| 1340 |
%<latexrelease>\let\textopenbullet\@undefined |
| 1341 |
%<latexrelease>\let\textpeso\@undefined |
| 1342 |
%<latexrelease>\let\textpilcrow\@undefined |
| 1343 |
%<latexrelease>\let\textrecipe\@undefined |
| 1344 |
%<latexrelease>\let\textreferencemark\@undefined |
| 1345 |
%<latexrelease>\let\textrquill\@undefined |
| 1346 |
%<latexrelease>\let\textservicemark\@undefined |
| 1347 |
%<latexrelease>\let\textsurd\@undefined |
| 1348 |
%<latexrelease> |
| 1349 |
%<latexrelease>\DeclareTextCommand{\textpertenthousand}{T1} |
| 1350 |
%<latexrelease> {\%\char 24\char 24 } |
| 1351 |
%<latexrelease> |
| 1352 |
%<latexrelease>\let\textlangle\@undefined |
| 1353 |
%<latexrelease>\let\textrangle\@undefined |
| 1354 |
%<latexrelease> |
| 1355 |
%<latexrelease>\let\textcolonmonetary\@undefined |
| 1356 |
%<latexrelease>\let\textdong\@undefined |
| 1357 |
%<latexrelease>\let\textdownarrow\@undefined |
| 1358 |
%<latexrelease>\let\textleftarrow\@undefined |
| 1359 |
%<latexrelease>\let\textlira\@undefined |
| 1360 |
%<latexrelease>\let\textrightarrow\@undefined |
| 1361 |
%<latexrelease>\let\textuparrow\@undefined |
| 1362 |
%<latexrelease>\let\textwon\@undefined |
| 1363 |
%<latexrelease> |
| 1364 |
%<latexrelease>\let\textestimated\@undefined |
| 1365 |
%<latexrelease>\let\textnumero\@undefined |
| 1366 |
%<latexrelease> |
| 1367 |
%<latexrelease>\let\textflorin\@undefined |
| 1368 |
%<latexrelease>\let\textcurrency\@undefined |
| 1369 |
%<latexrelease> |
| 1370 |
%<latexrelease>\let\textfractionsolidus\@undefined |
| 1371 |
%<latexrelease>\let\textohm\@undefined |
| 1372 |
%<latexrelease>\let\textmu\@undefined |
| 1373 |
%<latexrelease>\let\textminus\@undefined |
| 1374 |
%<latexrelease> |
| 1375 |
%<latexrelease>\let\textblank\@undefined |
| 1376 |
%<latexrelease>\let\textinterrobangdown\@undefined |
| 1377 |
%<latexrelease>\let\textinterrobang\@undefined |
| 1378 |
%<latexrelease> |
| 1379 |
%<latexrelease>\let\texteuro\@undefined |
| 1380 |
%<latexrelease> |
| 1381 |
%<latexrelease>\let\textcelsius\@undefined |
| 1382 |
%<latexrelease>\let\textonesuperior\@undefined |
| 1383 |
%<latexrelease>\let\textthreequartersemdash\@undefined |
| 1384 |
%<latexrelease>\let\textthreesuperior\@undefined |
| 1385 |
%<latexrelease>\let\texttwelveudash\@undefined |
| 1386 |
%<latexrelease>\let\texttwosuperior\@undefined |
| 1387 |
%<latexrelease>\let\textbardbl\@undefined |
| 1388 |
%<latexrelease> |
| 1389 |
%<latexrelease>\let\UseLegacyTextSymbols\@undefined |
| 1390 |
%<latexrelease>\let\textlegacyasteriskcentered\@undefined |
| 1391 |
%<latexrelease>\let\textlegacybardbl\@undefined |
| 1392 |
%<latexrelease>\let\textlegacybullet\@undefined |
| 1393 |
%<latexrelease>\let\textlegacydaggerdbl\@undefined |
| 1394 |
%<latexrelease>\let\textlegacydagger\@undefined |
| 1395 |
%<latexrelease>\let\textlegacyparagraph\@undefined |
| 1396 |
%<latexrelease>\let\textlegacyperiodcentered\@undefined |
| 1397 |
%<latexrelease>\let\textlegacysection\@undefined |
| 1398 |
%<latexrelease> |
| 1399 |
%<latexrelease>\EndModuleRelease |
| 1400 |
% \end{macrocode} |
| 1401 |
% |
| 1402 |
% |
| 1403 |
% |
| 1404 |
% \section{The \texttt{textcomp} package} |
| 1405 |
% |
| 1406 |
% |
| 1407 |
% For any rollback request before 2018-08-11 we make an attempt by |
| 1408 |
% loading the 2018 version. |
| 1409 |
% \changes{v2.1b}{2024/04/24} |
| 1410 |
% {Load the 2018 version when rolling back prior to 2018-08-11 |
| 1411 |
% (gh/1333)} |
| 1412 |
% \begin{macrocode} |
| 1413 |
%<*TS1sty> |
| 1414 |
\DeclareRelease{}{1997-12-01}{textcomp-2018-08-11.sty} |
| 1415 |
\DeclareRelease{}{2018-08-11}{textcomp-2018-08-11.sty} |
| 1416 |
\DeclareCurrentRelease{}{2020-02-02} |
| 1417 |
|
| 1418 |
\ProvidesPackage{textcomp} |
| 1419 |
[2024/04/24 v2.1b Standard LaTeX package] |
| 1420 |
% \end{macrocode} |
| 1421 |
% |
| 1422 |
% A precaution in case this is used without rebuilding the format. |
| 1423 |
% \changes{v2.0n}{2020/02/05}{Ensure we are on a new format (gh/260)} |
| 1424 |
% \begin{macrocode} |
| 1425 |
\NeedsTeXFormat{LaTeX2e}[2020/02/02] |
| 1426 |
% \end{macrocode} |
| 1427 |
% |
| 1428 |
% This is implemented by defining the default subset: |
| 1429 |
% \begin{macrocode} |
| 1430 |
\DeclareOption{full}{\DeclareEncodingSubset{TS1}{?}{0}} |
| 1431 |
\DeclareOption{almostfull}{\DeclareEncodingSubset{TS1}{?}{1}} |
| 1432 |
\DeclareOption{euro}{\DeclareEncodingSubset{TS1}{?}{8}} |
| 1433 |
\DeclareOption{safe}{\DeclareEncodingSubset{TS1}{?}{9}} |
| 1434 |
% \end{macrocode} |
| 1435 |
% The default is set up in the kernel is ``safe'' these days for |
| 1436 |
% unknown fonts but LaTeX has definitions for most families so it |
| 1437 |
% seldom applies. |
| 1438 |
% |
| 1439 |
% If a different default is used then one needs to check the |
| 1440 |
% results to ensure that there aren't ``missing glyphs''. |
| 1441 |
% |
| 1442 |
% The next set of options define the warning level (default in the |
| 1443 |
% kernel is info only). Using the package options you can change this behavior. |
| 1444 |
% \changes{v2.0n}{2020/02/05}{Changed the package default to info (gh/262)} |
| 1445 |
% \begin{macrocode} |
| 1446 |
\DeclareOption{error} |
| 1447 |
{\gdef\tc@errorwarn{\PackageError{textcomp}}} |
| 1448 |
\DeclareOption{warn} |
| 1449 |
{\gdef\tc@errorwarn#1#2{\PackageWarning{textcomp}{#1}}} |
| 1450 |
\DeclareOption{info} |
| 1451 |
{\gdef\tc@errorwarn#1#2{\PackageInfo{textcomp}{#1}}} |
| 1452 |
\DeclareOption{quiet}{\gdef\tc@errorwarn#1#2{}} |
| 1453 |
% \end{macrocode} |
| 1454 |
% |
| 1455 |
% The ``force'' option basically changes the sub-encoding to that |
| 1456 |
% of the default (which, unless changes, is 9 these days), i.e., it |
| 1457 |
% no longer depends on the font in use. This is mainly there |
| 1458 |
% because it might have been used in older documents, but not |
| 1459 |
% something that is recommended. |
| 1460 |
% \begin{macrocode} |
| 1461 |
\DeclareOption{force}{% |
| 1462 |
\def\CheckEncodingSubset#1#2#3#4#5{% |
| 1463 |
\ifnum #4>% |
| 1464 |
0\csname #2:?\endcsname |
| 1465 |
\relax |
| 1466 |
\expandafter\@firstoftwo |
| 1467 |
\else |
| 1468 |
\expandafter\@secondoftwo |
| 1469 |
\fi |
| 1470 |
{#1{#2}}{#3}% |
| 1471 |
#5}% |
| 1472 |
} |
| 1473 |
% \end{macrocode} |
| 1474 |
% |
| 1475 |
% \changes{v2.1a}{2024/04/22}{Drop default option \texttt{info} (gh/1333)} |
| 1476 |
% \begin{macrocode} |
| 1477 |
\ProcessOptions\relax |
| 1478 |
% \end{macrocode} |
| 1479 |
% |
| 1480 |
% There is not much else to do nowadays, because everything is |
| 1481 |
% already set up in the \LaTeX{} kernel. |
| 1482 |
% |
| 1483 |
% \begin{macrocode} |
| 1484 |
\InputIfFileExists{textcomp.cfg} |
| 1485 |
{\PackageInfo{textcomp}{Local configuration file used}}{} |
| 1486 |
% \end{macrocode} |
| 1487 |
% |
| 1488 |
% \begin{macrocode} |
| 1489 |
%</TS1sty> |
| 1490 |
% \end{macrocode} |
| 1491 |
% |
| 1492 |
% |
| 1493 |
% |
| 1494 |
% \subsection{The old textcomp package code} |
| 1495 |
% |
| 1496 |
% This section contains the old code for the textcomp package and |
| 1497 |
% its documentation. It is only used if we roll back prior to 2020. |
| 1498 |
% Thus all the rest is mainly for historians. Note that the old |
| 1499 |
% code categorized in the sub-encodings only into 6 classes not 10. |
| 1500 |
% |
| 1501 |
% \begin{macrocode} |
| 1502 |
%<*TS1oldsty> |
| 1503 |
\ProvidesPackage{textcomp} |
| 1504 |
[2018/08/11 v2.0j Standard LaTeX package] |
| 1505 |
% \end{macrocode} |
| 1506 |
% |
| 1507 |
% This one is for the |TS1| encoding which contains text symbols |
| 1508 |
% for use with the |T1|-encoded text fonts. It therefore first |
| 1509 |
% inputs the file |TS1enc.def| and then sets (or resets) the |
| 1510 |
% defaults for the symbols it contains. The result of this is that |
| 1511 |
% when one of these symbols is accessed and the current encoding |
| 1512 |
% does not provide it, the symbol will be supplied by a silent, |
| 1513 |
% local change to this encoding. |
| 1514 |
% |
| 1515 |
% Since many PostScript fonts only implement a subset of |TS1| many |
| 1516 |
% commands only produce black blobs of ink. To resolve the |
| 1517 |
% resulting problems a number of options have been introduced and |
| 1518 |
% some code has been developed to distinguish sub-encodings. |
| 1519 |
% |
| 1520 |
% The sub-encodings have a numerical id and are defined as follows |
| 1521 |
% for \texttt{TS1}: |
| 1522 |
% \begin{description} |
| 1523 |
% |
| 1524 |
% \item[\#5] those \texttt{TS1} symbols that are also in the ISO-Adobe |
| 1525 |
% character set; without \verb=textcurrency=, which is often |
| 1526 |
% misused for the Euro. Older Type1 fonts from the non-\TeX{} |
| 1527 |
% world provide only this subset. |
| 1528 |
% |
| 1529 |
% \item[\#4] = \#5 + \verb=\texteuro=. Most newer fonts provide this. |
| 1530 |
% |
| 1531 |
% \item[\#3] = \#4 + \verb=\textomega=. Can also be described as |
| 1532 |
% $\texttt{TS1} \cap (\texttt{ISO-Adobe} \cup |
| 1533 |
% \texttt{MacRoman})$. (Except for the missing "currency".) |
| 1534 |
|
| 1535 |
% |
| 1536 |
% \item[\#2] = \#3 + \verb=\textestimated= + \verb=\textcurrency=. Can |
| 1537 |
% also be described as $\texttt{TS1} \cap |
| 1538 |
% \texttt{Adobe-Western-2}$. This may be relevant for OpenType |
| 1539 |
% fonts, which usually show the Adobe-Western-2 character set. |
| 1540 |
% |
| 1541 |
% \item[\#1] = \texttt{TS1} without \verb=\textcircled= and \verb=\t=. |
| 1542 |
% These two glyphs are often not implemented and if their kernel |
| 1543 |
% defaults are changed commands like \verb=\copyright= |
| 1544 |
% unnecessarily fail. |
| 1545 |
% |
| 1546 |
% \item[\#0] = full \texttt{TS1} |
| 1547 |
% \end{description} |
| 1548 |
% |
| 1549 |
% And here a summary to go in the transcript file: |
| 1550 |
% \begin{macrocode} |
| 1551 |
\PackageInfo{textcomp}{Sub-encoding information:\MessageBreak |
| 1552 |
\space\space 5 = only ISO-Adobe without |
| 1553 |
\string\textcurrency\MessageBreak |
| 1554 |
\space\space 4 = 5 + \string\texteuro\MessageBreak |
| 1555 |
\space\space 3 = 4 + \string\textohm\MessageBreak |
| 1556 |
\space\space 2 = 3 + \noexpand\textestimated+ |
| 1557 |
\string\textcurrency\MessageBreak |
| 1558 |
\space\space 1 = TS1 - \noexpand\textcircled- |
| 1559 |
\string\t\MessageBreak |
| 1560 |
\space\space 0 = TS1 (full)\MessageBreak |
| 1561 |
Font families with sub-encoding setting implement\MessageBreak |
| 1562 |
only a restricted character set as indicated.\MessageBreak |
| 1563 |
Family '?' is the default used for unknown fonts.\MessageBreak |
| 1564 |
See the documentation for details\@gobble} |
| 1565 |
% \end{macrocode} |
| 1566 |
% |
| 1567 |
% \begin{macro}{\DeclareEncodingSubset} |
| 1568 |
% An encoding subset to which a font family belongs is declared by |
| 1569 |
% the command |\DeclareEncodingSubset| that takes the major encoding as the |
| 1570 |
% first argument (e.g., |TS1|), the family name as the second |
| 1571 |
% argument (e.g., |cmr|), and the subset encoding id as a third, |
| 1572 |
% (e.g., |0| for |cmr|). |
| 1573 |
% |
| 1574 |
% The default encoding subset to use when nothing is known about |
| 1575 |
% the current font family is named |?|. |
| 1576 |
% \begin{macrocode} |
| 1577 |
\def\DeclareEncodingSubset#1#2#3{% |
| 1578 |
\@ifundefined{#1:#2}% |
| 1579 |
{\PackageInfo{textcomp}{Setting #2 sub-encoding to #1/#3}}% |
| 1580 |
{\PackageInfo{textcomp}{Changing #2 sub-encoding to #1/#3}}% |
| 1581 |
\@namedef{#1:#2}{#3}} |
| 1582 |
% \end{macrocode} |
| 1583 |
% In the original code this was only allowed in the preamble but |
| 1584 |
% now \texttt{.fd}s might contain it so that even in a rollback |
| 1585 |
% situation it is necessary to allow it everywhere in the document. |
| 1586 |
% \begin{macrocode} |
| 1587 |
%\@onlypreamble\DeclareEncodingSubset |
| 1588 |
% \end{macrocode} |
| 1589 |
% \end{macro} |
| 1590 |
% |
| 1591 |
% |
| 1592 |
% The options for the package are the following: |
| 1593 |
% \begin{description} |
| 1594 |
% \item[safe] |
| 1595 |
% for unknown font families enables only symbols that are also |
| 1596 |
% in the ISO-Adobe character set; without "currency", which is |
| 1597 |
% often misused for the Euro. Older Type1 fonts from the |
| 1598 |
% non-TeX world provide only this subset. |
| 1599 |
% |
| 1600 |
% \item[euro] |
| 1601 |
% enables the ``safe'' symbols plus the |\texteuro| |
| 1602 |
% command. Most newer fonts provide this. |
| 1603 |
% |
| 1604 |
% \item[full] enables all |TS1| commands; useful only with fonts |
| 1605 |
% like EC or CM bright. |
| 1606 |
% |
| 1607 |
% \item[almostfull] |
| 1608 |
% same as ``full'', except that |\textcircled| |
| 1609 |
% and |\t| are \emph{not} redefined from their defaults to avoid |
| 1610 |
% that commands like |\copyright| suddenly no longer work. |
| 1611 |
% |
| 1612 |
% \item[force] |
| 1613 |
% ignore all subset encoding definitions stored in the package |
| 1614 |
% itself or in the configuration file and always use the default |
| 1615 |
% subset as specified by one of the other options (seldom useful, |
| 1616 |
% only dangerous). |
| 1617 |
% \end{description} |
| 1618 |
% |
| 1619 |
% \begin{macro}{\iftc@forced} |
| 1620 |
% Switch used to implement the \texttt{force} option |
| 1621 |
% \begin{macrocode} |
| 1622 |
\newif\iftc@forced \tc@forcedfalse |
| 1623 |
% \end{macrocode} |
| 1624 |
% \end{macro} |
| 1625 |
|
| 1626 |
% This is implemented by defining the default subset: |
| 1627 |
% \begin{macrocode} |
| 1628 |
\DeclareOption{full}{\DeclareEncodingSubset{TS1}{?}{0}} |
| 1629 |
\DeclareOption{almostfull}{\DeclareEncodingSubset{TS1}{?}{1}} |
| 1630 |
\DeclareOption{euro}{\DeclareEncodingSubset{TS1}{?}{4}} |
| 1631 |
\DeclareOption{safe}{\DeclareEncodingSubset{TS1}{?}{5}} |
| 1632 |
% \end{macrocode} |
| 1633 |
% The default is ``almostfull'' which means that old documents will |
| 1634 |
% work except that |\textcircled| and |\t| will use the kernel |
| 1635 |
% defaults (with the advantage that this also works if the current |
| 1636 |
% font, as often the case, doesn't implement these glyphs). |
| 1637 |
% |
| 1638 |
% The ``force'' option simply sets the switch to true. |
| 1639 |
% \begin{macrocode} |
| 1640 |
\DeclareOption{force}{\tc@forcedtrue} |
| 1641 |
% \end{macrocode} |
| 1642 |
% |
| 1643 |
% The suggestions to user is to use the ``safe'' option always |
| 1644 |
% unless that balks in which case they could switch to |
| 1645 |
% ``almostfull'' but then better check their output manually. |
| 1646 |
% |
| 1647 |
% \begin{macrocode} |
| 1648 |
\def\tc@errorwarn{\PackageError} |
| 1649 |
\DeclareOption{warn}{\gdef\tc@errorwarn#1#2#3{\PackageWarning{#1}{#2}}} |
| 1650 |
\DeclareOption{quiet}{\gdef\tc@errorwarn#1#2#3{}} |
| 1651 |
% \end{macrocode} |
| 1652 |
% |
| 1653 |
% \begin{macrocode} |
| 1654 |
\ExecuteOptions{almostfull} |
| 1655 |
\ProcessOptions\relax |
| 1656 |
% \end{macrocode} |
| 1657 |
% |
| 1658 |
% |
| 1659 |
% |
| 1660 |
% |
| 1661 |
% \begin{macro}{\CheckEncodingSubset} |
| 1662 |
% The command |\CheckEncodingSubset| will check if the current font |
| 1663 |
% family has the right encoding subset to typeset a certain |
| 1664 |
% command. It takes five arguments as follows: |
| 1665 |
% first argument is either |\UseTextSymbol|, |\UseTextAccent| |
| 1666 |
% depending on whether or not the symbol is a text symbol or a text |
| 1667 |
% accent. |
| 1668 |
|
| 1669 |
% The second argument is the encoding from which this symbol should |
| 1670 |
% be fetched. |
| 1671 |
% |
| 1672 |
% The third argument is either a fake accessor command or an error |
| 1673 |
% message. the code in that argument (if ever executed) receives |
| 1674 |
% two arguments: |#2| and |#5| of |\CheckEncodingSubset|. |
| 1675 |
% |
| 1676 |
% Argument four is the subset encoding id to test against: if this |
| 1677 |
% value is higher than the subset id of the current font family |
| 1678 |
% then we typeset the symbol, i.e., execute |#1{#2}#5| otherwise |
| 1679 |
% it runs |#3#5|, e.g., to produce an error message or fake the |
| 1680 |
% glyph somehow. |
| 1681 |
% |
| 1682 |
% Argument five is the symbol or accent command that is being |
| 1683 |
% checked. |
| 1684 |
% |
| 1685 |
% For usage examples see definitions below. |
| 1686 |
% \begin{macrocode} |
| 1687 |
\iftc@forced |
| 1688 |
% \end{macrocode} |
| 1689 |
% If the ``force'' option was given we always use the default for |
| 1690 |
% testing against. |
| 1691 |
% \begin{macrocode} |
| 1692 |
\def\CheckEncodingSubset#1#2#3#4#5{% |
| 1693 |
\ifnum #4>% |
| 1694 |
0\csname #2:?\endcsname |
| 1695 |
\relax |
| 1696 |
\expandafter\@firstoftwo |
| 1697 |
\else |
| 1698 |
\expandafter\@secondoftwo |
| 1699 |
\fi |
| 1700 |
{#1{#2}}{#3}% |
| 1701 |
#5% |
| 1702 |
} |
| 1703 |
% \end{macrocode} |
| 1704 |
% |
| 1705 |
% In normal circumstances the test is a bit more complicated: first |
| 1706 |
% check if there exists a macro |
| 1707 |
% |\|\meta{arg2}|:|\meta{current-family} and if so use that value |
| 1708 |
% to test against, otherwise use the default to test against. |
| 1709 |
% \begin{macrocode} |
| 1710 |
\else |
| 1711 |
\def\CheckEncodingSubset#1#2#3#4#5{% |
| 1712 |
\ifnum #4>% |
| 1713 |
\expandafter\ifx\csname #2:\f@family\endcsname\relax |
| 1714 |
0\csname #2:?\endcsname |
| 1715 |
\else |
| 1716 |
\csname #2:\f@family\endcsname |
| 1717 |
\fi |
| 1718 |
\relax |
| 1719 |
\expandafter\@firstoftwo |
| 1720 |
\else |
| 1721 |
\expandafter\@secondoftwo |
| 1722 |
\fi |
| 1723 |
{#1{#2}}{#3}% |
| 1724 |
#5% |
| 1725 |
} |
| 1726 |
\fi |
| 1727 |
% \end{macrocode} |
| 1728 |
% \end{macro} |
| 1729 |
% |
| 1730 |
% \begin{macro}{\tc@subst} |
| 1731 |
% \begin{macrocode} |
| 1732 |
\def\tc@subst#1{% |
| 1733 |
\tc@errorwarn{textcomp}% |
| 1734 |
{Symbol \string#1 not provided by\MessageBreak |
| 1735 |
font family \f@family\space |
| 1736 |
in TS1 encoding.\MessageBreak Default family used instead}\@eha |
| 1737 |
\bgroup\fontfamily\textcompsubstdefault\selectfont#1\egroup |
| 1738 |
} |
| 1739 |
% \end{macrocode} |
| 1740 |
% \end{macro} |
| 1741 |
% |
| 1742 |
% \begin{macro}{\tc@error} |
| 1743 |
% |\tc@error| is going to be used in arg |#3| of |
| 1744 |
% |\CheckEncodingSubset| when a symbol is not available in a |
| 1745 |
% certain font family. It gets pass the encoding it normally lives |
| 1746 |
% in (arg one) and the name of the symbol or accent that has a |
| 1747 |
% problem. |
| 1748 |
% |
| 1749 |
% \begin{macrocode} |
| 1750 |
% error commands take argument: |
| 1751 |
% #1 symbol to be used |
| 1752 |
\def\tc@error#1{% |
| 1753 |
\PackageError{textcomp}% % should be latex error if general |
| 1754 |
{Accent \string#1 not provided by\MessageBreak |
| 1755 |
font family \f@family\space |
| 1756 |
in TS1 encoding}\@eha |
| 1757 |
} |
| 1758 |
% \end{macrocode} |
| 1759 |
% \end{macro} |
| 1760 |
% |
| 1761 |
% |
| 1762 |
% \begin{macro}{\tc@fake@euro} |
| 1763 |
% |\tc@fake@euro| is an example of a ``fake'' definition to use in arg |#3| of |
| 1764 |
% |\CheckEncodingSubset| when a symbol is not available in a |
| 1765 |
% certain font family. Here we produce an Euro symbol by combining |
| 1766 |
% a ``C'' with a ``=''. |
| 1767 |
% \begin{macrocode} |
| 1768 |
\def\tc@fake@euro#1{% |
| 1769 |
\leavevmode |
| 1770 |
\PackageInfo{textcomp}{Faking \noexpand#1for font family |
| 1771 |
\f@family\MessageBreak in TS1 encoding}% |
| 1772 |
\valign{##\cr |
| 1773 |
\vfil\hbox to 0.07em{\dimen@\f@size\p@ |
| 1774 |
\math@fontsfalse |
| 1775 |
\fontsize{.7\dimen@}\z@\selectfont=\hss}% |
| 1776 |
\vfil\cr% |
| 1777 |
\hbox{C}\crcr |
| 1778 |
}% |
| 1779 |
} |
| 1780 |
% \end{macrocode} |
| 1781 |
% \end{macro} |
| 1782 |
% |
| 1783 |
% \begin{macro}{\tc@check@symbol} |
| 1784 |
% \begin{macro}{\tc@check@accent} |
| 1785 |
% These are two abbreviations that we use below to check symbols |
| 1786 |
% and accents in TS1. Only there to save some space, e.g., we can |
| 1787 |
% then write |
| 1788 |
%\begin{verbatim} |
| 1789 |
%\DeclareTextCommandDefault{\textcurrency}{\tc@check@symbol3\textcurrency} |
| 1790 |
%\end{verbatim} |
| 1791 |
% to ensure that |\textcurrency| is only typeset if the current |
| 1792 |
% font has a \texttt{TS1} subset id of less than 3. Otherwise |
| 1793 |
% |\tc@error| is called telling the user that for this font family |
| 1794 |
% |\textcurrency| is not available. |
| 1795 |
% \begin{macrocode} |
| 1796 |
\def\tc@check@symbol{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@subst} |
| 1797 |
\def\tc@check@accent{\CheckEncodingSubset\UseTextAccent{TS1}\tc@error} |
| 1798 |
% \end{macrocode} |
| 1799 |
% \end{macro} |
| 1800 |
% \end{macro} |
| 1801 |
% |
| 1802 |
% We start with the commands that are ``safe'' and which can be |
| 1803 |
% unconditionally set up, first the accents\ldots |
| 1804 |
% \begin{macrocode} |
| 1805 |
\DeclareTextAccentDefault{\capitalcedilla}{TS1} |
| 1806 |
\DeclareTextAccentDefault{\capitalogonek}{TS1} |
| 1807 |
\DeclareTextAccentDefault{\capitalgrave}{TS1} |
| 1808 |
\DeclareTextAccentDefault{\capitalacute}{TS1} |
| 1809 |
\DeclareTextAccentDefault{\capitalcircumflex}{TS1} |
| 1810 |
\DeclareTextAccentDefault{\capitaltilde}{TS1} |
| 1811 |
\DeclareTextAccentDefault{\capitaldieresis}{TS1} |
| 1812 |
\DeclareTextAccentDefault{\capitalhungarumlaut}{TS1} |
| 1813 |
\DeclareTextAccentDefault{\capitalring}{TS1} |
| 1814 |
\DeclareTextAccentDefault{\capitalcaron}{TS1} |
| 1815 |
\DeclareTextAccentDefault{\capitalbreve}{TS1} |
| 1816 |
\DeclareTextAccentDefault{\capitalmacron}{TS1} |
| 1817 |
\DeclareTextAccentDefault{\capitaldotaccent}{TS1} |
| 1818 |
% \end{macrocode} |
| 1819 |
% \ldots and then the other glyphs. |
| 1820 |
% \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840} |
| 1821 |
% \begin{macrocode} |
| 1822 |
\DeclareTextSymbolDefault{\textcapitalcompwordmark}{TS1} |
| 1823 |
\DeclareTextSymbolDefault{\textascendercompwordmark}{TS1} |
| 1824 |
\DeclareTextSymbolDefault{\textquotestraightbase}{TS1} |
| 1825 |
\DeclareTextSymbolDefault{\textquotestraightdblbase}{TS1} |
| 1826 |
\DeclareTextSymbolDefault{\texttwelveudash}{TS1} |
| 1827 |
\DeclareTextSymbolDefault{\textthreequartersemdash}{TS1} |
| 1828 |
\DeclareTextSymbolDefault{\textdollar}{TS1} |
| 1829 |
\DeclareTextSymbolDefault{\textquotesingle}{TS1} |
| 1830 |
\DeclareTextSymbolDefault{\textasteriskcentered}{TS1} |
| 1831 |
\DeclareTextSymbolDefault{\textfractionsolidus}{TS1} |
| 1832 |
\DeclareTextSymbolDefault{\textminus}{TS1} |
| 1833 |
\DeclareTextSymbolDefault{\textlbrackdbl}{TS1} |
| 1834 |
\DeclareTextSymbolDefault{\textrbrackdbl}{TS1} |
| 1835 |
\DeclareTextSymbolDefault{\textasciigrave}{TS1} |
| 1836 |
\DeclareTextSymbolDefault{\texttildelow}{TS1} |
| 1837 |
\DeclareTextSymbolDefault{\textasciibreve}{TS1} |
| 1838 |
\DeclareTextSymbolDefault{\textasciicaron}{TS1} |
| 1839 |
\DeclareTextSymbolDefault{\textgravedbl}{TS1} |
| 1840 |
\DeclareTextSymbolDefault{\textacutedbl}{TS1} |
| 1841 |
\DeclareTextSymbolDefault{\textdagger}{TS1} |
| 1842 |
\DeclareTextSymbolDefault{\textdaggerdbl}{TS1} |
| 1843 |
\DeclareTextSymbolDefault{\textbardbl}{TS1} |
| 1844 |
\DeclareTextSymbolDefault{\textperthousand}{TS1} |
| 1845 |
\DeclareTextSymbolDefault{\textbullet}{TS1} |
| 1846 |
\DeclareTextSymbolDefault{\textcelsius}{TS1} |
| 1847 |
\DeclareTextSymbolDefault{\textflorin}{TS1} |
| 1848 |
\DeclareTextSymbolDefault{\texttrademark}{TS1} |
| 1849 |
\DeclareTextSymbolDefault{\textcent}{TS1} |
| 1850 |
\DeclareTextSymbolDefault{\textsterling}{TS1} |
| 1851 |
\DeclareTextSymbolDefault{\textyen}{TS1} |
| 1852 |
\DeclareTextSymbolDefault{\textbrokenbar}{TS1} |
| 1853 |
\DeclareTextSymbolDefault{\textsection}{TS1} |
| 1854 |
\DeclareTextSymbolDefault{\textasciidieresis}{TS1} |
| 1855 |
\DeclareTextSymbolDefault{\textcopyright}{TS1} |
| 1856 |
\DeclareTextSymbolDefault{\textordfeminine}{TS1} |
| 1857 |
\DeclareTextSymbolDefault{\textlnot}{TS1} |
| 1858 |
\DeclareTextSymbolDefault{\textregistered}{TS1} |
| 1859 |
\DeclareTextSymbolDefault{\textasciimacron}{TS1} |
| 1860 |
\DeclareTextSymbolDefault{\textdegree}{TS1} |
| 1861 |
\DeclareTextSymbolDefault{\textpm}{TS1} |
| 1862 |
\DeclareTextSymbolDefault{\texttwosuperior}{TS1} |
| 1863 |
\DeclareTextSymbolDefault{\textthreesuperior}{TS1} |
| 1864 |
\DeclareTextSymbolDefault{\textasciiacute}{TS1} |
| 1865 |
\DeclareTextSymbolDefault{\textmu}{TS1} |
| 1866 |
\DeclareTextSymbolDefault{\textparagraph}{TS1} |
| 1867 |
\DeclareTextSymbolDefault{\textperiodcentered}{TS1} |
| 1868 |
\DeclareTextSymbolDefault{\textonesuperior}{TS1} |
| 1869 |
\DeclareTextSymbolDefault{\textordmasculine}{TS1} |
| 1870 |
\DeclareTextSymbolDefault{\textonequarter}{TS1} |
| 1871 |
\DeclareTextSymbolDefault{\textonehalf}{TS1} |
| 1872 |
\DeclareTextSymbolDefault{\textthreequarters}{TS1} |
| 1873 |
\DeclareTextSymbolDefault{\texttimes}{TS1} |
| 1874 |
\DeclareTextSymbolDefault{\textdiv}{TS1} |
| 1875 |
% \end{macrocode} |
| 1876 |
% |
| 1877 |
% The |\texteuro| is only available for subsets with id 4 or |
| 1878 |
% less. Otherwise we fake the glyph using |\tc@fake@euro| |
| 1879 |
% \begin{macrocode} |
| 1880 |
\DeclareTextCommandDefault{\texteuro} |
| 1881 |
{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro} |
| 1882 |
% \end{macrocode} |
| 1883 |
% |
| 1884 |
% The |\textohm| is only available for subsets with id 3 or |
| 1885 |
% less. Otherwise we produce an error. |
| 1886 |
% \begin{macrocode} |
| 1887 |
\DeclareTextCommandDefault{\textohm}{\tc@check@symbol4\textohm} |
| 1888 |
% \end{macrocode} |
| 1889 |
% The |\textestimated| and |\textcurrency| are only provided for |
| 1890 |
% fonts with subset encoding with id 2 or less. |
| 1891 |
% \begin{macrocode} |
| 1892 |
\DeclareTextCommandDefault{\textestimated}% |
| 1893 |
{\tc@check@symbol3\textestimated} |
| 1894 |
\DeclareTextCommandDefault{\textcurrency}% |
| 1895 |
{\tc@check@symbol3\textcurrency} |
| 1896 |
% \end{macrocode} |
| 1897 |
% Nearly all of the remaining glyphs are provided only with fonts |
| 1898 |
% with id 1 or 0, i.e., are essentially complete. |
| 1899 |
% \begin{macrocode} |
| 1900 |
\DeclareTextCommandDefault{\capitaltie}% |
| 1901 |
{\tc@check@accent2\capitaltie} |
| 1902 |
\DeclareTextCommandDefault{\newtie}% |
| 1903 |
{\tc@check@accent2\newtie} |
| 1904 |
\DeclareTextCommandDefault{\capitalnewtie}% |
| 1905 |
{\tc@check@accent2\capitalnewtie} |
| 1906 |
\DeclareTextCommandDefault{\textleftarrow}% |
| 1907 |
{\tc@check@symbol2\textleftarrow} |
| 1908 |
\DeclareTextCommandDefault{\textrightarrow}% |
| 1909 |
{\tc@check@symbol2\textrightarrow} |
| 1910 |
\DeclareTextCommandDefault{\textblank}% |
| 1911 |
{\tc@check@symbol2\textblank} |
| 1912 |
\DeclareTextCommandDefault{\textdblhyphen}% |
| 1913 |
{\tc@check@symbol2\textdblhyphen} |
| 1914 |
\DeclareTextCommandDefault{\textzerooldstyle}% |
| 1915 |
{\tc@check@symbol2\textzerooldstyle} |
| 1916 |
\DeclareTextCommandDefault{\textoneoldstyle}% |
| 1917 |
{\tc@check@symbol2\textoneoldstyle} |
| 1918 |
\DeclareTextCommandDefault{\texttwooldstyle}% |
| 1919 |
{\tc@check@symbol2\texttwooldstyle} |
| 1920 |
\DeclareTextCommandDefault{\textthreeoldstyle}% |
| 1921 |
{\tc@check@symbol2\textthreeoldstyle} |
| 1922 |
\DeclareTextCommandDefault{\textfouroldstyle}% |
| 1923 |
{\tc@check@symbol2\textfouroldstyle} |
| 1924 |
\DeclareTextCommandDefault{\textfiveoldstyle}% |
| 1925 |
{\tc@check@symbol2\textfiveoldstyle} |
| 1926 |
\DeclareTextCommandDefault{\textsixoldstyle}% |
| 1927 |
{\tc@check@symbol2\textsixoldstyle} |
| 1928 |
\DeclareTextCommandDefault{\textsevenoldstyle}% |
| 1929 |
{\tc@check@symbol2\textsevenoldstyle} |
| 1930 |
\DeclareTextCommandDefault{\texteightoldstyle}% |
| 1931 |
{\tc@check@symbol2\texteightoldstyle} |
| 1932 |
\DeclareTextCommandDefault{\textnineoldstyle}% |
| 1933 |
{\tc@check@symbol2\textnineoldstyle} |
| 1934 |
\DeclareTextCommandDefault{\textlangle}% |
| 1935 |
{\tc@check@symbol2\textlangle} |
| 1936 |
\DeclareTextCommandDefault{\textrangle}% |
| 1937 |
{\tc@check@symbol2\textrangle} |
| 1938 |
\DeclareTextCommandDefault{\textmho}% |
| 1939 |
{\tc@check@symbol2\textmho} |
| 1940 |
\DeclareTextCommandDefault{\textbigcircle}% |
| 1941 |
{\tc@check@symbol2\textbigcircle} |
| 1942 |
\DeclareTextCommandDefault{\textuparrow}% |
| 1943 |
{\tc@check@symbol2\textuparrow} |
| 1944 |
\DeclareTextCommandDefault{\textdownarrow}% |
| 1945 |
{\tc@check@symbol2\textdownarrow} |
| 1946 |
\DeclareTextCommandDefault{\textborn}% |
| 1947 |
{\tc@check@symbol2\textborn} |
| 1948 |
\DeclareTextCommandDefault{\textdivorced}% |
| 1949 |
{\tc@check@symbol2\textdivorced} |
| 1950 |
\DeclareTextCommandDefault{\textdied}% |
| 1951 |
{\tc@check@symbol2\textdied} |
| 1952 |
\DeclareTextCommandDefault{\textleaf}% |
| 1953 |
{\tc@check@symbol2\textleaf} |
| 1954 |
\DeclareTextCommandDefault{\textmarried}% |
| 1955 |
{\tc@check@symbol2\textmarried} |
| 1956 |
\DeclareTextCommandDefault{\textmusicalnote}% |
| 1957 |
{\tc@check@symbol2\textmusicalnote} |
| 1958 |
\DeclareTextCommandDefault{\textdblhyphenchar}% |
| 1959 |
{\tc@check@symbol2\textdblhyphenchar} |
| 1960 |
\DeclareTextCommandDefault{\textdollaroldstyle}% |
| 1961 |
{\tc@check@symbol2\textdollaroldstyle} |
| 1962 |
\DeclareTextCommandDefault{\textcentoldstyle}% |
| 1963 |
{\tc@check@symbol2\textcentoldstyle} |
| 1964 |
\DeclareTextCommandDefault{\textcolonmonetary}% |
| 1965 |
{\tc@check@symbol2\textcolonmonetary} |
| 1966 |
\DeclareTextCommandDefault{\textwon}% |
| 1967 |
{\tc@check@symbol2\textwon} |
| 1968 |
\DeclareTextCommandDefault{\textnaira}% |
| 1969 |
{\tc@check@symbol2\textnaira} |
| 1970 |
\DeclareTextCommandDefault{\textguarani}% |
| 1971 |
{\tc@check@symbol2\textguarani} |
| 1972 |
\DeclareTextCommandDefault{\textpeso}% |
| 1973 |
{\tc@check@symbol2\textpeso} |
| 1974 |
\DeclareTextCommandDefault{\textlira}% |
| 1975 |
{\tc@check@symbol2\textlira} |
| 1976 |
\DeclareTextCommandDefault{\textrecipe}% |
| 1977 |
{\tc@check@symbol2\textrecipe} |
| 1978 |
\DeclareTextCommandDefault{\textinterrobang}% |
| 1979 |
{\tc@check@symbol2\textinterrobang} |
| 1980 |
\DeclareTextCommandDefault{\textinterrobangdown}% |
| 1981 |
{\tc@check@symbol2\textinterrobangdown} |
| 1982 |
\DeclareTextCommandDefault{\textdong}% |
| 1983 |
{\tc@check@symbol2\textdong} |
| 1984 |
\DeclareTextCommandDefault{\textpertenthousand}% |
| 1985 |
{\tc@check@symbol2\textpertenthousand} |
| 1986 |
\DeclareTextCommandDefault{\textpilcrow}% |
| 1987 |
{\tc@check@symbol2\textpilcrow} |
| 1988 |
\DeclareTextCommandDefault{\textbaht}% |
| 1989 |
{\tc@check@symbol2\textbaht} |
| 1990 |
\DeclareTextCommandDefault{\textnumero}% |
| 1991 |
{\tc@check@symbol2\textnumero} |
| 1992 |
\DeclareTextCommandDefault{\textdiscount}% |
| 1993 |
{\tc@check@symbol2\textdiscount} |
| 1994 |
\DeclareTextCommandDefault{\textopenbullet}% |
| 1995 |
{\tc@check@symbol2\textopenbullet} |
| 1996 |
\DeclareTextCommandDefault{\textservicemark}% |
| 1997 |
{\tc@check@symbol2\textservicemark} |
| 1998 |
\DeclareTextCommandDefault{\textlquill}% |
| 1999 |
{\tc@check@symbol2\textlquill} |
| 2000 |
\DeclareTextCommandDefault{\textrquill}% |
| 2001 |
{\tc@check@symbol2\textrquill} |
| 2002 |
\DeclareTextCommandDefault{\textcopyleft}% |
| 2003 |
{\tc@check@symbol2\textcopyleft} |
| 2004 |
\DeclareTextCommandDefault{\textcircledP}% |
| 2005 |
{\tc@check@symbol2\textcircledP} |
| 2006 |
\DeclareTextCommandDefault{\textreferencemark}% |
| 2007 |
{\tc@check@symbol2\textreferencemark} |
| 2008 |
\DeclareTextCommandDefault{\textsurd}% |
| 2009 |
{\tc@check@symbol2\textsurd} |
| 2010 |
% \end{macrocode} |
| 2011 |
% The |\textcircled| and |\t| are handled specially, unless the |
| 2012 |
% current font has a subset id of 0 (i.e. full \texttt{TS1}) we |
| 2013 |
% pick the symbols up from the math font encodings, i.e., the |
| 2014 |
% third argument to |\CheckEncodingSubset| uses |\UseTextAccent| to |
| 2015 |
% get them from there. |
| 2016 |
% \begin{macrocode} |
| 2017 |
\DeclareTextCommandDefault{\textcircled} |
| 2018 |
{\CheckEncodingSubset\UseTextAccent{TS1}% |
| 2019 |
{\UseTextAccent{OMS}}1\textcircled} |
| 2020 |
\DeclareTextCommandDefault{\t} |
| 2021 |
{\CheckEncodingSubset\UseTextAccent{TS1}% |
| 2022 |
{\UseTextAccent{OML}}1\t} |
| 2023 |
% \end{macrocode} |
| 2024 |
|
| 2025 |
|
| 2026 |
% |
| 2027 |
% Finally input the encoding-specific definitions for |
| 2028 |
% \texttt{TS1} thus making the top-level definitions |
| 2029 |
% optimized for this encoding (and not for the default |
| 2030 |
% encoding). |
| 2031 |
% \changes{v1.9o}{1998/03/20}{Load decls after defaults for speed.} |
| 2032 |
% \begin{macrocode} |
| 2033 |
\input{ts1enc.def} |
| 2034 |
% \end{macrocode} |
| 2035 |
% Now having the new glyphs available we also want to make sure |
| 2036 |
% that they are used. For most cases this will automatically happen |
| 2037 |
% but for some glyphs there are inferior definitions already known |
| 2038 |
% to \LaTeX{} which will prevent the usage of the \texttt{TS1} |
| 2039 |
% versions. So we better |
| 2040 |
% get rid of them: |
| 2041 |
% \changes{v1.9o}{1998/03/20}{Added various \cs{UndeclareTextCommand} |
| 2042 |
% declarations for pr/2783} |
| 2043 |
% \begin{macrocode} |
| 2044 |
\UndeclareTextCommand{\textsterling}{OT1} |
| 2045 |
\UndeclareTextCommand{\textdollar} {OT1} |
| 2046 |
% \end{macrocode} |
| 2047 |
% Similar declarations should probably be made for other encodings |
| 2048 |
% like \texttt{OT4} if they are in use. |
| 2049 |
% \begin{macrocode} |
| 2050 |
%\UndeclareTextCommand{\textsterling}{OT4} |
| 2051 |
%\UndeclareTextCommand{\textdollar} {OT4} |
| 2052 |
% \end{macrocode} |
| 2053 |
% From the \texttt{T1} encoding there are two candidates for removal: |
| 2054 |
% \textperthousand{} and \textpertenthousand{} since these are both |
| 2055 |
% constructed from \% followed by a tiny |
| 2056 |
% `{\fontencoding{T1}\selectfont \char 24}' |
| 2057 |
% rather than being a single glyph. The problem with this |
| 2058 |
% approach is that in PostScript fonts this small zero is usually not |
| 2059 |
% available resulting in \%\rule{3pt}{3pt} rather than |
| 2060 |
% \textperthousand{} while the real glyph (at least for |
| 2061 |
% |\textperthousand|) is available in the PostScript version of |
| 2062 |
% \texttt{TS1}. So for the moment we compromise by removing the |
| 2063 |
% \texttt{T1} declaration for |\textperthousand| but keeping the one |
| 2064 |
% for |\textpertenthousand|. This will have the effect that with |
| 2065 |
% Computer Modern fonts everything will come out (although |
| 2066 |
% \textperthousand{} and \textpertenthousand{} are not taken from the |
| 2067 |
% same physical font) and with PostScript fonts \textperthousand{} |
| 2068 |
% will come out correctly while \textpertenthousand{} will most |
| 2069 |
% likely look like \%\rule{6pt}{3pt} --- which is probably an |
| 2070 |
% improvement over just getting a single `\rule{3pt}{3pt}' to |
| 2071 |
% indicate a completely missing glyph, which would happen if we |
| 2072 |
% also `undeclared' |\textpertenthousand|. |
| 2073 |
% \begin{macrocode} |
| 2074 |
\UndeclareTextCommand{\textperthousand}{T1} |
| 2075 |
%\UndeclareTextCommand{\textpertenthousand}{T1} |
| 2076 |
% \end{macrocode} |
| 2077 |
% |
| 2078 |
% |
| 2079 |
% \subsubsection{Supporting oldstyle digits} |
| 2080 |
% |
| 2081 |
% \begin{macrocode} |
| 2082 |
\DeclareRobustCommand\oldstylenums[1]{% |
| 2083 |
\begingroup |
| 2084 |
\ifmmode |
| 2085 |
\mathgroup\symletters #1% |
| 2086 |
\else |
| 2087 |
\CheckEncodingSubset\@use@text@encoding{TS1}% |
| 2088 |
{\PackageWarning{textcomp}% |
| 2089 |
{Oldstyle digits unavailable for |
| 2090 |
family \f@family.\MessageBreak |
| 2091 |
Lining digits used instead}}% |
| 2092 |
\tw@{#1}% |
| 2093 |
\fi |
| 2094 |
\endgroup |
| 2095 |
} |
| 2096 |
% \end{macrocode} |
| 2097 |
% |
| 2098 |
% \subsubsection{Subset encoding defaults} |
| 2099 |
% |
| 2100 |
% For many font families commonly used in the \TeX{} world we |
| 2101 |
% provide the subset encoding data here. Users can add additional |
| 2102 |
% font families in the file \texttt{textcomp.cfg} if they own other |
| 2103 |
% fonts. |
| 2104 |
% |
| 2105 |
% However, if the option ``forced'' was given then all subset |
| 2106 |
% encoding specifications are ignored, so there is no point in |
| 2107 |
% setting any of them up: |
| 2108 |
% \begin{macrocode} |
| 2109 |
\iftc@forced \else |
| 2110 |
% \end{macrocode} |
| 2111 |
% |
| 2112 |
% Computer modern based fonts (e.g., CM, CM-Bright, Concrete): |
| 2113 |
% \begin{macrocode} |
| 2114 |
\DeclareEncodingSubset{TS1}{cmr} {0} |
| 2115 |
\DeclareEncodingSubset{TS1}{cmss} {0} |
| 2116 |
\DeclareEncodingSubset{TS1}{cmtt} {0} |
| 2117 |
\DeclareEncodingSubset{TS1}{cmvtt} {0} |
| 2118 |
\DeclareEncodingSubset{TS1}{cmbr} {0} |
| 2119 |
\DeclareEncodingSubset{TS1}{cmtl} {0} |
| 2120 |
\DeclareEncodingSubset{TS1}{ccr} {0} |
| 2121 |
% \end{macrocode} |
| 2122 |
% |
| 2123 |
% PSNFSS fonts: |
| 2124 |
% \begin{macrocode} |
| 2125 |
\DeclareEncodingSubset{TS1}{ptm} {4} |
| 2126 |
\DeclareEncodingSubset{TS1}{pcr} {4} |
| 2127 |
\DeclareEncodingSubset{TS1}{phv} {4} |
| 2128 |
\DeclareEncodingSubset{TS1}{ppl} {3} |
| 2129 |
\DeclareEncodingSubset{TS1}{pag} {4} |
| 2130 |
\DeclareEncodingSubset{TS1}{pbk} {4} |
| 2131 |
\DeclareEncodingSubset{TS1}{pnc} {4} |
| 2132 |
\DeclareEncodingSubset{TS1}{pzc} {4} |
| 2133 |
\DeclareEncodingSubset{TS1}{bch} {4} |
| 2134 |
\DeclareEncodingSubset{TS1}{put} {5} |
| 2135 |
% \end{macrocode} |
| 2136 |
% |
| 2137 |
% Other CTAN fonts (probably not complete): |
| 2138 |
% \begin{macrocode} |
| 2139 |
\DeclareEncodingSubset{TS1}{uag} {5} |
| 2140 |
\DeclareEncodingSubset{TS1}{ugq} {5} |
| 2141 |
\DeclareEncodingSubset{TS1}{ul8} {4} |
| 2142 |
\DeclareEncodingSubset{TS1}{ul9} {4} % (LuxiSans, one day) |
| 2143 |
\DeclareEncodingSubset{TS1}{augie} {5} |
| 2144 |
\DeclareEncodingSubset{TS1}{dayrom} {3} |
| 2145 |
\DeclareEncodingSubset{TS1}{dayroms} {3} |
| 2146 |
\DeclareEncodingSubset{TS1}{pxr} {0} |
| 2147 |
\DeclareEncodingSubset{TS1}{pxss} {0} |
| 2148 |
\DeclareEncodingSubset{TS1}{pxtt} {0} |
| 2149 |
\DeclareEncodingSubset{TS1}{txr} {0} |
| 2150 |
\DeclareEncodingSubset{TS1}{txss} {0} |
| 2151 |
\DeclareEncodingSubset{TS1}{txtt} {0} |
| 2152 |
% \end{macrocode} |
| 2153 |
% |
| 2154 |
% Latin Modern and TeX Gyre: |
| 2155 |
% \changes{v1.99k}{2009/10/28}{Added Latin Modern and TeX Gyre subsets} |
| 2156 |
% \changes{v1.99l}{2009/11/04}{Added more Latin Modern and TeX Gyre subsets} |
| 2157 |
% \changes{v1.99m}{2015/02/16}{Added lmtt (Heiko Oberdiek) latex/4415} |
| 2158 |
% \begin{macrocode} |
| 2159 |
\DeclareEncodingSubset{TS1}{lmr} {0} |
| 2160 |
\DeclareEncodingSubset{TS1}{lmdh} {0} |
| 2161 |
\DeclareEncodingSubset{TS1}{lmss} {0} |
| 2162 |
\DeclareEncodingSubset{TS1}{lmssq} {0} |
| 2163 |
\DeclareEncodingSubset{TS1}{lmvtt} {0} |
| 2164 |
\DeclareEncodingSubset{TS1}{lmtt} {0} |
| 2165 |
% \end{macrocode} |
| 2166 |
% |
| 2167 |
% \begin{macrocode} |
| 2168 |
\DeclareEncodingSubset{TS1}{qhv} {0} |
| 2169 |
\DeclareEncodingSubset{TS1}{qag} {0} |
| 2170 |
\DeclareEncodingSubset{TS1}{qbk} {0} |
| 2171 |
\DeclareEncodingSubset{TS1}{qcr} {0} |
| 2172 |
\DeclareEncodingSubset{TS1}{qcs} {0} |
| 2173 |
\DeclareEncodingSubset{TS1}{qpl} {0} |
| 2174 |
\DeclareEncodingSubset{TS1}{qtm} {0} |
| 2175 |
\DeclareEncodingSubset{TS1}{qzc} {0} |
| 2176 |
\DeclareEncodingSubset{TS1}{qhvc} {0} |
| 2177 |
% \end{macrocode} |
| 2178 |
% |
| 2179 |
% Fourier-GUTenberg: |
| 2180 |
% \begin{macrocode} |
| 2181 |
\DeclareEncodingSubset{TS1}{futs} {4} |
| 2182 |
\DeclareEncodingSubset{TS1}{futx} {4} |
| 2183 |
\DeclareEncodingSubset{TS1}{futj} {4} |
| 2184 |
% \end{macrocode} |
| 2185 |
% |
| 2186 |
% Y\&Y's Lucida Bright |
| 2187 |
% \begin{macrocode} |
| 2188 |
\DeclareEncodingSubset{TS1}{hlh} {3} |
| 2189 |
\DeclareEncodingSubset{TS1}{hls} {3} |
| 2190 |
\DeclareEncodingSubset{TS1}{hlst} {3} |
| 2191 |
% \end{macrocode} |
| 2192 |
% The remaining settings for Lucida are conservative: the following |
| 2193 |
% fonts contain the |\textohm| character but not the |\texteuro|, |
| 2194 |
% i.e., belong to neither subset~4 nor subset~3. If you want to |
| 2195 |
% use the |\textohm| with these fonts copy these definition to |
| 2196 |
% \texttt{textcomp.cfg} and change the subset to~3. However in that |
| 2197 |
% case make sure that you do not use the |\texteuro|. |
| 2198 |
% \begin{macrocode} |
| 2199 |
\DeclareEncodingSubset{TS1}{hlct} {5} |
| 2200 |
\DeclareEncodingSubset{TS1}{hlx} {5} |
| 2201 |
\DeclareEncodingSubset{TS1}{hlce} {5} |
| 2202 |
\DeclareEncodingSubset{TS1}{hlcn} {5} |
| 2203 |
\DeclareEncodingSubset{TS1}{hlcw} {5} |
| 2204 |
\DeclareEncodingSubset{TS1}{hlcf} {5} |
| 2205 |
% \end{macrocode} |
| 2206 |
% |
| 2207 |
% Other commercial families\ldots |
| 2208 |
% \begin{macrocode} |
| 2209 |
\DeclareEncodingSubset{TS1}{pplx} {3} |
| 2210 |
\DeclareEncodingSubset{TS1}{pplj} {3} |
| 2211 |
\DeclareEncodingSubset{TS1}{ptmx} {4} |
| 2212 |
\DeclareEncodingSubset{TS1}{ptmj} {4} |
| 2213 |
% \end{macrocode} |
| 2214 |
% |
| 2215 |
% If the file \texttt{textcomp.cfg} exists it will be loaded at |
| 2216 |
% this point. This allows to define further subset encodings for |
| 2217 |
% font families not covered by default. |
| 2218 |
% |
| 2219 |
% \begin{macrocode} |
| 2220 |
\InputIfFileExists{textcomp.cfg} |
| 2221 |
{\PackageInfo{textcomp}{Local configuration file used}}{} |
| 2222 |
% \end{macrocode} |
| 2223 |
% |
| 2224 |
% \begin{macrocode} |
| 2225 |
\fi |
| 2226 |
% \end{macrocode} |
| 2227 |
% |
| 2228 |
% \begin{macrocode} |
| 2229 |
%</TS1oldsty> |
| 2230 |
% \end{macrocode} |
| 2231 |
% |
| 2232 |
% |
| 2233 |
% |
| 2234 |
% |
| 2235 |
% \section{The \texttt{checkencodingsubset.tex} file} |
| 2236 |
% |
| 2237 |
% This is a simple file that asks for a name of a font family and |
| 2238 |
% then displays information about the TS1 encoding for this family |
| 2239 |
% and recommends the right encoding subset (to be used with |
| 2240 |
% \cs{DeclareEncodingsubset}) for this family. |
| 2241 |
% \changes{v1.1a}{2024/01/27}{Added check file for encoding subset} |
| 2242 |
% \begin{macrocode} |
| 2243 |
%<*TS1check> |
| 2244 |
\ProvidesFile{checkencodingsubset.tex} |
| 2245 |
[2024/10/18 v0.5b Figure out safe TS1 encoding subsets] |
| 2246 |
% \end{macrocode} |
| 2247 |
% |
| 2248 |
% \begin{macrocode} |
| 2249 |
\let\typeoutdetails\typeout |
| 2250 |
%\def\typeoutdetails#1{} % alternative definition used below |
| 2251 |
% \end{macrocode} |
| 2252 |
% |
| 2253 |
% For the purpose of this check a glyph exists if the font slot is |
| 2254 |
% occupied---too bad if that contains the wrong glyph or some tofu. |
| 2255 |
% If it ``exists'' we return 0 otherwise 1. This way we can call |
| 2256 |
% this macro several times in a row and obtain a number that is 0 |
| 2257 |
% if all glyphs are existing or greater than 0 if any of them is |
| 2258 |
% missing. |
| 2259 |
% |
| 2260 |
% The second argument (holding the command name for a symbol) is |
| 2261 |
% not used during these tests. |
| 2262 |
% \begin{macrocode} |
| 2263 |
\def\doesglyphexist#1#2{\iffontchar\testFont #1 0\else 1\relax \fi} |
| 2264 |
% \end{macrocode} |
| 2265 |
% |
| 2266 |
% This macro also tests and outputs some information about the |
| 2267 |
% symbol if it is missing. This time we make use of the second |
| 2268 |
% argument. |
| 2269 |
% \begin{macrocode} |
| 2270 |
\def\glyphmissingdetails#1#2{\iffontchar\testFont #1 \else |
| 2271 |
\typeoutdetails{\space\space\space ==> \string#2 (#1) is missing}\fi} |
| 2272 |
% \end{macrocode} |
| 2273 |
% |
| 2274 |
% \begin{macrocode} |
| 2275 |
\newif\ifsafesubencodingfound |
| 2276 |
\newif\ifcoremisses |
| 2277 |
% \end{macrocode} |
| 2278 |
% |
| 2279 |
% Testing a group of symbols that belong to one sub-encoding. More |
| 2280 |
% precisely, the symbols that become unavailable if you change from |
| 2281 |
% sub-encoding $x$ (\texttt{\#2}) to $x+1$ (\texttt{\#3}). As far |
| 2282 |
% as the code is concerned, the |
| 2283 |
% symbols that are supposed to be always available (the core) |
| 2284 |
% become available if we test the group \texttt{-1} and \texttt{0}. |
| 2285 |
% |
| 2286 |
% The first argument contains the testing code and is supposed to |
| 2287 |
% return a single number greater or equal to zero. |
| 2288 |
% \begin{macrocode} |
| 2289 |
\def\testgroup#1#2#3{% |
| 2290 |
\ifnum 0 = #1% |
| 2291 |
\ifnum #2<0 |
| 2292 |
\typeoutdetails{All glyphs in core exist}% |
| 2293 |
\else |
| 2294 |
\typeoutdetails{All glyphs between sub-encoding #2 and #3 exist}% |
| 2295 |
\fi |
| 2296 |
\else |
| 2297 |
\ifnum #2<0 |
| 2298 |
\typeoutdetails{**********************************}% |
| 2299 |
\typeoutdetails{Some glyphs are missing from core:}% |
| 2300 |
\coremissestrue |
| 2301 |
\ifsafesubencodingfound \else |
| 2302 |
\def\subencodingresult{#2}% |
| 2303 |
\fi |
| 2304 |
\else |
| 2305 |
\typeoutdetails{Some glyphs are missing from sub-encoding #2:}% |
| 2306 |
\ifsafesubencodingfound \else |
| 2307 |
\def\subencodingresult{#3}% |
| 2308 |
\fi |
| 2309 |
\fi |
| 2310 |
% \end{macrocode} |
| 2311 |
% If some glyphs are missing, we rerun the test code but this time |
| 2312 |
% using \cs{glyphmissingdetails}. |
| 2313 |
% \begin{macrocode} |
| 2314 |
{\let\doesglyphexist \glyphmissingdetails #1}% |
| 2315 |
% \end{macrocode} |
| 2316 |
% And because we had misses we have definitely found the subset. |
| 2317 |
% \begin{macrocode} |
| 2318 |
\safesubencodingfoundtrue |
| 2319 |
\fi |
| 2320 |
} |
| 2321 |
% \end{macrocode} |
| 2322 |
% |
| 2323 |
% The currently defined subset for the family is either stored in |
| 2324 |
% \cs{TS1:\meta{family}} if it was declared, or it is the default |
| 2325 |
% subset which is stored in \cs{TS1:?}. |
| 2326 |
% \begin{macrocode} |
| 2327 |
\def\currsubencoding#1{\csname TS1:\ifcsname TS1:#1\endcsname #1\else ?\fi\endcsname} |
| 2328 |
% \end{macrocode} |
| 2329 |
% |
| 2330 |
% If a font family is not found when declaring it with |
| 2331 |
% \cs{DeclareFixedFont} we end up with the following font. This can |
| 2332 |
% then be used as a simple test if we failed loading the TS1 font. |
| 2333 |
% \begin{macrocode} |
| 2334 |
\DeclareFixedFont\cmrFont{TS1}{cmr}{m}{n}{10pt} |
| 2335 |
% \end{macrocode} |
| 2336 |
% |
| 2337 |
% Check for all glyphs in all encoding subsets \ldots |
| 2338 |
% \begin{macrocode} |
| 2339 |
\def\testallgroups#1{% |
| 2340 |
\DeclareFixedFont\testFont{TS1}{#1}{m}{n}{10pt}% |
| 2341 |
\ifx\testFont\cmrFont |
| 2342 |
\typeout{***** Font family #1 not found ****}% |
| 2343 |
\else |
| 2344 |
% \end{macrocode} |
| 2345 |
% We haven't checked anything yet. |
| 2346 |
% \begin{macrocode} |
| 2347 |
\safesubencodingfoundfalse |
| 2348 |
\coremissesfalse |
| 2349 |
\typeoutdetails{^^J-----------------------------------------}% |
| 2350 |
\typeoutdetails{Testing font family #1^^J(currently TS1-sub-encoding |
| 2351 |
\currsubencoding{#1})}% |
| 2352 |
\typeout{-----------------------------------------}% |
| 2353 |
% \end{macrocode} |
| 2354 |
% Then we start testing the groups beginning with the glyphs |
| 2355 |
% between sub-encoding 8 and 9. If any of them is missing (checked |
| 2356 |
% with \cs{doesglyphexist}) then we already know that 9 is the |
| 2357 |
% correct answer. |
| 2358 |
% \begin{macrocode} |
| 2359 |
\testgroup{% |
| 2360 |
\doesglyphexist{21}{\texttwelveudash}% |
| 2361 |
\doesglyphexist{22}{\textthreequartersemdash}% |
| 2362 |
\doesglyphexist{134}{\textbardbl}% |
| 2363 |
\doesglyphexist{137}{\textcelsius}% |
| 2364 |
\doesglyphexist{178}{\texttwosuperior}% |
| 2365 |
\doesglyphexist{179}{\textthreesuperior}% |
| 2366 |
\doesglyphexist{185}{\textonesuperior}% |
| 2367 |
}{8}{9}% |
| 2368 |
% \end{macrocode} |
| 2369 |
% Nevertheless we go on with further groups so that the output |
| 2370 |
% lists all missing glyphs. |
| 2371 |
% \begin{macrocode} |
| 2372 |
\testgroup{% |
| 2373 |
\doesglyphexist{32}{\textblank}% |
| 2374 |
\doesglyphexist{148}{\textinterrobang}% |
| 2375 |
\doesglyphexist{149}{\textinterrobangdown}% |
| 2376 |
\doesglyphexist{191}{\texteuro}% |
| 2377 |
}{7}{8}% |
| 2378 |
\testgroup{% |
| 2379 |
\doesglyphexist{47}{\textfractionsolidus}% |
| 2380 |
\doesglyphexist{61}{\textminus}% |
| 2381 |
\doesglyphexist{87}{\textohm}% |
| 2382 |
\doesglyphexist{181}{\textmu}% |
| 2383 |
}{6}{7}% |
| 2384 |
\testgroup{% |
| 2385 |
\doesglyphexist{140}{\textflorin}% |
| 2386 |
\doesglyphexist{164}{\textcurrency}% |
| 2387 |
}{5}{6}% |
| 2388 |
\testgroup{% |
| 2389 |
\doesglyphexist{155}{\textnumero}% |
| 2390 |
\doesglyphexist{157}{\textestimated}% |
| 2391 |
}{4}{5}% |
| 2392 |
\testgroup{% |
| 2393 |
\doesglyphexist{24}{\textleftarrow}% |
| 2394 |
\doesglyphexist{25}{\textrightarrow}% |
| 2395 |
\doesglyphexist{94}{\textuparrow}% |
| 2396 |
\doesglyphexist{95}{\textdownarrow}% |
| 2397 |
\doesglyphexist{141}{\textcolonmonetary}% |
| 2398 |
\doesglyphexist{142}{\textwon}% |
| 2399 |
\doesglyphexist{146}{\textlira}% |
| 2400 |
\doesglyphexist{150}{\textdong}% |
| 2401 |
}{3}{4}% |
| 2402 |
\testgroup{% |
| 2403 |
\doesglyphexist{60}{\textlangle}% |
| 2404 |
\doesglyphexist{62}{\textrangle}% |
| 2405 |
}{2}{3}% |
| 2406 |
\testgroup{% |
| 2407 |
\doesglyphexist{0}{\capitalgrave}% |
| 2408 |
\doesglyphexist{1}{\capitalacute}% |
| 2409 |
\doesglyphexist{2}{\capitalcircumflex}% |
| 2410 |
\doesglyphexist{3}{\capitaltilde}% |
| 2411 |
\doesglyphexist{4}{\capitaldieresis}% |
| 2412 |
\doesglyphexist{5}{\capitalhungarumlaut}% |
| 2413 |
\doesglyphexist{6}{\capitalring}% |
| 2414 |
\doesglyphexist{7}{\capitalcaron}% |
| 2415 |
\doesglyphexist{8}{\capitalbreve}% |
| 2416 |
\doesglyphexist{9}{\capitalmacron}% |
| 2417 |
\doesglyphexist{10}{\capitaldotaccent}% |
| 2418 |
\doesglyphexist{11}{\capitalcedilla}% |
| 2419 |
\doesglyphexist{12}{\capitalogonek}% |
| 2420 |
\doesglyphexist{26}{\t}% |
| 2421 |
\doesglyphexist{27}{\capitaltie}% |
| 2422 |
\doesglyphexist{28}{\newtie}% |
| 2423 |
\doesglyphexist{29}{\capitalnewtie}% |
| 2424 |
\doesglyphexist{45}{\textdblhyphen}% |
| 2425 |
\doesglyphexist{48}{\textzerooldstyle}% |
| 2426 |
\doesglyphexist{49}{\textoneoldstyle}% |
| 2427 |
\doesglyphexist{50}{\texttwooldstyle}% |
| 2428 |
\doesglyphexist{51}{\textthreeoldstyle}% |
| 2429 |
\doesglyphexist{52}{\textfouroldstyle}% |
| 2430 |
\doesglyphexist{53}{\textfiveoldstyle}% |
| 2431 |
\doesglyphexist{54}{\textsixoldstyle}% |
| 2432 |
\doesglyphexist{55}{\textsevenoldstyle}% |
| 2433 |
\doesglyphexist{56}{\texteightoldstyle}% |
| 2434 |
\doesglyphexist{57}{\textnineoldstyle}% |
| 2435 |
\doesglyphexist{77}{\textmho}% |
| 2436 |
\doesglyphexist{79}{\textbigcircle}% |
| 2437 |
\doesglyphexist{91}{\textlbrackdbl}% |
| 2438 |
\doesglyphexist{93}{\textrbrackdbl}% |
| 2439 |
\doesglyphexist{96}{\textasciigrave}% |
| 2440 |
\doesglyphexist{98}{\textborn}% |
| 2441 |
\doesglyphexist{99}{\textdivorced}% |
| 2442 |
\doesglyphexist{100}{\textdied}% |
| 2443 |
\doesglyphexist{108}{\textleaf}% |
| 2444 |
\doesglyphexist{109}{\textmarried}% |
| 2445 |
\doesglyphexist{110}{\textmusicalnote}% |
| 2446 |
\doesglyphexist{126}{\texttildelow}% |
| 2447 |
\doesglyphexist{127}{\textdblhyphenchar}% |
| 2448 |
\doesglyphexist{128}{\textasciibreve}% |
| 2449 |
\doesglyphexist{129}{\textasciicaron}% |
| 2450 |
\doesglyphexist{175}{\textasciimacron}% |
| 2451 |
\doesglyphexist{130}{\textacutedbl}% |
| 2452 |
\doesglyphexist{131}{\textgravedbl}% |
| 2453 |
\doesglyphexist{138}{\textdollaroldstyle}% |
| 2454 |
\doesglyphexist{139}{\textcentoldstyle}% |
| 2455 |
\doesglyphexist{143}{\textnaira}% |
| 2456 |
\doesglyphexist{144}{\textguarani}% |
| 2457 |
\doesglyphexist{145}{\textpeso}% |
| 2458 |
\doesglyphexist{147}{\textrecipe}% |
| 2459 |
\doesglyphexist{152}{\textpertenthousand}% |
| 2460 |
\doesglyphexist{153}{\textpilcrow}% |
| 2461 |
\doesglyphexist{154}{\textbaht}% |
| 2462 |
\doesglyphexist{156}{\textdiscount}% |
| 2463 |
\doesglyphexist{158}{\textopenbullet}% |
| 2464 |
\doesglyphexist{159}{\textservicemark}% |
| 2465 |
\doesglyphexist{160}{\textlquill}% |
| 2466 |
\doesglyphexist{161}{\textrquill}% |
| 2467 |
\doesglyphexist{168}{\textasciidieresis}% |
| 2468 |
\doesglyphexist{171}{\textcopyleft}% |
| 2469 |
\doesglyphexist{173}{\textcircledP}% |
| 2470 |
\doesglyphexist{180}{\textasciiacute}% |
| 2471 |
\doesglyphexist{184}{\textreferencemark}% |
| 2472 |
\doesglyphexist{187}{\textsurd}% |
| 2473 |
}{1}{2}% |
| 2474 |
% \end{macrocode} |
| 2475 |
% All fonts (up to now) that belong to sub-encoding 1 do have the |
| 2476 |
% \cs{textcircled} glyph, but it is too small to be usable. So this |
| 2477 |
% test for this group currently doesn't do much good---but who |
| 2478 |
% knows maybe one day a font shows up in which this glyph is |
| 2479 |
% actually missing. |
| 2480 |
% \begin{macrocode} |
| 2481 |
\testgroup{% |
| 2482 |
\doesglyphexist{79}{\textcircled}% this is not a proper test because the symbol is |
| 2483 |
% usually available but not usable |
| 2484 |
}{0}{1}% |
| 2485 |
\testgroup{% |
| 2486 |
\doesglyphexist{13}{\textquotestraightbase}% |
| 2487 |
\doesglyphexist{18}{\textquotestraightdblbase}% |
| 2488 |
\doesglyphexist{23}{\textcapitalcompwordmark}% |
| 2489 |
\doesglyphexist{31}{\textascendercompwordmark}% |
| 2490 |
\doesglyphexist{36}{\textdollar}% |
| 2491 |
\doesglyphexist{39}{\textquotesingle}% |
| 2492 |
\doesglyphexist{42}{\textasteriskcentered}% |
| 2493 |
\doesglyphexist{132}{\textdagger}% |
| 2494 |
\doesglyphexist{133}{\textdaggerdbl}% |
| 2495 |
\doesglyphexist{135}{\textperthousand}% |
| 2496 |
\doesglyphexist{136}{\textbullet}% |
| 2497 |
\doesglyphexist{151}{\texttrademark}% |
| 2498 |
\doesglyphexist{162}{\textcent}% |
| 2499 |
\doesglyphexist{163}{\textsterling}% |
| 2500 |
\doesglyphexist{165}{\textyen}% |
| 2501 |
\doesglyphexist{166}{\textbrokenbar}% |
| 2502 |
\doesglyphexist{167}{\textsection}% |
| 2503 |
\doesglyphexist{169}{\textcopyright}% |
| 2504 |
\doesglyphexist{170}{\textordfeminine}% |
| 2505 |
\doesglyphexist{172}{\textlnot}% |
| 2506 |
\doesglyphexist{174}{\textregistered}% |
| 2507 |
\doesglyphexist{176}{\textdegree}% |
| 2508 |
\doesglyphexist{177}{\textpm}% |
| 2509 |
\doesglyphexist{182}{\textparagraph}% |
| 2510 |
\doesglyphexist{183}{\textperiodcentered}% |
| 2511 |
\doesglyphexist{186}{\textordmasculine}% |
| 2512 |
\doesglyphexist{188}{\textonequarter}% |
| 2513 |
\doesglyphexist{189}{\textonehalf}% |
| 2514 |
\doesglyphexist{190}{\textthreequarters}% |
| 2515 |
\doesglyphexist{214}{\texttimes}% |
| 2516 |
\doesglyphexist{246}{\textdiv}% |
| 2517 |
}{-1}{0}% |
| 2518 |
% \end{macrocode} |
| 2519 |
% If all groups have all glyphs then we have the full encoding |
| 2520 |
% (subset 0). |
| 2521 |
% \begin{macrocode} |
| 2522 |
\ifsafesubencodingfound\else |
| 2523 |
\def\subencodingresult{0}% |
| 2524 |
\fi |
| 2525 |
% \end{macrocode} |
| 2526 |
% If the font is missing some of the core glyphs we make a remark |
| 2527 |
% about this, because they will never display. |
| 2528 |
% \begin{macrocode} |
| 2529 |
\typeoutdetails{-----------------------------------------}% |
| 2530 |
\typeout{TS1 encoding subset for #1\ifcoremisses \space(ignoring core misses)\fi |
| 2531 |
\space (\ifnum\subencodingresult = |
| 2532 |
\currsubencoding{#1} ok\else bad\fi)}% |
| 2533 |
\typeout{Use sub-encoding \subencodingresult |
| 2534 |
\ifnum\subencodingresult = \currsubencoding{#1}\else |
| 2535 |
\space (not \currsubencoding{#1})\fi} |
| 2536 |
\typeout{-----------------------------------------^^J}% |
| 2537 |
\fi |
| 2538 |
} |
| 2539 |
% \end{macrocode} |
| 2540 |
% |
| 2541 |
% This tests all declarations (or most of them) that have been |
| 2542 |
% added to the kernel. It is called if no family is given interactively. |
| 2543 |
% \begin{macrocode} |
| 2544 |
\long\def\testallkerneldefinedfamilies{% |
| 2545 |
\testallgroups{ccr}% {0} |
| 2546 |
\testallgroups{cmbr}% {0} |
| 2547 |
%%\testallgroups{cmr}% {0} % don't test this one as it is the fallback |
| 2548 |
% thus reports that the family is not found |
| 2549 |
\testallgroups{cmss}% {0} |
| 2550 |
\testallgroups{cmtl}% {0} |
| 2551 |
\testallgroups{cmtt}% {0} |
| 2552 |
\testallgroups{cmvtt}% {0} |
| 2553 |
\testallgroups{pxr}% {0} |
| 2554 |
\testallgroups{pxss}% {0} |
| 2555 |
\testallgroups{pxtt}% {0} |
| 2556 |
\testallgroups{qag}% {0} |
| 2557 |
\testallgroups{qbk}% {0} |
| 2558 |
\testallgroups{qcr}% {0} |
| 2559 |
\testallgroups{qcs}% {0} |
| 2560 |
\testallgroups{qhvc}% {0} |
| 2561 |
\testallgroups{qhv}% {0} |
| 2562 |
\testallgroups{qpl}% {0} |
| 2563 |
\testallgroups{qtm}% {0} |
| 2564 |
\testallgroups{qzc}% {0} |
| 2565 |
\testallgroups{txr}% {0} |
| 2566 |
\testallgroups{txss}% {0} |
| 2567 |
\testallgroups{txtt}% {0} |
| 2568 |
% |
| 2569 |
% Next would claim to be 0 (or 2) |
| 2570 |
% |
| 2571 |
%\testallgroups{lmr}% {1} |
| 2572 |
%\testallgroups{lmdh}% {1} |
| 2573 |
%\testallgroups{lmss}% {1} |
| 2574 |
%\testallgroups{lmssq}% {1} |
| 2575 |
%\testallgroups{lmvtt}% {1} |
| 2576 |
%\testallgroups{lmtt}% {1} % missing TM, SM and pertenthousand so really 2 |
| 2577 |
% |
| 2578 |
% these are no longer in TeX Live |
| 2579 |
% |
| 2580 |
%\testallgroups{ptmx}% {2} % gone for a long time it seems |
| 2581 |
%\testallgroups{ptmj}% {2} % ditto |
| 2582 |
%\testallgroups{ul8}% {2} % ditto |
| 2583 |
% |
| 2584 |
% next block has tofu chars so results are wrong |
| 2585 |
% |
| 2586 |
%\testallgroups{bch}% {5} % tofu for blank, ohm |
| 2587 |
%\testallgroups{futj}%{5} % tofu for blank, interrobang/down, ohm |
| 2588 |
%\testallgroups{futs}%{5} % tofu for blank, ohm |
| 2589 |
%\testallgroups{futx}%{5} % probably (currently broken distrib) |
| 2590 |
%\testallgroups{pag}% {5} % tofu for blank, interrobang/down, ohm |
| 2591 |
%\testallgroups{pbk}% {5} % tofu for blank, interrobang/down, ohm |
| 2592 |
%\testallgroups{pcr}% {5} % tofu for blank, interrobang/down, ohm |
| 2593 |
%\testallgroups{phv}% {5} % tofu for blank, interrobang/down, ohm |
| 2594 |
%\testallgroups{pnc}% {5} % tofu for blank, interrobang/down, ohm |
| 2595 |
%\testallgroups{pplj}%{5} % tofu for blank |
| 2596 |
%\testallgroups{pplx}%{5} % tofu for blank |
| 2597 |
%\testallgroups{ppl}% {5} % tofu for blank interrobang/down |
| 2598 |
%\testallgroups{ptm}% {5} % tofu for blank, interrobang/down, ohm |
| 2599 |
%\testallgroups{pzc}% {5} % tofu for blank, interrobang/down, ohm |
| 2600 |
%\testallgroups{ul9}% {5} % tofu for blank, interrobang/down, ohm |
| 2601 |
%\testallgroups{dayroms}%{6} % tofu for blank, interrobang/down, ohm |
| 2602 |
%\testallgroups{dayrom}% {6} % tofu for blank, interrobang/down, ohm |
| 2603 |
%\testallgroups{augie}%{8} % really only missing euro and full of tofu |
| 2604 |
%\testallgroups{put}% {8} |
| 2605 |
%\testallgroups{uag}% {8} % probably (currently broken distrib) |
| 2606 |
%\testallgroups{ugq}% {8} |
| 2607 |
% |
| 2608 |
\testallgroups{zi4}% {9} |
| 2609 |
% |
| 2610 |
%% not installed normally |
| 2611 |
% |
| 2612 |
%\testallgroups{hls}% {5} |
| 2613 |
%\testallgroups{hlst}% {5} |
| 2614 |
%\testallgroups{hlct}% {5} |
| 2615 |
%\testallgroups{hlh}% {5} |
| 2616 |
%\testallgroups{hlx}% {8} |
| 2617 |
%\testallgroups{hlce}% {8} |
| 2618 |
%\testallgroups{hlcn}% {8} |
| 2619 |
%\testallgroups{hlcw}% {8} |
| 2620 |
%\testallgroups{hlcf}% {8} |
| 2621 |
|
| 2622 |
\testallgroups{lato-LF}% {0} % with a bunch of tofu inside --- should probably be changed |
| 2623 |
\testallgroups{opensans-TLF}%{0} % with a bunch of tofu inside --- should probably be changed |
| 2624 |
\testallgroups{cantarell-TLF}% {0} % with a bunch of tofu inside --- should probably be changed |
| 2625 |
\testallgroups{fbb-LF}% {0} % missing centoldstyle ---> 2 |
| 2626 |
\testallgroups{tli}% {1} % with lots of tofu inside --- should probably be changed |
| 2627 |
\testallgroups{Alegreya-OsF}% {2} |
| 2628 |
\testallgroups{AlegreyaSans-OsF}% {2} |
| 2629 |
\testallgroups{DejaVuSans-TLF}% {2} |
| 2630 |
\testallgroups{DejaVuSansCondensed-TLF}% {2} |
| 2631 |
\testallgroups{DejaVuSansMono-TLF}% {2} this is missing \textfractionsolidus which makes it 7 really |
| 2632 |
\testallgroups{EBGaramond-LF}% {2} |
| 2633 |
\testallgroups{Tempora-TLF}% {2} |
| 2634 |
\testallgroups{Tempora-TOsF}% {2} |
| 2635 |
\testallgroups{Arimo-TLF}% {3} |
| 2636 |
\testallgroups{Crlt-TLF}% {3} changed from Carlito- |
| 2637 |
\testallgroups{FiraSans-LF}% {3} should be 4 |
| 2638 |
\testallgroups{IBMPlexSans-TLF}% {3} |
| 2639 |
\testallgroups{Merriwthr-OsF}% {3} changed from Merriweather- and should be 2 |
| 2640 |
\testallgroups{Montserrat-LF}% {3} now 2 |
| 2641 |
\testallgroups{MontserratAlternates-LF}%{3} now 2 |
| 2642 |
\testallgroups{SourceCodePro-TLF}% {3} |
| 2643 |
\testallgroups{SourceCodePro-TOsF}% {3} |
| 2644 |
\testallgroups{SourceSansPro-OsF}% {3} |
| 2645 |
\testallgroups{SourceSerifPro-LF}% {3} |
| 2646 |
\testallgroups{Tinos-TLF}% {3} |
| 2647 |
\testallgroups{AccanthisADFStdNoThree-LF}%{4} |
| 2648 |
\testallgroups{Cabin-TLF}% {4} |
| 2649 |
\testallgroups{Caladea-TLF}% {4} |
| 2650 |
\testallgroups{Chivo-LF}% {4} |
| 2651 |
\testallgroups{ClearSans-TLF}% {4} |
| 2652 |
\testallgroups{Coelacanth-LF}% {4} |
| 2653 |
\testallgroups{CrimsonPro-LF}% {4} |
| 2654 |
\testallgroups{FiraMono-TLF}% {4} |
| 2655 |
\testallgroups{FiraMono-TOsF}% {4} |
| 2656 |
\testallgroups{Go-TLF}% {4} |
| 2657 |
\testallgroups{GoMono-TLF}% {4} |
| 2658 |
\testallgroups{InriaSans-LF}% {4} |
| 2659 |
\testallgroups{InriaSerif-LF}% {4} |
| 2660 |
\testallgroups{LibertinusSans-LF}% {4} |
| 2661 |
\testallgroups{LibertinusSerif-LF}% {4} |
| 2662 |
\testallgroups{LibreBodoni-TLF}% {4} |
| 2663 |
\testallgroups{LibreFranklin-TLF}% {4} |
| 2664 |
\testallgroups{LinguisticsPro-LF}% {4} |
| 2665 |
\testallgroups{LinguisticsPro-OsF}% {4} |
| 2666 |
\testallgroups{LinuxBiolinumT-LF}% {4} |
| 2667 |
\testallgroups{LinuxLibertineT-LF}% {4} |
| 2668 |
\testallgroups{MerriwthrSans-OsF}% {4} name change and now 2 |
| 2669 |
\testallgroups{MintSpirit-LF}% {4} |
| 2670 |
\testallgroups{MintSpiritNoTwo-LF}% {4} |
| 2671 |
\testallgroups{PTMono-TLF}% {4} |
| 2672 |
\testallgroups{PTSans-TLF}% {4} |
| 2673 |
\testallgroups{PTSansCaption-TLF}% {4} |
| 2674 |
\testallgroups{PTSansNarrow-TLF}% {4} |
| 2675 |
\testallgroups{PTSerif-TLF}% {4} |
| 2676 |
\testallgroups{PTSerifCaption-TLF}% {4} |
| 2677 |
\testallgroups{Raleway-TLF}% {4} |
| 2678 |
\testallgroups{Raleway-TOsF}% {4} |
| 2679 |
\testallgroups{Roboto-LF}% {4} |
| 2680 |
\testallgroups{RobotoMono-TLF}% {4} |
| 2681 |
\testallgroups{RobotoSlab-TLF}% {4} |
| 2682 |
\testallgroups{Rosario-LF}% {4} |
| 2683 |
\testallgroups{SticksTooText-LF}% {4} |
| 2684 |
\testallgroups{UniversalisADFStd-LF}%{4} |
| 2685 |
\testallgroups{Almndr-OsF}% {5} name change |
| 2686 |
\testallgroups{Baskervaldx-LF}% {5} |
| 2687 |
\testallgroups{BaskervilleF-LF}% {5} now 2 |
| 2688 |
\testallgroups{Bttr-TLF}% {5} name changed from Bitter-... |
| 2689 |
\testallgroups{Cinzel-LF}% {5} |
| 2690 |
\testallgroups{CinzelDecorative-LF}%{5} |
| 2691 |
\testallgroups{DejaVuSerif-TLF}% {5} |
| 2692 |
\testallgroups{DejaVuSerifCondensed-TLF}% {5} |
| 2693 |
\testallgroups{GilliusADF-LF}% {5} |
| 2694 |
\testallgroups{charssil-TLF} %% missing should be 5 |
| 2695 |
\testallgroups{GilliusADFCond-LF}%{5} |
| 2696 |
\testallgroups{GilliusADFNoTwo-LF}%{5} |
| 2697 |
\testallgroups{GilliusADFNoTwoCond-LF}%{5} |
| 2698 |
\testallgroups{Lbstr-LF}% {5} name change and should be 7 |
| 2699 |
\testallgroups{OldStandard-TLF}% {5} |
| 2700 |
\testallgroups{PlyfrDisplay-LF}%{5} name change |
| 2701 |
\testallgroups{PlyfrDisplay-OsF}% {5} name change |
| 2702 |
\testallgroups{TheanoDidot-TLF}% {5} |
| 2703 |
\testallgroups{TheanoDidot-TOsF}% {5} |
| 2704 |
\testallgroups{TheanoModern-TLF}% {5} |
| 2705 |
\testallgroups{TheanoModern-TOsF}%{5} |
| 2706 |
\testallgroups{TheanoOldStyle-TLF}%{5} |
| 2707 |
\testallgroups{TheanoOldStyle-TOsF}%{5} |
| 2708 |
\testallgroups{Crimson-TLF}% {6} |
| 2709 |
\testallgroups{IBMPlexMono-TLF}% {6} now 3 |
| 2710 |
\testallgroups{IBMPlexSerif-TLF}% {6} now 3 |
| 2711 |
\testallgroups{LibertinusMono-TLF}%{6} should be 8 |
| 2712 |
\testallgroups{LibertinusSerifDisplay-LF}%{6} |
| 2713 |
\testallgroups{LinuxLibertineDisplayT-LF}%{6} |
| 2714 |
\testallgroups{LinuxLibertineMonoT-LF}%{6} |
| 2715 |
\testallgroups{LinuxLibertineMonoT-TLF}%{6} |
| 2716 |
\testallgroups{Ovrlck-LF}% {6} name changed |
| 2717 |
\testallgroups{CormorantGaramond-LF}%{7} |
| 2718 |
\testallgroups{Heuristica-TLF}% {7} |
| 2719 |
\testallgroups{Heuristica-TOsF}% {7} |
| 2720 |
\testallgroups{IMFELLEnglish-TLF}%{7} |
| 2721 |
\testallgroups{LibreBskvl-LF}% {7} %% wrong name LibreBaskerville-TLF |
| 2722 |
\testallgroups{LibreCsln-LF}% {7} changed from LibreCaslon- |
| 2723 |
\testallgroups{Mrcls-LF}% {7} %% wrong name Marcellus-LF |
| 2724 |
\testallgroups{NotoSans-LF}% {7} |
| 2725 |
\testallgroups{NotoSansMono-TLF}%{7} now 2 |
| 2726 |
\testallgroups{NotoSansMono-TOsF}%{7} now 2 |
| 2727 |
\testallgroups{NotoSerif-LF}% {7} |
| 2728 |
\testallgroups{Quattro-LF}% {7} changed from Quattrocento- |
| 2729 |
\testallgroups{QuattroSans-LF}% {7} changed from QuattrocentoSans- |
| 2730 |
\testallgroups{XCharter-TLF}% {7} now 2 |
| 2731 |
\testallgroups{XCharter-TOsF}% {7} now 2 |
| 2732 |
\testallgroups{erewhon-LF}% {7} now 2 |
| 2733 |
\testallgroups{ComicNeue-TLF}% {7} |
| 2734 |
\testallgroups{ComicNeueAngular-TLF}%{7} |
| 2735 |
\testallgroups{Frm-LF}%{7} % the superiors are missing; name changed from Forum-LF |
| 2736 |
\testallgroups{Cochineal-TLF}% {8} now 5 |
| 2737 |
\testallgroups{AlgolRevived-TLF}%{9} |
| 2738 |
} |
| 2739 |
% \end{macrocode} |
| 2740 |
% |
| 2741 |
% There interaction with the user. |
| 2742 |
% \begin{macrocode} |
| 2743 |
\typeout{^^J=====================================================================} |
| 2744 |
\typeout{| Enter font family to check (or <enter> for kernel defined families)} |
| 2745 |
\typeout{=====================================================================} |
| 2746 |
\typein[\FontFamilyToCheck]{} |
| 2747 |
% \end{macrocode} |
| 2748 |
% |
| 2749 |
% \begin{macrocode} |
| 2750 |
\if!\FontFamilyToCheck! |
| 2751 |
\typeout{=====================================================================} |
| 2752 |
\typeout{| Detailed output? (default no)} |
| 2753 |
\typeout{=====================================================================} |
| 2754 |
\typein[\Details]{} |
| 2755 |
\if!\Details! |
| 2756 |
\def\typeoutdetails#1{} |
| 2757 |
\else |
| 2758 |
\let\typeoutdetails\typeout |
| 2759 |
\fi |
| 2760 |
\testallkerneldefinedfamilies |
| 2761 |
\else |
| 2762 |
\let\typeoutdetails\typeout |
| 2763 |
\testallgroups\FontFamilyToCheck |
| 2764 |
\fi |
| 2765 |
% \end{macrocode} |
| 2766 |
% |
| 2767 |
% \begin{macrocode} |
| 2768 |
\stop |
| 2769 |
%</TS1check> |
| 2770 |
% \end{macrocode} |
| 2771 |
% |
| 2772 |
% \Finale |
| 2773 |
% |
| 2774 |
|
| 2775 |
|
| 2776 |
|
| 2777 |
|
| 2778 |
\endinput |