changeset 582:0206ab9fd6ba build-default-239

Switch from txt2tags to using pandoc with Markdown (Pandoc flavour) input.
author Jim Hague <jim.hague@acm.org>
date Sat, 29 Oct 2016 21:51:59 +0100
parents 760d0ae5acea
children de2122c78ea0 696c461c8dc0
files Library/intro.md Library/intro.txt Morris/intro.md Morris/intro.txt Session/intro.md Session/intro.txt makeBooke.sh makeWeb.sh
diffstat 8 files changed, 22 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- /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.
--- 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.
--- /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.
--- 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.
--- /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.
--- 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.
--- 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
--- 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