Mercurial > dottes
changeset 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 | 9da75d87e93b |
children | 8e6105d2bf59 |
files | makeWeb.sh |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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