comparison makeBookeTunePages.sh @ 581:760d0ae5acea

Revise abcfield.py to recognise continuation fields. Also default to HTML entity output, and replace --contains with --starts, which does the same thing but checks only the start of the line and removes the matched item.
author Jim Hague <jim.hague@acm.org>
date Sat, 29 Oct 2016 19:32:53 +0100
parents b44fbcaeba38
children daa3b76bd11f
comparison
equal deleted inserted replaced
580:575f1eae4137 581:760d0ae5acea
44 subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename` 44 subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename`
45 fixtitle "$subtitle" 45 fixtitle "$subtitle"
46 subtitle=$retval 46 subtitle=$retval
47 composer=`$dir/abcfield.py --field C --latex $filename` 47 composer=`$dir/abcfield.py --field C --latex $filename`
48 48
49 changefile=`$dir/abcfield.py --field N --contains "Change:" $filename | sed -e "s/Change: *//"` 49 changefile=`$dir/abcfield.py --field N --starts "Change:" $filename`
50 changename="" 50 changename=""
51 changetitle="" 51 changetitle=""
52 if [ -n "$changefile" ]; then 52 if [ -n "$changefile" ]; then
53 changename=`basename $changefile .abc` 53 changename=`basename $changefile .abc`
54 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` 54 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile`
55 fixtitle "$changetitle" 55 fixtitle "$changetitle"
56 changetitle=$retval 56 changetitle=$retval
57 fi 57 fi
58 58
59 credit=`$dir/abcfield.py --field N --contains "Credit:" $filename | sed -e "s/Credit: *//"` 59 credit=`$dir/abcfield.py --field N --starts "Credit:" $filename`
60 echo -E "\showtune{$name}{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changename}{$changetitle}{$credit}" >> $tunesoutput 60 echo -E "\showtune{$name}{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changename}{$changetitle}{$credit}" >> $tunesoutput
61 61
62 echo -E "\showfirstline{$name}{$title}{$graphicsdir/firstline-$name}" >> $indexoutput 62 echo -E "\showfirstline{$name}{$title}{$graphicsdir/firstline-$name}" >> $indexoutput
63 done 63 done