blob: b573ee5b0edc4cc10236d7ba01d2a86c30bb5487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
%%
%% This is file `unicodefont.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% unicodefonttable.dtx (with options: `standalone')
%%
%% This is a generated file.
%%
%% Copyright 2019-2021 Frank Mittelbach
%%
%% This file was generated from file(s) of the LaTeX `unicodefonttable Bundle'.
%% --------------------------------------------------------------------------
%%
%% 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 may only be distributed together with a copy of the LaTeX
%% `unicodefonttable Bundle'. You may however distribute the `unicodefonttable Bundle'
%% without such generated files.
%%
%% The newest sources can be found below
%%
%% https://github.com/FrankMittelbach/fmitex-unicodetable
%%
%% where one can also log issues in case there are any.
%%
%%
%%%%% \iffalse meta-comment
%% File: unicodefonttable.dtx (C) Copyright 2019-2021 Frank Mittelbach
\def\unicodefonttabledate {2021/10/29}
\def\unicodefonttableversion{v1.0f}
\documentclass{article}
\setlength\textwidth{470pt}
\setlength\oddsidemargin{0pt}
\addtolength\textheight{7\baselineskip}
\addtolength\topmargin{-3\baselineskip}
\usepackage{unicodefonttable}
\def\DEFAULTfontname{Latin Modern Roman}
\def\DEFAULTfontfeatures{}
\def\DEFAULTtableconfig{}
\def\DEFAULTunicodefont{}
\begin{document}
\typeout{^^J}
\ifx\generatetable\undefined
\else
\typein[\answer]{^^JReuse settings from last time (default yes)?^^J^^J%
[ font name = \DEFAULTfontname^^J
\space unicode? = \ifx\DEFAULTunicodefont\empty yes^^J
\space font features = \DEFAULTfontfeatures
\else no\fi^^J
\space table config = \DEFAULTtableconfig \space]}
\fi
\ifx\answer\empty
\let\FontNameToTable\DEFAULTfontname
\let\IsUnicodeFont\DEFAULTunicodefont
\let\FontFeaturesToApply\DEFAULTfontfeatures
\let\TableConfigurationToApply\DEFAULTtableconfig
\else
\typein[\FontNameToTable]%
{^^JInput external font name as understood by fontspec, e.g.,^^J%
'TeX Gyre Pagella' or 'lmroman10-regular.otf'%
\ifx\DEFAULTfontname\empty\else
^^J^^J[default \DEFAULTfontname]\fi:}
\ifx\FontNameToTable\empty \let\FontNameToTable\DEFAULTfontname \fi
\typein[\IsUnicodeFont]%
{^^JIs this a Unicode font?^^J^^J%
\ifx\DEFAULTunicodefont\empty [default yes]\else [default no]\fi:}
\ifx\IsUnicodeFont\empty
\let\IsUnicodeFont\DEFAULTunicodefont
\else
\ifx\DEFAULTunicodefont\empty
\else
\let\IsUnicodeFont\empty
\fi
\fi
\ifx\IsUnicodeFont\empty
\typein[\FontFeaturesToApply]%
{^^JInput font feature key/value list to apply%
\ifx\DEFAULTfontfeatures\empty\else
^^J^^J[default \DEFAULTfontfeatures]\fi:}
\ifx\FontFeaturesToApply\empty \let\FontFeaturesToApply\DEFAULTfontfeatures \fi
\else
\let\FontFeaturesToApply\DEFAULTfontfeatures
\fi
\typein[\TableConfigurationToApply]%
{^^JInput table configuration key/value list to apply%
\ifx\DEFAULTtableconfig\empty\else
^^J^^J[default
\expandafter\detokenize\expandafter{\DEFAULTtableconfig}]\fi:}
\ifx\TableConfigurationToApply\empty
\let\TableConfigurationToApply\DEFAULTtableconfig
\fi
\edef\generatetable{\noexpand\displayfonttable
\ifx\IsUnicodeFont\empty\else *\fi
\ifx\TableConfigurationToApply\empty\else
[\expandafter\unexpanded\expandafter{\TableConfigurationToApply}]\fi
{\FontNameToTable}%
\ifx\FontFeaturesToApply\empty\else[\FontFeaturesToApply]\fi
}
\fi
\makeatletter
\protected@write\@auxout{}{\gdef\string\generatetable
{\expandafter\detokenize\expandafter{\generatetable}}}
\protected@write\@auxout{}{\gdef\string\DEFAULTfontname{\FontNameToTable}}
\protected@write\@auxout{}{\gdef\string\DEFAULTunicodefont{\IsUnicodeFont}}
\protected@write\@auxout{}{\gdef\string\DEFAULTfontfeatures{\FontFeaturesToApply}}
\protected@write\@auxout{}{\gdef\string\DEFAULTtableconfig
{\expandafter\detokenize\expandafter{\TableConfigurationToApply}}}
\makeatother
\generatetable
\end{document}
\endinput
%%
%% End of file `unicodefont.tex'.
|