It's easier to just use antiword by hand when uncoconv is not available.
Unified · Split
| @@ -119,14 +119,9 @@ case $type in · 118 unmodified lines | |||
| 119 | conv='pandoc -r html - -w epub2 -o "$casp"' | 119 | conv='pandoc -r html - -w epub2 -o "$casp"' |
| 120 | ;; | 120 | ;; |
| 121 | word) | 121 | word) |
| 122 | if executable_p unoconv && test -z "${dc-}"; then | 122 | missing unoconv "unoconv" |
| 123 | filt= | 123 | filt= |
| 124 | conv='unoconv -o "$casp" "$1"' | 124 | conv='unoconv -o "$casp" "$1"' |
| 125 | else | ||
| 126 | missing antiword "antiword or unoconv" | ||
| 127 | caspsuf=".html" | ||
| 128 | conv='{ echo "<pre>"; antiword -m UTF-8.txt -f -; } >"$casp"' | ||
| 129 | fi | ||
| 130 | ;; | 125 | ;; |
| 131 | uno) | 126 | uno) |
| 132 | test -n "$dc" && die "cannot convert compressed '$mime'" | 127 | test -n "$dc" && die "cannot convert compressed '$mime'" |