updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / mc-suse / mc-word_docs.patch
blobefa230f4d8a0fdc71a74f4d720bc67d7423cc5d4
1 --- lib/mc.ext.in
2 +++ lib/mc.ext.in
3 @@ -449,12 +449,17 @@
4 Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
6 # Microsoft Word Document
7 -regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
8 +type/^Microsoft\ Office\ Document
9 Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
10 - View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
11 + View=%view{ascii} wvText %f - || strings %f
13 type/^Microsoft\ Word
14 Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
15 - View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
16 + View=%view{ascii} wvText %f - || strings %f
18 +regex/\.([Dd]ot|DOT|[Ww]ri|WRI)$
19 + Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null
20 + View=%view{ascii} wvText %f - || strings %f
22 # RTF document
23 regex/\.([rR][tT][fF])$