comparison makeBookeTunePages.sh @ 323:1a240d1e2032

Go back to using the filename as the hyperlink name. Latex hyperlinks don't cope with having accented characters in the hyperlink name.
author Jim Hague <jim.hague@acm.org>
date Thu, 18 Jul 2013 15:37:23 +0100
parents cbe9c10b5a3e
children 27f29e8aafea
comparison
equal deleted inserted replaced
322:b4a0161e8870 323:1a240d1e2032
43 title=$retval 43 title=$retval
44 subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename` 44 subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename`
45 composer=`$dir/abcfield.py --field C --latex $filename` 45 composer=`$dir/abcfield.py --field C --latex $filename`
46 46
47 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: *//"`
48 changename=""
48 changetitle="" 49 changetitle=""
49 if [ -n "$changefile" ]; then 50 if [ -n "$changefile" ]; then
51 changename=`basename $changefile .abc`
50 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` 52 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile`
51 fixtitle "$changetitle" 53 fixtitle "$changetitle"
52 changetitle=$retval 54 changetitle=$retval
53 fi 55 fi
54 echo -E "\showtune{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changetitle}" >> $tunesoutput 56 echo -E "\showtune{$name}{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changename}{$changetitle}" >> $tunesoutput
55 57
56 echo -E "\showfirstline{$title}{$graphicsdir/firstline-$name}" >> $indexoutput 58 echo -E "\showfirstline{$name}{$title}{$graphicsdir/firstline-$name}" >> $indexoutput
57 done 59 done