Mercurial > dottes
comparison makeWeb.sh @ 359:2a7d03d6a89f
Use txt2tags to format intro text.
That way we can include basic markup in the into text and use it in
both LaTeX and HTML.
Take advantage of this to expand the wording of the intro text in all
books.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 21 Aug 2013 10:28:10 +0100 |
parents | 27f29e8aafea |
children | 01ded8741361 |
comparison
equal
deleted
inserted
replaced
358:357244e2939d | 359:2a7d03d6a89f |
---|---|
36 intro= | 36 intro= |
37 if [ -r $bookedir/subtitle.txt ]; then | 37 if [ -r $bookedir/subtitle.txt ]; then |
38 subtitle=`cat $bookedir/subtitle.txt` | 38 subtitle=`cat $bookedir/subtitle.txt` |
39 fi | 39 fi |
40 if [ -r $bookedir/intro.txt ]; then | 40 if [ -r $bookedir/intro.txt ]; then |
41 intro=`cat $bookedir/intro.txt` | 41 intro=`txt2tags --no-headers --target=html --outfile=- $bookedir/intro.txt` |
42 fi | 42 fi |
43 | 43 |
44 if [ -n "$instrument" ]; then | 44 if [ -n "$instrument" ]; then |
45 title="${title} ($instrument)" | 45 title="${title} ($instrument)" |
46 subtitle="${subtitle} ($instrument)" | 46 subtitle="${subtitle} ($instrument)" |