forked from CryHavoc/dottes
Generate different tune PDF for web site download.
For website download, generate a tune PDF with the tune title and composer. Seems a bit silly to download a PDF giving an anonymouse tune.
This commit is contained in:
parent
eb85854d78
commit
0bea7c9b59
|
@ -78,10 +78,7 @@ find $bookedir -name "*.abc" | sort |
|
|||
changetitle=$retval
|
||||
fi
|
||||
|
||||
# Copy tune PDF from common graphics.
|
||||
cp $graphicsdir/${name}.pdf $webdir
|
||||
|
||||
# And copy the ABC.
|
||||
# Copy the ABC into the web.
|
||||
cp $filename $webdir
|
||||
|
||||
# Generate the tune web page.
|
||||
|
|
|
@ -30,4 +30,9 @@ find $booke -name "*.abc" | sort |
|
|||
|
||||
mv $builddir/${tmpname}.png $builddir/${name}.png
|
||||
mv $builddir/firstline-${tmpname}.png $builddir/firstline-${name}.png
|
||||
|
||||
# Make the web downloadable PDF with the tune title.
|
||||
abcm2ps -E -F singletuneweb -O $builddir/$name.eps $filename
|
||||
# And make the corresponding PDF.
|
||||
epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps
|
||||
done
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
% Format for a web graphic with a single tune with tune title
|
||||
botmargin 0
|
||||
leftmargin 0
|
||||
rightmarin 0
|
||||
topmargin 0
|
||||
scale 0.9
|
||||
titleformat T0 C1
|
||||
topspace 0
|
||||
% I don't want any info fields in the graphics. To turn off the
|
||||
% fields, give a blank infoname for that letter.
|
||||
infoname S
|
||||
infoname R
|
||||
infoname B
|
||||
infoname D
|
||||
infoname Z
|
||||
infoname H
|
||||
infoname N
|
||||
infoline true
|
||||
writehistory true
|
||||
continueall false
|
Loading…
Reference in New Issue