[latex3-commits] [git/LaTeX3-latex3-latex2e] nfssaxes: added swshape (but not yet sscshape) (81f6a3a3)
Frank Mittelbach
frank.mittelbach at latex-project.org
Tue Oct 8 16:09:15 CEST 2019
Repository : https://github.com/latex3/latex2e
On branch : nfssaxes
Link : https://github.com/latex3/latex2e/commit/81f6a3a362e4ca474aee3039c399e3c056780e6b
>---------------------------------------------------------------
commit 81f6a3a362e4ca474aee3039c399e3c056780e6b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Tue Oct 8 16:09:15 2019 +0200
added swshape (but not yet sscshape)
>---------------------------------------------------------------
81f6a3a362e4ca474aee3039c399e3c056780e6b
base/nfssaxes.tex | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/base/nfssaxes.tex b/base/nfssaxes.tex
index be535da6..d9afb89c 100644
--- a/base/nfssaxes.tex
+++ b/base/nfssaxes.tex
@@ -225,6 +225,7 @@
% and I think that needs to be preserved.
%
% \begin{macro}{\ulcshape}
+% \begin{macro}{\textulc}
% To request going back to upper/lowercase we need a new
% command. It uses \texttt{ulc} as shape name but this shape is
% virtual, i.e., it doesn't exist as a real shape, it is only used
@@ -237,6 +238,39 @@
\DeclareTextFontCommand{\textulc}{\ulcshape} % back to upper/lower case
% \end{macrocode}
% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\swshape}
+% \begin{macro}{\textsw}
+% \begin{macro}{\swdefault}
+% New command to select swash shape.
+% \begin{macrocode}
+\DeclareRobustCommand\swshape
+ {\not at math@alphabet\swshape\relax
+ \fontshape\swdefault\selectfont}
+\DeclareTextFontCommand{\textsw}{\swshape}
+\newcommand\swdefault{sw}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+%
+%
+% \begin{macro}{\sscshape}
+% \begin{macro}{\textssc}
+% \begin{macro}{\sscdefault}
+% New command to select spaced small capitals.
+% \begin{macrocode}
+\DeclareRobustCommand\sscshape
+ {\not at math@alphabet\sscshape\relax
+ \fontshape\sscdefault\selectfont}
+\DeclareTextFontCommand{\textssc}{\sscshape}
+\newcommand\sscdefault{ssc}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
%
%
%
@@ -246,6 +280,7 @@
\DeclareFontShapeChangeRule {n}{n} {n} {}
\DeclareFontShapeChangeRule {n}{it} {it} {sl}
\DeclareFontShapeChangeRule {n}{sl} {sl} {it}
+\DeclareFontShapeChangeRule {n}{sw} {sw} {}
\DeclareFontShapeChangeRule {n}{sc} {sc} {}
\DeclareFontShapeChangeRule {n}{ulc} {n} {}
% \end{macrocode}
@@ -254,6 +289,7 @@
\DeclareFontShapeChangeRule {it}{n} {n} {}
\DeclareFontShapeChangeRule {it}{it} {it} {}
\DeclareFontShapeChangeRule {it}{sl} {sl} {it}
+\DeclareFontShapeChangeRule {it}{sw} {sw} {}
\DeclareFontShapeChangeRule {it}{sc} {scit} {scsl} % or sc or it as second default?
\DeclareFontShapeChangeRule {it}{ulc} {it} {}
% \end{macrocode}
@@ -262,6 +298,7 @@
\DeclareFontShapeChangeRule {sl}{n} {n} {}
\DeclareFontShapeChangeRule {sl}{it} {it} {sl}
\DeclareFontShapeChangeRule {sl}{sl} {sl} {}
+\DeclareFontShapeChangeRule {sl}{sw} {sw} {}
\DeclareFontShapeChangeRule {sl}{sc} {scsl} {scit} % sc or sl as second default?
\DeclareFontShapeChangeRule {sl}{ulc} {sl} {}
% \end{macrocode}
@@ -270,6 +307,7 @@
\DeclareFontShapeChangeRule {sc}{n} {n} {}
\DeclareFontShapeChangeRule {sc}{it} {scit} {scsl}
\DeclareFontShapeChangeRule {sc}{sl} {scsl} {scit}
+\DeclareFontShapeChangeRule {sc}{sw} {scsw} {sc} % ????
\DeclareFontShapeChangeRule {sc}{sc} {sc} {}
\DeclareFontShapeChangeRule {sc}{ulc} {n} {}
% \end{macrocode}
@@ -278,6 +316,7 @@
\DeclareFontShapeChangeRule {scit}{n} {sc} {}
\DeclareFontShapeChangeRule {scit}{it} {scit} {}
\DeclareFontShapeChangeRule {scit}{sl} {scsl} {scit}
+\DeclareFontShapeChangeRule {scit}{sw} {scsw} {sc} % or scit?
\DeclareFontShapeChangeRule {scit}{sc} {scit} {}
\DeclareFontShapeChangeRule {scit}{ulc} {it} {}
% \end{macrocode}
@@ -294,9 +333,19 @@
\DeclareFontShapeChangeRule {scsl}{n} {sc} {}
\DeclareFontShapeChangeRule {scsl}{it} {scit} {scsl}
\DeclareFontShapeChangeRule {scsl}{sl} {scsl} {}
+\DeclareFontShapeChangeRule {scsl}{sw} {scsw} {sc} % or scsl?
\DeclareFontShapeChangeRule {scsl}{sc} {scsl} {}
\DeclareFontShapeChangeRule {scsl}{ulc} {sl} {}
% \end{macrocode}
+%
+% \begin{macrocode}
+\DeclareFontShapeChangeRule {scsw}{n} {sc} {}
+\DeclareFontShapeChangeRule {scsw}{it} {scit} {scsw}
+\DeclareFontShapeChangeRule {scsw}{sl} {scsl} {}
+\DeclareFontShapeChangeRule {scsw}{sw} {scsw} {}
+\DeclareFontShapeChangeRule {scsw}{sc} {scsw} {}
+\DeclareFontShapeChangeRule {scsw}{ulc} {sw} {}
+% \end{macrocode}
% By the way, fontspec uses \cs{itscdefault} etc.\ whereas in the
More information about the latex3-commits
mailing list