texlive[45372] Master: spark-otf (21sep17)

commits+karl at tug.org commits+karl at tug.org
Thu Sep 21 22:59:31 CEST 2017


Revision: 45372
          http://tug.org/svn/texlive?view=revision&revision=45372
Author:   karl
Date:     2017-09-21 22:59:31 +0200 (Thu, 21 Sep 2017)
Log Message:
-----------
spark-otf (21sep17)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/libexec/ctan2tds
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/spark-otf/
    trunk/Master/texmf-dist/doc/latex/spark-otf/Changes
    trunk/Master/texmf-dist/doc/latex/spark-otf/README.md
    trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib
    trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf
    trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex
    trunk/Master/texmf-dist/tex/latex/spark-otf/
    trunk/Master/texmf-dist/tex/latex/spark-otf/spark-otf.sty
    trunk/Master/tlpkg/tlpsrc/spark-otf.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/spark-otf/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spark-otf/Changes	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/spark-otf/Changes	2017-09-21 20:59:31 UTC (rev 45372)
@@ -0,0 +1,4 @@
+0.02  2017-09-21  - added a star version for LuaLaTeX which
+                    allows any values in the data list
+                  - added error message for pdflatex
+0.01  2017-09-19  - first CTAN version

Added: trunk/Master/texmf-dist/doc/latex/spark-otf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spark-otf/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/spark-otf/README.md	2017-09-21 20:59:31 UTC (rev 45372)
@@ -0,0 +1,19 @@
+# README #
+Package spark-otf supports the free fonts from
+"After the Flood"  which are available from the 
+website http://aftertheflood.co/projects/atf-spark
+
+Following font files are supported:
+
+- Spark - Bar - Medium.otf
+- Spark - Bar - Narrow.otf
+- Spark - Bar - Thin.otf
+- Spark - Dot-line - Medium.otf
+- Spark - Dot - Medium.otf
+- Spark - Dot - Small.otf
+
+
+
+%% This file is distributed under the terms of the LaTeX Project Public
+%% License from CTAN archives in directory  macros/latex/base/lppl.txt.
+%% Either version 1.3 or, at your option, any later version.


