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.
This commit is contained in:
Jim Hague 2013-02-18 22:37:46 +00:00
parent d1c4ec0c59
commit e705f35e5e
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ find $bookedir -name "*.abc" | sort |
title=`$dir/abcfield.py --field T --html $filename` title=`$dir/abcfield.py --field T --html $filename`
name=`basename $filename .abc` 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. # Copy tune PDF from common graphics.
cp $graphicsdir/${name}.pdf $webdir cp $graphicsdir/${name}.pdf $webdir