Mercurial > dottes
comparison 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 |
| parents | 0e7d2830cb8b |
| children | 6ced110a62aa |
comparison
equal
deleted
inserted
replaced
| 49:ac3bbc2195c1 | 50:e666306c5ab1 |
|---|---|
| 48 echo -E "\includegraphics[width=\textwidth]{$graphicsdir/$name}" >> $builddir/$output | 48 echo -E "\includegraphics[width=\textwidth]{$graphicsdir/$name}" >> $builddir/$output |
| 49 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output | 49 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output |
| 50 echo -E "\end{center}" >> $builddir/$output | 50 echo -E "\end{center}" >> $builddir/$output |
| 51 done | 51 done |
| 52 | 52 |
| 53 cat dottes.tex.firstlines >> $builddir/$output | |
| 54 | |
| 55 find $booke -name "*.abc" | sort | | |
| 56 while read filename | |
| 57 do | |
| 58 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` | |
| 59 name=`basename $filename .abc` | |
| 60 echo -E "$title & \raisebox{-.25\height}{\includegraphics[width=8cm]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output | |
| 61 done | |
| 62 | |
| 53 cat dottes.tex.footer >> $builddir/$output | 63 cat dottes.tex.footer >> $builddir/$output |
| 54 | 64 |
| 55 cp $outputa4 $builddir | 65 cp $outputa4 $builddir |
| 56 | 66 |
| 57 cd $builddir | 67 cd $builddir |
