diff makeBookeTunePages.sh @ 319:cbe9c10b5a3e

Render tune title, subtitle and composer in Latex/HTML and not in the image. This way the titles remains a constant size even if the image needs to be scaled. And we have that text appearance under our control. I can't find a way of switching off the tune title in abcm2ps, and have worked around by setting the title format to Y0. Y is not a defined ABC header and is not found in any Dottes tune.
author Jim Hague <jim.hague@acm.org>
date Tue, 16 Jul 2013 16:35:07 +0100
parents 8bc92e044e0a
children 1a240d1e2032
line wrap: on
line diff
--- a/makeBookeTunePages.sh	Tue Jul 16 16:27:49 2013 +0100
+++ b/makeBookeTunePages.sh	Tue Jul 16 16:35:07 2013 +0100
@@ -41,6 +41,8 @@
         title=`$dir/abcfield.py --field T --latex $filename`
         fixtitle "$title"
         title=$retval
+        subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename`
+        composer=`$dir/abcfield.py --field C --latex $filename`
 
         changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"`
         changetitle=""
@@ -49,7 +51,7 @@
             fixtitle "$changetitle"
             changetitle=$retval
         fi
-        echo -E "\showtune[$changetitle]{$title}{$graphicsdir/$name}" >> $tunesoutput
+        echo -E "\showtune{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changetitle}" >> $tunesoutput
 
         echo -E "\showfirstline{$title}{$graphicsdir/firstline-$name}" >> $indexoutput
     done