Re: [Groff] Formatting algorithm

2014-04-22 Thread Peter Schaffter
On Tue, Apr 22, 2014, Ulrich Lauther wrote: > Well of course not. A paragraph ends, e.g. when an empty line is > seen. Probably there are a whole lot of other conditions. My > understanding is that formatting takes place after macros have > been expanded; at the macro level it would be easier.

Re: [Groff] Creating an index with mom

2014-04-22 Thread Peter Schaffter
Blake -- Sorry to take so long to respond. Easter and all that. On Sat, Apr 19, 2014, Blake McBride wrote: > I would absolutely prefer to have a one-size-fits-all index ability within > mom rather than no real ability at all. Also, IMO, once a > one-size-fits-all index is added, I am sure forma

Re: [Groff] Formatting algorithm

2014-04-22 Thread Ulrich Lauther
On Tue, Apr 22, 2014 at 12:04:27PM -0400, Peter Schaffter wrote: > Ulrich -- > > But maybe just implementing "read NextWord" is the difficulty? > > After adjusting and breaking a line, groff holds remaining > input-line text as a partially-filled line, so reading NextWord is > at least theoretical

Re: [Groff] Formatting algorithm

2014-04-22 Thread Peter Schaffter
Ulrich -- On Mon, Apr 14, 2014, Ulrich Lauther wrote: > On Mon, Apr 14, 2014 at 12:41:56PM +0100, Ralph Corderoy wrote: > > Hi Ulrich, > > > > > Even if a greedy algorithm will be implemented, it should have the > > > whole paragraph available as input. That way, one could easily switch > > > ov