Mercurial > dottes
changeset 598:ed823ea54c83
Add Dottes History to notes. Currently appears after notes with a gap.
This is intended for longer exposition about a tune.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 02 Nov 2016 18:36:31 +0000 |
parents | 60da844ec261 |
children | fceafdb462a8 |
files | Session/BearDance.abc abctemplate.py dottes.html.tune dottes.tex dottes.tex.tune web/css/dottes.css |
diffstat | 6 files changed, 28 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Session/BearDance.abc Wed Nov 02 17:59:25 2016 +0000 +++ b/Session/BearDance.abc Wed Nov 02 18:36:31 2016 +0000 @@ -2,6 +2,12 @@ T:Bear Dance R:polka S: Nick Barber +H:Dottes: A foot stomping pulse behind this Flemish polka and its inevitable +H:+ predecessor <Laride6.abc> typically marks the end, or somewhere +H:+ near the end, of a Havoc evening. +H:+ +H:+ Unless we're feeling contrary, in which case it'll happen somewhere +H:+ near the start of a session. M:2/4 L:1/16 Q:1/4=120
--- a/abctemplate.py Wed Nov 02 17:59:25 2016 +0000 +++ b/abctemplate.py Wed Nov 02 18:36:31 2016 +0000 @@ -61,6 +61,7 @@ vars = dict() vars["notesvisibility"] = "no" + vars["historyvisibility"] = "no" vars["name"] = fname vars["title"] = getFieldDisplayText(lines, fdir, "T", latex=args.latex) @@ -70,6 +71,9 @@ vars["notes"] = getFieldDisplayText(lines, fdir, "N", starts="Dottes:", latex=args.latex) if vars["notes"]: vars["notesvisibility"] = "yes" + vars["history"] = getFieldDisplayText(lines, fdir, "H", starts="Dottes:", latex=args.latex) + if vars["history"]: + vars["historyvisibility"] = "yes" for val in args.values: keyval = val.partition("=")
--- a/dottes.html.tune Wed Nov 02 17:59:25 2016 +0000 +++ b/dottes.html.tune Wed Nov 02 18:36:31 2016 +0000 @@ -46,6 +46,9 @@ <div class="dottes-notes-${notesvisibility}"> ${notes} </div> + <div class="dottes-history-${historyvisibility}"> + ${history} + </div> <div class="dottes-tune-footer"> <div class="dottes-tune-footer-row"> <div class="dottes-tune-footer-left">
--- a/dottes.tex Wed Nov 02 17:59:25 2016 +0000 +++ b/dottes.tex Wed Nov 02 18:36:31 2016 +0000 @@ -47,8 +47,8 @@ % Show the main tune graphic and optional change. % Args are tune name, tune title, tune subtitle, composer, tune graphic -% filename, notes. -\newcommand{\showtune}[6]{% +% filename, notes, history. +\newcommand{\showtune}[7]{% \phantomsection \begin{tabularx}{\textwidth}{LCR} \addcontentsline{toc}{section}{#2} @@ -61,6 +61,8 @@ }\tabularnewline \end{tabularx} #6 + + #7 \vfill }