From 4d3abe74035d7d3c2c5d6927cc0cbb9032486b30 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 31 Aug 2012 15:12:31 +0200 Subject: Add tidying scripts. --- report/mkmd.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 report/mkmd.sh (limited to 'report/mkmd.sh') diff --git a/report/mkmd.sh b/report/mkmd.sh new file mode 100755 index 0000000..39ec83d --- /dev/null +++ b/report/mkmd.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +#stem="Greens-IslandsofResiliences" +stem="Greens-IslandsofResilience" + +pdftohtml -q -c -s -i -noframes -stdout "$stem.pdf" tmp + +infile=tmp.html + +outfile="${2:-$(basename "$infile" .html).md}" + +#perl ./normalize-html.pl tmp.html | less +perl ./normalize-html.pl tmp.html \ + |pandoc --normalize --no-wrap --parse-raw -f html -t markdown -o "$stem.md" + +pandoc --standalone --toc -f markdown -t html5 -i "$stem.md" -o "$stem.html" -- cgit v1.2.3