LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File _service:download_src_package:mc-word_docs.patch of Package mc (Project home:eo4iwc:openSUSE11.3)

--- lib/mc.ext.in
+++ lib/mc.ext.in
@@ -452,12 +452,17 @@
 	Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
 
 # Microsoft Word Document
-regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
+type/^Microsoft\ Office\ Document
 	Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
-	View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
+        View=%view{ascii} wvText %f - || strings %f
+
 type/^Microsoft\ Word
 	Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (ooffice %f >/dev/null 2>&1 &); fi >/dev/null
-	View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
+        View=%view{ascii} wvText %f - || strings %f
+
+regex/\.([Dd]ot|DOT|[Ww]ri|WRI)$
+	Open=if which abiword ; then (abiword %f >/dev/null 2>&1 &); else (OOo %f >/dev/null 2>&1 &); fi >/dev/null
+        View=%view{ascii} wvText %f - || strings %f
 
 # RTF document
 regex/\.([rR][tT][fF])$