Skip to content

bidi: add paragraph analysis and line reordering - #298

Closed
kaptinlin wants to merge 1 commit into
go-text:mainfrom
kaptinlin:bidi-paragraph-lines
Closed

kaptinlin wants to merge 1 commit into
go-text:mainfrom
kaptinlin:bidi-paragraph-lines

Conversation

@kaptinlin

Copy link
Copy Markdown

Layout engines need paragraph levels before L1, then reordering after choosing actual line boundaries. Add immutable paragraph analysis and line reordering, reusing the existing solver and preserving logical rune coordinates.

Validation: go test -race ./... and go vet ./...; public visual ordering matches the Unicode conformance fixtures.

@benoitkugler

Copy link
Copy Markdown
Contributor

Hello,

Could give us a little bit more of context, so that we understand why this addition is needed ?

Also, why the current approach (segmenting -> shaping -> wrapping -> re-ordering) our stack enables does not suit your needs ?

@andydotxyz

Copy link
Copy Markdown
Contributor

I glanced at this and the pure-addition and number of lines doesn't really make clear the underlying problem.

@kaptinlin kaptinlin closed this by deleting the head repository Oct 4, 2026
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.

3 participants