From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: viewing docx files Date: Sat, 28 Jan 2017 17:07:57 +0100 Message-ID: <20170128160757.GA13233@tuxteam.de> References: <159e5b8b2e0.2800.9343beaceee5adfd5722805b7ce72987@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1485619724 28202 195.159.176.226 (28 Jan 2017 16:08:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2017 16:08:44 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 28 17:08:40 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXVYD-0006CS-BD for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 17:08:29 +0100 Original-Received: from localhost ([::1]:52338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXVYI-0000tM-Oj for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 11:08:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXVXp-0000t5-1z for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 11:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXVXl-0006Ec-2H for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 11:08:05 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:58501 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXVXk-0006EW-Rt for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 11:08:00 -0500 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1cXVXh-0003VX-3L for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 17:07:57 +0100 In-Reply-To: <159e5b8b2e0.2800.9343beaceee5adfd5722805b7ce72987@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112186 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Jan 28, 2017 at 09:36:44AM -0600, Devin Prater wrote: > Hi all. I'm running Gnu-Emacs (latest brew install emacs version) on > MacOS Sierra. I run Emacs in the terminal, and use the Emacspeak > package for access, since I am blind. I received an email (gnews), > with an attachment, two docx files for reading. I was able to > download the attachments to my ~/ directory. I opened the file (c-x > c-f then tab completion), but it opened in the archive viewer. I've > read online that there is a DocViewer, but I cannot get Emacs to > open the files in that doc viewer. > Using PanDoc in a shell, I was able to convert the docx file to a > usable HTML file, but if there's a way to natively view these types > of files, I'd be saving a lot of time. > Thanks for any help. There is a DocView mode (cf. https://www.emacswiki.org/emacs/DocViewMode), but it passes through PostScript (via GhostScript), in your case through unoconv. The postscript seems to include the (plain) text, since it supports text searching. All in all, your approach with pandoc might prove superior for your use case. Perhaps a little automation. There is an Emacs pandoc-mode, but alas, I haven't any experience with that. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAliMwd0ACgkQBcgs9XrR2kasswCaA/I1zkn7LqGbdfo/k4LHw3EV VP4AnRoha2WuRwokuN3F4bIXNaaBJ5jc =mCW+ -----END PGP SIGNATURE-----