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 | 119 | conv='pandoc -r html - -w epub2 -o "$casp"' |
| 120 | 120 | ;; |
| 121 | 121 | word) |
| 122 | − if executable_p unoconv && test -z "${dc-}"; then | |
| 123 | − filt= | |
| 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 | |
| 122 | + missing unoconv "unoconv" | |
| 123 | + filt= | |
| 124 | + conv='unoconv -o "$casp" "$1"' | |
| 130 | 125 | ;; |
| 131 | 126 | uno) |
| 132 | 127 | test -n "$dc" && die "cannot convert compressed '$mime'" |