From: Oleg Broytman Date: Thu, 23 Jan 2014 18:57:48 +0000 (+0400) Subject: View .docx (OOXML) files using docx2txt X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c6b83daa40235e5781af235c106fb8a94c1135aa;p=dotfiles.git View .docx (OOXML) files using docx2txt --- diff --git a/.mailcap b/.mailcap index 53fffe0..2fe73fd 100644 --- a/.mailcap +++ b/.mailcap @@ -28,6 +28,7 @@ application/msword; doc2html2 %s; copiousoutput; description="M$ Word Text"; tes application/msword; catdoc %s; copiousoutput; description="M$ Word Text"; test=test -n "`which catdoc 2>/dev/null`" application/msword; wordview %s; description="M$ Word Text"; test=test -n "$DISPLAY" -a -n "`which wordview 2>/dev/null`" application/vnd.ms-excel; xls2csv %s; copiousoutput; description="M$ Excel files"; test=test -n "`which xls2csv 2>/dev/null`" +application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s -; copiousoutput; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" audio/mpeg; smplayer %s; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`which smplayer 2>/dev/null`" audio/mpeg; mplayer %s; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`which mplayer 2>/dev/null`" diff --git a/.mc/menu b/.mc/menu index 8d64ee5..2a1f447 100644 --- a/.mc/menu +++ b/.mc/menu @@ -65,6 +65,10 @@ e evince d catdoc catdoc %f | less ++= t r & f \.(docx|DOCX)$ +d docx2txt + docx2txt %f - | less + += t r & f \.(xls|XLS)$ x xls2csv xls2csv %f | less diff --git a/.mime.types b/.mime.types index bf28200..df30525 100644 --- a/.mime.types +++ b/.mime.types @@ -90,6 +90,7 @@ application/vnd.oasis.opendocument.text odt application/vnd.oasis.opendocument.text-master odm application/vnd.oasis.opendocument.text-template ott application/vnd.oasis.opendocument.text-web oth +application/vnd.openxmlformats-officedocument.wordprocessingml.document docx application/vnd.palm application/vnd.powerbuilder6 pbd application/vnd.powerbuilder6-s