#algorithm #line #breaking #fit #paragraph #standard #knuth-plass

paragraph-breaker

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

17 releases

Uses old Rust 2015

0.4.4 May 1, 2021
0.4.3 May 9, 2019
0.4.2 Nov 27, 2018
0.3.8 Sep 28, 2018
0.1.0 Jun 29, 2018

#1125 in Algorithms

Download history 47/week @ 2024-02-12 7/week @ 2024-02-19 37/week @ 2024-02-26 31/week @ 2024-03-04 53/week @ 2024-03-11

129 downloads per month
Used in 3 crates (2 directly)

MIT license

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