Skip to content

Conversation

@Vansh0204
Copy link

Changes

  • Adds PRETTY and BALANCE constants to src/core/constants.js
  • Implements Knuth-Plass inspired dynamic programming algorithm in _lineate
  • Minimizes raggedness for visually balanced text blocks
  • Addresses [2.0] Additional text alignment options #7712

@dhowe dhowe self-requested a review December 2, 2025 00:59
@Vansh0204
Copy link
Author

@dhowe and @osteele, sir, can you please review these PRs.

@dhowe
Copy link
Contributor

dhowe commented Dec 3, 2025

please update with dev-2.0 (and please be patient... we have many PRs to review) thank you

…anced wrapping

- Adds PRETTY and BALANCE constants to src/core/constants.js
- Implements dynamic programming algorithm in _lineate for balanced line breaking
- Minimizes raggedness by considering all possible line breaks
- Includes manual test demonstrating PRETTY/BALANCE vs WORD wrap

Addresses processing#7712
@Vansh0204 Vansh0204 force-pushed the feat/textwrap-pretty-balance-dev2 branch from b9855f3 to b2ca830 Compare December 3, 2025 20:28
@Vansh0204
Copy link
Author

@dhowe sir, I have updated to the latest dev-2.0 as requested. Ready for review when you have time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants