# HG changeset patch # User Jim Hague # Date 1361060827 0 # Node ID 8f352063f277df0b98d6e490b1d3e4ca734c6af6 # Parent 5b4c478142e1f2075cddb98169b48cbac32ec64c Finish first version of newly tarted up website. diff -r 5b4c478142e1 -r 8f352063f277 dottes.html.footer --- a/dottes.html.footer Sat Feb 16 23:23:50 2013 +0000 +++ b/dottes.html.footer Sun Feb 17 00:27:07 2013 +0000 @@ -1,3 +1,4 @@ + diff -r 5b4c478142e1 -r 8f352063f277 dottes.html.header --- a/dottes.html.header Sat Feb 16 23:23:50 2013 +0000 +++ b/dottes.html.header Sun Feb 17 00:27:07 2013 +0000 @@ -1,23 +1,44 @@ - + + -Cry Havoc tunes - @BOOK@ + + Cry Havoc tunes - @TITLE@ + + + + + + -

@SUBTITLE@

-

-@INTRO@ -

-You can download a PDF with a booklet of these tunes. There is an -A5 landscape book with one -tune per page, or an A4 book with two or -more tunes per page. -

-If you have a printer that can do duplex (i.e. print on both sides of the -paper), you might like the -A5 booklet. -Print this onto A4 paper using both sides of the paper, and fold in half -to make an A5 booklet. -

-Issue @BUILD@ -

- +
+ + + + +
+ +
+

@SUBTITLE@

+

@INTRO@ +

You can download a PDF with a booklet of these tunes. There is an + A5 landscape book with one + tune per page, or an A4 book with two or + more tunes per page. +

If you have a printer that can do duplex (i.e. print on both sides + of the paper), you might like the + A5 booklet. + Print this onto A4 paper using both sides of the paper, and fold in half + to make an A5 booklet. +

When changes to this site are made, the issue number is incremented. + This is issue @BUILD@. +

+ +
+ +
+

The tunes

+
diff -r 5b4c478142e1 -r 8f352063f277 dottes.html.tune --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dottes.html.tune Sun Feb 17 00:27:07 2013 +0000 @@ -0,0 +1,41 @@ + + + + + Cry Havoc tunes - @TITLE@ + + + + + + + + +
+ + + + +
+ +
+

@TITLE@

