Skip to content

Commit

Permalink
correct docs after review
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankMittelbach committed Dec 12, 2024
1 parent 0e87160 commit 6057f09
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion base/doc/ltnews41.tex
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ \subsection{Supporting the \texttt{ssc} and \texttt{sw} shapes}
\end{verbatim}
changed unconditionally to \texttt{it} (italics) rather than to
\texttt{sscit} (spaced small italic capitals). Thanks to Michael
Ummels the missing declarations have now been added so that shape
Ummels, the missing declarations have now been added so that shape
changes in font families that support spaced small capitals work
properly.

Expand Down
40 changes: 20 additions & 20 deletions base/ltfssaxes.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1178,12 +1178,11 @@
% \begin{macro}{\textssc}
% \begin{macro}{\sscdefault}
%
% New command to select spaced small capitals. This is only here
% because \texttt{fontaxes} offered it. There isn't a single free
% font that supports it. However, some commercial ones do, so we
% offer it and it is possible to produce spaced small capitals from
% normal small capitals in OTF fonts using \texttt{otftotfm} with
% calls such as
% New commands to select spaced small capitals. There isn't a
% single free font that supports it. However, some commercial ones
% do, so we offer it. It is possible to produce spaced small
% capitals from normal small capitals in OTF fonts using
% \texttt{otftotfm} with calls such as
%\begin{verbatim}
% otftotfm -e TEXMF/fonts/enc/dvips/base/texnansx.enc \
% SourceSerifPro-Regular.ttf -fkern -fliga --feature=smcp \
Expand All @@ -1192,10 +1191,10 @@
%
% Michael Ummels kindly prepared the necessary rules for
% \texttt{ssc} ages ago, but until recently they managed to hide
% deep down in my inbox. I
% finally got around integrating them (with a few changes) and also
% took the opportunity to rationalize the other uncommon
% \texttt{sw} shape rules a bit.
% deep down in my inbox. I finally got around to integrating them
% (with a few changes) and I also took the opportunity to
% rationalize (a bit) the rules for the only other uncommon shape,
% \texttt{sw}.
% \begin{macrocode}
\DeclareRobustCommand\sscshape
{\not@math@alphabet\sscshape\relax
Expand Down Expand Up @@ -1262,10 +1261,10 @@
% for \texttt{ssc} we try to replace it by \texttt{sc} because we
% then assume that the current font family simply doesn't have any
% \texttt{ssc} shapes. However, if we are already in some
% \texttt{ssc} shape and a change is requested we know that at
% \texttt{ssc} shape and a shape change is requested we know that at
% least some \texttt{ssc} shapes exist for the current font family,
% so rather than falling back to some \texttt{sc} we try to stay
% within \texttt{ssc} changes in a fallback situation.
% so rather than falling back to some \texttt{sc} shape we try to stay
% within \texttt{ssc} shapes in a fallback situation.
% \changes{v1.0k}{2024/12/11}{Add \texttt{ssc} shape change
% rules (gh/1581)}
% \begin{macrocode}
Expand Down Expand Up @@ -1308,8 +1307,9 @@
\DeclareFontShapeChangeRule {sc}{ulc} {n} {}
% \end{macrocode}
%
% The next rule might be a bit surprising and rightly so. Correct
% would be that \texttt{sc} is not affected by \texttt{up}, i.e.,
% The next rule might be a bit surprising, and rightly so.
% It would be more correct if \text{sc}
% were not affected by \texttt{up}, so that it
% remains \texttt{sc} as shown in the commented out rule. However,
% for nearly three decades commands such as \cs{upshape} or
% \cs{textup} changed small caps back to the ``normal'' shape. So
Expand Down Expand Up @@ -1339,7 +1339,7 @@
% \end{macrocode}
% The next rule assumes that if \texttt{scit} exists then
% \texttt{it} exists as well. If not, the mechanism will save
% \texttt{ulc} in \cs{f@series} which most certainly doesn't
% \texttt{ulc} in \cs{f@series}, which most certainly doesn't
% exist. So when a font is later selected that would result in a
% substitution (so no harm done really). Alternatively, we could in
% this case use \texttt{n} as alternative, which may be a bit
Expand Down Expand Up @@ -1480,10 +1480,10 @@
%<latexrelease>
% \end{macrocode}
% In 2022-02-02 the \texttt{ssc} shape had no rules, so
% whenever it was used it would have resulted in just switching to
% that shape or switching away from it, so we mimic that by
% providing the corresponding trivial rules to overrule the ones
% from above.
% that any use of it would have resulted in just switching to
% that shape or switching away from it; so we mimic that by
% providing the corresponding trivial rules to overrule those
% from above when we roll back.
% \begin{macrocode}
%<latexrelease>\DeclareFontShapeChangeRule {n}{ssc} {ssc} {}
%<latexrelease>\DeclareFontShapeChangeRule {it}{ssc} {ssc} {}
Expand Down

0 comments on commit 6057f09

Please sign in to comment.