Mercurial > dottes
diff 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 |
line wrap: on
line diff
--- a/makeBookeTunePages.sh Thu Jul 18 15:27:57 2013 +0100 +++ b/makeBookeTunePages.sh Thu Jul 18 15:37:23 2013 +0100 @@ -45,13 +45,15 @@ composer=`$dir/abcfield.py --field C --latex $filename` changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` + changename="" changetitle="" if [ -n "$changefile" ]; then + changename=`basename $changefile .abc` changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` fixtitle "$changetitle" changetitle=$retval fi - echo -E "\showtune{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changetitle}" >> $tunesoutput + echo -E "\showtune{$name}{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changename}{$changetitle}" >> $tunesoutput - echo -E "\showfirstline{$title}{$graphicsdir/firstline-$name}" >> $indexoutput + echo -E "\showfirstline{$name}{$title}{$graphicsdir/firstline-$name}" >> $indexoutput done