Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 318:77372a0166fe | 319:cbe9c10b5a3e |
|---|---|
| 63 name=`basename $filename .abc` | 63 name=`basename $filename .abc` |
| 64 | 64 |
| 65 title=`$dir/abcfield.py --field T --html $filename` | 65 title=`$dir/abcfield.py --field T --html $filename` |
| 66 fixtitle "$title" | 66 fixtitle "$title" |
| 67 title=$retval | 67 title=$retval |
| 68 subtitle=`$dir/abcfield.py --index 2 --field T --latex $filename` | |
| 69 composer=`$dir/abcfield.py --field C --latex $filename` | |
| 68 changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` | 70 changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` |
| 69 changetitle="" | 71 changetitle="" |
| 70 changevisibility="no" | 72 changevisibility="no" |
| 71 if [ -n "$changefile" ]; then | 73 if [ -n "$changefile" ]; then |
| 72 changetitle=`$dir/abcfield.py --field T --html $bookedir/$changefile` | 74 changetitle=`$dir/abcfield.py --field T --html $bookedir/$changefile` |
| 86 tunepage=${name}.html | 88 tunepage=${name}.html |
| 87 | 89 |
| 88 # If the title contains HTML character entities, escape | 90 # If the title contains HTML character entities, escape |
| 89 # initial '&' in the title - it means things to sed. | 91 # initial '&' in the title - it means things to sed. |
| 90 sed -e "s/@TITLE@/${title//&/\&}/" \ | 92 sed -e "s/@TITLE@/${title//&/\&}/" \ |
| 93 -e "s/@SUBTITLE@/${subtitle}/" \ | |
| 94 -e "s/@COMPOSER@/${composer}/" \ | |
| 91 -e "s/@MASTERBOOKE@/${masterbooke}/" \ | 95 -e "s/@MASTERBOOKE@/${masterbooke}/" \ |
| 92 -e "s/@CHANGETITLE@/${changetitle//&/\&}/" \ | 96 -e "s/@CHANGETITLE@/${changetitle//&/\&}/" \ |
| 93 -e "s/@CHANGETUNE@/${changefile/.abc/.html}/" \ | 97 -e "s/@CHANGETUNE@/${changefile/.abc/.html}/" \ |
| 94 -e "s/@CHANGEVISIBILITY@/${changevisibility}/" \ | 98 -e "s/@CHANGEVISIBILITY@/${changevisibility}/" \ |
| 95 -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage | 99 -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage |
