forked from CryHavoc/dottes
Automated merge with ssh://hg.cryhavoc.org.uk/dottes
This commit is contained in:
commit
31d9ec38c9
19
dottes.tex
19
dottes.tex
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
bookmarks=true,%
|
|
||||||
colorlinks=true,%
|
colorlinks=true,%
|
||||||
citecolor=black,%
|
citecolor=black,%
|
||||||
filecolor=black,%
|
filecolor=black,%
|
||||||
|
@ -180,8 +179,6 @@ Havoc musicians come in all shades of experience and ability.
|
||||||
This collection is intended to help those like me who are inexpert with
|
This collection is intended to help those like me who are inexpert with
|
||||||
instrument and folk music generally, but have a little musical background.
|
instrument and folk music generally, but have a little musical background.
|
||||||
|
|
||||||
\input{intro.tex}
|
|
||||||
|
|
||||||
Being folk tunes, many of the tunes herein have many variations.
|
Being folk tunes, many of the tunes herein have many variations.
|
||||||
The music presented here is my attempt at reflecting what the musicians
|
The music presented here is my attempt at reflecting what the musicians
|
||||||
of Cry Havoc play. I'm in no way suggesting that they are
|
of Cry Havoc play. I'm in no way suggesting that they are
|
||||||
|
@ -220,17 +217,7 @@ anniversary in 2013.
|
||||||
|
|
||||||
\mainmatter
|
\mainmatter
|
||||||
|
|
||||||
\addcontentsline{toc}{chapter}{Tunes}
|
|
||||||
|
|
||||||
{
|
|
||||||
\newcolumntype{L}{p{0.25\textwidth}}%
|
|
||||||
\newcolumntype{R}{>{\raggedleft\arraybackslash}p{0.25\textwidth}}%
|
|
||||||
\newcolumntype{C}{>{\centering\arraybackslash}X}%
|
|
||||||
\renewcommand{\tabularxcolumn}[1]{m{#1}}%
|
|
||||||
\renewcommand{\tabcolsep}{0pt}
|
|
||||||
|
|
||||||
\input{tunes.tex}
|
\input{tunes.tex}
|
||||||
}
|
|
||||||
|
|
||||||
% -----
|
% -----
|
||||||
|
|
||||||
|
@ -242,13 +229,7 @@ You know the feeling. Everyone has just launched into a well-loved tune.
|
||||||
You've heard it before, but don't remember the name. So here's a list of
|
You've heard it before, but don't remember the name. So here's a list of
|
||||||
tune first lines to help you figure out what it is in time to join in.
|
tune first lines to help you figure out what it is in time to join in.
|
||||||
|
|
||||||
{\renewcommand{\arraystretch}{2.5}
|
|
||||||
\setlength\LTleft{0pt}
|
|
||||||
\setlength\LTright{\fill}
|
|
||||||
\begin{longtable}{@{}>{\raggedright\arraybackslash}m{0.2\textwidth}r@{}}
|
|
||||||
\input{firstlines.tex}
|
\input{firstlines.tex}
|
||||||
\end{longtable}
|
|
||||||
}
|
|
||||||
|
|
||||||
% ----- Back cover page. A plain purple page.
|
% ----- Back cover page. A plain purple page.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
\section{@SECTION@ tunes}
|
||||||
|
|
||||||
|
{\renewcommand{\arraystretch}{2.5}
|
||||||
|
\setlength\LTleft{0pt}
|
||||||
|
\setlength\LTright{\fill}
|
||||||
|
\begin{longtable}{@{}>{\raggedright\arraybackslash}m{0.2\textwidth}r@{}}
|
||||||
|
\input{@SECTION@-firstlines.tex}
|
||||||
|
\end{longtable}
|
||||||
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
% ----- Tunes and intro page for a section.
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
|
\addcontentsline{toc}{chapter}{@SECTION@ tunes}
|
||||||
|
|
||||||
|
\vspace*{\fill}
|
||||||
|
|
||||||
|
\begin{center}
|
||||||
|
{\Huge \input{@SECTION@-title.txt}}\\[\baselineskip]
|
||||||
|
{\Large \input{@SECTION@-subtitle.txt}}
|
||||||
|
\end{center}
|
||||||
|
|
||||||
|
\vspace*{\fill}
|
||||||
|
|
||||||
|
\input{@SECTION@-intro.tex}
|
||||||
|
|
||||||
|
\newpage
|
||||||
|
|
||||||
|
{
|
||||||
|
\newcolumntype{L}{p{0.25\textwidth}}%
|
||||||
|
\newcolumntype{R}{>{\raggedleft\arraybackslash}p{0.25\textwidth}}%
|
||||||
|
\newcolumntype{C}{>{\centering\arraybackslash}X}%
|
||||||
|
\renewcommand{\tabularxcolumn}[1]{m{#1}}%
|
||||||
|
\renewcommand{\tabcolsep}{0pt}
|
||||||
|
|
||||||
|
\input{@SECTION@-tunes.tex}
|
||||||
|
}
|
12
makeAll.sh
12
makeAll.sh
|
@ -11,10 +11,10 @@ makeABooke()
|
||||||
{
|
{
|
||||||
./makeGraphics.sh "$1"
|
./makeGraphics.sh "$1"
|
||||||
./makeBookeTunePages.sh "$1"
|
./makeBookeTunePages.sh "$1"
|
||||||
./makeBooke.sh "$1" A4
|
./makeBooke.sh A4 "$1"
|
||||||
./makeBooke.sh "$1" A5
|
./makeBooke.sh A4 "$1"
|
||||||
./makeBooklet.sh "$1"
|
./makeBooklet.sh "$1"
|
||||||
./makeBooke.sh "$1" Nook
|
./makeBooke.sh Nook "$1"
|
||||||
./makeWebGraphics.sh "$1"
|
./makeWebGraphics.sh "$1"
|
||||||
./makeWebAudio.sh "$1"
|
./makeWebAudio.sh "$1"
|
||||||
./makeWeb.sh "$1" "$1" "$2"
|
./makeWeb.sh "$1" "$1" "$2"
|
||||||
|
@ -24,10 +24,10 @@ makeATransposedBooke()
|
||||||
{
|
{
|
||||||
./makeGraphics.sh "$1"
|
./makeGraphics.sh "$1"
|
||||||
./makeBookeTunePages.sh "$1"
|
./makeBookeTunePages.sh "$1"
|
||||||
./makeBooke.sh "$1" A4
|
./makeBooke.sh A4 "$1"
|
||||||
./makeBooke.sh "$1" A5
|
./makeBooke.sh A5 "$1"
|
||||||
./makeBooklet.sh "$1"
|
./makeBooklet.sh "$1"
|
||||||
./makeBooke.sh "$1" Nook
|
./makeBooke.sh Nook "$1"
|
||||||
./makeWebGraphics.sh "$1"
|
./makeWebGraphics.sh "$1"
|
||||||
./makeWeb.sh "$1" "$2" "$3"
|
./makeWeb.sh "$1" "$2" "$3"
|
||||||
}
|
}
|
||||||
|
|
68
makeBooke.sh
68
makeBooke.sh
|
@ -7,43 +7,81 @@
|
||||||
# makeBookeTunePages.sh.
|
# makeBookeTunePages.sh.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $# != 2 ]; then
|
if [ $# -lt 2 ]; then
|
||||||
echo "Usage: makeBooke.sh <book dir name> <A4|A5>"
|
echo "Usage: makeBooke.sh <A4|A5> <book dir name> [<book dir name>...]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dir=`pwd`
|
dir=`pwd`
|
||||||
|
|
||||||
booke=$dir/$1
|
|
||||||
papersize=$2
|
|
||||||
builddir=$dir/build
|
builddir=$dir/build
|
||||||
booketex=$dir/dottes.tex
|
booketex=$builddir/dottes.tex
|
||||||
bookepdf=$builddir/dottes.pdf
|
bookepdf=$builddir/dottes.pdf
|
||||||
|
|
||||||
|
papersize=$1
|
||||||
|
shift
|
||||||
|
|
||||||
mkdir -p $builddir
|
mkdir -p $builddir
|
||||||
|
|
||||||
cp dottes.tex $builddir
|
if [ $# -eq 1 ]; then
|
||||||
cp buildno.txt $builddir
|
bookename=$1
|
||||||
cp buzzard.pdf $builddir
|
|
||||||
for item in title subtitle instrument
|
for item in title subtitle instrument
|
||||||
do
|
do
|
||||||
rm -f $builddir/$item.txt
|
rm -f $builddir/$item.txt
|
||||||
if [ -r $booke/$item.txt ]; then
|
if [ -r $1/$item.txt ]; then
|
||||||
cp $booke/$item.txt $builddir
|
cp $dir/$1/$item.txt $builddir/$item.txt
|
||||||
else
|
else
|
||||||
touch $builddir/$item.txt
|
touch $builddir/$item.txt
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
bookename="BumperBooke"
|
||||||
|
echo "The Bumper Booke" > $builddir/title.txt
|
||||||
|
echo "The collected Bookes of Bottes" > $builddir/subtitle.txt
|
||||||
|
rm -f $builddir/instrument.txt
|
||||||
|
if [ -r $1/instrument.txt ]; then
|
||||||
|
cp $1/instrument.txt $builddir/instrument.txt
|
||||||
|
else
|
||||||
|
touch $builddir/instrument.txt
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp dottes.tex $builddir
|
||||||
|
cp buildno.txt $builddir
|
||||||
|
cp buzzard.pdf $builddir
|
||||||
|
|
||||||
|
rm -f $builddir/tunes.tex
|
||||||
|
rm -f $builddir/firstlines.tex
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]
|
||||||
|
do
|
||||||
|
section=$dir/$1
|
||||||
|
|
||||||
|
for item in title subtitle instrument
|
||||||
|
do
|
||||||
|
rm -f $builddir/$1-$item.txt
|
||||||
|
if [ -r $section/$item.txt ]; then
|
||||||
|
cp $section/$item.txt $builddir/$1-$item.txt
|
||||||
|
else
|
||||||
|
touch $builddir/$1-$item.txt
|
||||||
|
fi
|
||||||
|
done
|
||||||
for item in intro
|
for item in intro
|
||||||
do
|
do
|
||||||
rm -f $builddir/$item.tex
|
rm -f $builddir/$1-$item.tex
|
||||||
if [ -r $booke/$item.md ]; then
|
if [ -r $section/$item.md ]; then
|
||||||
pandoc --from=markdown --to=latex --output=$builddir/$item.tex $booke/$item.md
|
pandoc --from=markdown --to=latex --output=$builddir/$1-$item.tex $section/$item.md
|
||||||
else
|
else
|
||||||
touch $builddir/$item.tex
|
touch $builddir/$1-$item.tex
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sed -e "s/@SECTION@/$1/" dottes.tex.section-tunes >> $builddir/tunes.tex
|
||||||
|
sed -e "s/@SECTION@/$1/" dottes.tex.section-firstlines >> $builddir/firstlines.tex
|
||||||
|
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
for filename in $dir/*.${papersize}.tex
|
for filename in $dir/*.${papersize}.tex
|
||||||
do
|
do
|
||||||
name=`basename $filename .${papersize}.tex`
|
name=`basename $filename .${papersize}.tex`
|
||||||
|
@ -56,6 +94,6 @@ xelatex $booketex
|
||||||
xelatex $booketex
|
xelatex $booketex
|
||||||
xelatex $booketex
|
xelatex $booketex
|
||||||
|
|
||||||
mv $bookepdf $dir/$1-${papersize}.pdf
|
mv $bookepdf $dir/$bookename-${papersize}.pdf
|
||||||
|
|
||||||
cd $dir
|
cd $dir
|
||||||
|
|
|
@ -18,8 +18,8 @@ dir=`pwd`
|
||||||
booke=$dir/$1
|
booke=$dir/$1
|
||||||
builddir=$dir/build
|
builddir=$dir/build
|
||||||
graphicsdir=$dir/graphics/$1
|
graphicsdir=$dir/graphics/$1
|
||||||
tunesoutput=$builddir/tunes.tex
|
tunesoutput=$builddir/$1-tunes.tex
|
||||||
indexoutput=$builddir/firstlines.tex
|
indexoutput=$builddir/$1-firstlines.tex
|
||||||
|
|
||||||
mkdir -p $builddir
|
mkdir -p $builddir
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue