diff 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
line wrap: on
line diff
--- a/makeBooke.sh	Wed Mar 14 15:56:48 2012 +0000
+++ b/makeBooke.sh	Thu Mar 15 14:32:53 2012 +0000
@@ -42,7 +42,7 @@
 find $booke -name "*.abc" | sort |
     while read filename
     do
-        title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
+        title=`$dir/abctitle.py --latex $filename`
         name=`basename $filename .abc`
         echo -E "\begin{center}" >> $builddir/$output
         echo -E "\includegraphics[width=\textwidth]{$graphicsdir/$name}" >> $builddir/$output
@@ -55,7 +55,7 @@
 find $booke -name "*.abc" | sort |
     while read filename
     do
-        title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
+        title=`$dir/abctitle.py --latex $filename`
         name=`basename $filename .abc`
         echo -E "$title & \raisebox{-.25\height}{\includegraphics[width=0.6\textwidth]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output
     done