Gnus development mailing list
 help / color / mirror / Atom feed
* mswordview?
@ 1999-10-08 20:34 Greg Stark
  1999-10-08 20:40 ` mswordview? Colin Rafferty
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Stark @ 1999-10-08 20:34 UTC (permalink / raw)



Before I start doing this does anyone have a viewer using mswordview to expand
word attachments into html and the run w3 on them?

-- 
greg



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mswordview?
  1999-10-08 20:34 mswordview? Greg Stark
@ 1999-10-08 20:40 ` Colin Rafferty
  1999-10-09  8:13   ` mswordview? Jonas Steverud
  0 siblings, 1 reply; 6+ messages in thread
From: Colin Rafferty @ 1999-10-08 20:40 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

Greg Stark writes:

> Before I start doing this does anyone have a viewer using mswordview to expand
> word attachments into html and the run w3 on them?

There is a thread on gnus.emacs.vm.info about the same question in
VM-land.  First, you will need a script to turn mswordview into a real 
filter.  This is what Kyle Jones wrote:

#!/bin/sh

trap 0 "rm -f /tmp/$$"
cat > /tmp/$$
mswordview /tmp/$$

Then, you need to hook it up the Gnus.  This is how you do in in VM,
and I imagine that Gnus has similar variables.


[-- Attachment #2: Type: message/rfc822, Size: 1549 bytes --]

From: kyle_jones@wonderworks.com (Kyle Jones)
Subject: more on mswordview
Date: Thu, 7 Oct 1999 12:02:14 -0700
Message-ID: <14332.60982.751958.952841@crystal.WonderWorks.COM>

Dave Bakhash writes:
 > has anyone actually gone through, from start to finish, making VM use
 > mswordview and w3 so that you can actually view MS Word documents
 > inside XEmacs/VM using mswordview to convert to HTML and then starting 
 > w3?  I can do this, but the code will take a while.

It should be simple.  Use vm-mime-type-converter-alist to convert 
application/msword (or whatever) to text/html.  If w3-region is a 
defined function VM will automatically use it to display the
resulting HTML.  The only problem that I know of is that
mswordview does not accept input from stdin.  So you need a
wrapper script to collect the input into a file and hand the file 
to mswordview.

[-- Attachment #3: Type: text/plain, Size: 87 bytes --]


A shell script wrapper around mswordview would achieve the
desired effect, probably.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mswordview?
  1999-10-08 20:40 ` mswordview? Colin Rafferty
@ 1999-10-09  8:13   ` Jonas Steverud
  1999-10-09 13:20     ` mswordview? Florian Weimer
  1999-10-09 21:04     ` mswordview? Hrvoje Niksic
  0 siblings, 2 replies; 6+ messages in thread
From: Jonas Steverud @ 1999-10-09  8:13 UTC (permalink / raw)


Colin Rafferty <craffert@ms.com> writes:

[...]
> From: kyle_jones@wonderworks.com (Kyle Jones)
> Subject: more on mswordview
> Newsgroups: gnu.emacs.vm.info
[...]
> The only problem that I know of is that
> mswordview does not accept input from stdin.

/dev/fd/0 is stdin. Might be useful.
(/dev/fd/1 is stdout and /dev/fd/2 is left as an exercise to the
reader.)

-- 
( Jonas Steverud  @  www.dtek.chalmers.se/~d4jonas/ !    Wei Wu Wei    )
( U2MoL, Roleplaying, LaTeX, Emacs/Gnus, SCWM, etc. ! To Do Without Do )


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mswordview?
  1999-10-09  8:13   ` mswordview? Jonas Steverud
@ 1999-10-09 13:20     ` Florian Weimer
  1999-10-09 21:04     ` mswordview? Hrvoje Niksic
  1 sibling, 0 replies; 6+ messages in thread
From: Florian Weimer @ 1999-10-09 13:20 UTC (permalink / raw)


Jonas Steverud <d4jonas@dtek.chalmers.se> writes:

> > The only problem that I know of is that
> > mswordview does not accept input from stdin.
> 
> /dev/fd/0 is stdin. Might be useful.

Unfortunately, it isn't. mswordview only operates on real files, not
on pipes.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mswordview?
  1999-10-09  8:13   ` mswordview? Jonas Steverud
  1999-10-09 13:20     ` mswordview? Florian Weimer
@ 1999-10-09 21:04     ` Hrvoje Niksic
  1999-10-18 20:13       ` mswordview? Greg Stark
  1 sibling, 1 reply; 6+ messages in thread
From: Hrvoje Niksic @ 1999-10-09 21:04 UTC (permalink / raw)


Jonas Steverud <d4jonas@dtek.chalmers.se> writes:

> Colin Rafferty <craffert@ms.com> writes:
> 
> [...]
> > From: kyle_jones@wonderworks.com (Kyle Jones)
> > Subject: more on mswordview
> > Newsgroups: gnu.emacs.vm.info
> [...]
> > The only problem that I know of is that
> > mswordview does not accept input from stdin.
> 
> /dev/fd/0 is stdin. Might be useful.

It won't work if mswordview wants to seek the file, mmap() it into
memory, or somesuch.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: mswordview?
  1999-10-09 21:04     ` mswordview? Hrvoje Niksic
@ 1999-10-18 20:13       ` Greg Stark
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Stark @ 1999-10-18 20:13 UTC (permalink / raw)
  Cc: ding


All fascinating except that mswordview does too work on pipes.
There's a bug in the argument parsing that makes it not parse
the command line right, but the manual says it should work and
it does work with some combinations of arguments. 

If you pass /dev/fd/0 it works fine.

Hrvoje Niksic <hniksic@srce.hr> writes:

> Jonas Steverud <d4jonas@dtek.chalmers.se> writes:
> 
> > Colin Rafferty <craffert@ms.com> writes:
> > 
> > [...]
> > > From: kyle_jones@wonderworks.com (Kyle Jones)
> > > Subject: more on mswordview
> > > Newsgroups: gnu.emacs.vm.info
> > [...]
> > > The only problem that I know of is that
> > > mswordview does not accept input from stdin.
> > 
> > /dev/fd/0 is stdin. Might be useful.
> 
> It won't work if mswordview wants to seek the file, mmap() it into
> memory, or somesuch.
> 

-- 
greg



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-10-18 20:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-08 20:34 mswordview? Greg Stark
1999-10-08 20:40 ` mswordview? Colin Rafferty
1999-10-09  8:13   ` mswordview? Jonas Steverud
1999-10-09 13:20     ` mswordview? Florian Weimer
1999-10-09 21:04     ` mswordview? Hrvoje Niksic
1999-10-18 20:13       ` mswordview? Greg Stark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).