[imp] Re: wvHtml
Brent J. Nordquist
bjn@horde.org
Tue, 17 Oct 2000 14:11:35 -0500 (CDT)
On Tue, 17 Oct 2000, Xavier Poirier <xpoirier@ch-bourg01.fr> wrote:
> The syntax of the command wvHtml is "wvhtml <file .doc in entry>
> <file .htm in output>" that's OK no ? so ..
I just remembered we discussed this idea already... so I went digging and
found the attached from July. I regret I still don't have time to work on
this... so as I did in July, I'm asking: will someone volunteer to create
a patch? :-)
--
Brent J. Nordquist <bjn@horde.org>
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942
---------- Forwarded message ----------
Date: Thu, 6 Jul 2000 22:02:41 -0500 (CDT)
From: Brent J. Nordquist <brent-nordquist@bethel.edu>
Sender: imp-bounce@lists.horde.org
X-Sender: bjn@kepler.acs.bethel.edu
Reply-To: imp@lists.horde.org
To: imp@lists.horde.org
Subject: [imp] Re: Pb MS Word View and imp.2.2.0-pre13
[...]
This has been discussed at least twice already in the past few weeks.
The biggest problem is that all the different versions (and names) of
mswordview need a different command-line; some like 0.4.14 can only
generate foo.doc.html from foo.doc (no way to change the name), others can
use "-o -" to generate to stdout, still others can't, etc. etc.
If this is going to work out-of-the-box, someone needs to take all the
versions of mswordview, figure out one method that works for all of them,
and post some code. I think the strategy most likely to succeed is to see
if every version will generate foo.doc.html if given foo.doc as the single
argument. If that works for all of them, then you could create two files
in /tmp, use fopen and echo to serve up the html, and delete them both.
See imp/lib/mimetypes.lib, the mime_view_msword() function which currently
uses popen() and mswordview to stdout, which won't work on older versions.
I wish I had time to do this, but I don't. The consensus in dev was that
we weren't going to do anything with this before 2.3, but we've seen this
come up often enough already that I think I'm changing my mind. But it
should work with 0.4.14, 0.5.16, and the modern wv or we'll still get bug
reports.
Volunteers? :-)
--
Brent J. Nordquist <brent-nordquist@bethel.edu>
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942
--
IMP mailing list: http://horde.org/imp/
Frequently Asked Questions: http://faq.horde.org/
For list commands, email imp-request@lists.horde.org