3 if [ -n "`type -t $W3M_PATH`" ]
6 ARGS="-T text/html -dump"
7 elif [ -n "`type -t $LYNX_PATH`" ]
10 ARGS="-force_html -dump -nolist -width=72"
11 elif [ -n "`type -t $LINKS_PATH`" ]
16 echo >&2 "No way to convert HTML to text found."
17 echo >&2 "Try either installing text web browser(lynx/w3m/links) or use option --with-fop"
23 if [ "$VERBOSE" -ge 1 ]
25 echo >&2 "Convert to HTML (no chunks)"
27 echo "http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"
30 if [ "$VERBOSE" -ge 1 ]
32 echo >&2 "Convert HTML to ASCII"
34 ${CONVERT} ${ARGS} ${POSTARGS} "${XSLT_PROCESSED}" > \
35 "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").txt"
42 if [ "$VERBOSE" -ge 1 ]
44 echo >&2 "Convert to XSL-FO"
46 echo "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"
50 if [ "$VERBOSE" -ge 1 ]
52 echo >&2 "Convert to ${EXT}"
54 # Get the FO format script to do the rest
55 sh "$(dirname "$0")/../fo/${EXT}" "$1"