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