/
lttextcomp.dtx
2215 lines (2168 loc) · 85.7 KB
/
lttextcomp.dtx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
% \iffalse meta-comment
%
% Copyright (C) 2019-2020
% The LaTeX3 Project and any individual authors listed elsewhere
% in this file.
%
% This file is part of the LaTeX base system.
% -------------------------------------------
%
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) any later version.
% The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 2008 or later.
%
% This file has the LPPL maintenance status "maintained".
%
% The list of all files belonging to the LaTeX base distribution is
% given in the file `manifest.txt'. See also `legal.txt' for additional
% information.
%
% The list of derived (unpacked) files belonging to the distribution
% and covered by LPPL is defined by the unpacking scripts (with
% extension .ins) which are part of the distribution.
%
% \fi
% \iffalse
%
%<*driver>
% \fi
%
%
\ProvidesFile{lttextcomp.dtx}
[2020/01/22 v1.0a LaTeX Kernel (text companion symbols)]
% \iffalse
\documentclass{ltxdoc}
\begin{document}
\DocInput{lttextcomp.dtx}
\end{document}
%</driver>
% \fi
%
%
%
%
% \GetFileInfo{lttextcomp.dtx}
% \title{Providing addtional text symbols\\
% (previously available through the \texttt{textcomp} package)\thanks
% {This file has version number
% \fileversion\ dated \filedate}}
%
% \author{Frank Mittelbach}
%
% \MaintainedByLaTeXTeam{latex}
% \maketitle
%
% This file contains the implementation for accessing the glyphs
% provided by the \texttt{TS1} encoding (Text Companion
% Encoding). This is now offered as part of the kernel and so the
% \texttt{textcomp} package which used to provide the definitions is
% now mainly needed for compatibility reasons (and doesn't do much any
% more).
%
%
%
% \StopEventually{}
%
%
% \begin{macro}{\oldstylenums}
% \begin{macro}{\legacyoldstylenums}
%
%
% Preserve the old definition of \cs{oldstylenums} under a different name.
%
% This macro implements old style numerals but only works if we
% assume that the standard math fonts are used. Thus it needs
% changing in case other math encodings are used.
% \begin{macrocode}
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/02/02}%
%<latexrelease> {\oldstylenums}{Old style numerals}%
\DeclareRobustCommand\legacyoldstylenums[1]{%
\begingroup
% \end{macrocode}
% Provide spacing using the interword space of the current font.
% \begin{macrocode}
\spaceskip\fontdimen\tw@\font
% \end{macrocode}
% Then switch to the math italic font. We don't change the current
% value of |\f@series| which means that you can use bold numerals
% if |\bfseries| is in force. As family we use |\rmdefault| which
% means that this only works if there exist an |OML| encoded
% version of that font or rather a corresponding |.fd| file (which
% is the case for standard \LaTeX{} fonts even though they only
% contain substitutions).
% \changes{v3.0j}{1999/02/12}{Use \cs{rmdefault} instead of \texttt{cmm}
% (pr/2954)}
% \begin{macrocode}
\usefont{OML}{\rmdefault}{\f@series}{it}%
\mathgroup\symletters #1%
\endgroup
}
% \end{macrocode}
%
% And here is the improved one that adjusts depending on surroundings.
% \begin{macrocode}
\DeclareRobustCommand\oldstylenums[1]{%
\begingroup
\ifmmode
\mathgroup\symletters #1%
\else
% \end{macrocode}
% The \cs{CheckEncodingSubset} is discused below.
% \begin{macrocode}
\CheckEncodingSubset\@use@text@encoding{TS1}\tc@oldstylesubst2{{#1}}%
\fi
\endgroup
}
% \end{macrocode}
% The helper to select the substitution if needed.
% \begin{macrocode}
\def\tc@oldstylesubst#1{%
\tc@errorwarn
{Oldstyle digits unavailable for
family \f@family.\MessageBreak
Default oldstyle digits used instead}\@eha
\bgroup
\expand@font@defaults
% \end{macrocode}
% The substitution defaults are provided in the file \texttt{fonttext.ltx}.
% \begin{macrocode}
\ifx\f@family\rmdef@ult
\fontfamily\rmsubstdefault
\else\ifx\f@family\sfdef@ult
\fontfamily\sfsubstdefault
\else\ifx\f@family\ttdef@ult
\fontfamily\ttsubstdefault
\else
\fontfamily\textcompsubstdefault
\fi\fi\fi
\fontencoding{TS1}\selectfont#1%
\egroup
}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\textcompsubstdefault}
% Here is the default for the ``unknown'' case:
% \begin{macrocode}
\def\textcompsubstdefault{\rmsubstdefault}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macrocode}
%</2ekernel|latexrelease>
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{0000/00/00}%
%<latexrelease> {\oldstylenums}{Old style numerals}%
%<latexrelease>
%<latexrelease>\DeclareRobustCommand\oldstylenums[1]{%
%<latexrelease> \begingroup
%<latexrelease> \spaceskip\fontdimen\tw@\font
%<latexrelease> \usefont{OML}{\rmdefault}{\f@series}{it}%
%<latexrelease> \mathgroup\symletters #1%
%<latexrelease> \endgroup
%<latexrelease>}
%<latexrelease>\let\legacyoldstylenums\@undefined
%<latexrelease>\def\textcompsubstdefault{cmr}
%<latexrelease>
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
%
%
% Everything else in the this file got introduced 2020/02/02, so we do a
% single rollback (for now).
% \begin{macrocode}
%<*2ekernel>
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2020/02/02}%
%<latexrelease> {\DeclareEncodingSubset}{Text companion symbols}%
% \end{macrocode}
%
%
%
% \begin{macro}{\DeclareEncodingSubset}
%
% The declaration takes 3 mandatory arguments: an \emph{encoding}
% for which a subsetting is wanted (currently always \texttt{TS1},
% and most likely forever), the \emph{font family} for which we
% declare the subset and finally the \emph{subset} number (between \texttt{0} (all
% of the encoding is supported) and \texttt{9} many glyphs are missing.
%
% For \texttt{TS1} the numbers have been choosen in a way that most
% fonts can be fairly correctly categorized, but the default
% settings are always conservative, that is they may claim that
% less glyphs are supported than there actually are.
%
% As these days many font families are set up to end in \texttt{-LF}
% (lining figures), \texttt{-OsF} (oldstyle figures), etc.\ the
% declaration supports a shortcut: if the \emph{font family} name
% ends in \texttt{-*} then the star gets replaced by these common
% ending, e.g.,
%\begin{verbatim}
% \DeclareEncodingSubset{TS1}{Alegreya-*}{2}
%\end{verbatim}
% is the same as writing
%\begin{verbatim}
% \DeclareEncodingSubset{TS1}{Alegreya-LF}{2}
% \DeclareEncodingSubset{TS1}{Alegreya-OsF}{2}
% \DeclareEncodingSubset{TS1}{Alegreya-TLF}{2}
% \DeclareEncodingSubset{TS1}{Alegreya-TOsF}{2}
%\end{verbatim}
% If only some are needed then one can define them individually but
% in many cases all four are wanted, hence the shortcut.
%
%
% The coding of the declaration has no error checking as it is
% mostly for internal use.
% \begin{macrocode}
\def\DeclareEncodingSubset#1#2{%
\DeclareEncodingSubset@aux{#1}#2*\DeclareEncodingSubset@aux
}
% \end{macrocode}
%
% \begin{macrocode}
\def\DeclareEncodingSubset@aux#1#2*#3\DeclareEncodingSubset@aux#4{%
% \end{macrocode}
% if \verb=#3= is empty then there was no star, otherwise we we
% define all four variants.
% \begin{macrocode}
\expandafter\ifx\expandafter X\detokenize{#3}X%
\@DeclareEncodingSubset{#1}{#2}{#4}%
\else
\@DeclareEncodingSubset{#1}{#2LF}{#4}%
\@DeclareEncodingSubset{#1}{#2TLF}{#4}%
\@DeclareEncodingSubset{#1}{#2OsF}{#4}%
\@DeclareEncodingSubset{#1}{#2TOsF}{#4}%
\fi
}
% \end{macrocode}
%
% The subset info is stored in a command with the name
% \texttt{\bslash}\emph{family}\texttt{:}\emph{subset} so if that
% already exists we change otherwise declare a subset.
% \begin{macrocode}
\def\@DeclareEncodingSubset#1#2#3{%
\@ifundefined{#1:#2}%
{\@font@info{Setting #2 sub-encoding to #1/#3}}%
{\@font@info{Changing #2 sub-encoding to #1/#3}}%
\@namedef{#1:#2}{#3}}
% \end{macrocode}
%
% Any reason to allow those in the middle of documents?
% \begin{macrocode}
\@onlypreamble\DeclareEncodingSubset
\@onlypreamble\DeclareEncodingSubset@aux
\@onlypreamble\@DeclareEncodingSubset
% \end{macrocode}
% \end{macro}
% \begin{macro}{\CheckEncodingSubset}
% The command |\CheckEncodingSubset| will check if the current font
% family has the right encoding subset to typeset a certain
% command. It takes five arguments as follows:
% first argument is either |\UseTextSymbol|, |\UseTextAccent|
% depending on whether or not the symbol is a text symbol or a text
% accent.
% The second argument is the encoding from which this symbol should
% be fetched.
%
% The third argument is either a fake accessor command or an error
% message. the code in that argument (if ever executed) receives
% two arguments: |#2| and |#5| of |\CheckEncodingSubset|.
%
% Argument four is the subset encoding id to test against: if this
% value is higher than the subset id of the current font family
% then we typeset the symbol, i.e., execute |#1{#2}#5| otherwise
% it runs |#3#5|, e.g., to produce an error message or fake the
% glyph somehow.
%
% Argument five is the symbol or accent command that is being
% checked.
%
% For usage examples see definitions below.
%
% \begin{macrocode}
\def\CheckEncodingSubset#1#2#3#4#5{%
\ifnum #4>%
\expandafter\ifx\csname #2:\f@family\endcsname\relax
0\csname #2:?\endcsname
\else
\csname #2:\f@family\endcsname
\fi
\relax
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
{#1{#2}}{#3}%
#5%
}
% \end{macrocode}
% \end{macro}
% To set up the glyphs for the subsets we need a number helpers.
%
% \begin{macro}{\tc@errorwarn}
% To we produce errors, warnings, or only info in the transcripts
% if glyphs require substitutions? By default it is ``info''
% only. With the \texttt{textcomp} package that can be changed.
% \begin{macrocode}
\def\tc@errorwarn#1#2{\@latex@info{#1}}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\tc@subst}
%
% \begin{macrocode}
\def\tc@subst#1{%
\tc@errorwarn
{Symbol \string#1 not provided by\MessageBreak
font family \f@family\space
in TS1 encoding.\MessageBreak Default family used instead}\@eha
\bgroup
\expand@font@defaults
\ifx\f@family\rmdef@ult
\fontfamily\rmsubstdefault
\else\ifx\f@family\sfdef@ult
\fontfamily\sfsubstdefault
\else\ifx\f@family\ttdef@ult
\fontfamily\ttsubstdefault
\else
\fontfamily\substdefault
\fi\fi\fi
% \end{macrocode}
% Whatever default was chosen, we claim now (locally hopefully)
% that it can handle all slots (even if not true) to avoid looping
% in certain situations, e.g., when something was set up incorrectly.
% \begin{macrocode}
\@namedef{TS1:\f@family}{0}%
\selectfont#1%
\egroup
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\tc@fake@euro}
% |\tc@fake@euro| is an example of a ``fake'' definition to use in arg |#3| of
% |\CheckEncodingSubset| when a symbol is not available in a
% certain font family. Here we produce a poor man's Euro symbol by combining
% a ``C'' with a ``=''.
% \begin{macrocode}
\def\tc@fake@euro#1{%
\leavevmode
\@font@info{Faking \noexpand#1for font family
\f@family\MessageBreak in TS1 encoding}%
\valign{##\cr
\vfil\hbox to 0.07em{\dimen@\f@size\p@
\math@fontsfalse
\fontsize{.7\dimen@}\z@\selectfont=\hss}%
\vfil\cr%
\hbox{C}\crcr
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\tc@check@symbol}
% \begin{macro}{\tc@check@accent}
% These are two abbreviations that we use below to check symbols
% and accents in TS1. Only there to save some space, e.g., we can
% then write
%\begin{verbatim}
%\DeclareTextCommandDefault{\textcurrency}{\tc@check@symbol3\textcurrency}
%\end{verbatim}
% to ensure that |\textcurrency| is only typeset if the current
% font has a \texttt{TS1} subset id of less than 3. Otherwise
% |\tc@error| is called telling the user that for this font family
% |\textcurreny| is not available.
% \begin{macrocode}
\def\tc@check@symbol{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@subst}
% \end{macrocode}
%
% Accents and been mad an error in the \texttt{textcomp} package when
% not available. Now that we provide the functionality in the
% kernel we avoid the eror by swapping in a \texttt{T1} accent if
% the \texttt{TS1} accent is not available.
% \begin{macrocode}
%\def\tc@check@accent{\CheckEncodingSubset\UseTextAccent{TS1}\tc@error}
% \end{macrocode}
%
% \begin{macrocode}
\def\tc@check@accent#1{\CheckEncodingSubset\UseTextAccent{TS1}{\tc@swap@accent#1}}
\def\tc@swap@accent#1#2{\UseTextAccent{T1}#1}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \section{Sub-encodings}
%
% Here are the default definitions for the \texttt{TS1} symbols.
% First those that we assume are always available if a font
% implements \texttt{TS1}.
%
% \begin{macrocode}
\DeclareTextSymbolDefault{\textdollar}{TS1}
\UndeclareTextCommand{\textdollar} {OT1} % don't use the OT1 def any longer
% \end{macrocode}
%
% \begin{macrocode}
\DeclareTextSymbolDefault{\textsterling}{TS1}
\UndeclareTextCommand{\textsterling}{OT1} % don't use the OT1 def any longer
% \end{macrocode}
%
% \begin{macrocode}
\DeclareTextSymbolDefault{\textperthousand}{TS1}
\UndeclareTextCommand{\textperthousand}{T1} % don't use the T1 def
% should actually not be declaed
% in the t1enc.def file instead
% otherwise fontenc would overwrite
% it again (legacy tests!)
% \end{macrocode}
%
% These are the standard \texttt{itemize} and footnote symbols
% originally taken from \texttt{OMS} and now from \texttt{TS1}:
% \begin{macrocode}
\DeclareTextSymbolDefault{\textasteriskcentered}{TS1}
\DeclareTextSymbolDefault{\textbullet}{TS1}
\DeclareTextSymbolDefault{\textdaggerdbl}{TS1}
\DeclareTextSymbolDefault{\textdagger}{TS1}
\DeclareTextSymbolDefault{\textparagraph}{TS1}
\DeclareTextSymbolDefault{\textperiodcentered}{TS1}
\DeclareTextSymbolDefault{\textsection}{TS1}
% \end{macrocode}
%
% And here are the other \texttt{TS1} glyphs that are implemented
% by every font (or nearly everyone---a few are commented out and
% moved to sub-encoding 9,
% because they aren't around in one or two fonts.
% \begin{macrocode}
%%\DeclareTextSymbolDefault{\textbardbl}{TS1} % subst in sub-enc 9 above
\DeclareTextSymbolDefault{\textbrokenbar}{TS1}
%%\DeclareTextSymbolDefault{\textcelsius}{TS1} % subst in sub-enc 9 above
\DeclareTextSymbolDefault{\textcent}{TS1}
\DeclareTextSymbolDefault{\textcopyright}{TS1}
\DeclareTextSymbolDefault{\textdegree}{TS1}
\DeclareTextSymbolDefault{\textdiv}{TS1}
\DeclareTextSymbolDefault{\textlnot}{TS1}
\DeclareTextSymbolDefault{\textonehalf}{TS1}
\DeclareTextSymbolDefault{\textonequarter}{TS1}
%%\DeclareTextSymbolDefault{\textonesuperior}{TS1} % subst in sub-enc 9 above
\DeclareTextSymbolDefault{\textordfeminine}{TS1}
\DeclareTextSymbolDefault{\textordmasculine}{TS1}
\DeclareTextSymbolDefault{\textpm}{TS1}
\DeclareTextSymbolDefault{\textquotesingle}{TS1}
\DeclareTextSymbolDefault{\textquotestraightbase}{TS1}
\DeclareTextSymbolDefault{\textquotestraightdblbase}{TS1}
\DeclareTextSymbolDefault{\textregistered}{TS1}
%%\DeclareTextSymbolDefault{\textthreequartersemdash}{TS1} % subst in sub-enc 9 above
\DeclareTextSymbolDefault{\textthreequarters}{TS1}
%%\DeclareTextSymbolDefault{\textthreesuperior}{TS1} % subst in sub-enc 9 above
\DeclareTextSymbolDefault{\texttimes}{TS1}
\DeclareTextSymbolDefault{\texttrademark}{TS1}
%%\DeclareTextSymbolDefault{\texttwelveudash}{TS1} % subst in sub-enc 9 above
%%\DeclareTextSymbolDefault{\texttwosuperior}{TS1} % subst in sub-enc 9 above
\DeclareTextSymbolDefault{\textyen}{TS1}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareTextSymbolDefault{\textcapitalcompwordmark}{TS1}
\DeclareTextSymbolDefault{\textascendercompwordmark}{TS1}
% \end{macrocode}
%
%
% In the following sections the remaining default definitions are ordered by
% sub-encoding in which they are become unavailable (i.e., they are
% not provided in the sub-encoding with that number and all
% sub-encodings with higher numbers.
%
% Thus the symbols that are available in sub-encoding $x$ are the
% symbols above (always available) and the symbols list in the
% sections for sub-encodings $x+1$ and higher.
%
% \subsection{Sub-encoding \texttt{1} (drop symbols not working in
% Latin Modern)}
%
% The \cs{textcircled} is available but the glyph is simply too
% small so we keep using the \texttt{OMS} glyph.
% \begin{macrocode}
\DeclareTextCommandDefault{\textcircled}
{\CheckEncodingSubset\UseTextAccent{TS1}{\UseTextAccent{OMS}}1\textcircled}
% \end{macrocode}
%
%
%
%
%
% \subsection{Sub-encoding \texttt{2} (majority of new OTF fonts via autoinst)}
%
% \begin{macrocode}
\DeclareTextCommandDefault{\t}
{\CheckEncodingSubset\UseTextAccent{TS1}{\UseTextAccent{OML}}2\t}
% \end{macrocode}
%
% Capital accents are really only very seldom implemented, so from
% sub-encoding \texttt{2} onwards we use the normal \texttt{T1}
% accents if they are asked for in the document.
%
% In Unicode engines we don't implement them at all but always use
% the basic accents instead. whether that works or not really
% depends on the font, something like \verb=\"X= usually comes out
% wrong in Unicode engines.
%
% \begin{macrocode}
\ifx\Umathcode\@undefined
\DeclareTextCommandDefault{\capitalacute} {\tc@check@accent{\'}2\capitalacute}
\DeclareTextCommandDefault{\capitalbreve} {\tc@check@accent{\u}2\capitalbreve}
\DeclareTextCommandDefault{\capitalcaron} {\tc@check@accent{\v}2\capitalcaron}
\DeclareTextCommandDefault{\capitalcedilla} {\tc@check@accent{\c}2\capitalcedilla}
\DeclareTextCommandDefault{\capitalcircumflex} {\tc@check@accent{\^}2\capitalcircumflex}
\DeclareTextCommandDefault{\capitaldieresis} {\tc@check@accent{\"}2\capitaldieresis}
\DeclareTextCommandDefault{\capitaldotaccent} {\tc@check@accent{\.}2\capitaldotaccent}
\DeclareTextCommandDefault{\capitalgrave} {\tc@check@accent{\`}2\capitalgrave}
\DeclareTextCommandDefault{\capitalhungarumlaut}{\tc@check@accent{\H}2\capitalhungarumlaut}
\DeclareTextCommandDefault{\capitalmacron} {\tc@check@accent{\=}2\capitalmacron}
\DeclareTextCommandDefault{\capitalogonek} {\tc@check@accent{\k}2\capitalogonek}
\DeclareTextCommandDefault{\capitalring} {\tc@check@accent{\r}2\capitalring}
\DeclareTextCommandDefault{\capitaltie} {\tc@check@accent{\t}2\capitaltie}
\DeclareTextCommandDefault{\capitaltilde} {\tc@check@accent{\~}2\capitaltilde}
% \end{macrocode}
% For \cs{newtie} and \cs{capitalnewtie} this is actually wrong, they should pick up
% the accent from the substitution font (not done yet).
% \begin{macrocode}
\DeclareTextCommandDefault{\newtie} {\tc@check@accent{\t}2\newtie}
\DeclareTextCommandDefault{\capitalnewtie} {\tc@check@accent{\t}2\capitalnewtie}
% \end{macrocode}
%
% In Unicode engines we just execute the simple accents:
% \begin{macrocode}
\else
\def\capitalacute{\'}
\def\capitalbreve{\u}
\def\capitalcaron{\v}
\def\capitalcedilla{\c}
\def\capitalcircumflex{\^}
\def\capitaldieresis{\"}
\def\capitaldotaccent{\.}
\def\capitalgrave{\`}
\def\capitalhungarumlaut{\H}
\def\capitalmacron{\=}
\def\capitalnewtie{\t}
\def\capitalogonek{\k}
\def\capitalring{\r}
\def\capitaltie{\t}
\def\capitaltilde{\~}
\def\newtie{\t}
\fi
% \end{macrocode}
%
%
%
%
% The next two symbols exist in some fonts (faked?), but we ignore
% that to keep the subsets reasonable compact and most important linear.
% \begin{macrocode}
\DeclareTextCommandDefault{\textlbrackdbl} {\tc@check@symbol2\textlbrackdbl}
\DeclareTextCommandDefault{\textrbrackdbl} {\tc@check@symbol2\textrbrackdbl}
% \end{macrocode}
%
%
% Old style numerals are again in some fonts but using
% \texttt{-OsF}, etc.\ is the better approach to get them, so we
% claim they aren't in sub-encoding 2 as that's true for most
% fonts.
% \begin{macrocode}
\DeclareTextCommandDefault{\texteightoldstyle} {\tc@check@symbol2\texteightoldstyle}
\DeclareTextCommandDefault{\textfiveoldstyle} {\tc@check@symbol2\textfiveoldstyle}
\DeclareTextCommandDefault{\textfouroldstyle} {\tc@check@symbol2\textfouroldstyle}
\DeclareTextCommandDefault{\textnineoldstyle} {\tc@check@symbol2\textnineoldstyle}
\DeclareTextCommandDefault{\textoneoldstyle} {\tc@check@symbol2\textoneoldstyle}
\DeclareTextCommandDefault{\textsevenoldstyle} {\tc@check@symbol2\textsevenoldstyle}
\DeclareTextCommandDefault{\textsixoldstyle} {\tc@check@symbol2\textsixoldstyle}
\DeclareTextCommandDefault{\textthreeoldstyle} {\tc@check@symbol2\textthreeoldstyle}
\DeclareTextCommandDefault{\texttwooldstyle} {\tc@check@symbol2\texttwooldstyle}
\DeclareTextCommandDefault{\textzerooldstyle} {\tc@check@symbol2\textzerooldstyle}
% \end{macrocode}
%
%
%
% The next set of glyphs is special to TeX fonts (and available
% with a few older PS fonts supported in the virtual fonts), but
% not any longer in the majority of fonts provided through
% autoinst, so we pretend there aren't available in sub-encoding 2
% and below.
% \begin{macrocode}
\DeclareTextCommandDefault{\textacutedbl} {\tc@check@symbol2\textacutedbl}
\DeclareTextCommandDefault{\textasciiacute} {\tc@check@symbol2\textasciiacute}
\DeclareTextCommandDefault{\textasciibreve} {\tc@check@symbol2\textasciibreve}
\DeclareTextCommandDefault{\textasciicaron} {\tc@check@symbol2\textasciicaron}
\DeclareTextCommandDefault{\textasciidieresis} {\tc@check@symbol2\textasciidieresis}
\DeclareTextCommandDefault{\textasciigrave} {\tc@check@symbol2\textasciigrave}
\DeclareTextCommandDefault{\textasciimacron} {\tc@check@symbol2\textasciimacron}
\DeclareTextCommandDefault{\textgravedbl} {\tc@check@symbol2\textgravedbl}
\DeclareTextCommandDefault{\texttildelow} {\tc@check@symbol2\texttildelow}
% \end{macrocode}
%
%
% Finally those below are only available in CM-based fonts but in
% no font that has its origin outside of the \TeX{} world.
% \begin{macrocode}
\DeclareTextCommandDefault{\textbaht} {\tc@check@symbol2\textbaht}
\DeclareTextCommandDefault{\textbigcircle} {\tc@check@symbol2\textbigcircle}
\DeclareTextCommandDefault{\textborn} {\tc@check@symbol2\textborn}
\DeclareTextCommandDefault{\textcentoldstyle} {\tc@check@symbol2\textcentoldstyle}
\DeclareTextCommandDefault{\textcircledP} {\tc@check@symbol2\textcircledP}
\DeclareTextCommandDefault{\textcopyleft} {\tc@check@symbol2\textcopyleft}
\DeclareTextCommandDefault{\textdblhyphenchar} {\tc@check@symbol2\textdblhyphenchar}
\DeclareTextCommandDefault{\textdblhyphen} {\tc@check@symbol2\textdblhyphen}
\DeclareTextCommandDefault{\textdied} {\tc@check@symbol2\textdied}
\DeclareTextCommandDefault{\textdiscount} {\tc@check@symbol2\textdiscount}
\DeclareTextCommandDefault{\textdivorced} {\tc@check@symbol2\textdivorced}
\DeclareTextCommandDefault{\textdollaroldstyle} {\tc@check@symbol2\textdollaroldstyle}
\DeclareTextCommandDefault{\textguarani} {\tc@check@symbol2\textguarani}
\DeclareTextCommandDefault{\textleaf} {\tc@check@symbol2\textleaf}
\DeclareTextCommandDefault{\textlquill} {\tc@check@symbol2\textlquill}
\DeclareTextCommandDefault{\textmarried} {\tc@check@symbol2\textmarried}
\DeclareTextCommandDefault{\textmho} {\tc@check@symbol2\textmho}
\DeclareTextCommandDefault{\textmusicalnote} {\tc@check@symbol2\textmusicalnote}
\DeclareTextCommandDefault{\textnaira} {\tc@check@symbol2\textnaira}
\DeclareTextCommandDefault{\textopenbullet} {\tc@check@symbol2\textopenbullet}
\DeclareTextCommandDefault{\textpeso} {\tc@check@symbol2\textpeso}
\DeclareTextCommandDefault{\textpilcrow} {\tc@check@symbol2\textpilcrow}
\DeclareTextCommandDefault{\textrecipe} {\tc@check@symbol2\textrecipe}
\DeclareTextCommandDefault{\textreferencemark} {\tc@check@symbol2\textreferencemark}
\DeclareTextCommandDefault{\textrquill} {\tc@check@symbol2\textrquill}
\DeclareTextCommandDefault{\textservicemark} {\tc@check@symbol2\textservicemark}
\DeclareTextCommandDefault{\textsurd} {\tc@check@symbol2\textsurd}
% \end{macrocode}
%
% The \cs{textpertenthousand} also belongs in this group but here
% we have a choice: in T1 there is definition for
% \cs{textpertenthousand} making the symbol up from \% and
% \verb=\char 24= (twice) but in many fonts that char doesn't exist
% and the slot is reused for random ligatures. So better not use it
% because often it is wrong. But pointing to TS1 is also not great
% as only a few fonts have it as a real symbol, so we get a
% substitution to CM or LM.
%
% Alternatively we could just state that the symbol is unavailable in
% those fonts. For now I substitute.
% \begin{macrocode}
\DeclareTextCommandDefault{\textpertenthousand} {\tc@check@symbol2\textpertenthousand}
\UndeclareTextCommand{\textpertenthousand}{T1}
% \end{macrocode}
%
%
%
% \subsection{Sub-encoding \texttt{3}}
%
% Sub-encoding \texttt{2} is the one where we loose many
% symbols. In the higher-numbered sub-encodings we see only a few
% dropped additionally.
% \begin{macrocode}
\DeclareTextCommandDefault{\textlangle} {\tc@check@symbol3\textlangle}
\DeclareTextCommandDefault{\textrangle} {\tc@check@symbol3\textrangle}
% \end{macrocode}
%
%
%
%
%
% \subsection{Sub-encoding \texttt{4}}
%
% \begin{macrocode}
\DeclareTextCommandDefault{\textcolonmonetary} {\tc@check@symbol4\textcolonmonetary}
\DeclareTextCommandDefault{\textdong} {\tc@check@symbol4\textdong}
\DeclareTextCommandDefault{\textdownarrow} {\tc@check@symbol4\textdownarrow}
\DeclareTextCommandDefault{\textleftarrow} {\tc@check@symbol4\textleftarrow}
\DeclareTextCommandDefault{\textlira} {\tc@check@symbol4\textlira}
\DeclareTextCommandDefault{\textrightarrow} {\tc@check@symbol4\textrightarrow}
\DeclareTextCommandDefault{\textuparrow} {\tc@check@symbol4\textuparrow}
\DeclareTextCommandDefault{\textwon} {\tc@check@symbol4\textwon}
% \end{macrocode}
%
%
%
%
%
% \subsection{Sub-encoding \texttt{5} (most older PS fonts)}
%
% Most older PS fonts (supported in \TeX{} since the early nineties
% when virtual fonts became available) are sorted under this
% sub-encoding. But in reality, many of them don't have all glpyhs
% that should be available in sub-encoding \texttt{5}. Instead they
% show little squares, i.e., they produce ``tofu'' if you are
% unlucky.
%
% But the coverage is so random that it is impossible to sort them
% properly and if we tried to ensure that they only typeset those
% glyphs that are really always available wouput put them all into
% sub-encoding \texttt{9} so that's a compromise really.
%
% Modern fonts that don't typeset a tofu character if a glyph is
% missing are only cataloged as sub-encoding \texttt{5} if they
% really support of its glyph set.
% \begin{macrocode}
\DeclareTextCommandDefault{\textestimated} {\tc@check@symbol5\textestimated}
\DeclareTextCommandDefault{\textnumero} {\tc@check@symbol5\textnumero}
% \end{macrocode}
%
%
%
%
% \subsection{Sub-encoding \texttt{6}}
%
% \begin{macrocode}
\DeclareTextCommandDefault{\textflorin} {\tc@check@symbol6\textflorin}
\DeclareTextCommandDefault{\textcurrency} {\tc@check@symbol6\textcurrency}
% \end{macrocode}
%
%
%
% \subsection{Sub-encoding \texttt{7}}
%
% \begin{macrocode}
\DeclareTextCommandDefault{\textfractionsolidus}{\tc@check@symbol7\textfractionsolidus}
\DeclareTextCommandDefault{\textohm} {\tc@check@symbol7\textohm}
\DeclareTextCommandDefault{\textmu} {\tc@check@symbol7\textmu}
\DeclareTextCommandDefault{\textminus} {\tc@check@symbol7\textminus}
% \end{macrocode}
%
%
%
% \subsection{Sub-encoding \texttt{8}}
%
% \begin{macrocode}
\DeclareTextCommandDefault{\textblank} {\tc@check@symbol{8}\textblank}
\DeclareTextCommandDefault{\textinterrobangdown}{\tc@check@symbol{8}\textinterrobangdown}
\DeclareTextCommandDefault{\textinterrobang} {\tc@check@symbol{8}\textinterrobang}
% \end{macrocode}
%
% Fonts with this sub-encoding don't have a Euro symbol, but
% instead of substituting we fake it.
% \begin{macrocode}
\DeclareTextCommandDefault{\texteuro}
{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro{8}\texteuro}
% \end{macrocode}
%
%
%
%
% \subsection{Sub-encoding \texttt{9} (most missing)}
%
% \begin{macrocode}
\DeclareTextCommandDefault{\textcelsius}{\tc@check@symbol{9}\textcelsius}
\DeclareTextCommandDefault{\textonesuperior}{\tc@check@symbol{9}\textonesuperior}
\DeclareTextCommandDefault{\textthreequartersemdash}{\tc@check@symbol{9}\textthreequartersemdash}
\DeclareTextCommandDefault{\textthreesuperior}{\tc@check@symbol{9}\textthreesuperior}
\DeclareTextCommandDefault{\texttwelveudash}{\tc@check@symbol{9}\texttwelveudash}
\DeclareTextCommandDefault{\texttwosuperior}{\tc@check@symbol{9}\texttwosuperior}
\DeclareTextCommandDefault{\textbardbl}{\tc@check@symbol{9}\textbardbl}
% \end{macrocode}
%
%
%
%
% \section{Unicode engine specials}
%
% If we are using a unicode engine we handle some glyphs differently,
% so this here are the definitions for the Unicode encoding
% (overwriting the defaults above).
% \begin{macrocode}
\ifx \Umathcode\@undefined \else
% \end{macrocode}
%
% This set should be taken from \texttt{TS1} encoding even if it
% means you get it from the default font for that encoding.
% \begin{macrocode}
%\DeclareTextSymbol{\textcopyleft}{TS1}{171}
%\DeclareTextSymbol{\textdblhyphen}{TS1}{45}
%\DeclareTextSymbol{\textdblhyphenchar}{TS1}{127}
%\DeclareTextSymbol{\textquotestraightbase}{TS1}{13}
%\DeclareTextSymbol{\textquotestraightdblbase}{TS1}{18}
%\DeclareTextSymbol{\textleaf}{TS1}{108}
%\DeclareTextSymbol{\texttwelveudash}{TS1}{21}
%\DeclareTextSymbol{\textthreequartersemdash}{TS1}{22}
% \end{macrocode}
%
% If oldstyle numerals are asked for we just use \cs{oldstylenums}.
% \begin{macrocode}
\DeclareTextCommand{\textzerooldstyle} \UnicodeEncodingName{\oldstylenums{0}}
\DeclareTextCommand{\textoneoldstyle} \UnicodeEncodingName{\oldstylenums{1}}
\DeclareTextCommand{\texttwooldstyle} \UnicodeEncodingName{\oldstylenums{2}}
\DeclareTextCommand{\textthreeoldstyle}\UnicodeEncodingName{\oldstylenums{3}}
\DeclareTextCommand{\textfouroldstyle} \UnicodeEncodingName{\oldstylenums{4}}
\DeclareTextCommand{\textfiveoldstyle} \UnicodeEncodingName{\oldstylenums{5}}
\DeclareTextCommand{\textsixoldstyle} \UnicodeEncodingName{\oldstylenums{6}}
\DeclareTextCommand{\textsevenoldstyle}\UnicodeEncodingName{\oldstylenums{7}}
\DeclareTextCommand{\texteightoldstyle}\UnicodeEncodingName{\oldstylenums{8}}
\DeclareTextCommand{\textnineoldstyle} \UnicodeEncodingName{\oldstylenums{9}}
% \end{macrocode}
% These have Unicode slots so this should be integrated into TU explictly
% \begin{macrocode}
\DeclareTextSymbol{\textpilcrow} \UnicodeEncodingName{"00B6}
\DeclareTextSymbol{\textborn} \UnicodeEncodingName{"002A}
\DeclareTextSymbol{\textdied} \UnicodeEncodingName{"2020}
\DeclareTextSymbol{\textlbrackdbl} \UnicodeEncodingName{"27E6}
\DeclareTextSymbol{\textrbrackdbl} \UnicodeEncodingName{"27E7}
\DeclareTextSymbol{\textguarani} \UnicodeEncodingName{"20B2}
% \end{macrocode}
% We could make \cs{textcentoldstyle} and \cs{textdollaroldstyle}
% point to dollar and cent in the Unicode encoding
% \begin{macrocode}
%\DeclareTextSymbol{\textcentoldstyle} \UnicodeEncodingName{"00A2}
%\DeclareTextSymbol{\textdollaroldstyle} \UnicodeEncodingName{"0024}
% \end{macrocode}
% but I think it is better to pick them up from TS1 even if that
% usually means LMR fonts
% \begin{macrocode}
\DeclareTextSymbol{\textdollaroldstyle}{TS1}{138}
\DeclareTextSymbol{\textcentoldstyle} {TS1}{139}
% \end{macrocode}
%
%
% \begin{macrocode}
\fi % --- END of Unicode engines specials
% \end{macrocode}
%
% \section{Font family sub-encodings setup}
%
% We declare the subsets for a good number of fonts in the kernel
% \ldots
%
% But first the default for anything that is not declared. We use
% \texttt{9} which is most like much too conservative but with the
% advantage that we aren't getting missing glyphs (or at least that
% this very very unlikely).
% For nearly all font in the \TeX{} Live distribution of 2019
% ``correct'' classifications are given below, so that this default
% is only used for new font families, and over time the right
% classifications can be added here too.
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{?}{9}
% \end{macrocode}
%
% This first block contains the fonts that have been already
% supported by the \texttt{textcomp} package way back, i.e., the
% font families that have \TeX{} support since the mid-nineties.
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{ccr} {0}
\DeclareEncodingSubset{TS1}{cmbr} {0}
\DeclareEncodingSubset{TS1}{cmr} {0}
\DeclareEncodingSubset{TS1}{cmss} {0}
\DeclareEncodingSubset{TS1}{cmtl} {0}
\DeclareEncodingSubset{TS1}{cmtt} {0}
\DeclareEncodingSubset{TS1}{cmvtt} {0}
\DeclareEncodingSubset{TS1}{pxr} {0}
\DeclareEncodingSubset{TS1}{pxss} {0}
\DeclareEncodingSubset{TS1}{pxtt} {0}
\DeclareEncodingSubset{TS1}{qag} {0}
\DeclareEncodingSubset{TS1}{qbk} {0}
\DeclareEncodingSubset{TS1}{qcr} {0}
\DeclareEncodingSubset{TS1}{qcs} {0}
\DeclareEncodingSubset{TS1}{qhvc} {0}
\DeclareEncodingSubset{TS1}{qhv} {0}
\DeclareEncodingSubset{TS1}{qpl} {0}
\DeclareEncodingSubset{TS1}{qtm} {0}
\DeclareEncodingSubset{TS1}{qzc} {0}
\DeclareEncodingSubset{TS1}{txr} {0}
\DeclareEncodingSubset{TS1}{txss} {0}
\DeclareEncodingSubset{TS1}{txtt} {0}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{lmr} {1}
\DeclareEncodingSubset{TS1}{lmdh} {1}
\DeclareEncodingSubset{TS1}{lmss} {1}
\DeclareEncodingSubset{TS1}{lmssq} {1}
\DeclareEncodingSubset{TS1}{lmvtt} {1}
\DeclareEncodingSubset{TS1}{lmtt} {1} % missing TM, SM, pertenthousand for some reason
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{ptmx} {2}
\DeclareEncodingSubset{TS1}{ptmj} {2}
\DeclareEncodingSubset{TS1}{ul8} {2}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{bch} {5} % tofu for blank, ohm
\DeclareEncodingSubset{TS1}{futj} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{futs} {5} % tofu for blank, ohm
\DeclareEncodingSubset{TS1}{futx} {5} % probably (currently broken distrib)
\DeclareEncodingSubset{TS1}{pag} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{pbk} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{pcr} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{phv} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{pnc} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{pplj} {5} % tofu for blank
\DeclareEncodingSubset{TS1}{pplx} {5} % tofu for blank
\DeclareEncodingSubset{TS1}{ppl} {5} % tofu for blank interrobang/down
\DeclareEncodingSubset{TS1}{ptm} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{pzc} {5} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{ul9} {5} % tofu for blank, interrobang/down, ohm
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{dayroms} {6} % tofu for blank, interrobang/down, ohm
\DeclareEncodingSubset{TS1}{dayrom} {6} % tofu for blank, interrobang/down, ohm
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{augie} {8} % really only missing euro
\DeclareEncodingSubset{TS1}{put} {8}
\DeclareEncodingSubset{TS1}{uag} {8} % probably (currently broken distrib)
\DeclareEncodingSubset{TS1}{ugq} {8}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{zi4} {9}
% \end{macrocode}
% LucidaBright (sold through TUG) probably not quite correct, I
% guess as I have the older fonts \ldots
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{hls} {5}
\DeclareEncodingSubset{TS1}{hlst} {5}
\DeclareEncodingSubset{TS1}{hlct} {5}
\DeclareEncodingSubset{TS1}{hlh} {5}
\DeclareEncodingSubset{TS1}{hlx} {8}
\DeclareEncodingSubset{TS1}{hlce} {8}
\DeclareEncodingSubset{TS1}{hlcn} {8}
\DeclareEncodingSubset{TS1}{hlcw} {8}
\DeclareEncodingSubset{TS1}{hlcf} {8}
% \end{macrocode}
%
% Below are the newer fonts that have support files for
% \LaTeX{}. With very few exceptions the classifications are done
% so that that all characters are correctly produced (either being
% available in the font or substituted.
%
% There are a few fonts that contain ``tofu'' squares in places
% (instead of a real glyph) and in a few cases some really seldom
% needed chars are unavailable, i.e., produce missing glyphs (to
% avoid that a large number of available chars are unnecessarily
% substituted.
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{lato-*} {0} % with a bunch of tofu inside
\DeclareEncodingSubset{TS1}{opensans-*} {0} % with a bunch of tofu inside
\DeclareEncodingSubset{TS1}{cantarell-*} {0} % with a bunch of tofu inside
\DeclareEncodingSubset{TS1}{fbb-*} {0} % missing centoldstyle
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{tli} {1} % with lots of tofu inside
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{Alegreya-*} {2}
\DeclareEncodingSubset{TS1}{AlegreyaSans-*} {2}
\DeclareEncodingSubset{TS1}{DejaVuSans-TLF} {2}
\DeclareEncodingSubset{TS1}{DejaVuSansCondensed-TLF} {2}
\DeclareEncodingSubset{TS1}{DejaVuSansMono-TLF} {2}
\DeclareEncodingSubset{TS1}{EBGaramond-*} {2}
\DeclareEncodingSubset{TS1}{Tempora-TLF} {2}
\DeclareEncodingSubset{TS1}{Tempora-TOsF} {2}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareEncodingSubset{TS1}{Arimo-TLF} {3}
\DeclareEncodingSubset{TS1}{Carlito-*} {3}
\DeclareEncodingSubset{TS1}{FiraSans-*} {3}
\DeclareEncodingSubset{TS1}{IBMPlexSans-TLF} {3}
\DeclareEncodingSubset{TS1}{Merriweather-OsF} {3}
\DeclareEncodingSubset{TS1}{Montserrat-*} {3}