From e705f35e5e1148e5a4fbe3bbdb2e12ee881d25b9 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Mon, 18 Feb 2013 22:37:46 +0000 Subject: [PATCH] When listing titles for web, straighten out ones of the form 'Something, The'. Basically anything with a ', ' has than removed and the first prepended. --- makeWeb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makeWeb.sh b/makeWeb.sh index a108da7..af6e038 100755 --- a/makeWeb.sh +++ b/makeWeb.sh @@ -50,6 +50,10 @@ find $bookedir -name "*.abc" | sort | 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