Skip to content

v2.7.0 - MinimumRaggedness

Latest

Choose a tag to compare

@bbrksbbrks released this 03 Feb 00:26
· 1 commit to main since this release
c041ccd

Adds a MinimumRaggedness wrapper option, to opt for a ~30x slower algorithm, but one that produces much nicer looking results.

The default greedy algorithm fills each line as much as possible until the input is exhausted. The optimal algorithm distributes words more evenly, resulting in more balanced line lengths.

Example (limit 46)

Default (greedy)

----------------------------------------------
Typographical irregularities, like
unpredictable justification and
disproportionate hyphenation, can disrupt
reading rhythm. Overly ambitious algorithms
often miscalculate line breaks, producing
orphaned words or inconsistent margins.
Strategic layout engines evaluate multiple
options simultaneously, redistributing content
to harmonize alignment and minimize visual
dissonance.
----------------------------------------------

With MinimumRaggedness

----------------------------------------------
Typographical irregularities,
like unpredictable justification and
disproportionate hyphenation, can
disrupt reading rhythm. Overly ambitious
algorithms often miscalculate line breaks,
producing orphaned words or inconsistent
margins. Strategic layout engines
evaluate multiple options simultaneously,
redistributing content to harmonize
alignment and minimize visual dissonance.
----------------------------------------------

Full Changelog: v2.6.0...v2.7.0