Mercurial > dottes
diff makeBooke.sh @ 50:e666306c5ab1
Add list of tune first lines.
Add a list of tune first lines to the Booke. First, a small Python script to
filter a .abc file and spit out just enough to give a graphic of the first line
without the title. Then generate these graphics and generate a new section in the Booke
with a longtable of tune name and the first line graphic.
author | Jim Hague <jim.hague@laicatc.com> |
---|---|
date | Sun, 04 Mar 2012 20:16:48 +0000 (2012-03-04) |
parents | 0e7d2830cb8b |
children | 6ced110a62aa |
line wrap: on
line diff
--- a/makeBooke.sh Sun Mar 04 18:10:53 2012 +0000 +++ b/makeBooke.sh Sun Mar 04 20:16:48 2012 +0000 @@ -50,6 +50,16 @@ echo -E "\end{center}" >> $builddir/$output done +cat dottes.tex.firstlines >> $builddir/$output + +find $booke -name "*.abc" | sort | + while read filename + do + title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` + name=`basename $filename .abc` + echo -E "$title & \raisebox{-.25\height}{\includegraphics[width=8cm]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output + done + cat dottes.tex.footer >> $builddir/$output cp $outputa4 $builddir