#lines #paragraph

paragraph-breaker

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

8 releases

0.3.4 Sep 8, 2018
0.3.3 Sep 7, 2018
0.2.1 Aug 23, 2018
0.2.0 Jul 19, 2018
0.1.0 Jun 29, 2018
Download history 1/week @ 2018-08-20 17/week @ 2018-08-27 9/week @ 2018-09-03 81/week @ 2018-09-10 12/week @ 2018-09-17 21/week @ 2018-09-24 47/week @ 2018-10-01 8/week @ 2018-10-08 9/week @ 2018-10-15 32/week @ 2018-10-22 4/week @ 2018-10-29 62/week @ 2018-11-05 51/week @ 2018-11-12

48 downloads per month

MIT license

25KB
584 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