[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] roff mime types
From: |
Bernd Warken |
Subject: |
Re: [Groff] roff mime types |
Date: |
Thu, 27 Jun 2002 07:18:06 +0200 |
User-agent: |
Mutt/1.2.5i |
On Wed, Jun 26, 2002 at 09:27:24PM -0400, Peter Schaffter wrote:
> Speaking for mom <grin>, the issue is less the assignment of a mime
> type than the choice of how .mom documents should be displayed (i.e.
> the handler line in mailcap). Given that mom's primary focus is the
> preparation of printed documents, displaying mom documents in a term
> doesn't make much sense, hence trying to make her behave like a man
> page doesn't make sense either.
>
> With a mime.type
>
> application/x-troff-mom mom
>
> and a mailcap handler
>
> application/x-troff-mom ; /usr/bin/groff -mom -X '%s' ; test=test -n
> "$DISPLAY"
>
> apps linked to MIME display mom documents nicely with gxditview.
>
> With
>
> application/x-troff-mom ; /usr/bin/groff -mom '%s' | gv - ; test=test -n
> "$DISPLAY"
>
> mom documents display in gv.
The answer is `groffer'. It automatically determines the most
suitable viewing facility (Postscript, gxditview, tty, etc);
even `-mom' is not necessary.
Bernd Warken