texlive[60653] Master/texmf-dist: kpfonts-otf (29sep21)

commits+karl at tug.org commits+karl at tug.org
Wed Sep 29 22:07:51 CEST 2021


Revision: 60653
          http://tug.org/svn/texlive?view=revision&revision=60653
Author:   karl
Date:     2021-09-29 22:07:51 +0200 (Wed, 29 Sep 2021)
Log Message:
-----------
kpfonts-otf (29sep21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx
    trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdf
    trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx
    trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdf
    trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md
    trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otf
    trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otf
    trunk/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty

Modified: trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx	2021-09-29 16:09:37 UTC (rev 60652)
+++ trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.ltx	2021-09-29 20:07:51 UTC (rev 60653)
@@ -6,15 +6,10 @@
 \usepackage[svgnames]{xcolor}
 \usepackage[hypcap=false]{caption}
 \usepackage{shortvrb}
-\usepackage[veryoldstyle]{kpfonts-otf}
-\defaultfontfeatures+[\ttfamily]{RawFeature={-hist;-calt;-swsh;-onum}}
-\defaultfontfeatures+[KpRoman,KpLight,\sffamily]{%
-  RawFeature={-hist;-hlig;-calt;-swsh;-rlig;-onum},%
-}
-\setmainfont{KpRoman}
-\setsansfont{KpSans}
-\setmonofont{KpMono}[Color=DarkBlue]
-%Math demos
+% Option "longs" for local exemples of the long s
+\usepackage[longs]{kpfonts-otf}
+
+% Math demos
 \setmathfont{KpMath-Regular.otf}[version=full, CharacterVariant=3,
                                  StylisticSet={1,2,3,4,5,6,7}]
 \setmathfont{KpMath-Regular.otf}[version=base, CharacterVariant=3]
@@ -47,8 +42,8 @@
 
 \title{Kp-fonts: OpenType version}
 \author{\href{mailto:daniel.flipo at free.fr}{Daniel \textsc{Flipo}}}
-\newcommand*{\version}{0.38}
-\date{12th September, 2021}
+\newcommand*{\version}{0.39}
+\date{28th September, 2021}
 
 \begin{document}
 \selectlanguage{british}
@@ -213,7 +208,7 @@
 	\item \textsc{\textbf{\test}}
   \end{itemize}
 
-\item[veryoldstyle:] \hlabel{veryoldstyle} same as option \opt{oldstyle} but
+\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’)%
@@ -228,8 +223,18 @@
   {\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.
+  \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 preceeding item.
+
 \item[largesmallcaps:] prints larger \textlsc{Small Caps} than the default
   ones (\textsc{Petite Caps}).
 
@@ -369,9 +374,8 @@
 
 \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=|’.  As the long variant is never used at words’ ends
-  the feature \opt{calc} is also activated: it tries to catch end of words,
-  see \opt{veryoldstyle} p.~\pageref{veryoldstyle} for more details.
+  `s’ coding it as `|s=|’ specially at end of words; see options
+  \opt{veryoldstyle} and \opt{longs} p.~\pageref{longs} for more details.
 
 \item[Ligatures=Historic] switches specific ligatures for the long
   {\addfontfeature{Style=Historic}s}:

Modified: trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-English.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx	2021-09-29 16:09:37 UTC (rev 60652)
+++ trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.ltx	2021-09-29 20:07:51 UTC (rev 60653)
@@ -6,19 +6,13 @@
 \usepackage[svgnames]{xcolor}
 \usepackage[hypcap=false]{caption}
 \usepackage{shortvrb}
-\usepackage[veryoldstyle]{kpfonts-otf} % active la fonction "add_EoW"
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% On annule l’effet de l’option "veryoldstyle" tout en gardant "add_EoW"
-\defaultfontfeatures+[\ttfamily]{RawFeature={-hist;-calt;-swsh;-onum}}
-\defaultfontfeatures+[KpRoman,KpLight,\sffamily]{%
-  RawFeature={-hist;-hlig;-calt;-swsh;-rlig;-onum},%
+\usepackage{babel}
+\frenchsetup{og=«, fg=»,%ListItemsAsPar
 }
-% Recharger les fontes avec les nouvelles "features" :
-\setmainfont{KpRoman}
-\setsansfont{KpSans}
-\setmonofont{KpMono}[Color=DarkBlue]
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%Pour les démos :
+
+\usepackage[longs]{kpfonts-otf}
+
+% Pour les démos :
 \setmathfont{KpMath-Regular.otf}[version=full,
                                  CharacterVariant=3,
                                  StylisticSet={1,2,3,4,5,6,7}]
@@ -27,10 +21,6 @@
 \setmathfont{KpMath-Bold.otf}[version=bold, Style=leqslant, CharacterVariant=3]
 \setmathfont{KpMath-Sans.otf}[version=sans, Style=leqslant, CharacterVariant=3]
 
-\usepackage{babel}
-\frenchsetup{og=«, fg=»,%ListItemsAsPar
-}
-
 \usepackage{realscripts}
 \usepackage{microtype}
 \usepackage{hyperref}
@@ -53,8 +43,8 @@
 
 \title{Kp-fonts version OpenType}
 \author{\href{mailto:daniel.flipo at free.fr}{Daniel \textsc{Flipo}}}
-\newcommand*{\version}{0.38}
-\date{12 septembre 2021}
+\newcommand*{\version}{0.39}
+\date{28 septembre 2021}
 
 \begin{document}
 \maketitle
@@ -247,7 +237,7 @@
   suivi d’une espace (sécable ou non) produite par TeX%
   \footnote{On utilise la \emph{feature} OpenType \texttt{calt} qui ne
     reconnaît ni les \cmd{hskip} ni les \cmd{penalty} de TeX.} !
-  Un contournement est fourni dans \file{kpfont-otf.sty} uniquement pour le
+  Le fichier \file{kpfont-otf.sty} fournit une parade au moins avec le
   moteur LuaTeX.
 
   Exemple : le codage |\textit{espoirs, mais quels~espoirs?}| produit comme il
@@ -256,9 +246,15 @@
   (avec fine insécable devant le `?’).
 
   Il est toujours possible de forcer un «s» rond en codant \texttt{s=}.
-  %Pour obtenir le même résultat avec XeTeX, il faudrait coder:\\
   Avec XeTeX, il faudrait coder: |\textit{espoirs, mais= quels=~espoirs=?}|.
 
+\item[longs :] \hlabel{longs}
+  empêche qu’un « s » suivi d’une espace sécable ou non soit
+  transformé en « s » long.  Cette option, utilisable seulement avec
+  LuaTeX, est activée automatiquement par \opt{veryoldstyle} ; dans ce document
+  elle est utilisée seule pour traiter les exemples locaux de « s » long
+  (voir ci-dessus).
+
 \item[largesmallcaps :] produit des petites capitales plus \textlsc{Grandes}
   que par les \textsc{Petites} obtenues par défaut.
 
@@ -407,8 +403,9 @@
 \item[Style=Historic :] pour remplacer systématiquement le « s » rond par un
   {\addfontfeature{Style=Historic}« s »} long, il reste possible de forcer un
   « s » rond, en fin de mot notamment, en codant |s=| ; ce n’est pas toujours
-  nécessaire sous LuaTeX, voir l’option \opt{veryoldstyle}
-  p.~\pageref{veryoldstyle}.
+  nécessaire, sous LuaTeX activer l’option \opt{longs} de
+  \pkg{kpfonts-otf} |\usepackage[longs]{kpfonts-otf}| permet d’éviter ce
+  codage pour les « s » suivis d’une espace (voir p.~\pageref{veryoldstyle}).
 
 \item[Ligatures=Historic :] active les ligatures spécifiques au
   {\addfontfeature{Style=Historic,Ligatures=Historic}« s » long  si, sl, st}.

Modified: trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/Kpfonts-OTF-Doc-French.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md	2021-09-29 16:09:37 UTC (rev 60652)
+++ trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/README.md	2021-09-29 20:07:51 UTC (rev 60653)
@@ -152,6 +152,11 @@
      - Added bold versions to \dotlessi, \dotlessj, named \mbfdotlessi,
 	   \mbfdotlessj (\mbfimath and \mbfjmath were already available).
 
+* v. 0.39:
+
+  New option "longs". Documentation corrected, thanks to Frank Mittelbach for
+  pointing out the glitch in v0.38.
+
 ---
 Copyright 2020-2021  Daniel Flipo
 E-mail: daniel (dot) flipo (at) free (dot) fr

Modified: trunk/Master/texmf-dist/doc/fonts/kpfonts-otf/unimath-kpfonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Bold.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Light.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Regular.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Sans.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMath-Semibold.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Bold.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-BoldItalic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Italic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpMono-Regular.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Bold.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-BoldItalic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Italic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Light.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-LightItalic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Regular.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-Semibold.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpRoman-SemiboldItalic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Bold.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-BoldItalic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Italic.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/fonts/opentype/public/kpfonts-otf/KpSans-Regular.otf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty	2021-09-29 16:09:37 UTC (rev 60652)
+++ trunk/Master/texmf-dist/tex/latex/kpfonts-otf/kpfonts-otf.sty	2021-09-29 20:07:51 UTC (rev 60653)
@@ -1,6 +1,6 @@
 \NeedsTeXFormat{LaTeX2e}[2019-01-01]
-\def\fileversion{0.38}
-\def\filedate{2021-09-12}
+\def\fileversion{0.39}
+\def\filedate{2021-09-28}
 \ProvidesPackage{kpfonts-otf}[\filedate\space\fileversion]
 
 % Ensure luatex or xetex engine
@@ -21,6 +21,7 @@
 \newif\ifkp at osn
 \newif\ifkp at os
 \newif\ifkp at vos
+\newif\ifkp at longs
 \newif\ifkp at Qtail
 %
 \newif\ifkp at lightmath
@@ -49,7 +50,9 @@
 \DeclareOption{lighttext}        {\kp at lighttexttrue}
 \DeclareOption{oldstylenums}     {\kp at osntrue}
 \DeclareOption{oldstyle}         {\kp at ostrue\kp at osntrue\kp at Qtailtrue}
-\DeclareOption{veryoldstyle}     {\kp at vostrue\kp at osntrue\kp at Qtailtrue}
+\DeclareOption{longs}            {\kp at longstrue}
+\DeclareOption{veryoldstyle}     {\kp at vostrue\kp at osntrue\kp at Qtailtrue
+                                  \ifluatex\kp at longstrue\fi}
 \DeclareOption{largesmallcaps}   {\kp at largesmallcapstrue}
 \DeclareOption{altfligs}         {\kp at altfligstrue}
 \DeclareOption{germandbls}       {\kp at germandblstrue}
@@ -115,6 +118,9 @@
     \fi
     \defaultfontfeatures+[KpRoman,KpLight,\sffamily]{%
             Style=Historic,Ligatures=Historic,Contextuals=Alternate}
+  \fi
+  %% No Long s before spaces with luatex
+  \ifkp at longs
     \ifluatex
       % This function adds character U+200B (zero width space) when an "s"
       % is followed by a TeX space (glue or penalty) so that it is not turned
@@ -162,7 +168,9 @@
                                      "add_end_of_word_boundary");
         }
       }
-    \fi
+  \else
+    \PackageWarning{kpfonts-otf}%
+      {Option "longs" skipped (luatex only), reported}
   \fi
   % Smallcaps
   \ifkp at largesmallcaps



More information about the tex-live-commits mailing list.