June 3, 2002
9:12 a.m.
greg wrote:
Damn, I had no idea there was a body of computer science (however small) devoted to the art of filling text. Trust Knuth to be there first. Do you have a reference for this algorithm apart from GNU fmt's source code? Google'ing for "knuth text fill algorithm" was unhelpful, ditto with s/fill/wrap/.
http://www.amk.ca/python/code/tex_wrap.html
Also, is there some existing module in which `wraptext' would fit nicely? That might be better than creating a new module for not many functions.
"string" (yes, I'm serious). </F>