Re: Leaders

2023-09-06 Thread Tadziu Hoffmann
> The example was enormously helpful. There's light at the end > of my TOC multi-line entry tunnel. Happy to be of help! Note that the example was simplified to illustrate the principle, and would need some (minor) aesthetic tweaks for practical application. Most importantly, you will want the

Re: Leaders

2023-09-05 Thread Heinz-Jürgen Oertel
Am 5. September 2023 23:41:36 MESZ schrieb Peter Schaffter : >On Mon, Sep 04, 2023, Tadziu Hoffmann wrote: >> I think leaders are meant to be used in conjunction with >> diversions. When they are used in already formatted text, >> all required dimensions are known, allowing n/troff to >> comput

Re: Leaders

2023-09-05 Thread Peter Schaffter
On Mon, Sep 04, 2023, Tadziu Hoffmann wrote: > I think leaders are meant to be used in conjunction with > diversions. When they are used in already formatted text, > all required dimensions are known, allowing n/troff to > compute the number of leader character repetitions plus any > possibly requ

Re: Leaders

2023-09-05 Thread Peter Schaffter
Lennart -- On Sun, Sep 03, 2023, Lennart Jablonka wrote: > Do you now understand what’s going on, ignoring how useful or useless a > design this is? Your explanation was exactly what I needed to conceptualize leader behaviour. Many thanks. I took a couple of readings, but I've got it now. --

Re: Leaders

2023-09-04 Thread Tadziu Hoffmann
> Rare? Maybe. But not so rare that a macro package need not > be prepared for it. I think leaders are meant to be used in conjunction with diversions. When they are used in already formatted text, all required dimensions are known, allowing n/troff to compute the number of leader character re

Re: Leaders

2023-09-03 Thread G. Branden Robinson
At 2023-09-03T23:43:29+, Lennart Jablonka wrote: > What I intended to express is an explanation for how it could come to > be that tabs and leaders behave in that way: It was possible because > quite seldom someone wanted a tab or leader in filled text. Because > long headings in a TOC are r

Re: Leaders

2023-09-03 Thread Lennart Jablonka
Quoth Peter Schaffter: On Sat, Sep 02, 2023, Lennart Jablonka wrote: The point is that the width of the line of periods is determined by its position on the input line. That is confusing, yet it also doesn’t usually matter: You seldom use tabs or leaders in filled text. Actually, no. I disc

Re: Leaders

2023-09-03 Thread Lennart Jablonka
Quoth Peter Schaffter: On Sat, Sep 02, 2023, G. Branden Robinson wrote: > Question 2: > What is causing the erroneous justification of the third line? > There's more than enough room for "air" and some leader. There is not, in the example you provided. You set one tab stop, at the line length

Re: Leaders

2023-09-03 Thread Peter Schaffter
Branden -- On Sat, Sep 02, 2023, G. Branden Robinson wrote: > > Question 1: > > Is \a only interpreted in copy mode as this would suggest? > > Yes. This has been documented for a long time, but I don't think very > clearly. Precisely why I asked. :) > Until (he boasted) groff 1.23.0. > ... >

Re: Leaders

2023-09-03 Thread Peter Schaffter
On Sat, Sep 02, 2023, Lennart Jablonka wrote: > The point is that the width of the line of periods is determined > by its position on the input line. That is confusing, yet it > also doesn’t usually matter: You seldom use tabs or leaders in > filled text. Actually, no. I discovered this issue t

Re: Leaders

2023-09-02 Thread Lennart Jablonka
Quoth G. Branden Robinson: At 2023-09-02T22:35:25+, Lennart Jablonka wrote: No, there aren’t. Your message does not contain the SOH bytes; you could as well put replacement “^A”s there. I was attempting to suggest their presence. My tone was too accusatory. Yes, you did do that. I

Re: Leaders

2023-09-02 Thread G. Branden Robinson
Hi Lennart, At 2023-09-02T22:35:25+, Lennart Jablonka wrote: > No, there aren’t. Your message does not contain the SOH bytes; you > could as well put replacement “^A”s there. I was attempting to suggest their presence. > The point is that the width of the line of periods is determined by

Re: Leaders

2023-09-02 Thread Lennart Jablonka
Quoth G. Branden Robinson: On second thought--in the form of empirical measurements rather than hand-waving conjecture--I think you've found a bug. How so? Consider the following input, which I've degraded to an ASCII spelling of "chateau" to permit some comparative analysis (keep reading).

Re: Leaders

2023-09-02 Thread G. Branden Robinson
[self-follow-up] Hi Peter, On second thought--in the form of empirical measurements rather than hand-waving conjecture--I think you've found a bug. Consider the following input, which I've degraded to an ASCII spelling of "chateau" to permit some comparative analysis (keep reading). $ cat long-

Re: Leaders

2023-09-02 Thread G. Branden Robinson
Hi Peter, I get the same output you do from your second example. I do observe that `\a` in interpretation mode doesn't get warned about, even with '-ww'. That may be a defect. At 2023-09-02T16:19:08-0400, Peter Schaffter wrote: > Question 1: > Is \a only interpreted in copy mode as this would s