Skip to content

Commit

Permalink
Clearer names for adjustment options; added Alternate Figures feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
psb1558 committed Dec 23, 2023
1 parent 25a18f0 commit df50543
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
Binary file modified TeX/elstob-package.pdf
Binary file not shown.
32 changes: 18 additions & 14 deletions TeX/elstob-package.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
\documentclass[12pt]{article}

\usepackage[wghtadjust=-50,opszadjust=-2,slant=12]{elstob}
\usepackage[
weightadjustment=-50,opticalsizeadjustment=-2,slant=12,
MainFeatures={StylisticSet=3,Numbers=Monospaced}
]{elstob}

\setfontface\samplefootnote{Elstob}[
Renderer = HarfBuzz,
Expand All @@ -24,8 +27,8 @@
\usepackage{metalogo}
\newcommand{\ltech}{Lua\kern-1.5pt\TeX}
\newcommand{\lltech}{Lua\LaTeX}
\setmonofont{DejaVu Sans Mono}[Scale=MatchLowercase,Numbers=Lowercase]
\setsansfont{DejaVu Sans}[Scale=MatchLowercase,Numbers=Lowercase]
\setmonofont{Fira Mono}[Scale=MatchLowercase,Numbers=Lowercase]
\setsansfont{Fira Sans}[Scale=MatchLowercase,Numbers=Lowercase]
%\newcommand{\fspec}{fontspec}
\newcommand{\fspec}{{\sffamily fontspec}}
\usepackage{supertabular}
Expand Down Expand Up @@ -132,11 +135,11 @@ \section{Loading Elstob}
good choice if you have selected the \textbf{light} option.
\item[extrabold] The weight of bold type is somewhat heavier than the usual bold. This may be a
good choice if you have selected the \textbf{medium} option.
\item[wghtadjust] Adjusts the weight of the type. For example, if you choose \textbf{medium}
\item[weightadjustment (or wghtadjust)] Adjusts the weight of the type. For example, if you choose \textbf{medium}
for your document (weight averages about 500) and \textbf{extrabold} (weight about 800)
and also include the option {\color{BrickRed}\verb|wghtadjust=-25|}, then the weights of medium and extrabold
text will be lightened by 25 (475, 775).
\item[opszadjust] Adjusts the optical size. By default, the value of this axis
\item[opticalsizeadjustment (or opszadjust)] Adjusts the optical size. By default, the value of this axis
is 8 for 8pt text, 12 for 12pt, etc. (within the range 6–18). But if you pass the
option {\color{BrickRed}\verb|opszadjust=-2|}, the optical size axis will have 6 for 8pt type, 10 for
12pt, etc. Because the value of the optical size axis must be between 6 and 18, the
Expand Down Expand Up @@ -388,15 +391,16 @@ \section{Other Commands}
\hline
\bluerow\textbackslash AltThornEth & Applies ss01, Alternate thorn and eth.\\
\textbackslash InsularLetterForms & Applies ss02, Insular letter-forms.\\
\bluerow\textbackslash ContextualLongS & Applies ss08, Contextual long s.\\
\textbackslash LanguageSpecificVariants & \small Applies ss09, Language-Specific Variants.\\
\bluerow\textbackslash EarlyEnglishFuthorc & Applies ss12, Early English Futhorc.\\
\textbackslash ElderFuthark & Applies ss13, Elder Futhark.\\
\bluerow\textbackslash YoungerFuthark & Applies ss14, Younger Futhark.\\
\textbackslash LongBranchToShortTwig & Applies ss15, Long Branch to Short Twig.\\
\bluerow\textbackslash ContextualRRotunda & Applies ss16, Contextual r rotunda.\\
\textbackslash OldStylePunctuation & Applies ss18, Old-style Punctuation.\\
\bluerow\textbackslash ecv, \textbackslash textcv & Applies a Character Variant feature.\\
\bluerow\textbackslash AlternateFigures & Applies ss03, Alternate Figures.\\
\textbackslash ContextualLongS & Applies ss08, Contextual long s.\\
\bluerow\textbackslash LanguageSpecificVariants & \small Applies ss09, Language-Specific Variants.\\
\textbackslash EarlyEnglishFuthorc & Applies ss12, Early English Futhorc.\\
\bluerow\textbackslash ElderFuthark & Applies ss13, Elder Futhark.\\
\textbackslash YoungerFuthark & Applies ss14, Younger Futhark.\\
\bluerow\textbackslash LongBranchToShortTwig & Applies ss15, Long Branch to Short Twig.\\
\textbackslash ContextualRRotunda & Applies ss16, Contextual r rotunda.\\
\bluerow\textbackslash OldStylePunctuation & Applies ss18, Old-style Punctuation.\\
\textbackslash ecv, \textbackslash textcv & Applies a Character Variant feature.\\
\hline
\end{tabular}
% \end{center}
Expand Down
6 changes: 4 additions & 2 deletions TeX/elstob.sty
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

\newcommand*{\wghtadj}{0}
\DeclareOptionX{wghtadjust}{\renewcommand*{\wghtadj}{#1}}
\DeclareOptionX{weightadjustment}{\renewcommand*{\wghtadj}{#1}}

% OLD-STYLE SPACING; OPTICAL SIZE; ITALIC SLANT

Expand All @@ -46,14 +47,13 @@

\newcommand*{\opszadj}{0}
\DeclareOptionX{opszadjust}{\renewcommand*{\opszadj}{#1}}
\DeclareOptionX{opticalsizeadjustment}{\renewcommand*{\opszadj}{#1}}

\newcommand*{\elstob@Islnt}{8}
\DeclareOptionX{slant}{\renewcommand*{\elstob@Islnt}{#1}}

% MAIN TEXT OPTIONS

% User options and macros for storing them

\newcommand*{\MainDef}{}
\newcommand*{\MainRegDef}{}
\newcommand*{\MainItalicDef}{}
Expand Down Expand Up @@ -252,6 +252,8 @@ mkboldcommands(wtidx, adjustment)}}
\newcommand*{\textAltThornEth}[1]{{\addfontfeature{StylisticSet=1}#1}}
\newcommand*{\InsularLetterForms}{\addfontfeature{StylisticSet=2}} % ss02
\newcommand*{\textInsularLetterForms}[1]{{\addfontfeature{StylisticSet=2}#1}}
\newcommand*{\AlternateFigures}{\addfontfeature{StylisticSet=3}} % ss03
\newcommand*{\textAlternateFigures}[1]{{\addfontfeature{StylisticSet=3}#1}}
\newcommand*{\ContextualLongS}{\addfontfeature{StylisticSet=8}} % ss08
\newcommand*{\textContextualLongS}[1]{{\addfontfeature{StylisticSet=8}#1}}
\newcommand*{\LanguageSpecificVariants}{\addfontfeature{StylisticSet=9}} % ss09
Expand Down

0 comments on commit df50543

Please sign in to comment.