Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unicode aware line breaking #9

Open
dfrg opened this issue Jun 19, 2021 · 2 comments
Open

Support unicode aware line breaking #9

dfrg opened this issue Jun 19, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dfrg
Copy link
Collaborator

dfrg commented Jun 19, 2021

Add support for Unicode aware line breaking according to UAX #14.

@dfrg dfrg added this to the Full Version milestone Jun 19, 2021
@dfrg dfrg self-assigned this Jun 19, 2021
@chris-morgan
Copy link

Scope question: would this include supporting (regardless of whether they’re included in this crate itself or not) diverse fitting algorithms, e.g. Knuth-Plass instead of the ubiquitous greedy?

(Knuth-Plass isn’t suitable for text editing because you don’t want your paragraph reflowing all the time as you type, but for rendering existing text it’s generally excellent, and I’m working on a project where I want something like that and am deciding whether to work with lower-level components directly or help build a more powerful thing like this.)

@dfrg
Copy link
Collaborator Author

dfrg commented Aug 13, 2021

To make the crate generally useful and composable, my goal is to expose as much of the internal layout pipeline as possible including line breaking. I'm not quite sure what the API for that looks like yet, but I'll have a much better idea at the end of next week.

I'm also not opposed to including an implementation of Knuth-Plass at some point in the future.

@nicoburns nicoburns changed the title Support line breaking Support unicode aware line breaking May 28, 2024
@nicoburns nicoburns added the enhancement New feature or request label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants