#lines #paragraph

paragraph-breaker

An implementation of the Knuth-Plass algorithm for breaking paragraphs into lines

15 unstable releases (3 breaking)

0.4.2 Nov 27, 2018
0.4.1 Nov 27, 2018
0.3.8 Sep 28, 2018
0.2.1 Aug 23, 2018
0.1.0 Jun 29, 2018
Download history 29/week @ 2018-10-14 5/week @ 2018-10-21 63/week @ 2018-10-28 50/week @ 2018-11-04 26/week @ 2018-11-11 26/week @ 2018-11-18 140/week @ 2018-11-25 50/week @ 2018-12-02 30/week @ 2018-12-09 9/week @ 2018-12-16 98/week @ 2018-12-23 6/week @ 2018-12-30 16/week @ 2019-01-06 14/week @ 2019-01-13 6/week @ 2019-01-20

180 downloads per month

MIT license

25KB
590 lines

The algorithms implemented in this library, total fit and standard fit, are described in Breaking Paragraphs into Lines (1981) by Donald Knuth and Michael Plass. The standard fit algorithm is only provided as a fallback to total fit.

No runtime deps