Skip to content

Move bidi algorithm into parley_core - #647

Merged
tomcur merged 1 commit into
linebender:mainfrom
tomcur:parley-core-bidi
Jun 26, 2026
Merged

Move bidi algorithm into parley_core#647
tomcur merged 1 commit into
linebender:mainfrom
tomcur:parley-core-bidi

Conversation

@tomcur

@tomcur tomcur commented Jun 23, 2026

Copy link
Copy Markdown
Member

Kicking off the sequence to end up at (roughly) the shape of #634.

Instead of starting with parley_data, I figured to first move the bidi algorithm as it wires up the parley and parley_core crates plus handles some lints that parley suppressed and parley_core doesn't.

Two more PRs are ready: first, simply moving the line break opportunity overrides introduced in #640 (similarly moving files and handling lints), second and more interestingly, migrating parley's analysis without any real changes into parley_core and introducing parley_core::{Analysis, Analyzer}.

@tomcur

tomcur commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

I've posed a question about how exactly we want to go about merging these PRs in #634 (comment).

@DJMcNab DJMcNab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move the conversation about how we land this to Zulip, but this pr on its own is good to land (with awareness that we'll potentially need to reconsider what is pub later)

Reading this PR makes me really want to refactor/clean-up/better document the bidi.rs file. The current documentation of input/output types is really far from ideal.

@tomcur

tomcur commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

I think we should move the conversation about how we land this to Zulip

I agree! Wrote here: #parley > parley_core PR sprint? @ 💬.

@tomcur
tomcur force-pushed the parley-core-bidi branch from d54ce41 to 388d224 Compare June 26, 2026 14:18
@tomcur
tomcur added this pull request to the merge queue Jun 26, 2026
Merged via the queue into linebender:main with commit bf3debd Jun 26, 2026
24 checks passed
@tomcur
tomcur deleted the parley-core-bidi branch June 26, 2026 14:38
tomcur added a commit to tomcur/parley that referenced this pull request Jun 27, 2026
)

On top of linebender#647.

Temporarily removes `#[non_exhaustive]` from `LineBreakContext` to allow
`parley` to construct it (becomes `non_exhaustive` again once the next
PR lands).
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