From 6e79f73b9d137c1ef7b4545c1fe636bc854fa2e2 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Wed, 2 Nov 2016 18:36:31 +0000 Subject: [PATCH] Add Dottes History to notes. Currently appears after notes with a gap. This is intended for longer exposition about a tune. --- Session/BearDance.abc | 6 ++++++ abctemplate.py | 4 ++++ dottes.html.tune | 3 +++ dottes.tex | 6 ++++-- dottes.tex.tune | 2 +- web/css/dottes.css | 10 ++++++++++ 6 files changed, 28 insertions(+), 3 deletions(-) diff --git a/Session/BearDance.abc b/Session/BearDance.abc index dd0160a..fbdf241 100644 --- a/Session/BearDance.abc +++ b/Session/BearDance.abc @@ -2,6 +2,12 @@ X:1 T:Bear Dance R:polka S: Nick Barber +H:Dottes: A foot stomping pulse behind this Flemish polka and its inevitable +H:+ predecessor 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 diff --git a/abctemplate.py b/abctemplate.py index 9de32e1..6b9d6f9 100755 --- a/abctemplate.py +++ b/abctemplate.py @@ -61,6 +61,7 @@ if __name__ == "__main__": vars = dict() vars["notesvisibility"] = "no" + vars["historyvisibility"] = "no" vars["name"] = fname vars["title"] = getFieldDisplayText(lines, fdir, "T", latex=args.latex) @@ -70,6 +71,9 @@ if __name__ == "__main__": 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("=") diff --git a/dottes.html.tune b/dottes.html.tune index 12b1bce..5d333af 100644 --- a/dottes.html.tune +++ b/dottes.html.tune @@ -46,6 +46,9 @@
${notes}
+
+ ${history} +