Re: [Groff] tbl problems in man

2007-02-08 Thread Eric S. Raymond
Werner LEMBERG [EMAIL PROTECTED]: I doubt whether this is an acceptable solution. Hmm. You're right. Indeed. The best so far is Gunnar's solution to emulate your suggested percent keyletter extension. I think I just came up with something better, a way to compute the column widths that

Re: [Groff] tbl problems in man

2007-02-08 Thread Ted Harding
On 08-Feb-07 Michael(tm) Smith wrote: Tadziu Hoffmann [EMAIL PROTECTED], 2007-02-08 12:19 +0100: Nevertheless, does anybody here remember the discussion about ATT-tbl's expand column feature on this list some months back? I don't remember reading that one. Is it something that solves this

Re: [Groff] tbl problems in man

2007-02-08 Thread Eric S. Raymond
Ted Harding [EMAIL PROTECTED]: A key letter may be followed by the letter X to indicate an expanded column. If the modifier is used, the width of the corresponding column will be increased to use the remainder of the line length after the widths of the other columns have been

Re: [Groff] tbl problems in man

2007-02-07 Thread Michael(tm) Smith
Werner LEMBERG [EMAIL PROTECTED], 2007-02-06 12:35 +0100: I still think that tables with T{...T} don't work well within man pages. I see the specific problem in the example man page you attached, and I've also seen the especially bad results produced when tables have more than two columns. So

Re: [Groff] tbl problems in man

2007-02-07 Thread Michael(tm) Smith
Eric S. Raymond [EMAIL PROTECTED], 2007-02-07 11:43 -0500: I wrote the documentation recently :-). From groff_man in CVS: .TQThe TQ macro sets up header continuation for a .TP macro. With it, you can stack up any number of labels (such as in a glos‐

Re: [Groff] tbl problems in man

2007-02-07 Thread Eric S. Raymond
Michael(tm) Smith [EMAIL PROTECTED]: What if I just have the stylesheet embed the macro definition in the output of each page? That would work. Well, then I'd really like to have some general solution (workaround) that would cause the cell widths in tables with any arbitary number of

Re: [Groff] tbl problems in man

2007-02-07 Thread Werner LEMBERG
More generally, I disagree with Werner's position that TP/TQ is preferable to tables with T{ T} in them. T{ T} as implemented currently just sucks. Please have a look at this http://lists.gnu.org/archive/html/groff/2006-09/msg00022.html for some nasty details. I'm going to change

Re: [Groff] tbl problems in man

2007-02-07 Thread Werner LEMBERG
Well, then I'd really like to have some general solution (workaround) that would cause the cell widths in tables with any arbitary number of columns to set to something more reasonable than what tbl(1) currently does. That change needs to be made in tbl itself. Which is, I think, where

Re: [Groff] tbl problems in man

2007-02-07 Thread Werner LEMBERG
In this particular case (this is, simple tables which can be sufficiently emulated with TP/TQ), I favor optical appearance over logical structure. Shouldn't we be looking for a way to fix TBL, rather than kludging around the problem? TP/TQ for the example I've given is *fully*

Re: [Groff] tbl problems in man

2007-02-06 Thread Eric S. Raymond
Werner LEMBERG [EMAIL PROTECTED]: looking again at groff_mm.man, I see that using T{...T} in tables gives ugly results. I think that this is a limitation of tbl which can't be worked around: For text blocks, you can't say `use the remaining line width' because they are processed earlier than

Re: [Groff] tbl problems in man

2007-02-06 Thread Werner LEMBERG
Yes, I could go back, find tables with T} in them, and revert them to list markup and similar kluges. But that would just bring us trouble from another direction. Many of the weird constructs I replaced with tables (I'm thinking, for example, of the T2 macro in groff_mm.man) will

Re: [Groff] tbl problems in man

2007-02-06 Thread Eric S. Raymond
Werner LEMBERG [EMAIL PROTECTED]: What's the problem with .TQ? Most of the data in groff_mm.man can be represented with this macro in a satisfying way, I believe. Since you say so, I assume it's possible. But I have not figured out how yet. Instead, let's steal a trick from the HTML book

Re: [Groff] tbl problems in man

2007-02-06 Thread Werner LEMBERG
What's the problem with .TQ? Most of the data in groff_mm.man can be represented with this macro in a satisfying way, I believe. Since you say so, I assume it's possible. But I have not figured out how yet. Have a looked at the attached file. OK. But first, even if we don't find a way

Re: [Groff] tbl problems in man

2007-02-06 Thread Eric S. Raymond
Werner LEMBERG [EMAIL PROTECTED]: What's the problem with .TQ? Most of the data in groff_mm.man can be represented with this macro in a satisfying way, I believe. Since you say so, I assume it's possible. But I have not figured out how yet. Have a looked at the attached file. I

Re: [Groff] tbl problems in man

2007-02-06 Thread Larry Kollar
Eric S. Raymond wrote: The only problem with using w is that the number that needs to go to go next to it is brittle -- it may break if the table indent changes, or if the the point size changes, or if the margins change. I fully agree. It can make such man pages ugly to read. This I

[Groff] tbl problems in man

2007-02-05 Thread Werner LEMBERG
Eric, looking again at groff_mm.man, I see that using T{...T} in tables gives ugly results. I think that this is a limitation of tbl which can't be worked around: For text blocks, you can't say `use the remaining line width' because they are processed earlier than the rest of the table. With