Skip to content

[feaLib] Improve single substitution promotion #3849

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

Merged
merged 1 commit into from
May 28, 2025
Merged

[feaLib] Improve single substitution promotion #3849

merged 1 commit into from
May 28, 2025

Conversation

khaledhosny
Copy link
Collaborator

Move the logic down into the builder so that it is applied after lookups are split due to e.g. different lookup flags or interspersed contextual substitution rules. Arguably the builder was the right place for this all along, but I took the either route (twice!) before.

Fixes #3846

@khaledhosny
Copy link
Collaborator Author

Feel free to bikeshed over the names of the new classes and methods, I don’t particularly like them and couldn’t come with anything better.

@anthrotype
Copy link
Member

@khaledhosny can you rebase or fix the merge conflicts? thanks

Move the logic down into the builder so that it is applied after lookups
are split due to e.g. different lookup flags or interspersed contextual
substitution rules. Arguably the builder was the right place for this
all along, but I took the either route (twice!) before.

Fixes #3846
@khaledhosny khaledhosny merged commit e8925b4 into main May 28, 2025
11 checks passed
@khaledhosny khaledhosny deleted the bug3846 branch May 28, 2025 12:26
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.

[feaLib] _upgrade_mixed_subst_statements does not account for all possible lookup breaks
2 participants