Re: A version of fmt for troff files

2023-02-17 Thread Walter Alejandro Iglesias
Hi John, On Feb 17 2023, John Gardner wrote: > > > > https://en.roquesor.com/Downloads/fmtroff.c > > > > Missed opportunity to call it "roffmt". ;-) I didn't realize! My code is even less elegant than the name I chose. :-) You can still do this: $ cc fmtroff.c -o $HOME/bin/roffmt > > Anyway

Re: A version of fmt for troff files

2023-02-17 Thread John Gardner
> > https://en.roquesor.com/Downloads/fmtroff.c > Missed opportunity to call it "roffmt". ;-) Anyway, I fed the program a macro package with the -n switch passed, and it... basically mangled the entire file. I take it that fmtroff is only designed to format prose, rather than Roff code (macros, e

A version of fmt for troff files

2023-02-17 Thread Walter Alejandro Iglesias
Hello everyone, I've been using groff to format my novels since years. Lately I wrote my own version of fmt with some feature added to format troff files (in the head comment of the code I explain its features in more detail.) I decided to share it here, perhaps some of you find it useful: ht