#lines #paragraph #breaker

paragraph-breaker

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

16 unstable releases (3 breaking)

0.4.3 May 9, 2019
0.4.2 Nov 27, 2018
0.3.8 Sep 28, 2018
0.2.1 Aug 23, 2018
0.1.0 Jun 29, 2018
Download history 82/week @ 2019-03-26 22/week @ 2019-04-02 4/week @ 2019-04-09 2/week @ 2019-04-16 19/week @ 2019-04-23 2/week @ 2019-04-30 30/week @ 2019-05-07 21/week @ 2019-05-14 57/week @ 2019-05-21 16/week @ 2019-05-28 33/week @ 2019-06-04 38/week @ 2019-06-11 51/week @ 2019-06-18 169/week @ 2019-06-25 100/week @ 2019-07-02

92 downloads per month

MIT license

26KB
605 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