From feab399109becde9bb3b00114caf34fdbf128271 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 19 Aug 2018 17:00:49 +0300 Subject: [PATCH] Ticket #3929: mc.ext: improve recognition of MS Office formats. Signed-off-by: Andrew Borodin --- misc/mc.ext.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misc/mc.ext.in b/misc/mc.ext.in index 82150b946..9aa77234d 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -607,7 +607,7 @@ shell/i/.gnumeric Open=@EXTHELPERSDIR@/doc.sh open gnumeric # Microsoft Word Document -regex/i/\.(do[ct]|wri)$ +regex/i/\.(do[ct]|wri|docx)$ Open=@EXTHELPERSDIR@/doc.sh open msdoc View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc type/^Microsoft\ Word @@ -626,13 +626,16 @@ type/^Microsoft\ Excel Open=@EXTHELPERSDIR@/doc.sh open msxls View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls -regex/i/\.(ppt|pps)$ +# Microsoft PowerPoint Presentation +regex/i/\.(pp[ts]|pptx)$ Open=@EXTHELPERSDIR@/doc.sh open msppt View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt -# Use OpenOffice.org to open any MS Office documents +# Use OpenOffice.org/LibreOffice to open any MS Office documents type/^Microsoft\ Office\ Document Open=@EXTHELPERSDIR@/doc.sh open ooffice +type/^Microsoft\ OOXML + Open=@EXTHELPERSDIR@/doc.sh open ooffice # Framemaker type/^FrameMaker