| 1 |
% \iffalse meta-comment |
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% venturisadf-build.dtx |
| 4 |
% Additions and changes Copyright (C) 2008-2024 Clea F. Rees. |
| 5 |
% Code from skeleton.dtx Copyright (C) 2015-2024 Scott Pakin (see below). |
| 6 |
% |
| 7 |
% This work may be distributed and/or modified under the |
| 8 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 9 |
% of this license or (at your option) any later version. |
| 10 |
% The latest version of this license is in |
| 11 |
% https://www.latex-project.org/lppl.txt |
| 12 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 13 |
% version 2005/12/01 or later. |
| 14 |
% |
| 15 |
% This work has the LPPL maintenance status `maintained'. |
| 16 |
% |
| 17 |
% The Current Maintainer of this work is Clea F. Rees. |
| 18 |
% |
| 19 |
% This work consists of all files listed in manifest.txt. |
| 20 |
% |
| 21 |
% The file venturisadf-build.dtx is a derived work under the terms of the |
| 22 |
% LPPL. It is based on version 2.4 of skeleton.dtx which is part of |
| 23 |
% dtxtut by Scott Pakin. A copy of dtxtut, including the |
| 24 |
% unmodified version of skeleton.dtx is available from |
| 25 |
% https://www.ctan.org/pkg/dtxtut and released under the LPPL. |
| 26 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 27 |
% \fi |
| 28 |
% |
| 29 |
% \iffalse |
| 30 |
%<*driver> |
| 31 |
\RequirePackage{svn-prov} |
| 32 |
% ref. ateb Max Chernoff: https://tex.stackexchange.com/a/723294/ |
| 33 |
\def\MyMakePrivateLetters{\makeatletter\ExplSyntaxOn\endlinechar13} |
| 34 |
\ProvidesFileSVN{$Id: venturisadf-imp.dtx 10263 2024-08-20 05:00:55Z cfrees $}[v2.0 \revinfo][\filebase DTX: Venturis ADF encodings for 8-bit engines] |
| 35 |
\DefineFileInfoSVN[venturisadfimp] |
| 36 |
\documentclass[11pt,british]{ltxdoc} |
| 37 |
% l3doc loads fancyvrb |
| 38 |
% fancyvrb overwrites svn-prov's macros without warning |
| 39 |
% restore \fileversion \filerev in case we're using l3doc |
| 40 |
\GetFileInfoSVN{venturisadfimp} |
| 41 |
\newcommand*\pkgname{venturisadf} |
| 42 |
\EnableCrossrefs |
| 43 |
\CodelineIndex |
| 44 |
\RecordChanges |
| 45 |
\DoNotIndex{\verb,\ProvidesPackageSVN,\NeedsTeXFormat,\ProcessKeyOptions,\revinfo,\filebase,\filename,\filedate,\RequirePackage,\usepackage,\DefineFileInfoSVN,\GetFileInfoSVN,\ProvidesPackageSVN,\documentclass,\MakeAutoQuote,\parindent,\par,\smallskip,\setlength,\bigskip,\maketitle,\title,\author,\date,\ExplSyntaxOn,\ExplSyntaxOff,\renewcommand,\def,\gdef,\xdef,\tempf,\tempo,\tempr,\temps,\bye,\relax,\edef} |
| 46 |
\usepackage{babel} |
| 47 |
\pdfmapfile{-yvt.map} |
| 48 |
\pdfmapfile{-yv1.map} |
| 49 |
\pdfmapfile{-yv2.map} |
| 50 |
\pdfmapfile{-yv3.map} |
| 51 |
\pdfmapfile{-yvo.map} |
| 52 |
\pdfmapfile{+yvt.map} |
| 53 |
\pdfmapfile{+yv1.map} |
| 54 |
\pdfmapfile{+yv2.map} |
| 55 |
\pdfmapfile{+yv3.map} |
| 56 |
\pdfmapfile{+yvo.map} |
| 57 |
\usepackage[lf]{venturis} |
| 58 |
\DeclareRobustCommand{\venturistworm}{% |
| 59 |
\fontencoding{T1}% |
| 60 |
\fontfamily{yv2}% |
| 61 |
\selectfont} |
| 62 |
\DeclareRobustCommand{\venturistwosf}{% |
| 63 |
\fontencoding{T1}% |
| 64 |
\fontfamily{yv3}% |
| 65 |
\selectfont} |
| 66 |
\DeclareRobustCommand{\venturisold}{% |
| 67 |
\fontencoding{T1}% |
| 68 |
\fontfamily{yvo}% |
| 69 |
\selectfont} |
| 70 |
\DeclareTextFontCommand{\vtworm}{\venturistworm} |
| 71 |
\DeclareTextFontCommand{\vtwosf}{\venturistwosf} |
| 72 |
\DeclareTextFontCommand{\vo}{\venturisold} |
| 73 |
\makeatletter |
| 74 |
\DeclareRobustCommand{\vostyle}[1][]{% |
| 75 |
\not@math@alphabet\vostyle\relax |
| 76 |
\fontfamily{yvod}\selectfont} |
| 77 |
\makeatother |
| 78 |
\DeclareTextFontCommand{\textvo}{\vostyle} |
| 79 |
\DeclareTextFontCommand{\textvol}{\vostyle} |
| 80 |
\DeclareRobustCommand{\lmrmfamily}{% |
| 81 |
\fontencoding{T1}% |
| 82 |
\fontfamily{lmr}% |
| 83 |
\selectfont} |
| 84 |
\DeclareTextFontCommand{\lmrm}{\lmrmfamily} |
| 85 |
\renewcommand{\ttdefault}{lmtt} |
| 86 |
\usepackage{fancyhdr} |
| 87 |
\usepackage{array} |
| 88 |
\usepackage{metalogo} |
| 89 |
\setlogokern{Te}{-0.065em}% default: -0.1667em |
| 90 |
\setlogokern{eX}{-0.06em}% default: -0.125em |
| 91 |
\setlogokern{La}{-0.265em}% default: -0.36em |
| 92 |
\setlogokern{aT}{-.055em}% default: -0.15em |
| 93 |
% \setlogokern{X2}{}% default: 0.15em |
| 94 |
\setlogodrop[TeX]{0.355ex}% default: 0.5ex |
| 95 |
\setLaTeXa{\scshape a} |
| 96 |
% \setLaTeXee{<arg>} |
| 97 |
\usepackage{fixfoot} |
| 98 |
\usepackage{enumitem} |
| 99 |
\usepackage[referable]{threeparttablex} |
| 100 |
\makeatletter |
| 101 |
\def\TPT@measurement{% ateb David Carlisle: https://tex.stackexchange.com/a/370691/ |
| 102 |
\ifdim\wd\@tempboxb<\TPTminimum |
| 103 |
\hsize \TPTminimum |
| 104 |
\else |
| 105 |
\hsize\wd\@tempboxb |
| 106 |
\fi |
| 107 |
\xdef\TPT@hsize{\hsize\the\hsize \noexpand\@parboxrestore}\TPT@hsize |
| 108 |
\ifx\TPT@docapt\@undefined\else |
| 109 |
\TPT@docapt \vskip.2\baselineskip |
| 110 |
\fi \par |
| 111 |
\dimen@\dp\@tempboxb % new |
| 112 |
\box\@tempboxb |
| 113 |
\ifvmode \prevdepth\dimen@ \fi% was \z@ not \dimen@ |
| 114 |
} |
| 115 |
\renewlist{tablenotes}{enumerate}{1} |
| 116 |
\setlist[tablenotes]{label=\tnote{\alph*},ref=\alph*,itemsep=\z@,topsep=\z@skip,partopsep=\z@skip,parsep=\z@,itemindent=\z@,labelindent=\tabcolsep,labelsep=.2em,leftmargin=*,align=left,before={\unskip\medskip\footnotesize}} |
| 117 |
\makeatother |
| 118 |
\usepackage{booktabs} |
| 119 |
\usepackage{xcolor} |
| 120 |
\usepackage{xurl} |
| 121 |
\urlstyle{sf} |
| 122 |
\usepackage{microtype} |
| 123 |
\usepackage[a4paper,headheight=14pt]{geometry} % use 14pt for 11pt text, 15pt for 12pt text |
| 124 |
\usepackage{csquotes} |
| 125 |
\MakeAutoQuote{‘}{’} |
| 126 |
\MakeAutoQuote*{“}{”} |
| 127 |
\usepackage{caption} |
| 128 |
\DeclareCaptionFont{lf}{\lstyle} |
| 129 |
\captionsetup[table]{labelfont=lf} |
| 130 |
% sicrhau hyperindex=false: llwytho CYN bookmark |
| 131 |
\usepackage{hypdoc}% ateb Ulrike Fischer: https://tex.stackexchange.com/a/695555/ |
| 132 |
\usepackage{bookmark} |
| 133 |
\hypersetup{% |
| 134 |
colorlinks=true, |
| 135 |
citecolor={moss}, |
| 136 |
extension=pdf, |
| 137 |
linkcolor={strawberry}, |
| 138 |
linktocpage=true, |
| 139 |
pdfcreator={TeX}, |
| 140 |
pdfproducer={pdfeTeX}, |
| 141 |
urlcolor={blueberry}% |
| 142 |
} |
| 143 |
\usepackage{cleveref} |
| 144 |
\let\fref\cref |
| 145 |
\NewDocElement[% |
| 146 |
idxtype=opt., |
| 147 |
idxgroup=options, |
| 148 |
printtype=\textit{opt.}, |
| 149 |
]{Opt}{option} |
| 150 |
\NewDocElement[% |
| 151 |
idxtype=alt., |
| 152 |
idxgroup=alternates, |
| 153 |
printtype=\textit{alt.}, |
| 154 |
]{Alt}{alternate} |
| 155 |
\NewDocElement[% |
| 156 |
idxtype=lig., |
| 157 |
idxgroup=ligatures, |
| 158 |
printtype=\textit{lig.}, |
| 159 |
]{Lig}{ligature} |
| 160 |
\NewDocElement[% |
| 161 |
idxtype=sw., |
| 162 |
idxgroup=swashes, |
| 163 |
printtype=\textit{sw.}, |
| 164 |
]{Sw}{swash} |
| 165 |
\NewDocElement[% |
| 166 |
idxtype=pkg., |
| 167 |
idxgroup=packages, |
| 168 |
printtype=\textit{pkg.}, |
| 169 |
]{Pkg}{package} |
| 170 |
\NewDocElement[% |
| 171 |
printtype=\textdagger, |
| 172 |
idxtype=, |
| 173 |
macrolike, |
| 174 |
]{DMacro}{dmacro} |
| 175 |
\NewDocElement[% |
| 176 |
printtype=\textit{font fam.}, |
| 177 |
idxtype=font fam., |
| 178 |
idxgroup=font families, |
| 179 |
]{Fam}{family} |
| 180 |
\NewDocumentCommand \val { m } |
| 181 |
{% |
| 182 |
{\ttfamily =\,\meta{#1}}% |
| 183 |
} |
| 184 |
\ExplSyntaxOn |
| 185 |
\NewDocumentCommand \vals { m } |
| 186 |
{ |
| 187 |
{ |
| 188 |
\ttfamily = \, |
| 189 |
\clist_use:nn { #1 } { \textbar } |
| 190 |
} |
| 191 |
} |
| 192 |
\hook_gput_code:nnn { enddocument } { . } |
| 193 |
{ |
| 194 |
\PrintChanges |
| 195 |
\PrintIndex |
| 196 |
} |
| 197 |
\ExplSyntaxOff |
| 198 |
\pagestyle{fancy} |
| 199 |
\fancyhf[rh]{\itshape\filetoday} |
| 200 |
\fancyhf[lh]{\itshape\filebase~\fileversion{}: Encodings} |
| 201 |
\fancyhf[ch]{} |
| 202 |
\fancyhf[lf]{} |
| 203 |
\fancyhf[rf]{} |
| 204 |
\fancyhf[cf]{\itshape--- \thepage~/~\lastpage{} ---} |
| 205 |
\ExplSyntaxOn |
| 206 |
\hook_gput_code:nnn {shipout/lastpage} {.} |
| 207 |
{ |
| 208 |
\property_record:nn {t:lastpage}{abspage,page,pagenum} |
| 209 |
} |
| 210 |
\cs_new_protected_nopar:Npn \lastpage |
| 211 |
{ |
| 212 |
\property_ref:nn {t:lastpage}{page} |
| 213 |
} |
| 214 |
\ExplSyntaxOff |
| 215 |
\definecolor{strawberry}{rgb}{1.000,0.000,0.502} |
| 216 |
\definecolor{blueberry}{rgb}{0.000,0.000,1.000} |
| 217 |
\definecolor{moss}{rgb}{0.000,0.502,0.251} |
| 218 |
\newcommand*{\adf}{\textsc{adf}} |
| 219 |
\newcommand*{\lpack}[1]{\textsf{#1}} |
| 220 |
\newcommand*{\fgroup}[1]{\textsf{#1}} |
| 221 |
\newcommand*{\fname}[1]{\textsf{#1}} |
| 222 |
\newcommand*{\file}[1]{\texttt{#1}} |
| 223 |
\let\OrigMakePrivateLetters\MakePrivateLetters |
| 224 |
\begin{document} |
| 225 |
\DocInput{\filename} |
| 226 |
\let\MakePrivateLetters\MyMakePrivateLetters |
| 227 |
\addcontentsline{toc}{section}{venturis} |
| 228 |
\DocInput{venturis.dtx} |
| 229 |
\addcontentsline{toc}{section}{venturissans} |
| 230 |
\DocInput{venturissans.dtx} |
| 231 |
\addcontentsline{toc}{section}{venturis2} |
| 232 |
\DocInput{venturis2.dtx} |
| 233 |
\addcontentsline{toc}{section}{venturissans2} |
| 234 |
\DocInput{venturissans2.dtx} |
| 235 |
\addcontentsline{toc}{section}{venturisold} |
| 236 |
\DocInput{venturisold.dtx} |
| 237 |
\let\MakePrivateLetters\OrigMakePrivateLetters |
| 238 |
\addcontentsline{toc}{section}{Font Encodings} |
| 239 |
\DocInput{\pkgname-build.dtx} |
| 240 |
\end{document} |
| 241 |
%</driver> |
| 242 |
% \fi |
| 243 |
% \GetFileInfoSVN{venturisadfimp} |
| 244 |
% |
| 245 |
% \title{\pkgname{}: Implementation} |
| 246 |
% \author{Clea F. Rees\thanks{% |
| 247 |
% Bug tracker: |
| 248 |
% \href{https://codeberg.org/cfr/nfssext/issues}{\url{codeberg.org/cfr/nfssext/issues}} |
| 249 |
% \textbar{} Code: |
| 250 |
% \href{https://codeberg.org/cfr/nfssext}{\url{codeberg.org/cfr/nfssext}} |
| 251 |
% \textbar{} Mirror: |
| 252 |
% \href{https://github.com/cfr42/nfssext}{\url{github.com/cfr42/nfssext}}% |
| 253 |
% }} |
| 254 |
% \date{\filetoday} |
| 255 |
% |
| 256 |
% \maketitle\thispagestyle{empty} |
| 257 |
% \pdfinfo{% |
| 258 |
% /Creator (TeX) |
| 259 |
% /Producer (pdfTeX) |
| 260 |
% /Author (Clea F. Rees) |
| 261 |
% /Title (venturisadf: Implementation) |
| 262 |
% /Subject (TeX) |
| 263 |
% /Keywords |
| 264 |
% (TeX,LaTeX,font,fonts,tex,latex,VenturisADF,venturis,venturis2,venturissans,venturissans2,venturisold,venturisadf,Venturis ADF,ADF,adf,Arkandis,Digital,Foundry,arkandis,digital,foundry,Hirwen,Harendal,Clea,Rees,encoding,encodings,etx)} |
| 265 |
% \pdfcatalog{% |
| 266 |
% /URL () |
| 267 |
% /PageMode /UseOutlines} |
| 268 |
% \gdef\pdfinfo#1{\relax} |
| 269 |
% \setlength{\parindent}{0pt} |
| 270 |
% \setlength{\parskip}{0.5em} |
| 271 |
% |
| 272 |
% \begin{abstract} |
| 273 |
% \noindent |
| 274 |
% This file contains the implementation of \lpack{venturisadf} with a smidgen of commentary. |
| 275 |
% For user documentation, usage examples and changes, see \texttt{venturisadf.pdf}. |
| 276 |
% You do not need to read the implementation or the documents referenced therein in order to install or use the fonts. |
| 277 |
% \end{abstract} |
| 278 |
% |
| 279 |
% |
| 280 |
% \tableofcontents |
| 281 |
% \let\tableofcontents\relax |
| 282 |
% |
| 283 |
% |
| 284 |
% \MaybeStop{% |
| 285 |
% ^^A \PrintChanges |
| 286 |
% ^^A \PrintIndex |
| 287 |
% } |
| 288 |
% |
| 289 |
% \section{Introduction} |
| 290 |
% |
| 291 |
% This file (sparsely) documents code for the |
| 292 |
% \begin{itemize} |
| 293 |
% \item packages'; |
| 294 |
% \item demonstration files; |
| 295 |
% \item various file used to generate the \TeX{} fonts used by the packages. |
| 296 |
% \end{itemize} |
| 297 |
% |
| 298 |
% Note that creating the font files, as opposed to just the package and documentation files, \emph{requires} \texttt{l3build} and a set of custom \texttt{lua} scripts available on \texttt{codeberg}. |
| 299 |
% More specifically, if you want to build the font definition files (\texttt{.fd}) yourself, you \emph{must} use \texttt{l3build fnttarg} and this requires files available from the code repository, but not included in this package\footnote{% |
| 300 |
% They are not included because I understand that CTAN does not want development files such as Lua build scripts. |
| 301 |
% If this is a problem --- especially, but not only, if you repackage \TeX{} Live (or are Karl Berry) --- please raise the issue on the bugtracker. |
| 302 |
% If necessary, I can probably customise \lpack{fontinst} to do the same job, but it wasn't immediately obvious quite how to do that, so I used Lua instead.% |
| 303 |
% }. |
| 304 |
% |
| 305 |
% The reason for this is that \lpack{fontinst} provides no way\footnote{Or no way I've yet discovered.} to enable variable scaling. |
| 306 |
% While it is entirely possible to scale a font by any factor you please, it is not, as far as I can tell, possible to enable scaling by any factor a user later pleases. |
| 307 |
% In particular, while it is possible to define shapes and families to use a variable factor, it is not possible to write a definition of that factor into the font definition file, which is the way variable scaling is usually configured. |
| 308 |
% |
| 309 |
% In order to enable this functionality, \texttt{lua} is used to inject the relevant code into the \texttt{.fd} files after \lpack{fontinst} has generated them. |
| 310 |
% If you simply process the relevant \TeX{} files by hand, you will create broken definition files, since the code produced by \lpack{fontinst} assumes the relevant lines have been injected. |
| 311 |
% |
| 312 |
% |
| 313 |
% \subsection{Packages} |
| 314 |
% |
| 315 |
% Three \LaTeX{} packages: |
| 316 |
% \begin{itemize} |
| 317 |
% \item \verb|venturis.sty| |
| 318 |
% \item \verb|venturis2.sty| |
| 319 |
% \item \verb|venturisold.sty| |
| 320 |
% \end{itemize} |
| 321 |
% |
| 322 |
% The remaining files are not used directly, but are required to generate the files which allow \TeX{} and \LaTeX{} to use the fonts. |
| 323 |
% The sources use \verb|fontinst| as explained in the (sparse) comments. |
| 324 |
% While you can install these files into a \TeX{} tree, they are not required for typesetting. |
| 325 |
% |
| 326 |
% \subsection{Driver} |
| 327 |
% |
| 328 |
% These files do all the initial setup of the fonts. |
| 329 |
% They organise the fonts into families, define shapes and reencode as required. |
| 330 |
% \begin{itemize} |
| 331 |
% \item \verb|yvt-drv.tex| |
| 332 |
% \item \verb|yv1-drv.tex| |
| 333 |
% \item \verb|yv2-drv.tex| |
| 334 |
% \item \verb|yv3-drv.tex| |
| 335 |
% \item \verb|yvo-drv.tex| |
| 336 |
% \end{itemize} |
| 337 |
% |
| 338 |
% \subsection{Maps} |
| 339 |
% |
| 340 |
% These files are compiled to produce the map file fragments \verb|updmap| needs to install the fonts. |
| 341 |
% They use files recorded during compilation of the drivers. |
| 342 |
% \begin{itemize} |
| 343 |
% \item \verb|yvt-map.tex| |
| 344 |
% \item \verb|yv1-map.tex| |
| 345 |
% \item \verb|yv2-map.tex| |
| 346 |
% \item \verb|yv3-map.tex| |
| 347 |
% \item \verb|yvo-map.tex| |
| 348 |
% \end{itemize} |
| 349 |
% |
| 350 |
% \subsection{Encodings (output)} |
| 351 |
% These files define variant T1 and TS1 font encodings. |
| 352 |
% Where required, the corresponding \verb|.enc| is also included in the package. |
| 353 |
% \begin{itemize} |
| 354 |
% \item \verb|t1-venturis.etx| |
| 355 |
% \item \verb|t1j-venturis.etx| |
| 356 |
% \item \verb|t1-venturisold.etx| |
| 357 |
% \item \verb|t1-venturisold-longs.etx| |
| 358 |
% \end{itemize} |
| 359 |
% |
| 360 |
% In addition to these encodings, we use encoding files supplied by \verb|fontinst| and some custom files not included in this package's \verb|dtx| as they are not specific to MODULE-TC. |
| 361 |
% They are, however, part of the package: |
| 362 |
% \begin{itemize} |
| 363 |
% \item \verb|lining.etx| |
| 364 |
% \item \verb|oldstyle.etx| |
| 365 |
% \item \verb|t1-dotalt-f_f.etx| (and \verb|t1-dotalt-f_f.enc|) |
| 366 |
% \item \verb|t1-f_f.etx| (and \verb|t1-f_f.enc|) |
| 367 |
% \item \verb|t1j-f_f.etx| |
| 368 |
% \item \verb|ts1-euro.etx| (and \verb|ts1-euro.enc|) |
| 369 |
% \item \verb|ucdotalt.etx| |
| 370 |
% \end{itemize} |
| 371 |
% The \verb|etx| files are not used directly by \LaTeX{} or \TeX. |
| 372 |
% Where needed, they are processed to produce \verb|enc| files. |
| 373 |
% In some cases, however, they are not themselves standalone encodings. |
| 374 |
% Instead, they change how some other encoding is interpreted. |
| 375 |
% |
| 376 |
% \subsection{MTX} |
| 377 |
% \verb|mtx| files are used to build ‘fake’ glyphs where these are missing from the original fonts. |
| 378 |
% We do not fake small-caps or bold, but only glyphs which can be constructed without altering the original design. |
| 379 |
% \begin{itemize} |
| 380 |
% \item \file{resetalt.mtx} |
| 381 |
% \end{itemize} |
| 382 |
% |
| 383 |
% In addition to this file, we use \verb|mtx| files supplied by \verb|fontinst|. |
| 384 |
% |
| 385 |
% |
| 386 |
%\Finale |
| 387 |
%^^A vim: tw=0: |