[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: viewing docx files
From: |
Tomas Nordin |
Subject: |
Re: viewing docx files |
Date: |
Sun, 29 Jan 2017 23:30:03 +0100 |
Devin Prater <r.d.t.prater@gmail.com> writes:
> 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
I wonder if you would like to eval and try this:
(defun docx2html (file)
"Convert FILE to html in a buffer and display it."
(interactive "f")
(let ((html-buffer (format "*%s --> html*" file)))
(call-process "pandoc" file html-buffer nil "--to=html")
(switch-to-buffer html-buffer))
)
After evaluation, say M-x docx2html and locate the docx file. See if it
works. It did not work for me but it seems to have to do with the
encoding of the characters in the test files I have. I mean, it works
such that I get the following message from pandoc in the new buffer:
pandoc: Cannot decode byte '\xb1': Data.Text.Encoding.Fusion.streamUtf8:
Invalid UTF-8 stream
Re: viewing docx files, Tomas Nordin, 2017/01/28
Re: viewing docx files,
Tomas Nordin <=
- Re: viewing docx files, Joost Kremers, 2017/01/29
- Re: viewing docx files, Jude DaShiell, 2017/01/30
- Re: viewing docx files, Yuri Khan, 2017/01/30
- Re: viewing docx files, Tomas Nordin, 2017/01/30
- Re: viewing docx files, Stefan Monnier, 2017/01/31
- Re: viewing docx files, Jude DaShiell, 2017/01/31
Re: viewing docx files, Tomas Nordin, 2017/01/30