Skip to content

Commit c4ebca2

Browse files
ssc mappings (#1582)
* typo * rollback tests and documentation for #1581 * correct docs after review * better align rule change arguments in the source * Revert "better align rule change arguments in the source" This reverts commit 47b167e.
1 parent c6dd987 commit c4ebca2

File tree

44 files changed

+407
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+407
-43
lines changed

base/changes.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ to completeness or accuracy and it contains some references to files that are
66
not part of the distribution.
77
================================================================================
88

9+
2024-12-11 Frank Mittelbach <[email protected]>
10+
11+
* ltfssaxes.dtx (subsection{Mapping rules for shape combinations}):
12+
Add ssc shape change rules (gh/1581)
13+
Also took the opportunity to provide better fallbacks for sw shape.
14+
915
2024-12-10 Yukai Chou <[email protected]>
1016
* ltxref.dtx (subsection{Cross Referencing})
1117
Replace \@tempa with \reserved@a in \Ref (gh/1579)

base/doc/ltnews41.tex

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,28 @@ \subsection{Logging text command and symbol declarations}
270270
%
271271
\githubissue{1242}
272272

273+
\subsection{Supporting the \texttt{ssc} and \texttt{sw} shapes}
274+
275+
The \texttt{ssc} shape (spaced small capitals) is supported in
276+
\LaTeX{} through the commands \cs{sscshape} and \cs{textssc}. However,
277+
until this release there where no font shape change rules defined for
278+
this admittely seldom available shape, so that
279+
\begin{verbatim}
280+
\sscshape\itshape
281+
\end{verbatim}
282+
changed unconditionally to \texttt{it} (italics) rather than to
283+
\texttt{sscit} (spaced small italic capitals). Thanks to Michael
284+
Ummels, the missing declarations have now been added so that shape
285+
changes in font families that support spaced small capitals work
286+
properly.
287+
288+
At the same time we took the opportunity to improve the fallbacks for
289+
the \texttt{sw} (swash) shapes, which are accessible through the
290+
commands \cs{swshape} or \cs{textsw}. If an \texttt{sw} combination is
291+
not available, the rules now try to replace \texttt{sw} with
292+
\texttt{it} rather than falling back to \texttt{n}.
293+
%
294+
\githubissue{1581}
273295

274296

275297
\section{Bug fixes}

base/ltfssaxes.dtx

Lines changed: 248 additions & 41 deletions
Large diffs are not rendered by default.

base/testfiles-lthooks/lthooks-rollback-args.tlg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ LaTeX Info: Redefining \ulcshape on input line ....
410410
LaTeX Info: Redefining \swshape on input line ....
411411
LaTeX Info: Redefining \sscshape on input line ....
412412
Already applied: [....-..-..] Font shape change rules on input line ....
413+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
414+
Applying: [....-..-..] Rules for ssc and sw on input line ....
415+
Already applied: [....-..-..] Rules for ssc and sw on input line ....
413416
Skipping: [....-..-..] Font shape change on input line ....
414417
Applying: [....-..-..] Font shape change on input line ....
415418
LaTeX Info: Redefining \fontshape on input line ....

base/testfiles/github-0479-often.luatex.tlg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ LaTeX Info: Redefining \ulcshape on input line ....
420420
LaTeX Info: Redefining \swshape on input line ....
421421
LaTeX Info: Redefining \sscshape on input line ....
422422
Already applied: [....-..-..] Font shape change rules on input line ....
423+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
424+
Applying: [....-..-..] Rules for ssc and sw on input line ....
425+
Already applied: [....-..-..] Rules for ssc and sw on input line ....
423426
Skipping: [....-..-..] Font shape change on input line ....
424427
Applying: [....-..-..] Font shape change on input line ....
425428
LaTeX Info: Redefining \fontshape on input line ....

base/testfiles/github-0479-often.tlg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ LaTeX Info: Redefining \ulcshape on input line ....
410410
LaTeX Info: Redefining \swshape on input line ....
411411
LaTeX Info: Redefining \sscshape on input line ....
412412
Already applied: [....-..-..] Font shape change rules on input line ....
413+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
414+
Applying: [....-..-..] Rules for ssc and sw on input line ....
415+
Already applied: [....-..-..] Rules for ssc and sw on input line ....
413416
Skipping: [....-..-..] Font shape change on input line ....
414417
Applying: [....-..-..] Font shape change on input line ....
415418
LaTeX Info: Redefining \fontshape on input line ....

base/testfiles/github-0479-often.xetex.tlg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ LaTeX Info: Redefining \ulcshape on input line ....
410410
LaTeX Info: Redefining \swshape on input line ....
411411
LaTeX Info: Redefining \sscshape on input line ....
412412
Already applied: [....-..-..] Font shape change rules on input line ....
413+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
414+
Applying: [....-..-..] Rules for ssc and sw on input line ....
415+
Already applied: [....-..-..] Rules for ssc and sw on input line ....
413416
Skipping: [....-..-..] Font shape change on input line ....
414417
Applying: [....-..-..] Font shape change on input line ....
415418
LaTeX Info: Redefining \fontshape on input line ....

base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ Skipping: [....-..-..] Merge series values on input line ....
387387
Applying: [....-..-..] Merge series values on input line ....
388388
Skipping: [....-..-..] Font shape change rules on input line ....
389389
Applying: [....-..-..] Font shape change rules on input line ....
390+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
391+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
392+
Applying: [....-..-..] Rules for ssc and sw on input line ....
390393
Skipping: [....-..-..] Font shape change on input line ....
391394
Skipping: [....-..-..] Font shape change on input line ....
392395
Applying: [....-..-..] Font shape change on input line ....
@@ -1252,6 +1255,9 @@ Skipping: [....-..-..] Merge series values on input line ....
12521255
Applying: [....-..-..] Merge series values on input line ....
12531256
Skipping: [....-..-..] Font shape change rules on input line ....
12541257
Applying: [....-..-..] Font shape change rules on input line ....
1258+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
1259+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
1260+
Applying: [....-..-..] Rules for ssc and sw on input line ....
12551261
Skipping: [....-..-..] Font shape change on input line ....
12561262
Skipping: [....-..-..] Font shape change on input line ....
12571263
Applying: [....-..-..] Font shape change on input line ....

base/testfiles/tlb-latexrelease-rollback-003-often.tlg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ Skipping: [....-..-..] Merge series values on input line ....
381381
Applying: [....-..-..] Merge series values on input line ....
382382
Skipping: [....-..-..] Font shape change rules on input line ....
383383
Applying: [....-..-..] Font shape change rules on input line ....
384+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
385+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
386+
Applying: [....-..-..] Rules for ssc and sw on input line ....
384387
Skipping: [....-..-..] Font shape change on input line ....
385388
Skipping: [....-..-..] Font shape change on input line ....
386389
Applying: [....-..-..] Font shape change on input line ....
@@ -1236,6 +1239,9 @@ Skipping: [....-..-..] Merge series values on input line ....
12361239
Applying: [....-..-..] Merge series values on input line ....
12371240
Skipping: [....-..-..] Font shape change rules on input line ....
12381241
Applying: [....-..-..] Font shape change rules on input line ....
1242+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
1243+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
1244+
Applying: [....-..-..] Rules for ssc and sw on input line ....
12391245
Skipping: [....-..-..] Font shape change on input line ....
12401246
Skipping: [....-..-..] Font shape change on input line ....
12411247
Applying: [....-..-..] Font shape change on input line ....

base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ Skipping: [....-..-..] Merge series values on input line ....
381381
Applying: [....-..-..] Merge series values on input line ....
382382
Skipping: [....-..-..] Font shape change rules on input line ....
383383
Applying: [....-..-..] Font shape change rules on input line ....
384+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
385+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
386+
Applying: [....-..-..] Rules for ssc and sw on input line ....
384387
Skipping: [....-..-..] Font shape change on input line ....
385388
Skipping: [....-..-..] Font shape change on input line ....
386389
Applying: [....-..-..] Font shape change on input line ....
@@ -1245,6 +1248,9 @@ Skipping: [....-..-..] Merge series values on input line ....
12451248
Applying: [....-..-..] Merge series values on input line ....
12461249
Skipping: [....-..-..] Font shape change rules on input line ....
12471250
Applying: [....-..-..] Font shape change rules on input line ....
1251+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
1252+
Skipping: [....-..-..] Rules for ssc and sw on input line ....
1253+
Applying: [....-..-..] Rules for ssc and sw on input line ....
12481254
Skipping: [....-..-..] Font shape change on input line ....
12491255
Skipping: [....-..-..] Font shape change on input line ....
12501256
Applying: [....-..-..] Font shape change on input line ....

0 commit comments

Comments
 (0)