diff options
Diffstat (limited to 'fonts/yfonts-otf')
-rw-r--r-- | fonts/yfonts-otf/README.md | 15 | ||||
-rw-r--r-- | fonts/yfonts-otf/doc/Erlkonig.pdf | bin | 79385 -> 79448 bytes | |||
-rw-r--r-- | fonts/yfonts-otf/doc/yfonts-otf.ltx | 95 | ||||
-rw-r--r-- | fonts/yfonts-otf/doc/yfonts-otf.pdf | bin | 68546 -> 93245 bytes | |||
-rw-r--r-- | fonts/yfonts-otf/fonts/yfrak.otf | bin | 42296 -> 44412 bytes | |||
-rw-r--r-- | fonts/yfonts-otf/fonts/ygoth.otf | bin | 48156 -> 50064 bytes | |||
-rw-r--r-- | fonts/yfonts-otf/fonts/yswab.otf | bin | 39256 -> 41400 bytes | |||
-rw-r--r-- | fonts/yfonts-otf/tex/yfonts-otf.sty | 43 |
8 files changed, 103 insertions, 50 deletions
diff --git a/fonts/yfonts-otf/README.md b/fonts/yfonts-otf/README.md index 5c6a3d1a6b..0a6ccc30ee 100644 --- a/fonts/yfonts-otf/README.md +++ b/fonts/yfonts-otf/README.md @@ -44,13 +44,26 @@ Either version 1.3 or, at your option, any later version. * v0.40: Substantial changes following suggestions by Keno Wehr: - oldgerm-otf.sty has been renamed to yfonts-otf.sty, oldgerm-otf.sty - is kept for compatibility; it inputs yfonts-otf.sty. + is kept for compatibility; it inputs yfonts-otf.sty. - Ligatures features reorganised: dlig and alig features deleted, only rlig, liga (and hlig for ygoth only) are used. - Ligature tz was missing in yswab.otf, added now. - Hungarian Umlaut was missing in yfrak.otf and yswab.otf, added now. - The s variant (long/short) is chosen automatically (code borrowed from Unifraktur Maguntia). +* v0.42: + - Added characters ÀÁÄÈÉËÌÍÏÒÓÖÙÚÜ (uppercase of all available lowercase + characters); Ä->Ae, Ö->Oe, Ü->Ue. + - ygoth.otf: fixed right bearing of the longs variants. + Missing Ligatures longs_i added for the long s and its variant. + - yfonts-otf.sty: \char"200C deleted in \longs definition so that + \longs\longs prints the ligature ſ_ſ. + - Documentation fixes. +* v0.43: + - yfrak.otf, yswab.otf: missing ligatures f_i, f_l, f_f_i, f_f_l added. + - yswab.otf: features "cv01" and "cv02" added (variants for "!" and "?"). + - ygoth.otf: feature "Alternate=1" renamed "StylisticSet=1" as it didn't + work with XeLaTeX. Fixed inconsistent bearings. --- Copyright 2022- Daniel Flipo diff --git a/fonts/yfonts-otf/doc/Erlkonig.pdf b/fonts/yfonts-otf/doc/Erlkonig.pdf Binary files differindex 4668104f15..e0235a6df7 100644 --- a/fonts/yfonts-otf/doc/Erlkonig.pdf +++ b/fonts/yfonts-otf/doc/Erlkonig.pdf diff --git a/fonts/yfonts-otf/doc/yfonts-otf.ltx b/fonts/yfonts-otf/doc/yfonts-otf.ltx index 4e51eed442..6e6eb882c8 100644 --- a/fonts/yfonts-otf/doc/yfonts-otf.ltx +++ b/fonts/yfonts-otf/doc/yfonts-otf.ltx @@ -8,6 +8,8 @@ \usepackage{shortvrb} \usepackage{yfonts-otf} \usepackage{fourier-otf} +\setmonofont{Inconsolatazi4}[Scale=MatchLowercase, + HyphenChar=None,StylisticSet={2,3}] \usepackage[german,british]{babel} \babeltags{de=german} \usepackage[english]{varioref} @@ -38,7 +40,7 @@ \title{OpenType version of yfonts for Old German} \author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}} -\newcommand*{\version}{0.40} +\newcommand*{\version}{0.43} \begin{document} \maketitle @@ -73,7 +75,7 @@ families |\frakfamily|, |\gothfamily| and |\swabfamily| and the corresponding commands with arguments |\textgoth{}|, |\textfrak{}|, and |\textswab{}|. All three families are loaded with all ligatures activated, an |s| -automatically prints a long~\textfrak{s} (initial and middle form) or a +automatically prints a long~\textfrak{\longs} (initial and middle form) or a round~{\frakfamily{s\hspace{1sp}}} (final form)% \footnote{See section~\ref{sec:long-s} for details.}. Coding |"a|, |"e|, |"o|, |"u|, |"s| is only supported through Babel’s @@ -82,7 +84,7 @@ Nowadays, most keyboards give access to the Unicode characters |ä|, |ë|, |ö|, |ü| and |ß|, so typing them directly is a better alternative. In the \family{yfrak} family, the command |\etc| prints {\etc} -a variant of the \textfrak{usw} abbreviation while |\Jvar| prints {\Jvar} +a variant of the \textfrak{u\longs{}w} abbreviation while |\Jvar| prints {\Jvar} a variant of \textfrak{J} (suggestion of Daniel Sanders, mentioned by Yannis). The OpenType feature |Alternate=0| turns \textfrak{ä, ë, ö, ü} into @@ -90,10 +92,16 @@ The OpenType feature |Alternate=0| turns \textfrak{ä, ë, ö, ü} into It works for the \family{yfrak} and \family{yswab} families but not for \family{ygoth} (variant not available in the original version). -Used with the \family{ygoth} family, the |Alternate=1| feature provides -variants for the long~s and the derived ligatures: -{\gothfamily \longs, s\longs, ssi, st} are turned into -{\gothfamily\addfontfeature{Alternate=1} \longs, s\longs, ssi, st}. +The \family{yswab} family offers |CharacterVariant=1| (|+cv01|) and +|CharacterVariant=2| (|+cv02|) which respectively change the exclam and +question marks: +{\swabfamily !} into {\swabfamily\addfontfeature{CharacterVariant=1}!} +and {\swabfamily ?} into {\swabfamily\addfontfeature{CharacterVariant=2}?}. + +Used with the \family{ygoth} family, the |StylisticSet=1| (|+ss01|) +feature provides variants for the long~s and the derived ligatures: +{\gothfamily \longs, \longs\longs, ssi, st} are turned into +{\gothfamily\addfontfeature{StylisticSet=1} \longs, \longs\longs, ssi, st}. \pagebreak[4] These features can be added locally anywhere in the document body, f.i.:\\ @@ -107,9 +115,9 @@ It is also possible to use these fonts without loading \pkg{yfonts-otf.sty}, then I recommend to call them by \emph{file name}, as XeTeX cannot find fonts in the texmf tree by \emph{font name}% \footnote{Unless they have been declared as \emph{System} fonts…}, f.i.:\\ -|\setmainfont{yfrak.otf}[|\texttt{\ColorVerb<\textit{options}>}|]| -or |\fontspec{yswab.otf}[|\texttt{\ColorVerb<\textit{options}>}|]| this -\linebreak[4] will work with both LuaTeX and XeTeX. +|\setmainfont{yfrak.otf}[|\texttt{\ColorVerb<options>}|]| +or |\fontspec{yswab.otf}[|\texttt{\ColorVerb<options>}|]|, this +will work with both LuaTeX and XeTeX. \section{Coding the long/round s} \label{sec:long-s} @@ -122,8 +130,11 @@ a summary can be found in the Unifraktur Maguntia Manual \pkg{yfonts-otf} borrows the automatic choice from the Unifraktur Maguntia fonts. It uses OpenType features (|ss11|), according to the authors it fails in less than 1~\% of the occurences. -When the algorithm fails, it can be corrected by typing |\shorts| or -|\longs| instead of {\ColorVerb s}. +When the algorithm fails, it is possible to force a round s +(coding |s=| or |\shorts|) or a long ſ (coding {\ColorVerb ſ}\,% +\footnote{On Unix systems the \opt{Compose} key can be used: + \opt{Compose f s}.} +or |\longs|). An alias is provided for this feature: |Style=longs| is the same as |StylisticSet=11| or |RawFeature=+ss11|. @@ -138,8 +149,13 @@ package, or to use a direct %\newpage \section{List of optional ligatures} -Some ligatures may be deactivated if necessary with the command\\ -|\addfontfeature{RawFeature=-|\textit{\ColorVerb ligname}|}| +Ligatures are split into three groups which may be deactivated globally or +inside a group with the command +|\addfontfeature{RawFeature=-|\textit{\ColorVerb ligname}|}|% +\footnote{\pkg{yonts-otf} specifically defines \cmd{ZWNJ} (\cmd{char"200C}) to + break unwanted ligatures: {\frakfamily ent\ZWNJ{}ziffern} (no {\frakfamily tz} + lig) can be coded \texttt{\ColorVerb ent\cmd{ZWNJ} ziffern} or + \texttt{\ColorVerb ent\cmd{ZWNJ}\{\}ziffern}.} \vspace{\baselineskip} |\frakfamily| : \let\ffam\frakfamily @@ -149,8 +165,9 @@ Some ligatures may be deactivated if necessary with the command\\ \hline rlig & \ffam ch, ck, st, tz &\ffam\addfontfeature{RawFeature=-rlig} ch, ck, st, tz \\ - liga &\ffam ff, sf, \longs\longs - &\ffam\addfontfeature{RawFeature=-liga} ff, sf, \longs\longs \\ + liga &\ffam ff, fi, fl, ffi, ffl, sf, \longs\longs + &\ffam\addfontfeature{RawFeature=-liga} + ff, fi, fl, ffi, ffl, sf, \longs\longs \\ \hline \end{tabular} @@ -162,8 +179,9 @@ Some ligatures may be deactivated if necessary with the command\\ \hline rlig &\ffam ch, ck, st, tz &\ffam\addfontfeature{RawFeature=-rlig} ch, ck, st, tz \\ - liga &\ffam ff, sf, \longs\longs - &\ffam\addfontfeature{RawFeature=-liga} ff, sf, \longs\longs \\ + liga &\ffam ff, fi, fl, ffi, ffl, sf, \longs\longs + &\ffam\addfontfeature{RawFeature=-liga} + ff, fi, fl, ffi, ffl, sf, \longs\longs \\ \hline \end{tabular} @@ -173,15 +191,18 @@ Some ligatures may be deactivated if necessary with the command\\ \hline Name & Default ($+$) & Optional ($-$) \\ \hline - rlig &\ffam ch, ck, st, {\addfontfeature{Alternate=1} st}, tz + rlig &\ffam ch, ck, st, {\addfontfeature{StylisticSet=1} st}, tz &\ffam\addfontfeature{RawFeature=-rlig} - ch, ck, st, {\addfontfeature{Alternate=1} st}, tz\\ - liga &\ffam ct, ff, ffi, ffl, fi, fl, ij, ll, + ch, ck, st, {\addfontfeature{StylisticSet=1} st}, tz\\ + liga &\ffam ct, ff, fi, fl, ffi, ffl, ij, ll, &\ffam\addfontfeature{RawFeature=-liga} - ct, ff, ffi, ffl, fi, fl, ij, ll,\\ - &\ffam \longs\longs, ssi, \addfontfeature{Alternate=1} \longs\longs, ssi, + ct, ff, fi, fl, ffi, ffl, ij, ll,\\ + &\ffam \longs\longs, si, ssi, + \addfontfeature{StylisticSet=1}\longs\longs, si, ssi, &\ffam\addfontfeature{RawFeature=-liga} - \longs\longs, ssi, \addfontfeature{Alternate=1} \longs\longs, ssi,\\ + \longs\longs, si, ssi, + \addfontfeature{StylisticSet=1} \longs\longs, si, ssi, + \\ hlig &\ffam ba, be, bo, da, de, do, ha, he, ho, &\ffam\addfontfeature{RawFeature=-hlig} ba, be, bo, da, de, do, ha, he, ho, \\ @@ -197,6 +218,27 @@ A practical usage of these fonts can be found in file \file{Erlkonig.ltx} to be compiled with \pkg{lualatex}. It shows the beginning of Goethe’s Erlkönig poem typeset with each of them. +\section{Compatibility with other packages} + +\begin{description} +\item[\pkg{microtype}] is compatible with \pkg{yfonts-otf} (protusion, + expansion and letter spacing) but as we have no specific \file{mt-*.cfg} + config file yet for the yfonts\footnote{Contributions welcome!}, + adding\\ + |\DeclareMicrotypeAlias{yfrak.otf}{TU-basic}|\\ + |\DeclareMicrotypeAlias{yswab.otf}{TU-basic}|\\ + |\DeclareMicrotypeAlias{ygoth.otf}{TU-basic}|\\ + after loading \pkg{microtype} is recommended to avoid (lots of) warnings + about missing characters. + +\item[\pkg{soul}] is old (2003) and not recommended for OpenType fonts. + Its command |\so{}| brakes ligatures (f.i. |\so{Wasser}|), for + letter spacing \pkg{microtype}’s command |\textls{}| should be preferred. + With LuaTeX, \pkg{lua-ul} is a much better choice for striking or + underlining. + +\end{description} + \section{Acknowledgements} Great thanks to Keno Wehr for carefully testing the initial version and @@ -215,8 +257,9 @@ making valuable suggestions for improvements. {Unifraktur Maguntia} TrueType fonts (2017). \end{thebibliography} -\vspace{3\baselineskip} -\centerline{\Huge\decotwo} +%\vspace{\baselineskip} +%\centerline{\Huge\decotwo} + \end{document} %%% Local Variables: diff --git a/fonts/yfonts-otf/doc/yfonts-otf.pdf b/fonts/yfonts-otf/doc/yfonts-otf.pdf Binary files differindex 4b1f6c78e4..2df6bdf91a 100644 --- a/fonts/yfonts-otf/doc/yfonts-otf.pdf +++ b/fonts/yfonts-otf/doc/yfonts-otf.pdf diff --git a/fonts/yfonts-otf/fonts/yfrak.otf b/fonts/yfonts-otf/fonts/yfrak.otf Binary files differindex 696d55a520..c17f72d7d7 100644 --- a/fonts/yfonts-otf/fonts/yfrak.otf +++ b/fonts/yfonts-otf/fonts/yfrak.otf diff --git a/fonts/yfonts-otf/fonts/ygoth.otf b/fonts/yfonts-otf/fonts/ygoth.otf Binary files differindex f032b71ac1..df6b850260 100644 --- a/fonts/yfonts-otf/fonts/ygoth.otf +++ b/fonts/yfonts-otf/fonts/ygoth.otf diff --git a/fonts/yfonts-otf/fonts/yswab.otf b/fonts/yfonts-otf/fonts/yswab.otf Binary files differindex d56fbf1e1d..78f13fdc8e 100644 --- a/fonts/yfonts-otf/fonts/yswab.otf +++ b/fonts/yfonts-otf/fonts/yswab.otf diff --git a/fonts/yfonts-otf/tex/yfonts-otf.sty b/fonts/yfonts-otf/tex/yfonts-otf.sty index b283dd5d9c..f9bbf9ce78 100644 --- a/fonts/yfonts-otf/tex/yfonts-otf.sty +++ b/fonts/yfonts-otf/tex/yfonts-otf.sty @@ -1,51 +1,48 @@ \NeedsTeXFormat{LaTeX2e}[2019-01-01] -\def\fileversion{0.40} -\def\filedate{2022-08-08} +\def\fileversion{0.43} +\def\filedate{2022-11-16} \ProvidesPackage{yfonts-otf}[\filedate\space\fileversion] \RequirePackage{iftex}[2019-10-24] \newif\ifYHf@oldumlaut -\newif\ifYHf@gothlongs +\newif\ifYHf@gothvarlongs \DeclareOption{oldumlaut}{\YHf@oldumlauttrue} \DeclareOption{varumlaut}{\YHf@oldumlauttrue} -\DeclareOption{gothvarlongs}{\YHf@gothlongstrue} +\DeclareOption{gothvarlongs}{\YHf@gothvarlongstrue} \ProcessOptions \iftutex \RequirePackage{fontspec} \newopentypefeature{Style}{longs}{+ss11} - \ifYHf@gothlongs + \ifYHf@gothvarlongs \newfontfamily\gothfamily{ygoth.otf}% [Extension = .otf, - Alternate=1, - Ligatures=TeX, RawFeature=+ss11;+rlig;+liga;+hlig] + Ligatures=TeX, + RawFeature=+ss01;+ss11;+rlig;+liga;+hlig] \else \newfontfamily\gothfamily{ygoth.otf}% - [Extension = .otf, - Ligatures=TeX, RawFeature=+ss11;+rlig;+liga;+hlig] + [Ligatures=TeX, RawFeature=+ss11;+rlig;+liga;+hlig] \fi \ifYHf@oldumlaut \newfontfamily\swabfamily{yswab.otf}% - [Extension = .otf, - Alternate=0, - Ligatures=TeX, RawFeature=+ss11;+rlig;+liga] - \newfontfamily\frakfamily{yfrak}% - [Extension = .otf, - Alternate=0, - Ligatures=TeX, RawFeature=+ss11;+rlig;+liga] + [Ligatures=TeX, Alternate=0, + RawFeature=+ss11;+rlig;+liga] + \newfontfamily\frakfamily{yfrak.otf}% + [Ligatures=TeX, Alternate=0, + RawFeature=+ss11;+rlig;+liga] \else \newfontfamily\swabfamily{yswab.otf}% - [Extension = .otf, - Ligatures=TeX, RawFeature=+ss11;+rlig;+liga] + [Ligatures=TeX, RawFeature=+ss11;+rlig;+liga] \newfontfamily\frakfamily{yfrak.otf}% - [Extension = .otf, - Ligatures=TeX, RawFeature=+ss11;+rlig;+liga] + [Ligatures=TeX, RawFeature=+ss11;+rlig;+liga] \fi \DeclareTextFontCommand{\textgoth}{\gothfamily} \DeclareTextFontCommand{\textswab}{\swabfamily} \DeclareTextFontCommand{\textfrak}{\frakfamily} - \DeclareTextCommand{\Jvar}{TU}{\textfrak{\char"E960}} - \DeclareTextCommand{\etc}{TU}{\textfrak{\char"E961}} - \DeclareTextCommand{\longs}{TU}{\char"200C\char"17F} + \DeclareTextCommand{\Jvar}{TU}{\textfrak{\char"E940}} + \DeclareTextCommand{\etc}{TU}{\textfrak{\char"E941}} + \DeclareTextCommand{\longs}{TU}{\char"17F} \DeclareTextCommand{\shorts}{TU}{s\char"200C} + \DeclareTextCommand{\ZWNJ}{TU}{\char"200C} + \DeclareTextCommand{\ZWS}{TU}{\char"200B} \else \PackageWarning{yfonts-otf}% {This package requires LuaTeX or XeTeX engines. |