Mercurial > dottes
comparison abctemplate.py @ 708:7da70e8900ab build-default-278
First attempt at adding Tradition below subtitle in web and print.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sun, 08 Oct 2017 17:06:09 +0100 |
parents | ed823ea54c83 |
children | 7e9d5852c802 |
comparison
equal
deleted
inserted
replaced
707:1bbf0e27389e | 708:7da70e8900ab |
---|---|
19 # Templates are read from file, and are in Python standard library format. | 19 # Templates are read from file, and are in Python standard library format. |
20 # The following values are substituted: | 20 # The following values are substituted: |
21 # * name. The file base name. Base filename without extension. | 21 # * name. The file base name. Base filename without extension. |
22 # * title. The tune title. | 22 # * title. The tune title. |
23 # * subtitle. The tune subtitle (second Title field), if any. | 23 # * subtitle. The tune subtitle (second Title field), if any. |
24 # * tradition. The Morris tradition the dance tune is from. | |
24 # * composer. The tune composer. | 25 # * composer. The tune composer. |
25 # * key. The tune key. | 26 # * key. The tune key. |
26 # * changefile. The name of the 'change' file, if any. | 27 # * changefile. The name of the 'change' file, if any. |
27 # * changename. The change file base name. | 28 # * changename. The change file base name. |
28 # * changetitle. The change file tune title. | 29 # * changetitle. The change file tune title. |
64 vars["historyvisibility"] = "no" | 65 vars["historyvisibility"] = "no" |
65 | 66 |
66 vars["name"] = fname | 67 vars["name"] = fname |
67 vars["title"] = getFieldDisplayText(lines, fdir, "T", latex=args.latex) | 68 vars["title"] = getFieldDisplayText(lines, fdir, "T", latex=args.latex) |
68 vars["subtitle"] = getFieldDisplayText(lines, fdir, "T", n=2, latex=args.latex) | 69 vars["subtitle"] = getFieldDisplayText(lines, fdir, "T", n=2, latex=args.latex) |
70 vars["tradition"] = getFieldDisplayText(lines, fdir, "A", latex=args.latex) | |
69 vars["composer"] = getFieldDisplayText(lines, fdir, "C", latex=args.latex) | 71 vars["composer"] = getFieldDisplayText(lines, fdir, "C", latex=args.latex) |
70 vars["key"] = getFieldDisplayText(lines, fdir, "K", latex=args.latex) | 72 vars["key"] = getFieldDisplayText(lines, fdir, "K", latex=args.latex) |
71 vars["notes"] = getFieldDisplayText(lines, fdir, "N", starts="Dottes:", latex=args.latex) | 73 vars["notes"] = getFieldDisplayText(lines, fdir, "N", starts="Dottes:", latex=args.latex) |
72 if vars["notes"]: | 74 if vars["notes"]: |
73 vars["notesvisibility"] = "yes" | 75 vars["notesvisibility"] = "yes" |