Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
318:77372a0166fe | 319:cbe9c10b5a3e |
---|---|
39 do | 39 do |
40 name=`basename $filename .abc` | 40 name=`basename $filename .abc` |
41 title=`$dir/abcfield.py --field T --latex $filename` | 41 title=`$dir/abcfield.py --field T --latex $filename` |
42 fixtitle "$title" | 42 fixtitle "$title" |
43 title=$retval | 43 title=$retval |
44 subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename` | |
45 composer=`$dir/abcfield.py --field C --latex $filename` | |
44 | 46 |
45 changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` | 47 changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` |
46 changetitle="" | 48 changetitle="" |
47 if [ -n "$changefile" ]; then | 49 if [ -n "$changefile" ]; then |
48 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` | 50 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` |
49 fixtitle "$changetitle" | 51 fixtitle "$changetitle" |
50 changetitle=$retval | 52 changetitle=$retval |
51 fi | 53 fi |
52 echo -E "\showtune[$changetitle]{$title}{$graphicsdir/$name}" >> $tunesoutput | 54 echo -E "\showtune{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changetitle}" >> $tunesoutput |
53 | 55 |
54 echo -E "\showfirstline{$title}{$graphicsdir/firstline-$name}" >> $indexoutput | 56 echo -E "\showfirstline{$title}{$graphicsdir/firstline-$name}" >> $indexoutput |
55 done | 57 done |