comparison makeWebGraphics.sh @ 748:ce5c7214f9aa

Introduce mechanism for having different tune images for compact printed output. Sort alternate .abc in subdir 'Compact' under the booke dir. Use that as the graphic for A5 output, assuming it will be vertically more compact. Use Bear Dance as an example, as it has commentary that currently overflows an A5 landscape page. For the moment, transposed Bookes don't transpose and so don't use Compact.
author Jim Hague <jim.hague@acm.org>
date Fri, 13 Oct 2017 15:44:15 +0100
parents b4eb1753c80f
children b83b49f2a0a0
comparison
equal deleted inserted replaced
746:34c7947b4542 748:ce5c7214f9aa
18 mkdir -p $builddir 18 mkdir -p $builddir
19 19
20 # Now, for each tune, make the main tune and tune first line bitmaps. 20 # Now, for each tune, make the main tune and tune first line bitmaps.
21 # Do this to temp files and rename into place to make updates as 21 # Do this to temp files and rename into place to make updates as
22 # atomic as possible. 22 # atomic as possible.
23 find $booke -name "*.abc" | sort | 23 find $booke -depth 1 -name "*.abc" | sort |
24 while read filename 24 while read filename
25 do 25 do
26 name=`basename $filename .abc` 26 name=`basename $filename .abc`
27 tmpname=${name}.tmp 27 tmpname=${name}.tmp
28 convert -colors 256 -quality 90 -density 200 $graphicsdir/${name}.pdf $builddir/${tmpname}.png 28 convert -colors 256 -quality 90 -density 200 $graphicsdir/${name}.pdf $builddir/${tmpname}.png