Ticket #311: 07_add_antiword.patch

File 07_add_antiword.patch, 671 bytes (added by winnie, 15 years ago)

also use antiword for opening .doc files

  • lib/mc.ext.in

    diff --git a/lib/mc.ext.in b/lib/mc.ext.in
    index 6335b69..9e95b74 100644
    a b shell/.abw 
    464464# Microsoft Word Document 
    465465regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$ 
    466466        Open=(abiword %f >/dev/null 2>&1 &) 
    467         View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f 
     467        View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f 
    468468type/^Microsoft\ Word 
    469469        Open=(abiword %f >/dev/null 2>&1 &) 
    470         View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f 
     470        View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f 
    471471 
    472472# RTF document 
    473473regex/\.([rR][tT][fF])$