+ @TITLE@ dots + +
+ +
+ + diff -r 5b4c478142e1 -r 8f352063f277 dottes.html.tuneindex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dottes.html.tuneindex Sun Feb 17 00:27:07 2013 +0000 @@ -0,0 +1,4 @@ + + + + diff -r 5b4c478142e1 -r 8f352063f277 makeAll.sh --- a/makeAll.sh Sat Feb 16 23:23:50 2013 +0000 +++ b/makeAll.sh Sun Feb 17 00:27:07 2013 +0000 @@ -13,9 +13,10 @@ ./makeBookeA5.sh $1 ./makeBookeA4.sh $1 ./makeWebItems.sh $1 - ./makeWeb.sh $1 + ./makeWeb.sh $1 $2 } makeABooke $1 + ./makeCello.sh $1 -makeABooke $1-Cello +makeABooke $1-Cello cello diff -r 5b4c478142e1 -r 8f352063f277 makeCello.sh --- a/makeCello.sh Sat Feb 16 23:23:50 2013 +0000 +++ b/makeCello.sh Sun Feb 17 00:27:07 2013 +0000 @@ -19,6 +19,9 @@ mkdir -p $outdir +# Copy book component items. +cp $booke/*.txt $outdir + find $booke -name "*.abc" | sort | while read filename do diff -r 5b4c478142e1 -r 8f352063f277 makeWeb.sh --- a/makeWeb.sh Sat Feb 16 23:23:50 2013 +0000 +++ b/makeWeb.sh Sun Feb 17 00:27:07 2013 +0000 @@ -4,37 +4,47 @@ # to be already built. # -if [ $# != 1 ]; then - echo "Usage: makeWeb.sh " +if [ $# -lt 1 -o $# -gt 2 ]; then + echo "Usage: makeWeb.sh []" exit 1 fi dir=`pwd` -booke=$dir/$1 +bookedir=$dir/$1 webdir=$dir/web/$1 graphicsdir=$dir/graphics/$1 output=index.html +title=$1 +booke=$1 buildno=`cat buildno.txt` subtitle= intro= -if [ -r $booke/subtitle.txt ]; then - subtitle=`cat $booke/subtitle.txt` +if [ -r $bookedir/subtitle.txt ]; then + subtitle=`cat $bookedir/subtitle.txt` fi -if [ -r $booke/intro.txt ]; then - intro=`cat $booke/intro.txt` +if [ -r $bookedir/intro.txt ]; then + intro=`cat $bookedir/intro.txt` +fi + +if [ -n "$2" ]; then + title="${title/-.*$//} ($2)" + subtitle="${subtitle} ($2)" fi mkdir -p $webdir sed -e "s/@BUILD@/$buildno/" -e "s/@SUBTITLE@/$subtitle/" \ - -e "s/@INTRO@/$intro/" -e "s/@BOOK@/$1/" dottes.html.header > $webdir/$output + -e "s/@TITLE@/$title/" -e "s/@INTRO@/$intro/" \ + -e "s/@BOOK@/$booke/" dottes.html.header > $webdir/$output -cp $1-*.pdf $webdir +# Copy in the book PDFs. Like the graphics, Midi etc. these are assumed +# to be already generated. +cp $-*.pdf $webdir # Now, for each tune, make the tune graphic and sound. -find $booke -name "*.abc" | sort | +find $bookedir -name "*.abc" | sort | while read filename do title=`$dir/abcfield.py --field T --html $filename` @@ -46,14 +56,14 @@ # And copy the ABC. cp $filename $webdir - echo "" >> $webdir/$output - echo "" >> $webdir/$output - echo "" >> $webdir/$output - echo "" >> $webdir/$output - echo "" >> $webdir/$output - echo "" >> $webdir/$output - echo "" >> $webdir/$output - echo "" >> $webdir/$output + # Generate the tune web page. + tunepage=${name}.html + + sed -e "s/@TITLE@/${title}/" \ + -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage + + sed -e "s/@TITLE@/${title}/" \ + -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output done cat dottes.html.footer >> $webdir/$output diff -r 5b4c478142e1 -r 8f352063f277 makeWebItems.sh --- a/makeWebItems.sh Sat Feb 16 23:23:50 2013 +0000 +++ b/makeWebItems.sh Sun Feb 17 00:27:07 2013 +0000 @@ -25,12 +25,14 @@ name=`basename $filename .abc` tmpname=${name}.tmp convert -density 96 $graphicsdir/${name}.eps $builddir/${tmpname}.png + convert -density 96 $graphicsdir/firstline-${name}.eps $builddir/firstline-${tmpname}.png abc2midi $filename -o $builddir/${tmpname}.mid timidity -Ow -o $builddir/${tmpname}.wav $builddir/${tmpname}.mid lame --quiet $builddir/${tmpname}.wav $builddir/${tmpname}.mp3 mv $builddir/${tmpname}.png $builddir/${name}.png + mv $builddir/firstline-${tmpname}.png $builddir/firstline-${name}.png mv $builddir/${tmpname}.mid $builddir/${name}.mid mv $builddir/${tmpname}.mp3 $builddir/${name}.mp3 rm $builddir/${tmpname}.wav diff -r 5b4c478142e1 -r 8f352063f277 web/css/dottes.css --- a/web/css/dottes.css Sat Feb 16 23:23:50 2013 +0000 +++ b/web/css/dottes.css Sun Feb 17 00:27:07 2013 +0000 @@ -90,6 +90,17 @@ { } +table.dottes-tune-table +{ + padding: 10px; + margin: 10px; +} + +table.dottes-tune-table td +{ + vertical-align: middle; +} + ul.tune-type-list { list-style-type: none; @@ -100,3 +111,14 @@ { display: inline; } + +ul.tune-data-list +{ + list-style-type: none; + margin: 20px; +} + +ul.tune-data-list li +{ + display: inline; +}
@TITLE@@TITLE@ first line
${title}PNGPDFMIDIMP3ABC