texlib
texlib copied to clipboard
Python implementation of TeX's line-wrapping algorithm.
Pardon me for asking something that's probably simple, but I'm new to Python and haven't figured out yet how to run the example program. I'm trying to find a correctly-running...
`1000 != ∞` 😄
Thanks for building this tool! This is the only Python-compatible implementation of Knuth & Plass that I've been able to find (perhaps I don't know where to look). I realise...
It seems that `_BreakNode` only stores the demerits of the _current_ breakpoint, instead of the _cumulative_ (total) demerits. Pseudo-code from the paper: texlib: ```python if p[i] >= 0: demerits =...