[Python-Dev] Re: Where to put wrap_text()?

akuchlin@mems-exchange.org akuchlin@mems-exchange.org
Sun, 2 Jun 2002 20:37:09 -0400

On Sun, Jun 02, 2002 at 09:09:57AM -0400, Fran?ois Pinard wrote:
>years ago.  If I remember well, Knuth's algorithm plays by moving line
>cuts and optimising a global function through dynamic programming, giving
>more points, say, when punctuation coincides with end of lines, ...

If that's the same algorithm that's used by TeX, see
http://www.amk.ca/python/code/tex_wrap.html .