Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread Ralph Corderoy
Hi Doug, > On unjustified text, fmt (which uses an algorithm purported to be like > Knuth-Plass) I wonder if that accounts for modern, coreutils 8.28-1, fmt's weirdness that I've seen for a while but never got around to investigating? $ yes x | fmt | awk '{print length, $0}' | uniq -c | sed

Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread Pierre-Jean
Doug McIlroy wrote: > How does Utroff deal with even simple changes of line length, e.g. for > flowing text around an image as in the following trivial example. > A robust version that allows for intervening page or paragraph > breaks would pose even more difficulty. > > .wh \n[nl]+3 `in +

Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread Doug McIlroy
I am still puzzled about paragraph-at-a-time typesetting in groff. How does Utroff deal with even simple changes of line length, e.g. for flowing text around an image as in the following trivial example. A robust version that allows for intervening page or paragraph breaks would pose even more dif

Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread Pierre-Jean
Hello James and Ralph, Ralph Corderoy wrote: > > > It may be better to use `.write', if other troffs have that, rather > > > than allow the local echo(1) to perhaps interpret sum-list's > > > content? > ... > > sy printf '%s\n' '\\*[sum-list]' | sed -e "s/@@@/n./g" > > > > would elimina

Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread Ralph Corderoy
Hi James, > > It may be better to use `.write', if other troffs have that, rather > > than allow the local echo(1) to perhaps interpret sum-list's > > content? ... > sy printf '%s\n' '\\*[sum-list]' | sed -e "s/@@@/n./g" > > would eliminate that issue. But still leave open the origina

Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread James K. Lowden
On Wed, 06 Dec 2017 12:24:58 + Ralph Corderoy wrote: > > . sy echo \\*[sum-list] | sed -e "s/@@@/n./g" | > > iconv... > > It may be better to use `.write', if other troffs have that, rather > than allow the local echo(1) to perhaps interpret sum-list's content? Else:

Re: [groff] [UTROFF] references, summary, index

2017-12-06 Thread Ralph Corderoy
Hi Pierre, > . sy echo \\*[sum-list] | sed -e "s/@@@/n./g" | iconv... It may be better to use `.write', if other troffs have that, rather than allow the local echo(1) to perhaps interpret sum-list's content? -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy

[groff] [UTROFF] references, summary, index

2017-12-04 Thread Pierre-Jean
Hello alls, On my previous mail, I said I was willing to discuss about some of the goodies offered with Utmac. But as I had a look at those things, I realized that while some are effectively goodies only useful on some rare occasions, the others are things which are filling basic needs. So, I’ll