texlive[43964] Master: typoaid (21apr17)
commits+karl at tug.org
commits+karl at tug.org
Sat Apr 22 00:18:49 CEST 2017
Revision: 43964
http://tug.org/svn/texlive?view=revision&revision=43964
Author: karl
Date: 2017-04-22 00:18:49 +0200 (Sat, 22 Apr 2017)
Log Message:
-----------
typoaid (21apr17)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/typoaid/
trunk/Master/texmf-dist/doc/latex/typoaid/README
trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.pdf
trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.tex
trunk/Master/texmf-dist/tex/latex/typoaid/
trunk/Master/texmf-dist/tex/latex/typoaid/typoaid.sty
trunk/Master/tlpkg/tlpsrc/typoaid.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/typoaid/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/typoaid/README (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/typoaid/README 2017-04-21 22:18:49 UTC (rev 43964)
@@ -0,0 +1,5 @@
+The typoaid package
+Maintained by Daniele Ratti
+E-mail: ilfuria+tya at gmail.com
+Released under the LaTeX Project Public License v1.3c or later
+See http://www.latex-project.org/lppl.txt
Property changes on: trunk/Master/texmf-dist/doc/latex/typoaid/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.pdf 2017-04-21 22:17:55 UTC (rev 43963)
+++ trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.pdf 2017-04-21 22:18:49 UTC (rev 43964)
Property changes on: trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.tex 2017-04-21 22:18:49 UTC (rev 43964)
@@ -0,0 +1,42 @@
+\documentclass[a4paper]{article}
+\usepackage[utf8]{inputenc}
+\usepackage[english]{babel}
+\usepackage{lmodern}
+\usepackage{dtk-logos}
+\usepackage{microtype}
+\usepackage{hyperref}
+\usepackage{url}
+\author{Daniele Ratti}
+\title{The Typo Aid Package (v.0.0.7)}
+\begin{document}
+\maketitle
+
+\begin{abstract}
+The typo aid package provides some useful tools in order to provide useful informations regarding the used fonts.
+\end{abstract}
+\section{Commands}
+Four commands are provided:
+\begin{enumerate}
+\item \texttt{typrintalph} prints the alphabet length
+\item \texttt{typrintex} prints the ex-height
+\item\texttt{typrintem} prints the em-width.
+\end{enumerate}
+
+\noindent The commands follow the same schema, regarding the output:
+\begin{itemize}
+\item the normal, unstarred version of the command outputs to the typeset page
+\item the starred version outputs to the terminal
+\item both versions output to the log file, in addition to their normal output.
+\end{itemize}
+All of the commands can accept, as their single arguments, a font switch (e.g. \texttt{\textbackslash itshape, \textbackslash bfseries,\dots}). This will make them print the features of the selected switch.
+\subsection{Compatibility and Remarks}
+The package is compatible with pdf{}\LaTeX, Lua\LaTeX and \XeLaTeX, and will accept a font family switch defined via the \texttt{fontspec} package.
+\section{Acknowledgements}
+I would like to thank: \TeX nician, Christian Hupfer, Enrico Gregorio, Joseph Wright, David Carlisle and Barbara Beeton for their support and kind remarks. Please mark that they know nothing about the code inside the package, but provided many useful tips and tools for me to develop this. They cannot be blamed for anything that can be wrong in this package.
+\section{License and contacts}
+This package is released under the \emph{\LaTeX{} Project Public License,} version 1.3c or later. See \url{http://www.latex-project.org/lppl.txt}.
+
+The package is maintained by \textsc{Daniele Ratti.}
+
+Email: \texttt{ilfuria+tya at gmail dot com}
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/typoaid/typoaid.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/typoaid/typoaid.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/typoaid/typoaid.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/typoaid/typoaid.sty 2017-04-21 22:18:49 UTC (rev 43964)
@@ -0,0 +1,112 @@
+%% ---------------------------------------------------------------
+%% The typoaid package ---
+%% Maintained by Daniele Ratti
+%% E-mail: ilfuria+tya at gmail.com
+%% Released under the LaTeX Project Public License v1.3c or later
+%% See http://www.latex-project.org/lppl.txt
+%% ---------------------------------------------------------------
+
+\RequirePackage{expl3}
+\ProvidesExplPackage{typoaid}{2017/04/21}{0.0.7} {Typographical Aid}
+\RequirePackage{xparse}
+
+%%\ExplSyntaxOn
+%%\newlength{\typ@@id}
+
+\dim_new:N \l__typoAid_Alphabet_dim
+
+\dim_new:N\l__typoAid_ExHeight_dim
+
+\dim_new:N\l__typoAid_EmWidth_dim
+
+\box_new:N\l__typoAid_Alphabet_box
+
+\str_const:Nx\l__typoAid_typeout_string{TypoAid\iow_newline: *~Font~switch~given:~}
+
+%% abcdefghijklmnopqrstuvwxyz
+%%{a{}b{}c{}d{}e{}f{}g{}h{}i{}j{}k{}l{}m{}n{}o{}p{}q{}r{}s{}t{}u{}v{}w{}x{}y{}z{}}
+
+\cs_set_nopar:Npn\_typoAid_typoAlphabet:n #1 {%
+ \box_gclear:N\l__typoAid_Alphabet_box
+ \hbox_set:Nn\l__typoAid_Alphabet_box{#1a{}b{}c{}d{}e{}f{}g{}h{}i{}j{}k{}l{}m{}n{}o{}p{}q{}r{}s{}t{}u{}v{}w{}x{}y{}z{}}}
+
+\cs_set_nopar:Npn\_typoAid_incrCntr:n #1 {%
+ \_typoAid_typoAlphabet:n{#1}
+ \dim_set:Nn\l__typoAid_Alphabet_dim{\box_wd:N\l__typoAid_Alphabet_box}
+}
+
+\cs_set_nopar:Npn\_typoAid_calcEx:n #1{%
+ \group_begin:
+ #1
+ \dim_gset:Nn\l__typoAid_ExHeight_dim{\dim_eval:n{1ex}}
+ \group_end:
+}
+
+\cs_set_nopar:Npn\_typoAid_calcEm:n#1{
+ \group_begin:
+ #1
+ \dim_gset:Nn\l__typoAid_EmWidth_dim{\dim_eval:n{1em}}
+ \group_end:
+}
+
+\cs_set:Npn\_typoAid_log:n#1#2{%
+ \msg_log:n{%
+ \l__typoAid_typeout_string~#2 \iow_newline:.~#1
+ }
+}
+
+\cs_set_nopar:Nn\_typoAid_Alphabet_string:{Alphabet~length:~\dim_use:N\l__typoAid_Alphabet_dim}
+
+\cs_set_nopar:Nn\_typoAid_ExHeight_string:{%
+ Ex~height:~\dim_use:N\l__typoAid_ExHeight_dim
+}
+
+\cs_set_nopar:Npn\_typoAid_EmWidth_string:{%
+ Em~width:~\dim_use:N\l__typoAid_EmWidth_dim
+}
+
+\ProvideDocumentCommand{\typrintalph}{ s m }%
+ {%
+ \_typoAid_incrCntr:n{#2}
+ \IfBooleanTF{#1}{%
+ \msg_term:n{\l__typoAid_typeout_string#2\iow_newline:*~\_typoAid_Alphabet_string:}%
+ }{%
+ \_typoAid_Alphabet_string:%
+ }%
+ \_typoAid_log:n{\_typoAid_Alphabet_string:}{ #2}
+}
+
+\ProvideDocumentCommand{\typrintex}{ s m }{%
+ \_typoAid_calcEx:n{#2}
+ \IfBooleanTF{#1}{%
+ \msg_term:n{\l__typoAid_typeout_string#2 \iow_newline:*~ \_typoAid_ExHeight_string:}%
+ }{%
+ \_typoAid_ExHeight_string:%
+ }%
+ \_typoAid_log:n{\_typoAid_ExHeight_string:}{ #2}
+}
+
+\ProvideDocumentCommand{\typrintem}{s m}{%
+ \_typoAid_calcEm:n{#2}
+ \IfBooleanTF{#1}{%
+ \msg_term:n{\l__typoAid_typeout_string #2 \iow_newline:*~ \_typoAid_EmWidth_string:}%
+ }{%
+ \_typoAid_EmWidth_string:
+ }%
+ \_typoAid_log:n{\_typoAid_EmWidth_string:}{ #2}
+}
+
+\ProvideDocumentCommand{\typrintall}{ s m}{%
+\IfBooleanTF{#1}{%
+ \typrintalph*{#2}\\
+ \typrintex*{#2}\\
+ \typrintem*{#2}\\
+ }{%
+ \typrintalph{#2}\\
+ \typrintex{#2}\\
+ \typrintem{#2}\\
+ }
+}
+
+
+%%\ExplSyntaxOff
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/latex/typoaid/typoaid.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2017-04-21 22:17:55 UTC (rev 43963)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2017-04-21 22:18:49 UTC (rev 43964)
@@ -625,7 +625,8 @@
tui turabian turabian-formatting turkmen turnstile turnthepage
twoinone twoup
txfonts txfontsb txgreeks txuprcal
- type1cm typed-checklist typeface typehtml typeoutfileinfo typicons typogrid
+ type1cm typed-checklist typeface typehtml typeoutfileinfo
+ typicons typoaid typogrid
uaclasses uafthesis uantwerpendocs uassign
ucharcat ucharclasses ucbthesis ucdavisthesis ucs
ucthesis udesoftec uebungsblatt uestcthesis
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2017-04-21 22:17:55 UTC (rev 43963)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2017-04-21 22:18:49 UTC (rev 43964)
@@ -1057,6 +1057,7 @@
depend type1cm
depend typed-checklist
depend typeface
+depend typoaid
depend typogrid
depend uassign
depend ucs
Added: trunk/Master/tlpkg/tlpsrc/typoaid.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list