Debian Codegraph @

texmf-dist/doc/fonts/yfonts-otf/yfonts-otf.ltx

raw
1 \DocumentMetadata{lang=en-GB}
2 \documentclass[paper=a4]{scrartcl}
3 % Packages
4 \usepackage{graphics, array}
5 \usepackage[dvipsnames]{xcolor}
6 \usepackage[hypcap=false]{caption}
7 \usepackage{shortvrb}
8 \usepackage{yfonts-otf}
9 \usepackage{fourier-otf}
10 \setmonofont{Inconsolatazi4}[Scale=MatchLowercase,
11 HyphenChar=None,StylisticSet={2,3}]
12 \usepackage[german,british]{babel}
13 \babeltags{de=german}
14 \usepackage[english]{varioref}
15 \usepackage{realscripts}
16 \usepackage{microtype}
17 \usepackage{hyperref}
18 \hypersetup{pdftitle={yfonts-otf User’s Guide},
19 pdfauthor={Daniel FLIPO},
20 colorlinks
21 }
22 \newcommand*{\hlabel}[1]{\phantomsection\label{#1}}
23 %
24 \MakeShortVerb{\|}
25
26 %verbatim : modifier \verbatim@font
27 \def\ColorVerb{\color{MidnightBlue}}
28 \makeatletter
29 \let\verbatim@fontORI\verbatim@font
30 \def\verbatim@font{\ColorVerb\verbatim@fontORI}
31 \makeatother
32
33 \newcommand*{\pkg}[1]{\texttt{\ColorVerb #1}}
34 \newcommand*{\opt}[1]{\texttt{\ColorVerb #1}}
35 \newcommand*{\file}[1]{\texttt{\ColorVerb #1}}
36 \newcommand*{\cmd}[1]{\texttt{\ColorVerb \textbackslash #1}}
37 \newcommand*{\family}[1]{\textit{#1}}
38 \newcommand*{\MF}{\textsf{Metafont}}
39
40 \title{OpenType version of yfonts for Old German}
41 \author{\href{mailto:[email protected]}{Daniel \textsc{Flipo}}}
42 \newcommand*{\version}{0.61}
43
44 \begin{document}
45 \maketitle
46 \thispagestyle{empty}
47
48 \begin{abstract}
49 This bundle provides OpenType versions of the Old German fonts \family{yfrak},
50 \family{ygoth} and \family{yswab} designed by Yannis Haralambous in \MF{}
51 (1990).
52
53 A style file \file{yfonts-otf.sty} is included to load these fonts easily;
54 it is meant as a replacement for LuaLaTeX and XeLaTeX of
55 \file{yfonts.sty}.
56
57 A Type\,1 version of these fonts has been provided by Thorsten Bronger (2002).
58
59 The \family{yinit} font (initials) is already available as in OpenType format,
60 thanks to Élie Roux.
61
62 Please beware of the \emph{experimental} status of the current
63 version~(\version).
64
65 All three fonts are covered by OFL licence, style file and documentation
66 are under LPPL-1.3 licence.
67 \end{abstract}
68
69 \section{Usage}
70
71 \pkg{yfonts-otf.sty} loads \pkg{fontspec} and mimics what the
72 \pkg{yfonts} package does for the Type\,1 version: it defines three font
73 families |\frakfamily|, |\gothfamily| and |\swabfamily| and the corresponding
74 commands with arguments |\textgoth{}|, |\textfrak{}|, and |\textswab{}|.
75
76 All three families are loaded with all ligatures activated, an |s|
77 automatically prints a long~\textfrak{ſ} (initial and middle form) or a
78 round~{\frakfamily{s\hspace{1sp}}} (final form)%
79 \footnote{See section~\ref{sec:long-s} for details.}.
80 Coding |"a|, |"e|, |"o|, |"u|, |"s| is only supported through Babel’s
81 German shorthands to produce \textfrak{ä, ë, ö, ü, ß}.
82 Nowadays, most keyboards give access to the Unicode characters |ä|,
83 |ë|, |ö|, |ü| and |ß|, so typing them directly is a better alternative.
84
85 In the \family{yfrak} family, the command |\etc| prints {\etc}
86 a variant of the \textfrak{uſw} abbreviation while |\Jvar| prints {\Jvar}
87 a variant of \textfrak{J} (suggestion of Daniel Sanders, mentioned by Yannis).
88
89 The OpenType feature |Alternate=0| turns \textfrak{ä, ë, ö, ü} into
90 {\frakfamily\addfontfeature{Alternate=0} ä, ë, ö, ü}.
91 It works for the \family{yfrak} and \family{yswab} families but not for
92 \family{ygoth} (variant not available in the original version).
93
94 |\textfrak{Ä Ö Ü}| prints \textfrak{Ä Ö Ü} unless OpenType
95 feature |Alternate=1| is required, then the output is
96 {\frakfamily\addfontfeature{Alternate=1} Ä Ö Ü}.
97 It works for the \family{yfrak}, \family{yswab} and \family{ygoth}
98 families.
99
100 The \family{yswab} family offers |CharacterVariant=1| (|+cv01|) and
101 |CharacterVariant=2| (|+cv02|) which respectively change the exclam and
102 question marks:
103 {\swabfamily !} into {\swabfamily\addfontfeature{CharacterVariant=1}!}
104 and {\swabfamily ?} into {\swabfamily\addfontfeature{CharacterVariant=2}?}.
105
106 Used with the \family{ygoth} family, the |StylisticSet=1| (|+ss01|)
107 feature provides variants for the long~s and its ligatures:
108 {\gothfamily ſ, ſi, ſſ, ſſi, ſt} are turned into
109 {\gothfamily\addfontfeature{CharacterVariant=1} ſ, ſi, ſſ, ſſi, ſt}.
110
111 These features can be added locally anywhere in the document body, f.i.:\\
112 |\frakfamily\addfontfeature{Alternate=0}|\\
113 or using \pkg{yfonts-otf.sty}’s options \opt{oldumlaut}(alias |Alternate=0|)
114 and \opt{gothvarlongs}, f.i.:\\
115 |\usepackage[oldumlaut,gothvarlongs]{yfonts-otf}|\\
116 \opt{oldumlaut} applies globally to both \family{yfrak} and \family{yswab}
117 families, \opt{gothvarlongs} applies only to \family{ygoth} family.
118 Option \opt{modernumlaut} passed to \pkg{yfonts-otf.sty} is equivalent to
119 |Alternate=1|.
120
121 It is also possible to use these fonts without loading \pkg{yfonts-otf.sty},
122 then I recommend to call them by \emph{file name}, as XeTeX cannot find fonts in
123 the texmf tree by \emph{font name}%
124 \footnote{Unless they have been declared as \emph{System} fonts…}, f.i.:\\
125 |\setmainfont{yfrak.otf}[|\texttt{\ColorVerb<options>}|]|
126 or |\fontspec{yswab.otf}[|\texttt{\ColorVerb<options>}|]|, this
127 will work with both LuaTeX and XeTeX.
128
129 \section{Coding the long/round s}
130 \label{sec:long-s}
131
132 The traditional German rules for long ({\frakfamily ſ\kern1pt}) and
133 round ({\frakfamily\shorts}) are somewhat complex,
134 a summary can be found in the Unifraktur Maguntia Manual
135 (\file{Dokumentation\_en\_fraktur.pdf}, \cite{UF}).
136
137 \pkg{yfonts-otf} borrows the automatic choice from the Unifraktur Maguntia
138 fonts. It uses OpenType features (|ss11|), according to the authors it fails
139 in less than 1~\% of the occurences.
140 When the algorithm fails, it is possible to force a round s
141 (coding |s=| or |\shorts|) or a long~ſ (coding {\ColorVerb ſ}\,%
142 \footnote{On Unix systems the \opt{Compose} key can be used:
143 \opt{Compose f s}.}
144 or |\longs|).
145
146 Loading the \pkg{yfonts-otf} package activates the |ss11|
147 feature unless option \opt{gothvarlongs} is added, then the |ss01| is
148 activated instead (together with |cv01|) for the \family{ygoth} family so that
149 the long~ſ and its ligatures are printed as
150 {\gothfamily\addfontfeature{CharacterVariant=1} ſ, ſi, ſſ, ſſi, ſt}
151 instead of {\gothfamily ſ, ſi, ſſ, ſſi, ſt} (default).
152
153 Aliases are provided for these features:
154 |Style=longs| for |StylisticSet=11| (|+ss11|) and
155 |Style=gothvarlongs| for |StylisticSet=1| (|+ss01|).
156
157 Experts might want to type {\ColorVerb ſ} (U+17F) or {\ColorVerb s}
158 (U+073) to keep the full control of the {\ColorVerb s} form; this requires
159 either to deactivate the |ss11| feature after loading the \pkg{yfonts-otf}
160 package, or to use a direct |\setmainfont{}[]| or |\fontspec{}[]| call.
161 Feature |CharacterVariant=1| (|+cv01|) may be used for the \family{ygoth}
162 family to get the long~ſ variant
163 {\gothfamily\addfontfeature{CharacterVariant=1} ſ, ſi, ſſ, ſſi, ſt}
164 instead of {\gothfamily ſ, ſi, ſſ, ſſi, ſt}.
165
166 %\newpage
167 \section{List of optional ligatures}
168
169 Ligatures are split into three groups which may be deactivated globally or
170 inside a group with the command
171 |\addfontfeature{RawFeature=-|\textit{\ColorVerb ligname}|}|%
172 \footnote{\pkg{yonts-otf} specifically defines \cmd{ZWNJ} (\cmd{char"200C}) to
173 break unwanted ligatures: {\frakfamily ent\ZWNJ{}ziffern} (no {\frakfamily tz}
174 lig) can be coded \texttt{\ColorVerb ent\cmd{ZWNJ} ziffern} or
175 \texttt{\ColorVerb ent\cmd{ZWNJ}\{\}ziffern}.}
176
177 \vspace{\baselineskip}
178 |\frakfamily| : \let\ffam\frakfamily
179 \begin{tabular}{>\rmfamily l|l| l}
180 \hline
181 Name & Default ($+$) & Optional ($-$) \\
182 \hline
183 rlig & \ffam ch, ck, st, tz
184 &\ffam\addfontfeature{RawFeature=-rlig} ch, ck, st, tz \\
185 liga &\ffam ff, fi, fl, ffi, ffl, sf, ſſ
186 &\ffam\addfontfeature{RawFeature=-liga}
187 ff, fi, fl, ffi, ffl, sf, ſſ \\
188 \hline
189 \end{tabular}
190
191 \vspace{.5\baselineskip}
192 |\swabfamily| : \let\ffam\swabfamily
193 \begin{tabular}{>\rmfamily l|l| l}
194 \hline
195 Name & Default ($+$) & Optional ($-$) \\
196 \hline
197 rlig &\ffam ch, ck, st, tz
198 &\ffam\addfontfeature{RawFeature=-rlig} ch, ck, st, tz \\
199 liga &\ffam ff, fi, fl, ffi, ffl, sf, ſſ
200 &\ffam\addfontfeature{RawFeature=-liga}
201 ff, fi, fl, ffi, ffl, sf, ſſ \\
202 \hline
203 \end{tabular}
204
205 \vspace{.5\baselineskip}
206 |\gothfamily| : \let\ffam\gothfamily
207 \begin{tabular}{>\rmfamily l|l| l}
208 \hline
209 Name & Default ($+$) & Optional ($-$) \\
210 \hline
211 rlig &\ffam ch, ck, st, {\addfontfeature{StylisticSet=1} st}, tz
212 &\ffam\addfontfeature{RawFeature=-rlig}
213 ch, ck, st, {\addfontfeature{StylisticSet=1} st}, tz\\
214 liga &\ffam ct, ff, fi, fl, ffi, ffl, ij, ll,
215 &\ffam\addfontfeature{RawFeature=-liga}
216 ct, ff, fi, fl, ffi, ffl, ij, ll,\\
217 &\ffam ſſ, ſi, ſſi,
218 \addfontfeature{RawFeature=+cv01}ſſ, ſi, ſſi,
219 &\ffam\addfontfeature{RawFeature=-liga} ſſ, ſi, ſſi,
220 \addfontfeature{RawFeature=-liga;+cv01} ſſ, ſi, ſſi,
221 \\
222 hlig &\ffam ba, be, bo, da, de, do, ha, he, ho,
223 &\ffam\addfontfeature{RawFeature=-hlig}
224 ba, be, bo, da, de, do, ha, he, ho, \\
225 &\ffam pa, pe, po, pp, qq, va, ve, vu
226 &\ffam\addfontfeature{RawFeature=-hlig}
227 pa, pe, po, pp, qq, va, ve, vu\\
228 \hline
229 \end{tabular}
230
231 \section{Samples}
232
233 A practical usage of these fonts can be found in file \file{Erlkonig.ltx} to
234 be compiled with \pkg{lualatex}.
235 It shows the beginning of Goethe’s Erlkönig poem typeset with each of them.
236
237 \section{Compatibility with other packages}
238
239 \begin{description}
240 \item[\pkg{microtype}] is compatible with \pkg{yfonts-otf} (protusion,
241 expansion and letter spacing) but as we have no specific \file{mt-*.cfg}
242 config file yet for the yfonts\footnote{Contributions welcome!},
243 adding\\
244 |\DeclareMicrotypeAlias{yfrak.otf}{TU-basic}|\\
245 |\DeclareMicrotypeAlias{yswab.otf}{TU-basic}|\\
246 |\DeclareMicrotypeAlias{ygoth.otf}{TU-basic}|\\
247 after loading \pkg{microtype} is recommended to avoid (lots of) warnings
248 about missing characters.
249
250 \item[\pkg{soul}] is old (2003) and not recommended for OpenType fonts.
251 Its command |\so{}| brakes ligatures (f.i. |\so{Wasser}|), for
252 letter spacing \pkg{microtype}’s command |\textls{}| should be preferred.
253 With LuaTeX, \pkg{lua-ul} is a much better choice for striking or
254 underlining.
255
256 \end{description}
257
258 \section{Acknowledgements}
259
260 Great thanks to Keno Wehr for carefully testing the initial version and
261 making valuable suggestions for improvements.
262
263 \enlargethispage*{\baselineskip}
264 \begin{thebibliography}{99}
265 \bibitem{YH} Typesetting Old German: Fraktur, Schwabacher, Gotisch and
266 Initials, \\ \textit{Yannis Haralambous},
267 \href{https://www.tug.org/TUGboat/tb12-1/tb31hara.pdf}%
268 {TUGboat 12\#1 (1991), pages 129–138}.
269
270 \bibitem{WS} The \pkg{yfonts} package for use with \LaTeXe,
271 \textit{Walter Schmidt}, (2019).
272
273 \bibitem{UF} The \href{https://sourceforge.net/projects/unifraktur/}%
274 {Unifraktur Maguntia} TrueType fonts (2017).
275 \end{thebibliography}
276
277 %\vspace{\baselineskip}
278 %\centerline{\Huge\decotwo}
279
280 \end{document}
281
282 %%% Local Variables:
283 %%% mode: latex
284 %%% TeX-engine: luatex
285 %%% TeX-master: t
286 %%% coding: utf-8
287 %%% End: