Re: [Groff] Formatting algorithm

2014-04-14 Thread Clarke Echols
Whatever you do, don't do what Microsoft and relatives do by *assuming* a block of text in one line is a paragraph, and you can't write a paragraph as a series of shorter single lines. Word was written for idiots who don't want to learn anything they don't have to, and it drives me nuts! I do al

Re: [Groff] Formatting algorithm

2014-04-14 Thread Denis M. Wilson
Brave statement -- good luck! Unlike TeX, troff has no modes, so a method of delimiting a paragraph has to be introduced. Text outside would be treated as currently, text inside would be subject to whatever algorithm is selected. Some care to get this right should be taken, as for macro sets to t

Re: [Groff] Formatting algorithm

2014-04-14 Thread Ulrich Lauther
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 > > over to a KP-implementation and compare the two appraoches in terms o

Re: [Groff] Formatting algorithm

2014-04-14 Thread Ralph Corderoy
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 > over to a KP-implementation and compare the two appraoches in terms of > quality, running time, and code complexity. Provided a clean > interf

Re: [Groff] Formatting algorithm

2014-04-14 Thread Ulrich Lauther
On Mon, Mar 31, 2014 at 07:44:07PM -0400, Peter Schaffter wrote: > Here's the bare bones version of the algorithm I was thinking of > when I proposed improving line formatting by getting groff to > shoulder the burden for some of the work we do manually. It's > written out in brute-force pseudo-co