Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Series changes (a version of #1396) #1583

Merged
merged 33 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d3e2650
typo
FrankMittelbach May 18, 2022
24743e3
Merge branch 'develop' into WIP/ssc-mappings
FrankMittelbach Dec 10, 2024
0e87160
rollback tests and documentation for #1581
FrankMittelbach Dec 11, 2024
6057f09
correct docs after review
FrankMittelbach Dec 12, 2024
e60a658
ltfssaxes from #1396
FrankMittelbach Dec 13, 2024
186d460
Merge commit '6057f09f891b6d01017cd64ad93a973a53dfd2d1' into series-c…
FrankMittelbach Dec 13, 2024
32ec910
ltnews41 and changes
FrankMittelbach Dec 13, 2024
8856bcd
align series change rule arguments
FrankMittelbach Dec 13, 2024
f821ef7
more rule cleanup and start of rollback support
FrankMittelbach Dec 13, 2024
ef0cf69
Full support
FrankMittelbach Dec 13, 2024
4abab39
wording
FrankMittelbach Dec 14, 2024
b9633cc
Apply suggestions from code review
FrankMittelbach Dec 14, 2024
e858194
more suggestions from review
FrankMittelbach Dec 14, 2024
987e70b
otf files do not end in .ttf :-)
FrankMittelbach Dec 14, 2024
71e5638
Apply suggestions from code review
FrankMittelbach Dec 14, 2024
cd048ac
Apply suggestions from code review
FrankMittelbach Dec 14, 2024
94b601a
WIP
FrankMittelbach Dec 15, 2024
04f581b
Merge branch 'develop' into series-changes
FrankMittelbach Dec 15, 2024
c7ff1c2
Apply suggestions from code review
FrankMittelbach Dec 15, 2024
35e8f7d
more minor changes
FrankMittelbach Dec 15, 2024
dadda08
Apply suggestions from code review
FrankMittelbach Dec 15, 2024
1ff4405
Update base/ltfssaxes.dtx
FrankMittelbach Dec 15, 2024
a8fddcd
that fix got lost during merge
FrankMittelbach Dec 15, 2024
3af80e7
Update base/ltfssaxes.dtx
FrankMittelbach Dec 15, 2024
cac3aef
Update base/ltfssaxes.dtx
FrankMittelbach Dec 15, 2024
ac2edfd
corrections by Chris
FrankMittelbach Dec 15, 2024
6555f31
re-add a rule
FrankMittelbach Dec 15, 2024
408d9e8
grumble
FrankMittelbach Dec 15, 2024
84c5e3e
and, of course, my typical typo
FrankMittelbach Dec 15, 2024
cf887ec
Apply suggestions from code review
FrankMittelbach Dec 16, 2024
2e90da0
some further minor changes
FrankMittelbach Dec 16, 2024
3e1821b
regen and cleanup of the rollback data (we don't need to roll back an…
FrankMittelbach Dec 16, 2024
199f03f
Apply suggestions from code review
FrankMittelbach Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2024-12-13 Maurice Hansen & Frank Mittelbach

* ltfssaxes.dtx
Add numerous \DeclareFontSeriesChangeRule entries to support the full
range of weights (from 'ul' to 'ub') and widths (from 'uc' to 'ux').
Minor modifications to the existing entries. (gh/1583)

2024-12-11 Frank Mittelbach <[email protected]>

* ltfssaxes.dtx (subsection{Mapping rules for shape combinations}):
Expand Down
53 changes: 53 additions & 0 deletions base/doc/ltnews41.tex
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,55 @@ \subsection{Logging text command and symbol declarations}
%
\githubissue{1242}

\subsection{Supporting the \texttt{ssc} and \texttt{sw} shapes}

The \texttt{ssc} shape (spaced small capitals) is supported in
\LaTeX{} through the commands \cs{sscshape} and \cs{textssc}. However,
until this release there where no font shape change rules defined for
this admittely seldom available shape, so that
\begin{verbatim}
\sscshape\itshape
\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
changes in font families that support spaced small capitals work
properly.

At the same time we took the opportunity to improve the fallbacks for
the \texttt{sw} (swash) shapes, which are accessible through the
commands \cs{swshape} or \cs{textsw}. If an \texttt{sw} combination is
not available, the rules now try to replace \texttt{sw} with
\texttt{it} rather than falling back to \texttt{n}.
%
\githubissue{1581}

\subsection{Improvement of the NFSS font series management}

\LaTeX's font selection mechanism (NFSS) supports 9~weight levels,
from ultra-light~(\texttt{ul}) to ultra-bold~(\texttt{ub}), and also
9~width levels, from ultra-condensed~(\texttt{uc}) to
ultra-expanded~(\texttt{ux}). With the February~2020 release, this
mechanism was extended so that requests to set the weight or the width
attributes of the series are combined in a sensible
way~\cite{41:ltnews31}: E.g., if you typeset a paragraph in a
condensed face using \verb+\fontseries{c}\selectfont+ and then use
\cs{textbf} inside the paragraph, a bold condensed face is
selected. The combination of the series values is done by consulting a
simple lookup table whose entries are defined with
\cs{DeclareFontSeriesChangeRule}.

Until now, this lookup table was missing some entries, especially with
regard to rarely used width values. In such cases, the series values
were not combined as expected. This has been fixed (thanks to Maurice
Hansen) by adding numerous \cs{DeclareFontSeriesChangeRule} entries so
that the full range of weights (from \texttt{ul} to \texttt{ub}) and
widths (from \texttt{uc} to \texttt{ux}) is now supported when
combining font series values.
%
\githubissue{1396}


\subsection{Supporting the \texttt{ssc} and \texttt{sw} shapes}

The \texttt{ssc} shape (spaced small capitals) is supported in
Expand Down Expand Up @@ -354,6 +403,10 @@ \subsection{\pkg{multicol}:\ Full support for extended marks}
\emph{\LaTeXe{} news 1--41}. June, 2025.
\url{https://latex-project.org/news/latex2e-news/ltnews.pdf}

\bibitem{41:ltnews31} \LaTeX{} Project Team.
\emph{\LaTeXe{} news 31}. February 2020.
\url{https://latex-project.org/news/latex2e-news/ltnews31.pdf}

\bibitem{41:ltnews34} \LaTeX{} Project Team.
\emph{\LaTeXe{} news 34}. November 2021.
\url{https://latex-project.org/news/latex2e-news/ltnews34.pdf}
Expand Down
Loading
Loading