diff makeWeb.sh @ 212:9502f4883006

When listing titles for web, straighten out ones of the form 'Something, The'. Basically anything with a ', <first>' has than removed and the first prepended.
author Jim Hague <jim.hague@laicatc.com>
date Mon, 18 Feb 2013 22:37:46 +0000
parents 540511b14c73
children a8a46fd79d5c
line wrap: on
line diff
--- a/makeWeb.sh	Mon Feb 18 22:06:17 2013 +0000
+++ b/makeWeb.sh	Mon Feb 18 22:37:46 2013 +0000
@@ -50,6 +50,10 @@
         title=`$dir/abcfield.py --field T --html $filename`
         name=`basename $filename .abc`
 
+        # Restore titles like 'Exploding Potato, The' to the
+        # expected 'The Exploding Potato'.
+        title=`echo $title | sed -e "s/\(.*\), *\(.*\)/\2 \1/"`
+
         # Copy tune PDF from common graphics.
         cp $graphicsdir/${name}.pdf $webdir