Re: [Groff] Line-drawing escape

2006-11-29 Thread Miklos Somogyi
Ted, What a scholarly expose! This should be part of the manual. I've introduced .rchar and things are working nicely. Thank you very much, Miklos On 29/11/2006, at 9:40 PM, (Ted Harding) wrote: On 29-Nov-06 Miklos Somogyi wrote: Ted, Your solution and Tadziu's are rather similar and

Re: [Groff] Line-drawing escape

2006-11-28 Thread Clarke Echols
If you are operating in no-fill mode, why not use .tc to define the tab character? You can then set up the left-right justification and troff/groff replaces a tab character between left-hand and right-hand text with a multiple series of the character defined by .tc. You have to use .ta

RE: [Groff] Line-drawing escape

2006-11-28 Thread Ted Harding
On 28-Nov-06 Miklos Somogyi wrote: Folks, I used this macro for inserting dots between left- and right aligned test, a la text1 . text2: .de iD \\$1 \\kx\\l'(\\n(.lu-\\nxu-\w'\\$2 'u).' \\$2 .. It worked in troff, it works in groff. I had an insert space version of this

Re: [Groff] Line-drawing escape

2006-11-28 Thread Tadziu Hoffmann
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

Re: [Groff] Line-drawing escape

2006-11-28 Thread Werner LEMBERG
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). I consider it a bug. There is no technical reason to disallow a space there.

Re: [Groff] Line-drawing escape

2006-11-28 Thread Miklos Somogyi
Clarke, Thank you, but I think that left- and right alignment works without referring to tabs in any way. The reason I am interested in this `line drawing' scheme is that, if it works, it can be used in many other cases as well. Thanks, Miklos On 29/11/2006, at 3:25 AM, Clarke Echols

Re: [Groff] Line-drawing escape

2006-11-28 Thread Miklos Somogyi
Tadziu, 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. Thanks, Miklos On 29/11/2006, at 7:11 AM, Tadziu Hoffmann