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] A macro package for lists in TROFF

2017-12-06 Thread Ralph Corderoy
Hello you two, > Stephanie wrote: > > However, Troff's ability to take values of a numerical register and > > use it as a name to another register (.nr my_\na_\nb) intrigues me > > very much. > > I do not know if that "feature" was an intentional design or an > accident, and I do not know either i

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] A macro package for lists in TROFF

2017-12-06 Thread Pierre-Jean
Stephanie Björk wrote: > However, Troff's ability to take values of a numerical > register and use it as a name to another register (.nr my_\na_\nb) > intrigues me very much. I do not know if that "feature" was an intentional design or an accident, and I do not know either if it is considered a

Re: [groff] A macro package for lists in TROFF

2017-12-06 Thread Stephanie Björk
P.S. Actually, after re-reading your mail a bit, I think I know what you meant by your question. Sorry for being confused. Anyway, I think that Groff's ability to have numerical registers of more than 2 characters long is "weird and fancy" relative to classical TROFF. I started learning TROFF fr

Re: [groff] A macro package for lists in TROFF

2017-12-06 Thread Stephanie Björk
> I don't see anything weird or fancy that hasn't been a part of groff > for at least fifteen years. To what are you referring? I'm > intrigued. Perhaps my word choices weren't so good. "Weird, fancy" is kind of subjective, actually. I still do think that my macros are using "weird, fancy" stuf

Re: [groff] [UTROFF] conclusion

2017-12-06 Thread Pierre-Jean
Ralph Corderoy writes: > > For my last mail about Utmac > Thanks, they've been interesting, and more digestible drip-fed over the > days than one long email. I'm glad to read that! Cheers, Pierre-Jean.

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] conclusion

2017-12-06 Thread Ralph Corderoy
Hi Pierre-Jean, > For my last mail about Utmac Thanks, they've been interesting, and more digestible drip-fed over the days than one long email. -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy

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