[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Line-drawing escape

From: Miklos Somogyi
Subject: Re: [Groff] Line-drawing escape
Date: Wed, 29 Nov 2006 18:50:52 +1100


Thank you, it's working. Just one question: how do you switch-off `tr ~'? For me `tr ~~' does the job, but is `tr' smart enough not to look for `~'
and replace it with `~'?
Not a problemi if it is looking, I'm just curious.


On 29/11/2006, at 7:11 AM, Tadziu Hoffmann wrote:

Is this a bug or a well-considered feature?

Apparently groff treats a space differently from "real" characters
(like in TeX, where a space in the input represents glue in the
output, not a printable character).

Is there a way to save this structure?

Yes. Do a ".tr ~" before, and then use ~ as the line repetition

By the way, using \N'32' (usually the space character) as the
repetition character works correctly with the ascii device but not
the postscript device, apparently because groff/grops treats the
remaining space put at the beginning of the repeated characters
(see the Troff User's Manual) as a "stretched" space using the
widthshow operator, then unfortunately also stretching the line
repetition space as well, so that the second word gets shifted
to well beyond the line length. (The ascii device doesn't bother
with fractions of a character cell width.) That the repetition
character is also a space seems to be correctly recognized when
using "~" translated to space on output.

Groff mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]