Property changes on: trunk/Master/texmf-dist/doc/latex/spark-otf/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib	2017-09-21 20:59:31 UTC (rev 45372)
@@ -0,0 +1,45 @@
+ at online{fontconfig,
+  author ={{\texttt{freedesktop.org}}},
+  sortname = {freedesktop},
+  title = {Fontconfig},
+  subtitle = {A library for configuring and customizing font access},
+  date = {2016-06-15},
+  urldate={2017-03-18},
+  url = {https://www.freedesktop.org/wiki/Software/fontconfig/}
+}
+ at online{wikipedia,
+  author    = {{\WikipediA}},
+  sortlabel = {Wikipedia},
+  sortname  = {Wikipedia},
+  title     = {Sparkline},
+  date      = {2017-09-03},
+  urldate   = {2017-09-19},
+  url       = {https://en.wikipedia.org/wiki/Sparkline},
+}
+
+ at online{features,
+  author    = {{\WikipediA}},
+  sortlabel = {Wikipedia},
+  sortname  = {Wikipedia},
+  title     = {List of typographic features},
+  date      = {2017-02-21},
+  urldate   = {2017-03-24},
+  url       = {https://en.wikipedia.org/wiki/List_of_typographic_features},
+}
+
+ at online{tufte,
+  author    = {Edward Tufte},
+  title     = {History of Sparklines and Edward Tufte Contribution},
+  date      = {2017-09-19},
+  urldate   = {2017-09-19},
+  url       = {https://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=000AIr00},
+}
+
+ at online{atf,
+author = {Max Gadney and Mike Gallagher and Nick Cross and Sabih Ali},
+title = {AtF Spark},
+subtitle = {Our new typeface for code-free sparklines},
+Organisation = {After the flood},
+url = {http://aftertheflood.co/projects/atf-spark},
+}
+


Property changes on: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf	2017-09-21 20:57:42 UTC (rev 45371)
+++ trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf	2017-09-21 20:59:31 UTC (rev 45372)

Property changes on: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex	2017-09-21 20:59:31 UTC (rev 45372)
@@ -0,0 +1,223 @@
+%% $Id: spark-otf-doc.tex 566 2017-09-20 08:49:20Z herbert $
+%
+\listfiles
+\documentclass[fontsize=11pt,DIV=14]{scrartcl}
+\usepackage{fontspec}
+\usepackage[%usefilenames,
+            TT={Scale=0.88,FakeStretch=0.9},
+            SS={Scale=0.9},
+            RM={Scale=0.9},
+            DefaultFeatures={Ligatures=TeX}]{lucida-otf}  % support opentype math fonts
+\usepackage[usefilenames=false]{spark-otf}  % support opentype spark fonts
+\makeatletter
+\let\SparkVersion\spark at version
+\makeatother
+
+\usepackage{biblatex}
+\addbibresource{\jobname.bib}
+
+\usepackage{dtk-logos} % for Wikipedia W
+
+\pagestyle{headings}
+
+\usepackage[colorlinks,hyperfootnotes=false]{hyperref}
+% define \code for url-like breaking of typewriter fragments.
+\ifx\nolinkurl\undefined \let\code\url \else \let\code\nolinkurl \fi
+
+% Define \cs to prepend a backslash, and be unbreakable:
+\DeclareRobustCommand\cs[1]{\mbox{\texttt{\char`\\#1}}}
+
+
+\title{Support for the Spark OpenType fonts \\--\\ v.~\SparkVersion}
+\author{Herbert Voß}
+\begin{document}
+\maketitle
+\tableofcontents
+
+\section{Introduction}
+
+A sparkline is a very small line chart, typically drawn without axes or coordinates. 
+It presents the general shape of the variation (typically over time) in some measurement, 
+such as temperature or stock market price, in a simple and highly condensed way. 
+Sparklines are small enough to be embedded in text, or several sparklines may be 
+grouped together as elements of a small multiple. Whereas the typical chart is 
+designed to show as much data as possible, and is set off from the flow of text, 
+sparklines are intended to be succinct, memorable, and located where they are discussed.~\cite{wikipedia}
+
+
+\section{The fonts}
+
+The fonts are available from \url{https://github.com/aftertheflood/spark} and should be saved
+either in \path{Library/fonts/} (MAC OSX), \path{c:\Windows\Fonts} (Windows) or
+\path{/usr/local/share/fonts} (Linux)  or any other location where
+the fonts will be found by the system.
+
+\begin{verbatim}
+-rw-r--r-- 1 voss voss 24708 Sep 15 11:20 Spark - Bar - Medium.otf
+-rw-r--r-- 1 voss voss 24696 Sep 15 11:20 Spark - Bar - Narrow.otf
+-rw-r--r-- 1 voss voss 24680 Sep 15 11:20 Spark - Bar - Thin.otf
+-rw-r--r-- 1 voss voss 22140 Sep 15 11:20 Spark - Dot-line - Medium.otf
+-rw-r--r-- 1 voss voss 24616 Sep 15 11:20 Spark - Dot - Medium.otf
+-rw-r--r-- 1 voss voss 24580 Sep 15 11:20 Spark - Dot - Small.otf
+\end{verbatim}
+
+
+The package defines the following families:
+
+\small
+\begin{verbatim}
+\newfontfamily\sparkBarMedium{SparkBar-Medium}[RawFeature=+calt,\spark at DefaultFeatures]
+\newfontfamily\sparkBarNarrow{SparkBar-Narrow}[RawFeature=+calt,\spark at DefaultFeatures]
+\newfontfamily\sparkBarThin{SparkBar-Thin}[RawFeature=+calt,\spark at DefaultFeatures]
+%
+\newfontfamily\sparkDotLine{Spark-Dot-lineMedium}[RawFeature=+calt,\spark at DefaultFeatures]
+%
+\newfontfamily\sparkDotMedium{Spark-DotMedium}[RawFeature=+calt,\spark at DefaultFeatures]
+\newfontfamily\sparkDotSmall{Spark-DotSmall}[RawFeature=+calt,\spark at DefaultFeatures]
+\end{verbatim}
+
+\normalsize
+
+\section{The macros}
+
+\begin{verbatim}
+\sparkBar[<Type>][<No>]{values}[<No>]
+\sparkDot[<Type>][<No>]{values}[<No>]
+\sparkBar*[<Type>][<No>]{values}[<No>]
+\sparkDot*[<Type>][<No>]{values}[<No>]
+\end{verbatim}
+
+If \texttt{[<Type>]} is missing, \texttt{Medium} is assumed. The type is mandatory if you use
+the first \texttt{[<No>]} argument! The star versions are only valid for Lua\LaTeX\ where the values
+can be of any interval. They will be changed to the allowed interval:
+
+\begin{itemize}
+\item for \cs{sparkDot[Line]}: $[0,9]$
+\item for all other: $[0,99]$
+\end{itemize}
+
+
+\section{Text examples}
+
+\footnotesize
+\begin{verbatim}
+\begin{description}
+\item[Bar-Medium] Text \sparkBar{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92} Text
+                 {\huge\sparkBar{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}}
+\item[Bar-Medium] Text \sparkBar[Medium]{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92} Text
+\item[Bar-Narrow] Text \sparkBar[Narrow]{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8} Text
+\item[Bar-Thin] Text \sparkBar[Thin]{13,15,59,73,42,1,41,51,4,97,35,55,37,24,89,21,30,22} Text
+\item[Bar-Medium] Text \sparkBar[Medium][14]{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}[92] Text
+\item[Bar-Narrow] Text \sparkBar[Narrow][19]{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8}[8] Text
+                 {\huge\sparkBar[Narrow][19]{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8}[8]}
+\item[Bar-Thin] Text \sparkBar[Thin][13]{13,15,59,73,42,1,41,51,4,97,35,55,37,24,89,21,30,22}[22] Text
+\end{description}
+\end{verbatim}
+
+\normalsize
+\begin{description}
+\item[Bar-Medium] Text \sparkBar{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92} Text
+                 {\huge\sparkBar{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}}
+\item[Bar-Medium] Text \sparkBar[Medium]{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92} Text
+\item[Bar-Narrow] Text \sparkBar[Narrow]{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8} Text
+\item[Bar-Thin] Text \sparkBar[Thin]{13,15,59,73,42,1,41,51,4,97,35,55,37,24,89,21,30,22} Text
+\item[Bar-Medium] Text \sparkBar[Medium][14]{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}[92] Text
+\item[Bar-Narrow] Text \sparkBar[Narrow][19]{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8}[8] Text
+                 {\huge\sparkBar[Narrow][19]{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8}[8]}
+\item[Bar-Thin] Text \sparkBar[Thin][13]{13,15,59,73,42,1,41,51,4,97,35,55,37,24,89,21,30,22}[22] Text
+\end{description}
+
+
+\footnotesize
+\begin{verbatim}
+\begin{description}
+\item[Dot-Medium] Text \sparkDot{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1} Text
+                  {\huge\sparkDot{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1}}
+\item[Dot-Medium] Text \sparkDot[Medium]{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1} Text
+\item[Dot-Small] Text \sparkDot[Small]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76} Text
+\item[Dot-Line] Text \sparkDot[Line]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8} Text
+\item[Dot-Medium] Text \sparkDot[Medium][54]{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1}[1] Text
+\item[Dot-Small] Text \sparkDot[Small][1]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}[76] Text
+\item[Dot-Line] Text \sparkDot[Line][9]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}[8] Text
+               {\huge\sparkDot[Line][9]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}[8]}
+\end{description}
+\end{verbatim}
+
+\normalsize
+\begin{description}
+\item[Dot-Medium] Text \sparkDot{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1} Text
+                  {\huge\sparkDot{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1}}
+\item[Dot-Medium] Text \sparkDot[Medium]{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1} Text
+\item[Dot-Small] Text \sparkDot[Small]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76} Text
+\item[Dot-Line] Text \sparkDot[Line]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8} Text
+\item[Dot-Medium] Text \sparkDot[Medium][54]{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1}[1] Text
+\item[Dot-Small] Text \sparkDot[Small][1]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}[76] Text
+\item[Dot-Line] Text \sparkDot[Line][9]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}[8] Text
+               {\huge\sparkDot[Line][9]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}[8]}
+\end{description}
+
+\section{Examples for Lua\protect\LaTeX}
+The current version of \texttt{spark-otf} supports only star versions for Lua\LaTeX.
+
+\footnotesize
+\begin{verbatim}
+Text \sparkBar*{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76} Text\\
+Text \sparkBar*{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8} Text\\
+Text \sparkBar*[Narrow]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176} Text\\
+Text \sparkDot[Line]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76} Text\\
+Text \sparkDot[Line]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8} Text\\
+Text \sparkDot*[Medium][19]{19,114,12,111,16,17,113,118,113,67,61,74,39,52,38,55,111,88}[88] Text\\
+Text \sparkDot*[Line][111]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176}[176] Text
+
+\huge
+\sparkBar*{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}\\
+\sparkBar*{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}\\
+\sparkBar*[Narrow]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176}\\
+\sparkDot[Line]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}\\
+\sparkDot[Line]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}\\
+\sparkDot*[Medium][19]{19,114,12,111,16,17,113,118,113,67,61,74,39,52,38,55,111,88}[88]\\
+\sparkDot*[Line][111]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176}[176]
+\end{verbatim}
+
+\normalsize
+
+Text \sparkBar*{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76} Text\\
+Text \sparkBar*{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8} Text\\
+Text \sparkBar*[Narrow]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176} Text\\
+Text \sparkDot[Line]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76} Text\\
+Text \sparkDot[Line]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8} Text\\
+Text \sparkDot*[Medium][19]{19,114,12,111,16,17,113,118,113,67,61,74,39,52,38,55,111,88}[88] Text\\
+Text \sparkDot*[Line][111]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176}[176] Text
+
+\huge
+\sparkBar*{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}\\
+\sparkBar*{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}\\
+\sparkBar*[Narrow]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176}\\
+\sparkDot[Line]{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}\\
+\sparkDot[Line]{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}\\
+\sparkDot*[Medium][19]{19,114,12,111,16,17,113,118,113,67,61,74,39,52,38,55,111,88}[88]\\
+\sparkDot*[Line][111]{111,179,188,146,154,177,191,124,170,122,127,129,140,133,131,195,126,176}[176]
+
+\normalsize
+
+
+\nocite{*}
+\printbibliography
+
+
+\end{document}
+
+
+<p class=spark-bar-medium>{14,95,68,9,19,41,91,1,81,97,79,45,96,76,17,65,8,92}</p>
+
+<p class=spark-bar-narrow>{19,32,93,4,95,46,13,23,50,86,94,68,58,41,89,57,74,8}</p>
+
+<p class=spark-bar-thin>{13,15,59,73,42,1,41,51,4,97,35,55,37,24,89,21,30,22}</p>
+
+<p class=spark-dot-medium>{54,39,26,65,29,58,36,99,16,56,76,69,71,77,7,40,79,1}</p>
+
+<p class=spark-dot-small>{1,79,88,46,54,77,91,24,70,22,27,29,40,33,31,95,26,76}</p>
+
+<p class=spark-line-medium>{9,4,2,1,6,7,3,8,3,7,1,4,9,2,8,5,1,8}</p>
+\NewDocumentCommand\spark{omo}{{\sparklinesbarmedium
+		\IfValueT{#1}{#1}\string{#2\string}\IfValueT{#3}{#3}}}


Property changes on: trunk/Master/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/spark-otf/spark-otf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/spark-otf/spark-otf.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/spark-otf/spark-otf.sty	2017-09-21 20:59:31 UTC (rev 45372)
@@ -0,0 +1,101 @@
+%% $Id: spark-otf.sty 565 2017-09-20 08:23:06Z herbert $
+%%
+%% This file is distributed under the terms of the LaTeX Project Public
+%% License from CTAN archives in directory  macros/latex/base/lppl.txt.
+%% Either version 1.3 or, at your option, any later version.
+%%
+% Copyright 2017 Herbert Voss hvoss at tug.org
+%%
+\def\spark at version{0.02}
+\ProvidesPackage{spark-otf}[%
+  2017/09/21 v. \spark at version~(Herbert Voss) Supports spark OpenType for lualatex/xelatex.] 
+%
+\RequirePackage{ifxetex,ifluatex,xkeyval}
+%
+\newif\ifspark at usefilenames \spark at usefilenamesfalse
+\DeclareOptionX{usefilenames}[true]{\@nameuse{spark at usefilenames#1}}
+%
+\providecommand\spark at DefaultFeatures{}
+\DeclareOptionX{DefaultFeatures}{\def\spark at DefaultFeatures{#1}}
+
+\ProcessOptionsX\relax
+
+\ifxetex\else\ifluatex\else
+  \@latex at error{This package can only be used with "XeLaTeX" or "LuaLaTeX"!%
+      \MessageBreak "pdfLaTeX" or any other "TeX" version are _not_ possible!}%
+\fi\fi
+\RequirePackage{fontspec,xparse}
+
+\ifluatex\RequirePackage{luacode}\fi
+
+\ifspark at usefilenames
+  \typeout {Using file names for the spark font}%
+%-----------------------------------------  file names ----------------------------
+  \newfontfamily\sparkBarMedium{{Spark - Bar - Medium}}[RawFeature=+calt,\spark at DefaultFeatures]
+  \newfontfamily\sparkBarNarrow{{Spark - Bar - Narrow}}[RawFeature=+calt,\spark at DefaultFeatures]
+  \newfontfamily\sparkBarThin{{Spark - Bar - Thin}}[RawFeature=+calt,\spark at DefaultFeatures]
+%
+  \newfontfamily\sparkDotLine{{Spark - Dot-line - Medium}}[RawFeature=+calt,\spark at DefaultFeatures]
+%
+  \newfontfamily\sparkDotMedium{{Spark - Dot - Medium}}[RawFeature=+calt,\spark at DefaultFeatures]
+  \newfontfamily\sparkDotSmall{{Spark - Dot - Small}}[RawFeature=+calt,\spark at DefaultFeatures]
+%Spark - Bar - Medium.otf  Spark - Bar - Thin.otf         Spark - Dot - Medium.otf
+%Spark - Bar - Narrow.otf  Spark - Dot-line - Medium.otf  Spark - Dot - Small.otf
+
+\else
+  \typeout {Using symbolic names for the spark font}%
+%-----------------------------------------  symbolic names ----------------------------
+  \newfontfamily\sparkBarMedium{SparkBar-Medium}[RawFeature=+calt,\spark at DefaultFeatures]
+  \newfontfamily\sparkBarNarrow{SparkBar-Narrow}[RawFeature=+calt,\spark at DefaultFeatures]
+  \newfontfamily\sparkBarThin{SparkBar-Thin}[RawFeature=+calt,\spark at DefaultFeatures]
+%
+  \newfontfamily\sparkDotLine{Spark-Dot-lineMedium}[RawFeature=+calt,\spark at DefaultFeatures]
+%
+  \newfontfamily\sparkDotMedium{Spark-DotMedium}[RawFeature=+calt,\spark at DefaultFeatures]
+  \newfontfamily\sparkDotSmall{Spark-DotSmall}[RawFeature=+calt,\spark at DefaultFeatures]
+\fi
+%
+\ifluatex
+\begin{luacode}
+function RelativeValues(v,m)
+  local Values = {}  
+  for k,x in ipairs(v) do
+    Values[k] = x
+  end
+  table.sort(Values)
+  local MaxVal = (Values[#Values])
+  for k,x in ipairs(v) do
+    Values[k] = math.floor(x/MaxVal*m)
+  end
+  for i,k in ipairs(Values) do
+    tex.sprint(k)
+    if (i < #Values) then tex.sprint(",") end
+  end
+end
+\end{luacode}
+\def\spark at line{Line}
+  \NewDocumentCommand\sparkBar{sO{Medium}O{}mO{}}{{%
+    \IfValueTF{#1}%
+      {\edef\spark at values{\directlua{RelativeValues({#4},99)}}}%
+      {\def\spark at values{#4}}%
+    \@nameuse{sparkBar#2}#3\string{\spark at values\string}#5%
+  }}
+  \NewDocumentCommand\sparkDot{sO{Medium}O{}mO{}}{{%
+    \IfValueTF{#1}%
+      {\def\spark at arg{#2}%
+       \ifx\spark at line\spark at arg \edef\spark at values{\directlua{RelativeValues({#4},9)}}%
+       \else                     \edef\spark at values{\directlua{RelativeValues({#4},99)}}%
+       \fi}%
+      {\def\spark at values{#4}}%
+    \@nameuse{sparkDot#2}#3\string{\spark at values\string}#5%
+  }}
+\else %% XeLaTeX
+  \NewDocumentCommand\sparkBar{O{Medium}O{}mO{}}{{%
+    \@nameuse{sparkBar#1}#2\string{#3\string}#4%
+  }}
+  \NewDocumentCommand\sparkDot{O{Medium}O{}mO{}}{{%
+    \@nameuse{sparkDot#1}#2\string{#3\string}#4%
+  }}
+\fi
+%%
+\endinput


Property changes on: trunk/Master/texmf-dist/tex/latex/spark-otf/spark-otf.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-09-21 20:57:42 UTC (rev 45371)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2017-09-21 20:59:31 UTC (rev 45372)
@@ -567,7 +567,8 @@
     snapshot snotez
     songbook songs sort-by-letters soton soul soup sourcecodepro sourcesanspro
     sourceserifpro
-    spalign spanish-mx sparklines spath3 spectralsequences spelling spie
+    spalign spanish-mx spark-otf sparklines spath3
+    spectralsequences spelling spie
     sphack sphdthesis splines splitbib splitindex
     spot spotcolor spreadtab spverbatim
     sr-vorl srbook-mem srcltx srcredact sseq sslides

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2017-09-21 20:57:42 UTC (rev 45371)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2017-09-21 20:59:31 UTC (rev 45372)
@@ -1049,7 +1049,7 @@
  'soulpos',     "die 'skipping, use bezos'",
  'soyombo',     "die 'skipping, noinfo license, Mongolian ca.1996'",
  'spanish',     "die 'skipping, complicated collection'",
-# 'spark-otf',	"&MAKEflatten",
+ 'spark-otf',	"&MAKEflatten",
  'splint',      "die 'skipping, binary'",
  'springer',    "die 'skipping, licenses not checked'",
  'sprite',      "die 'skipping, noinfo license'",

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2017-09-21 20:57:42 UTC (rev 45371)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2017-09-21 20:59:31 UTC (rev 45372)
@@ -951,6 +951,7 @@
 depend snapshot
 depend snotez
 depend soul
+depend spark-otf
 depend sparklines
 depend sphack
 depend splitindex

Added: trunk/Master/tlpkg/tlpsrc/spark-otf.tlpsrc
===================================================================


More information about the tex-live-commits mailing list