Re: [Groff] Graph in a man page

2010-08-20 Thread Andre Majorel
On 2010-08-20 13:00 +0100, Ralph Corderoy wrote: > > I'd like to include a simple diagram in a man page, > > IIRC, some of the Sun OS man pages from the 80s used to have the odd > diagram. It may be worth a grep through collections of man pages to see > if you can find some that use tbl, or pic,

Re: [Groff] Graph in a man page

2010-08-20 Thread Ken Smith
On Fri, Aug 20, 2010 at 7:13 AM, Andre Majorel wrote: > OK, so pic is out (and so is tbl unless I kludge the arrows in). > For the moment, I'm following the path of least resistance : Have you considered graphviz? Here is graph.dot for your example. digraph g { rankdir=LR X -> Y [label=

Re: [Groff] Graph in a man page

2010-08-20 Thread Andre Majorel
On 2010-08-20 13:55 +0200, Werner LEMBERG wrote: > >>> `Must not depend on groff'? What does this mean? > >> > >> Simply that it must work with any nroff & troff, not just Groff. > > Then pic is not a general solution since, AFAIK, only groff pic > produces TTY output. OK, so pic is out (and so

Re: [Groff] Graph in a man page

2010-08-20 Thread Ralph Corderoy
Hi Andre, > I'd like to include a simple diagram in a man page, something like > this : > >_ __ > | | A | | C | | > | X |>| Y |->| Z | > | |<| |<-| | >

Re: [Groff] Graph in a man page

2010-08-20 Thread Werner LEMBERG
>>> `Must not depend on groff'? What does this mean? >> >> Simply that it must work with any nroff & troff, not just Groff. Then pic is not a general solution since, AFAIK, only groff pic produces TTY output. Werner

Re: [Groff] Graph in a man page

2010-08-20 Thread Andre Majorel
On 2010-08-20 11:09 +0200, Clemens Ladisch wrote: > > > > I'd like to include a simple diagram in a man page, > > Runing "man -p p ./testfile" on this file: > > .TH a b c d e > .PS > box "X" > arrow "A" "" > box "Y" > arrow "B" "" > box "Z" > .PE > > results in this output, which is better than

Re: [Groff] Graph in a man page

2010-08-20 Thread Ruud Baart
Ted Harding wrote: "These problems would not arise with PostScript output, but I am puzzled as to why they should occur with ASCII otuput to a terminal." On my server I get a slightly different result. I use version 1.20.1 on a debian server: +--+ +--+ +--+

Re: [Groff] Graph in a man page

2010-08-20 Thread Ted Harding
On 20-Aug-10 08:30:33, Andre Majorel wrote: > On 2010-08-20 09:37 +0200, Werner LEMBERG wrote: >> >> > I'd like to include a simple diagram in a man page, something >> > like this : >> > >> > _ __ >> >| | A | | C | | >> >

Re: [Groff] Graph in a man page

2010-08-20 Thread Clemens Ladisch
Andre Majorel wrote: > On 2010-08-20 09:37 +0200, Werner LEMBERG wrote: > > > I'd like to include a simple diagram in a man page, something > > > like this : > > > > > >_ __ > > > | | A | | C | | > > > | X |>| Y |---

Re: [Groff] Graph in a man page

2010-08-20 Thread Andre Majorel
On 2010-08-20 09:37 +0200, Werner LEMBERG wrote: > > > I'd like to include a simple diagram in a man page, something > > like this : > > > > _ __ > > | | A | | C | | > > | X |>| Y |->| Z | > >

Re: [Groff] Graph in a man page

2010-08-20 Thread Werner LEMBERG
> I'd like to include a simple diagram in a man page, something > like this : > >_ __ > | | A | | C | | > | X |>| Y |->| Z | > | |<| |<-| | > |_|

[Groff] Graph in a man page

2010-08-20 Thread Andre Majorel
I'd like to include a simple diagram in a man page, something like this : _ __ | | A | | C | | | X |>| Y |->| Z | | |<| |<-| | |_| B |