Skip to content

demo: add Knuth-Plass optimal line-breaking with fitness classification#113

Open
ezra-en wants to merge 1 commit intochenglou:mainfrom
ezra-en:feature/knuth-plass-optimal
Open

demo: add Knuth-Plass optimal line-breaking with fitness classification#113
ezra-en wants to merge 1 commit intochenglou:mainfrom
ezra-en:feature/knuth-plass-optimal

Conversation

@ezra-en
Copy link
Copy Markdown

@ezra-en ezra-en commented Apr 7, 2026

I've dreamed of a modern Knuth-Plass rendering solution since I discovered it, but all the independent implementations were last updated years ago. Since pretext provides both the foundation and the hype (completely admit jumping onto the bandwagon for this, but it really seems like noone's implemented knuth-plass yet) here's my own demo implementation!

I made this for my own typography-centric software but I thought it'd do more good upstreamed. Unsure if it should be added as another layout option, but I figured including it as a demo would probably suffice for devs using LLMs and looking for Knuth-Plass.

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.

1 participant