Mercurial > dottes
comparison makeBooke.sh @ 110:a63e39fc3410
Add basic diacritic handling for LaTeX and web.
It would be nice if everyone used UTF-8, but it doesn't look like that
works at present.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Thu, 15 Mar 2012 14:32:53 +0000 |
parents | 6ac6c797586d |
children | c4efe8b5eea1 |
comparison
equal
deleted
inserted
replaced
109:7cc689f59710 | 110:a63e39fc3410 |
---|---|
40 # Now, for each tune, make the tune graphic and add it, inside a | 40 # Now, for each tune, make the tune graphic and add it, inside a |
41 # centre section, so the document. Then add a TOC entry. | 41 # centre section, so the document. Then add a TOC entry. |
42 find $booke -name "*.abc" | sort | | 42 find $booke -name "*.abc" | sort | |
43 while read filename | 43 while read filename |
44 do | 44 do |
45 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` | 45 title=`$dir/abctitle.py --latex $filename` |
46 name=`basename $filename .abc` | 46 name=`basename $filename .abc` |
47 echo -E "\begin{center}" >> $builddir/$output | 47 echo -E "\begin{center}" >> $builddir/$output |
48 echo -E "\includegraphics[width=\textwidth]{$graphicsdir/$name}" >> $builddir/$output | 48 echo -E "\includegraphics[width=\textwidth]{$graphicsdir/$name}" >> $builddir/$output |
49 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output | 49 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output |
50 echo -E "\end{center}" >> $builddir/$output | 50 echo -E "\end{center}" >> $builddir/$output |
53 cat dottes.tex.firstlines >> $builddir/$output | 53 cat dottes.tex.firstlines >> $builddir/$output |
54 | 54 |
55 find $booke -name "*.abc" | sort | | 55 find $booke -name "*.abc" | sort | |
56 while read filename | 56 while read filename |
57 do | 57 do |
58 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` | 58 title=`$dir/abctitle.py --latex $filename` |
59 name=`basename $filename .abc` | 59 name=`basename $filename .abc` |
60 echo -E "$title & \raisebox{-.25\height}{\includegraphics[width=0.6\textwidth]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output | 60 echo -E "$title & \raisebox{-.25\height}{\includegraphics[width=0.6\textwidth]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output |
61 done | 61 done |
62 | 62 |
63 cat dottes.tex.footer >> $builddir/$output | 63 cat dottes.tex.footer >> $builddir/$output |