Mercurial > dottes
diff makeWeb.sh @ 319:cbe9c10b5a3e
Render tune title, subtitle and composer in Latex/HTML and not in the image.
This way the titles remains a constant size even if the image needs to be scaled.
And we have that text appearance under our control.
I can't find a way of switching off the tune title in abcm2ps, and have worked around
by setting the title format to Y0. Y is not a defined ABC header and is not found in
any Dottes tune.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 16 Jul 2013 16:35:07 +0100 |
parents | 07e9fa311c6f |
children | b61c39beac5f |
line wrap: on
line diff
--- a/makeWeb.sh Tue Jul 16 16:27:49 2013 +0100 +++ b/makeWeb.sh Tue Jul 16 16:35:07 2013 +0100 @@ -65,6 +65,8 @@ title=`$dir/abcfield.py --field T --html $filename` fixtitle "$title" title=$retval + subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename` + composer=`$dir/abcfield.py --field C --latex $filename` changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` changetitle="" changevisibility="no" @@ -88,6 +90,8 @@ # If the title contains HTML character entities, escape # initial '&' in the title - it means things to sed. sed -e "s/@TITLE@/${title//&/\&}/" \ + -e "s/@SUBTITLE@/${subtitle}/" \ + -e "s/@COMPOSER@/${composer}/" \ -e "s/@MASTERBOOKE@/${masterbooke}/" \ -e "s/@CHANGETITLE@/${changetitle//&/\&}/" \ -e "s/@CHANGETUNE@/${changefile/.abc/.html}/" \