# HG changeset patch # User Jim Hague # Date 1477774319 -3600 # Node ID 0206ab9fd6baa39ad751fb918aea344cc783a2c1 # Parent 760d0ae5aceae3a659419b21f8a483699194c7af Switch from txt2tags to using pandoc with Markdown (Pandoc flavour) input. diff -r 760d0ae5acea -r 0206ab9fd6ba Library/intro.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Library/intro.md Sat Oct 29 21:51:59 2016 +0100 @@ -0,0 +1,5 @@ +This book is for tunes that are not part of the regular +Havoc session or dance repertoire. + +Typically these tunes have either fallen out of popularity at sessions, +or are simply tunes that I like. diff -r 760d0ae5acea -r 0206ab9fd6ba Library/intro.txt --- a/Library/intro.txt Sat Oct 29 19:32:53 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -This is a txt2tags input file. -The first 3 lines are headers, and are ignored. - -This book is for tunes that are not part of the regular -Havoc session or dance repertoire. - -Typically these tunes have either fallen out of popularity at sessions, -or are simply tunes that I like. diff -r 760d0ae5acea -r 0206ab9fd6ba Morris/intro.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Morris/intro.md Sat Oct 29 21:51:59 2016 +0100 @@ -0,0 +1,4 @@ +This book provides the dots for the music to all the dances +performed by Cry Havoc. The name of the dance is given as the tune title. +If the name of the tune differs from the name of the dance, the tune +name is given in the subtitle. diff -r 760d0ae5acea -r 0206ab9fd6ba Morris/intro.txt --- a/Morris/intro.txt Sat Oct 29 19:32:53 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -This is a txt2tags input file. -The first 3 lines are headers, and are ignored. - -This book provides the dots for the music to all the dances -performed by Cry Havoc. The name of the dance is given as the tune title. -If the name of the tune differs from the name of the dance, the tune -name is given in the subtitle. diff -r 760d0ae5acea -r 0206ab9fd6ba Session/intro.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Session/intro.md Sat Oct 29 21:51:59 2016 +0100 @@ -0,0 +1,9 @@ +This book provides the dots for the tunes commonly played at Cry Havoc +music sessions. + +The set of tunes played at sessions does tend to vary over time. Some +tunes are perennial favourites and so are included here automatically. +Others appear less regularly. I aim to only include tunes that I +remember hearing at a session in the not too distant past, but nobody +keeps a log of what gets played, so the choice is imprecise. And may +well be influenced by personal preference. diff -r 760d0ae5acea -r 0206ab9fd6ba Session/intro.txt --- a/Session/intro.txt Sat Oct 29 19:32:53 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -This is a txt2tags input file. -The first 3 lines are headers, and are ignored. - -This book provides the dots for the tunes commonly played at Cry Havoc -music sessions. - -The set of tunes played at sessions does tend to vary over time. Some -tunes are perennial favourites and so are included here automatically. -Others appear less regularly. I aim to only include tunes that I -remember hearing at a session in the not too distant past, but nobody -keeps a log of what gets played, so the choice is imprecise. And may -well be influenced by personal preference. diff -r 760d0ae5acea -r 0206ab9fd6ba makeBooke.sh --- a/makeBooke.sh Sat Oct 29 19:32:53 2016 +0100 +++ b/makeBooke.sh Sat Oct 29 21:51:59 2016 +0100 @@ -37,8 +37,8 @@ for item in intro do rm -f $builddir/$item.tex - if [ -r $booke/$item.txt ]; then - txt2tags --no-headers --target=tex --outfile=$builddir/$item.tex $booke/$item.txt + if [ -r $booke/$item.md ]; then + pandoc --from=markdown --to=latex --output=$builddir/$item.tex $booke/$item.md else touch $builddir/$item.tex fi diff -r 760d0ae5acea -r 0206ab9fd6ba makeWeb.sh --- a/makeWeb.sh Sat Oct 29 19:32:53 2016 +0100 +++ b/makeWeb.sh Sat Oct 29 21:51:59 2016 +0100 @@ -86,8 +86,8 @@ for item in intro do rm -f $webdir/$item.html - if [ -r $booke/$item.txt ]; then - txt2tags --no-headers --target=html --outfile=$webdir/$item.html $booke/$item.txt + if [ -r $booke/$item.md ]; then + pandoc --from=markdown --to=html --output=$webdir/$item.html $booke/$item.md else touch $webdir/$item.html fi