summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2017-09-21 18:26:41 +0900
committerNorbert Preining <norbert@preining.info>2017-09-21 18:26:41 +0900
commit566c85b5c476054837bfe835cba2190ed112a554 (patch)
tree92080b2c720d1216b91cab558be3d8de469ee8df
parent82339a39cb8fb255d991dd99bc055c08cd15c7d8 (diff)
add spark-otf
-rw-r--r--ctan2tds-config.pl2
-rw-r--r--texmf-dist/doc/latex/spark-otf/Changes1
-rw-r--r--texmf-dist/doc/latex/spark-otf/README.md19
-rw-r--r--texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib45
-rw-r--r--texmf-dist/doc/latex/spark-otf/spark-otf-doc.fonts19
-rw-r--r--texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdfbin0 -> 64857 bytes
-rw-r--r--texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex170
-rw-r--r--texmf-dist/tex/latex/spark-otf/spark-otf.sty46
-rw-r--r--tlpkg/tlpsrc/spark-otf.tlpsrc0
9 files changed, 301 insertions, 1 deletions
diff --git a/ctan2tds-config.pl b/ctan2tds-config.pl
index 8f24cbdd..737a6125 100644
--- a/ctan2tds-config.pl
+++ b/ctan2tds-config.pl
@@ -13,4 +13,4 @@ $special{'lucold'} = '&MAKEflatten';
$special{'futurans'} = '&donormal';
$special{'pcarl'} = '&donormal';
$special{'mathstone'} = '&MAKEflatten';
-
+$special{'spark-otf'} = '&MAKEflatten';
diff --git a/texmf-dist/doc/latex/spark-otf/Changes b/texmf-dist/doc/latex/spark-otf/Changes
new file mode 100644
index 00000000..38d1028e
--- /dev/null
+++ b/texmf-dist/doc/latex/spark-otf/Changes
@@ -0,0 +1 @@
+0.01 2017-04-08 - first CTAN version
diff --git a/texmf-dist/doc/latex/spark-otf/README.md b/texmf-dist/doc/latex/spark-otf/README.md
new file mode 100644
index 00000000..b32fc798
--- /dev/null
+++ b/texmf-dist/doc/latex/spark-otf/README.md
@@ -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
+
+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.
diff --git a/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib
new file mode 100644
index 00000000..bfcee05c
--- /dev/null
+++ b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.bib
@@ -0,0 +1,45 @@
+@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/}
+}
+@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},
+}
+
+@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},
+}
+
+@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},
+}
+
+@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},
+}
+
diff --git a/texmf-dist/doc/latex/spark-otf/spark-otf-doc.fonts b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.fonts
new file mode 100644
index 00000000..59107151
--- /dev/null
+++ b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.fonts
@@ -0,0 +1,19 @@
+name type encoding emb sub uni object ID
+------------------------------------ ----------------- ---------------- --- --- --- ---------
+ARTBCZ+LMRoman17-Regular CID Type 0C Identity-H yes yes yes 29 0
+BGOXTP+LMRoman12-Regular CID Type 0C Identity-H yes yes yes 30 0
+BJIIWM+LMRoman12-Bold CID Type 0C Identity-H yes yes yes 32 0
+TMYXAY+LMRoman10-Bold CID Type 0C Identity-H yes yes yes 33 0
+WYEUVE+LMRoman10-Regular CID Type 0C Identity-H yes yes yes 34 0
+PWJWMF+LMMono10-Regular CID Type 0C Identity-H yes yes yes 35 0
+EOCXHF+LMRomanSlant10-Regular CID Type 0C Identity-H yes yes yes 42 0
+PMQCXA+LMMono9-Regular CID Type 0C Identity-H yes yes yes 43 0
+DUPBEX+Spark-BarMedium CID Type 0C Identity-H yes yes yes 44 0
+BJMELA+Spark-BarNarrow CID Type 0C Identity-H yes yes yes 45 0
+DFGDYT+Spark-BarThin CID Type 0C Identity-H yes yes yes 46 0
+BQUJWQ+Spark-DotMedium CID Type 0C Identity-H yes yes yes 56 0
+UXDDVO+Spark-DotSmall CID Type 0C Identity-H yes yes yes 57 0
+FYRTHG+Spark-Dot-lineMedium CID Type 0C Identity-H yes yes yes 58 0
+QTCYHV+LMRoman10-Italic CID Type 0C Identity-H yes yes yes 61 0
+KFMYMX+LMRomanCaps10-Regular CID Type 0C Identity-H yes yes yes 62 0
+NKTIYP+LinLibertineO CID Type 0C Identity-H yes yes yes 68 0
diff --git a/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf
new file mode 100644
index 00000000..af3cba33
--- /dev/null
+++ b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.pdf
Binary files differ
diff --git a/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex
new file mode 100644
index 00000000..f5ecd7e7
--- /dev/null
+++ b/texmf-dist/doc/latex/spark-otf/spark-otf-doc.tex
@@ -0,0 +1,170 @@
+%% $Id: lucida-otf-doc.tex 556 2017-09-18 06:22:29Z herbert $
+% Copyright 2012-2015 TeX Users Group.
+%
+% Copying and distribution of this file, with or without modification,
+% are permitted in any medium, without royalty.
+
+\listfiles
+\documentclass[11pt]{article}
+\usepackage{geometry}
+
+\usepackage%[usefilenames,]
+ {spark-otf} % support opentype math fonts
+
+\usepackage{biblatex}
+\addbibresource{\jobname.bib}
+\usepackage{array}
+\usepackage{metalogo} % for \XeTeX logo
+\usepackage{booktabs} % for examples
+\usepackage{listings} % for code
+\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}}}
+
+% An environment like quote, but less space above and more below:
+\newenvironment{demoquote}
+ {\tabularx{\dimexpr\linewidth+\marginparwidth}{@{} X >{\ttfamily}l @{}}}
+ {\endtabularx}
+
+
+\title{Support for the Spark OpenType fonts}
+\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.
+
+
+\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@DefaultFeatures]
+\newfontfamily\sparkBarNarrow{SparkBar-Narrow}[RawFeature=+calt,\spark@DefaultFeatures]
+\newfontfamily\sparkBarThin{SparkBar-Thin}[RawFeature=+calt,\spark@DefaultFeatures]
+%
+\newfontfamily\sparkDotLine{Spark-Dot-lineMedium}[RawFeature=+calt,\spark@DefaultFeatures]
+%
+\newfontfamily\sparkDotMedium{Spark-DotMedium}[RawFeature=+calt,\spark@DefaultFeatures]
+\newfontfamily\sparkDotSmall{Spark-DotSmall}[RawFeature=+calt,\spark@DefaultFeatures]
+\end{verbatim}
+
+\normalsize
+
+\section{The macros}
+
+\begin{verbatim}
+\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!
+
+
+
+\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
+\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
+\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
+\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
+\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
+\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
+\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
+\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
+\end{description}
+
+
+\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}}}
diff --git a/texmf-dist/tex/latex/spark-otf/spark-otf.sty b/texmf-dist/tex/latex/spark-otf/spark-otf.sty
new file mode 100644
index 00000000..21f720b5
--- /dev/null
+++ b/texmf-dist/tex/latex/spark-otf/spark-otf.sty
@@ -0,0 +1,46 @@
+%% $Id: spark-otf.sty 556 2017-09-18 06:22:29Z 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@tug.org
+%%
+\ProvidesPackage{spark-otf}[%
+ 2017/09/19 v. 0.01 (Herbert Voss) Supports spark OpenType for lualatex/xelatex.]
+%
+\RequirePackage{ifxetex,ifluatex,xkeyval,fontspec,xparse}
+%
+\newif\ifspark@usefilenames \spark@usefilenamesfalse
+\DeclareOptionX{usefilenames}[true]{\@nameuse{spark@usefilenames#1}}
+%
+\providecommand\spark@DefaultFeatures{}
+\DeclareOptionX{DefaultFeatures}{\def\spark@DefaultFeatures{#1}}
+
+\ProcessOptionsX\relax
+
+\ifspark@usefilenames
+\typeout {Using file names for the spark font}%
+%----------------------------------------- file names ----------------------------
+
+\else
+ \typeout {Using symbolic names for the spark font}%
+%----------------------------------------- symbolic names ----------------------------
+ \newfontfamily\sparkBarMedium{SparkBar-Medium}[RawFeature=+calt,\spark@DefaultFeatures]
+ \newfontfamily\sparkBarNarrow{SparkBar-Narrow}[RawFeature=+calt,\spark@DefaultFeatures]
+ \newfontfamily\sparkBarThin{SparkBar-Thin}[RawFeature=+calt,\spark@DefaultFeatures]
+%
+ \newfontfamily\sparkDotLine{Spark-Dot-lineMedium}[RawFeature=+calt,\spark@DefaultFeatures]
+%
+ \newfontfamily\sparkDotMedium{Spark-DotMedium}[RawFeature=+calt,\spark@DefaultFeatures]
+ \newfontfamily\sparkDotSmall{Spark-DotSmall}[RawFeature=+calt,\spark@DefaultFeatures]
+\fi
+%
+\NewDocumentCommand\sparkBar{oO{}mO{}}{{%
+ \IfValueTF{#1}{\@nameuse{sparkBar#1}}{\sparkBarMedium}#2\string{#3\string}#4%
+}}
+\NewDocumentCommand\sparkDot{oO{}mO{}}{{%
+ \IfValueTF{#1}{\@nameuse{sparkDot#1}}{\sparkDotMedium}#2\string{#3\string}#4%
+}}
+
+\endinput
diff --git a/tlpkg/tlpsrc/spark-otf.tlpsrc b/tlpkg/tlpsrc/spark-otf.tlpsrc
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tlpkg/tlpsrc/spark-otf.tlpsrc