TeX's paragraph breaking algorithm
Sean 'Shaleh' Perry
shaleh at valinux.com
Wed May 16 12:08:41 EDT 2001
On 16-May-2001 Andrew Kuchling wrote:
> My hack of the week: an implementation of the paragraph breaking
> algorithm used in TeX, and described in a chapter of Knuth's _Digital
> Typography_ book.
>
Enclosed is a patch to let those of us still using the 1.5+ series play with
the code.
Boils down to removing a few +='s and one list comprehension.
I need to play around a bit more with some code I have here. Almost completely
scripted the backporting of python2 files. List comprehensions are the hard
case. Have to do those by hand.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tex_wrap.diff
Type: application/octet-stream
Size: 3334 bytes
Desc: tex_wrap.diff
URL: <http://mail.python.org/pipermail/python-list/attachments/20010516/e47e8604/attachment.obj>
More information about the Python-list
mailing list