diff options
Diffstat (limited to 'fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx')
-rw-r--r-- | fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx | 83 |
1 files changed, 39 insertions, 44 deletions
diff --git a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx index e945af75a3..ced8669435 100644 --- a/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx +++ b/fonts/kpfonts-otf/doc/Kpfonts-OTF-Doc-English.ltx @@ -6,8 +6,7 @@ \usepackage[svgnames]{xcolor} \usepackage[hypcap=false]{caption} \usepackage{shortvrb} -% Option "longs" for local exemples of the long s -\usepackage[longs]{kpfonts-otf} +\usepackage{kpfonts-otf} % Math demos \setmathfont{KpMath-Regular.otf}[version=full, @@ -42,7 +41,7 @@ \title{Kp-fonts: OpenType version} \author{\href{mailto:daniel.flipo@free.fr}{Daniel \textsc{Flipo}}} -\newcommand*{\version}{0.45} +\newcommand*{\version}{0.46} \begin{document} \selectlanguage{british} @@ -213,32 +212,23 @@ and a bunch of Kp-fonts specifics symbols. \item \textsc{\textbf{\test}} \end{itemize} -\item[veryoldstyle:] same as option \opt{oldstyle} but - the round `s’ is replaced by the long one - {\addfontfeatures{RawFeature=+hist;+hlig}`s\hspace{1sp}’}, - unless it ends a word (then it remains `s’)% - \footnote{The OpenType \texttt{calt} feature is used to catch `s’ ending - a word.} +\item[veryoldstyle:]\hlabel{veryoldstyle} same as option \opt{oldstyle} but + the round `s’ is replaced by the long one `ſ’ + unless it ends a word or is followed by \textit{b}, \textit{f} or \textit{h}% + \footnote{Rules found on + \href{https://fr.wikipedia.org/wiki/S_long}{wikipedia}.} and ancient ligatures {\addfontfeatures{RawFeature=+hist;+hlig} si, sl, st} are activated. - Coding \texttt{s=} prints a round `s’ anytime; in most cases this coding is - not necessary with LuaTeX, - f.i. |\textit{some of Highlands’ mysterious castles…}| - will print + Coding |\textit{some of Highlands’ mysterious castles…}| will print {\addfontfeatures{RawFeature=+hist;+hlig;+calt}% - \textit{some of Highlands’ mysterious castles…}} which is correct; - with XeTeX an \texttt{=} sign must be added at the end of - \texttt{mysterious=} to get a round `s’ there : - final `s’ followed by a punctuation sign is never turned into - {\addfontfeatures{RawFeature=+hist;+hlig}`s\hspace{1sp}’}, when followed by - a space it is a trickier, see option \opt{longs} below. - -\item[longs] \hlabel{longs} - inhibits the transformation of an `s’ followed by a space into - {\addfontfeatures{RawFeature=+hist;+hlig}`s\hspace{1sp}’}. This option, - available only with LuaTeX, is silently switched on by \opt{veryoldstyle}; - it is used explicitly in the present document to deal with the examples of - long `s’ shown in the preceding item. + \textit{some of Highlands’ mysterious castles…}} which is correct. + + The automatic substitution relies on the OpenType feature + \texttt{StylisticSet=12}. A round `s’ (resp. long `ſ’) can be forced by + coding \texttt{s\char"200B=} or |\shorts{}| (resp. \texttt{ſ}% + \footnote{On Unix systems the \texttt{Compose} key can be used: + \texttt{Compose f s}.} + or |\longs{}|). \item[largesmallcaps:] prints larger \textlsc{Small Caps} than the default ones (\textsc{Petite Caps}). @@ -363,7 +353,8 @@ Here are the options available for Text Kp-fonts: \item[Ligatures=TeX] (default) |'|\quad|!`|\quad|?`|\quad|--|\quad |---|\quad print respectively\quad ’ \quad !` \quad ?`\quad -- \quad ---. -\item[Ligatures=Common] (default) automatic ligatures ff ffi ffl fi fl. +\item[Ligatures=Common] (default) automatic ligatures ff ffi ffl fi fl + (plus s\char"200B=). \item[StylisticSet=1] provides an alternative for glyphs {\addfontfeature{StylisticSet=1} ffi ffl fi fl} (ff is unchanged). @@ -377,19 +368,23 @@ Here are the options available for Text Kp-fonts: Q: {\addfontfeature{Style=Swash}Queen, also in small caps (both sizes): \textpsc{Queen} and \textlsc{Queen}}. -\item[Style=Historic] replaces any instance of `s’ by the long variant - {\addfontfeature{Style=Historic}s}. It is still possible to get a round - `s’ coding it as `|s=|’ specially at end of words; see options - \opt{veryoldstyle} and \opt{longs} p.~\pageref{longs} for more details. +\item[Style=Historic] replaces any instance of `s’ by the long variant~`ſ’. + It is still possible to get a round `s’ coding it as + `\texttt{s\char"200B=}’; this option should no longer be used, it is + superseded by \opt{StylisticSet=12} below. + +\item[StylisticSet=12] has been described in option \opt{veryoldstyle} + p.~\pageref{veryoldstyle}: it operates a contextual substitution of + round~`s’ by long~`ſ’. An alias \opt{Style=autolongs} is available if + \pkg{kpfonts-otf.sty} has been loaded. -\item[Ligatures=Historic] switches specific ligatures for the long - {\addfontfeature{Style=Historic}s}: +\item[Ligatures=Historic] switches specific ligatures for the long~ſ: {\addfontfeature{Style=Historic,Ligatures=Historic} si, sl, st}. \item[StylisticSet=2 :] |\SS| prints {\addfontfeatures{StylisticSet=2}\SS} instead of {\char"1E9E} (capital \textit{Eszett}), ditto for small/petite caps. -\item[StylisticSet=3 :] replaces the Euro character (€) by the official symbol +\item[StylisticSet=3] replaces the Euro character (€) by the official symbol {\addfontfeatures{StylisticSet=3}(€)} (available in regular, italics, bold and bolditalic). @@ -689,22 +684,22 @@ The full list of Unicode symbols available with Kp-fonts is shown in file \subsection{Wide accents} \begin{itemize} +\item \cmd{wideoverbar} and \cmd{mathunderbar}% + \footnote{\cmd{overline} and \cmd{underline} are not font related, + they are based on \cmd{rule}.} + \[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad + \wideoverbar{A\cup B}\quad \wideoverbar{A\cup (B\cap C)\cup D}\quad + \mathunderbar{m+n+p}\] + \item \cmd{widehat} and \cmd{widetilde} \[\widehat{x}\; \widehat{xx} \;\widehat{xxx} \;\widehat{xxxx}\; \widehat{xxxxx} \;\widehat{xxxxxx} \;\widetilde{x}\; \widetilde{xx}\; \widetilde{xxx} \;\widetilde{xxxx} \;\widetilde{xxxxx}\; \widetilde{xxxxxx}\] -\item \cmd{overline} and \cmd{underline} - \[\overline{x}\quad \overline{xy}\quad \overline{xyz}\quad - \overline{A\cup B}\quad \overline{A\cup (B\cap C)\cup D}\quad - \underline{m+n+p}\] - -\item \cmd{wideoverbar}, \cmd{widecheck} and \cmd{widebreve} - \[\wideoverbar{x}\quad \wideoverbar{xy}\quad \wideoverbar{xyz}\quad - \widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad - \widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx} - \] +\item \cmd{widecheck} and \cmd{widebreve} + \[\widecheck{x}\quad \widecheck{xxxx}\quad \widecheck{xxxxxx}\quad + \widebreve{x}\quad \widebreve{xxxx}\quad \widebreve{xxxxxx}\] \item \cmd{overparen} and \cmd{underparen} \[\overparen{x}\quad \overparen{xy}\quad \overparen{xyz}\quad |