Debian Codegraph @

texmf-dist/tex/latex/base/checkencodingsubset.tex

raw
1 %%
2 %% This is file `checkencodingsubset.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lttextcomp.dtx (with options: `TS1check')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs.html
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2025
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the LaTeX base system.
21 %% --------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2008 or later.
30 %%
31 %% This file has the LPPL maintenance status "maintained".
32 %%
33 %% This file may only be distributed together with a copy of the LaTeX
34 %% base system. You may however distribute the LaTeX base system without
35 %% such generated files.
36 %%
37 %% The list of all files belonging to the LaTeX base distribution is
38 %% given in the file `manifest.txt'. See also `legal.txt' for additional
39 %% information.
40 %%
41 %% The list of derived (unpacked) files belonging to the distribution
42 %% and covered by LPPL is defined by the unpacking scripts (with
43 %% extension .ins) which are part of the distribution.
44 %%% From File: lttextcomp.dtx
45 \ProvidesFile{checkencodingsubset.tex}
46 [2024/10/18 v0.5b Figure out safe TS1 encoding subsets]
47 \let\typeoutdetails\typeout
48 \def\doesglyphexist#1#2{\iffontchar\testFont #1 0\else 1\relax \fi}
49 \def\glyphmissingdetails#1#2{\iffontchar\testFont #1 \else
50 \typeoutdetails{\space\space\space ==> \string#2 (#1) is missing}\fi}
51 \newif\ifsafesubencodingfound
52 \newif\ifcoremisses
53 \def\testgroup#1#2#3{%
54 \ifnum 0 = #1%
55 \ifnum #2<0
56 \typeoutdetails{All glyphs in core exist}%
57 \else
58 \typeoutdetails{All glyphs between sub-encoding #2 and #3 exist}%
59 \fi
60 \else
61 \ifnum #2<0
62 \typeoutdetails{**********************************}%
63 \typeoutdetails{Some glyphs are missing from core:}%
64 \coremissestrue
65 \ifsafesubencodingfound \else
66 \def\subencodingresult{#2}%
67 \fi
68 \else
69 \typeoutdetails{Some glyphs are missing from sub-encoding #2:}%
70 \ifsafesubencodingfound \else
71 \def\subencodingresult{#3}%
72 \fi
73 \fi
74 {\let\doesglyphexist \glyphmissingdetails #1}%
75 \safesubencodingfoundtrue
76 \fi
77 }
78 \def\currsubencoding#1{\csname TS1:\ifcsname TS1:#1\endcsname #1\else ?\fi\endcsname}
79 \DeclareFixedFont\cmrFont{TS1}{cmr}{m}{n}{10pt}
80 \def\testallgroups#1{%
81 \DeclareFixedFont\testFont{TS1}{#1}{m}{n}{10pt}%
82 \ifx\testFont\cmrFont
83 \typeout{***** Font family #1 not found ****}%
84 \else
85 \safesubencodingfoundfalse
86 \coremissesfalse
87 \typeoutdetails{^^J-----------------------------------------}%
88 \typeoutdetails{Testing font family #1^^J(currently TS1-sub-encoding
89 \currsubencoding{#1})}%
90 \typeout{-----------------------------------------}%
91 \testgroup{%
92 \doesglyphexist{21}{\texttwelveudash}%
93 \doesglyphexist{22}{\textthreequartersemdash}%
94 \doesglyphexist{134}{\textbardbl}%
95 \doesglyphexist{137}{\textcelsius}%
96 \doesglyphexist{178}{\texttwosuperior}%
97 \doesglyphexist{179}{\textthreesuperior}%
98 \doesglyphexist{185}{\textonesuperior}%
99 }{8}{9}%
100 \testgroup{%
101 \doesglyphexist{32}{\textblank}%
102 \doesglyphexist{148}{\textinterrobang}%
103 \doesglyphexist{149}{\textinterrobangdown}%
104 \doesglyphexist{191}{\texteuro}%
105 }{7}{8}%
106 \testgroup{%
107 \doesglyphexist{47}{\textfractionsolidus}%
108 \doesglyphexist{61}{\textminus}%
109 \doesglyphexist{87}{\textohm}%
110 \doesglyphexist{181}{\textmu}%
111 }{6}{7}%
112 \testgroup{%
113 \doesglyphexist{140}{\textflorin}%
114 \doesglyphexist{164}{\textcurrency}%
115 }{5}{6}%
116 \testgroup{%
117 \doesglyphexist{155}{\textnumero}%
118 \doesglyphexist{157}{\textestimated}%
119 }{4}{5}%
120 \testgroup{%
121 \doesglyphexist{24}{\textleftarrow}%
122 \doesglyphexist{25}{\textrightarrow}%
123 \doesglyphexist{94}{\textuparrow}%
124 \doesglyphexist{95}{\textdownarrow}%
125 \doesglyphexist{141}{\textcolonmonetary}%
126 \doesglyphexist{142}{\textwon}%
127 \doesglyphexist{146}{\textlira}%
128 \doesglyphexist{150}{\textdong}%
129 }{3}{4}%
130 \testgroup{%
131 \doesglyphexist{60}{\textlangle}%
132 \doesglyphexist{62}{\textrangle}%
133 }{2}{3}%
134 \testgroup{%
135 \doesglyphexist{0}{\capitalgrave}%
136 \doesglyphexist{1}{\capitalacute}%
137 \doesglyphexist{2}{\capitalcircumflex}%
138 \doesglyphexist{3}{\capitaltilde}%
139 \doesglyphexist{4}{\capitaldieresis}%
140 \doesglyphexist{5}{\capitalhungarumlaut}%
141 \doesglyphexist{6}{\capitalring}%
142 \doesglyphexist{7}{\capitalcaron}%
143 \doesglyphexist{8}{\capitalbreve}%
144 \doesglyphexist{9}{\capitalmacron}%
145 \doesglyphexist{10}{\capitaldotaccent}%
146 \doesglyphexist{11}{\capitalcedilla}%
147 \doesglyphexist{12}{\capitalogonek}%
148 \doesglyphexist{26}{\t}%
149 \doesglyphexist{27}{\capitaltie}%
150 \doesglyphexist{28}{\newtie}%
151 \doesglyphexist{29}{\capitalnewtie}%
152 \doesglyphexist{45}{\textdblhyphen}%
153 \doesglyphexist{48}{\textzerooldstyle}%
154 \doesglyphexist{49}{\textoneoldstyle}%
155 \doesglyphexist{50}{\texttwooldstyle}%
156 \doesglyphexist{51}{\textthreeoldstyle}%
157 \doesglyphexist{52}{\textfouroldstyle}%
158 \doesglyphexist{53}{\textfiveoldstyle}%
159 \doesglyphexist{54}{\textsixoldstyle}%
160 \doesglyphexist{55}{\textsevenoldstyle}%
161 \doesglyphexist{56}{\texteightoldstyle}%
162 \doesglyphexist{57}{\textnineoldstyle}%
163 \doesglyphexist{77}{\textmho}%
164 \doesglyphexist{79}{\textbigcircle}%
165 \doesglyphexist{91}{\textlbrackdbl}%
166 \doesglyphexist{93}{\textrbrackdbl}%
167 \doesglyphexist{96}{\textasciigrave}%
168 \doesglyphexist{98}{\textborn}%
169 \doesglyphexist{99}{\textdivorced}%
170 \doesglyphexist{100}{\textdied}%
171 \doesglyphexist{108}{\textleaf}%
172 \doesglyphexist{109}{\textmarried}%
173 \doesglyphexist{110}{\textmusicalnote}%
174 \doesglyphexist{126}{\texttildelow}%
175 \doesglyphexist{127}{\textdblhyphenchar}%
176 \doesglyphexist{128}{\textasciibreve}%
177 \doesglyphexist{129}{\textasciicaron}%
178 \doesglyphexist{175}{\textasciimacron}%
179 \doesglyphexist{130}{\textacutedbl}%
180 \doesglyphexist{131}{\textgravedbl}%
181 \doesglyphexist{138}{\textdollaroldstyle}%
182 \doesglyphexist{139}{\textcentoldstyle}%
183 \doesglyphexist{143}{\textnaira}%
184 \doesglyphexist{144}{\textguarani}%
185 \doesglyphexist{145}{\textpeso}%
186 \doesglyphexist{147}{\textrecipe}%
187 \doesglyphexist{152}{\textpertenthousand}%
188 \doesglyphexist{153}{\textpilcrow}%
189 \doesglyphexist{154}{\textbaht}%
190 \doesglyphexist{156}{\textdiscount}%
191 \doesglyphexist{158}{\textopenbullet}%
192 \doesglyphexist{159}{\textservicemark}%
193 \doesglyphexist{160}{\textlquill}%
194 \doesglyphexist{161}{\textrquill}%
195 \doesglyphexist{168}{\textasciidieresis}%
196 \doesglyphexist{171}{\textcopyleft}%
197 \doesglyphexist{173}{\textcircledP}%
198 \doesglyphexist{180}{\textasciiacute}%
199 \doesglyphexist{184}{\textreferencemark}%
200 \doesglyphexist{187}{\textsurd}%
201 }{1}{2}%
202 \testgroup{%
203 \doesglyphexist{79}{\textcircled}% this is not a proper test because the symbol is
204 % usually available but not usable
205 }{0}{1}%
206 \testgroup{%
207 \doesglyphexist{13}{\textquotestraightbase}%
208 \doesglyphexist{18}{\textquotestraightdblbase}%
209 \doesglyphexist{23}{\textcapitalcompwordmark}%
210 \doesglyphexist{31}{\textascendercompwordmark}%
211 \doesglyphexist{36}{\textdollar}%
212 \doesglyphexist{39}{\textquotesingle}%
213 \doesglyphexist{42}{\textasteriskcentered}%
214 \doesglyphexist{132}{\textdagger}%
215 \doesglyphexist{133}{\textdaggerdbl}%
216 \doesglyphexist{135}{\textperthousand}%
217 \doesglyphexist{136}{\textbullet}%
218 \doesglyphexist{151}{\texttrademark}%
219 \doesglyphexist{162}{\textcent}%
220 \doesglyphexist{163}{\textsterling}%
221 \doesglyphexist{165}{\textyen}%
222 \doesglyphexist{166}{\textbrokenbar}%
223 \doesglyphexist{167}{\textsection}%
224 \doesglyphexist{169}{\textcopyright}%
225 \doesglyphexist{170}{\textordfeminine}%
226 \doesglyphexist{172}{\textlnot}%
227 \doesglyphexist{174}{\textregistered}%
228 \doesglyphexist{176}{\textdegree}%
229 \doesglyphexist{177}{\textpm}%
230 \doesglyphexist{182}{\textparagraph}%
231 \doesglyphexist{183}{\textperiodcentered}%
232 \doesglyphexist{186}{\textordmasculine}%
233 \doesglyphexist{188}{\textonequarter}%
234 \doesglyphexist{189}{\textonehalf}%
235 \doesglyphexist{190}{\textthreequarters}%
236 \doesglyphexist{214}{\texttimes}%
237 \doesglyphexist{246}{\textdiv}%
238 }{-1}{0}%
239 \ifsafesubencodingfound\else
240 \def\subencodingresult{0}%
241 \fi
242 \typeoutdetails{-----------------------------------------}%
243 \typeout{TS1 encoding subset for #1\ifcoremisses \space(ignoring core misses)\fi
244 \space (\ifnum\subencodingresult =
245 \currsubencoding{#1} ok\else bad\fi)}%
246 \typeout{Use sub-encoding \subencodingresult
247 \ifnum\subencodingresult = \currsubencoding{#1}\else
248 \space (not \currsubencoding{#1})\fi}
249 \typeout{-----------------------------------------^^J}%
250 \fi
251 }
252 \long\def\testallkerneldefinedfamilies{%
253 \testallgroups{ccr}% {0}
254 \testallgroups{cmbr}% {0}
255 %%\testallgroups{cmr}% {0} % don't test this one as it is the fallback
256 % thus reports that the family is not found
257 \testallgroups{cmss}% {0}
258 \testallgroups{cmtl}% {0}
259 \testallgroups{cmtt}% {0}
260 \testallgroups{cmvtt}% {0}
261 \testallgroups{pxr}% {0}
262 \testallgroups{pxss}% {0}
263 \testallgroups{pxtt}% {0}
264 \testallgroups{qag}% {0}
265 \testallgroups{qbk}% {0}
266 \testallgroups{qcr}% {0}
267 \testallgroups{qcs}% {0}
268 \testallgroups{qhvc}% {0}
269 \testallgroups{qhv}% {0}
270 \testallgroups{qpl}% {0}
271 \testallgroups{qtm}% {0}
272 \testallgroups{qzc}% {0}
273 \testallgroups{txr}% {0}
274 \testallgroups{txss}% {0}
275 \testallgroups{txtt}% {0}
276 \testallgroups{zi4}% {9}
277 %% not installed normally
278
279 \testallgroups{lato-LF}% {0} % with a bunch of tofu inside --- should probably be changed
280 \testallgroups{opensans-TLF}%{0} % with a bunch of tofu inside --- should probably be changed
281 \testallgroups{cantarell-TLF}% {0} % with a bunch of tofu inside --- should probably be changed
282 \testallgroups{fbb-LF}% {0} % missing centoldstyle ---> 2
283 \testallgroups{tli}% {1} % with lots of tofu inside --- should probably be changed
284 \testallgroups{Alegreya-OsF}% {2}
285 \testallgroups{AlegreyaSans-OsF}% {2}
286 \testallgroups{DejaVuSans-TLF}% {2}
287 \testallgroups{DejaVuSansCondensed-TLF}% {2}
288 \testallgroups{DejaVuSansMono-TLF}% {2} this is missing \textfractionsolidus which makes it 7 really
289 \testallgroups{EBGaramond-LF}% {2}
290 \testallgroups{Tempora-TLF}% {2}
291 \testallgroups{Tempora-TOsF}% {2}
292 \testallgroups{Arimo-TLF}% {3}
293 \testallgroups{Crlt-TLF}% {3} changed from Carlito-
294 \testallgroups{FiraSans-LF}% {3} should be 4
295 \testallgroups{IBMPlexSans-TLF}% {3}
296 \testallgroups{Merriwthr-OsF}% {3} changed from Merriweather- and should be 2
297 \testallgroups{Montserrat-LF}% {3} now 2
298 \testallgroups{MontserratAlternates-LF}%{3} now 2
299 \testallgroups{SourceCodePro-TLF}% {3}
300 \testallgroups{SourceCodePro-TOsF}% {3}
301 \testallgroups{SourceSansPro-OsF}% {3}
302 \testallgroups{SourceSerifPro-LF}% {3}
303 \testallgroups{Tinos-TLF}% {3}
304 \testallgroups{AccanthisADFStdNoThree-LF}%{4}
305 \testallgroups{Cabin-TLF}% {4}
306 \testallgroups{Caladea-TLF}% {4}
307 \testallgroups{Chivo-LF}% {4}
308 \testallgroups{ClearSans-TLF}% {4}
309 \testallgroups{Coelacanth-LF}% {4}
310 \testallgroups{CrimsonPro-LF}% {4}
311 \testallgroups{FiraMono-TLF}% {4}
312 \testallgroups{FiraMono-TOsF}% {4}
313 \testallgroups{Go-TLF}% {4}
314 \testallgroups{GoMono-TLF}% {4}
315 \testallgroups{InriaSans-LF}% {4}
316 \testallgroups{InriaSerif-LF}% {4}
317 \testallgroups{LibertinusSans-LF}% {4}
318 \testallgroups{LibertinusSerif-LF}% {4}
319 \testallgroups{LibreBodoni-TLF}% {4}
320 \testallgroups{LibreFranklin-TLF}% {4}
321 \testallgroups{LinguisticsPro-LF}% {4}
322 \testallgroups{LinguisticsPro-OsF}% {4}
323 \testallgroups{LinuxBiolinumT-LF}% {4}
324 \testallgroups{LinuxLibertineT-LF}% {4}
325 \testallgroups{MerriwthrSans-OsF}% {4} name change and now 2
326 \testallgroups{MintSpirit-LF}% {4}
327 \testallgroups{MintSpiritNoTwo-LF}% {4}
328 \testallgroups{PTMono-TLF}% {4}
329 \testallgroups{PTSans-TLF}% {4}
330 \testallgroups{PTSansCaption-TLF}% {4}
331 \testallgroups{PTSansNarrow-TLF}% {4}
332 \testallgroups{PTSerif-TLF}% {4}
333 \testallgroups{PTSerifCaption-TLF}% {4}
334 \testallgroups{Raleway-TLF}% {4}
335 \testallgroups{Raleway-TOsF}% {4}
336 \testallgroups{Roboto-LF}% {4}
337 \testallgroups{RobotoMono-TLF}% {4}
338 \testallgroups{RobotoSlab-TLF}% {4}
339 \testallgroups{Rosario-LF}% {4}
340 \testallgroups{SticksTooText-LF}% {4}
341 \testallgroups{UniversalisADFStd-LF}%{4}
342 \testallgroups{Almndr-OsF}% {5} name change
343 \testallgroups{Baskervaldx-LF}% {5}
344 \testallgroups{BaskervilleF-LF}% {5} now 2
345 \testallgroups{Bttr-TLF}% {5} name changed from Bitter-...
346 \testallgroups{Cinzel-LF}% {5}
347 \testallgroups{CinzelDecorative-LF}%{5}
348 \testallgroups{DejaVuSerif-TLF}% {5}
349 \testallgroups{DejaVuSerifCondensed-TLF}% {5}
350 \testallgroups{GilliusADF-LF}% {5}
351 \testallgroups{charssil-TLF} %% missing should be 5
352 \testallgroups{GilliusADFCond-LF}%{5}
353 \testallgroups{GilliusADFNoTwo-LF}%{5}
354 \testallgroups{GilliusADFNoTwoCond-LF}%{5}
355 \testallgroups{Lbstr-LF}% {5} name change and should be 7
356 \testallgroups{OldStandard-TLF}% {5}
357 \testallgroups{PlyfrDisplay-LF}%{5} name change
358 \testallgroups{PlyfrDisplay-OsF}% {5} name change
359 \testallgroups{TheanoDidot-TLF}% {5}
360 \testallgroups{TheanoDidot-TOsF}% {5}
361 \testallgroups{TheanoModern-TLF}% {5}
362 \testallgroups{TheanoModern-TOsF}%{5}
363 \testallgroups{TheanoOldStyle-TLF}%{5}
364 \testallgroups{TheanoOldStyle-TOsF}%{5}
365 \testallgroups{Crimson-TLF}% {6}
366 \testallgroups{IBMPlexMono-TLF}% {6} now 3
367 \testallgroups{IBMPlexSerif-TLF}% {6} now 3
368 \testallgroups{LibertinusMono-TLF}%{6} should be 8
369 \testallgroups{LibertinusSerifDisplay-LF}%{6}
370 \testallgroups{LinuxLibertineDisplayT-LF}%{6}
371 \testallgroups{LinuxLibertineMonoT-LF}%{6}
372 \testallgroups{LinuxLibertineMonoT-TLF}%{6}
373 \testallgroups{Ovrlck-LF}% {6} name changed
374 \testallgroups{CormorantGaramond-LF}%{7}
375 \testallgroups{Heuristica-TLF}% {7}
376 \testallgroups{Heuristica-TOsF}% {7}
377 \testallgroups{IMFELLEnglish-TLF}%{7}
378 \testallgroups{LibreBskvl-LF}% {7} %% wrong name LibreBaskerville-TLF
379 \testallgroups{LibreCsln-LF}% {7} changed from LibreCaslon-
380 \testallgroups{Mrcls-LF}% {7} %% wrong name Marcellus-LF
381 \testallgroups{NotoSans-LF}% {7}
382 \testallgroups{NotoSansMono-TLF}%{7} now 2
383 \testallgroups{NotoSansMono-TOsF}%{7} now 2
384 \testallgroups{NotoSerif-LF}% {7}
385 \testallgroups{Quattro-LF}% {7} changed from Quattrocento-
386 \testallgroups{QuattroSans-LF}% {7} changed from QuattrocentoSans-
387 \testallgroups{XCharter-TLF}% {7} now 2
388 \testallgroups{XCharter-TOsF}% {7} now 2
389 \testallgroups{erewhon-LF}% {7} now 2
390 \testallgroups{ComicNeue-TLF}% {7}
391 \testallgroups{ComicNeueAngular-TLF}%{7}
392 \testallgroups{Frm-LF}%{7} % the superiors are missing; name changed from Forum-LF
393 \testallgroups{Cochineal-TLF}% {8} now 5
394 \testallgroups{AlgolRevived-TLF}%{9}
395 }
396 \typeout{^^J=====================================================================}
397 \typeout{| Enter font family to check (or <enter> for kernel defined families)}
398 \typeout{=====================================================================}
399 \typein[\FontFamilyToCheck]{}
400 \if!\FontFamilyToCheck!
401 \typeout{=====================================================================}
402 \typeout{| Detailed output? (default no)}
403 \typeout{=====================================================================}
404 \typein[\Details]{}
405 \if!\Details!
406 \def\typeoutdetails#1{}
407 \else
408 \let\typeoutdetails\typeout
409 \fi
410 \testallkerneldefinedfamilies
411 \else
412 \let\typeoutdetails\typeout
413 \testallgroups\FontFamilyToCheck
414 \fi
415 \stop
416
417 \endinput
418 %%
419 %% End of file `checkencodingsubset.tex'.