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

Properly detect content based text direction on native #514

Merged
merged 11 commits into from Apr 21, 2023

Conversation

MatkovIvan
Copy link
Member

@MatkovIvan MatkovIvan commented Apr 20, 2023

Proposed Changes

  • Expose ICU's u_charDirection function in skiko (need to be released)
  • Fixed iteration over codepoints (support symbols that do not fit in 2-bytes) and moved it to common
  • Added proper fallback based on locale text direction (logic from Android)

Testing

Test: More tests TBD

Issues Fixed

Fixes: JetBrains/compose-multiplatform#2875

Copy link
Collaborator

@eymar eymar left a comment

Choose a reason for hiding this comment

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

Unless you plan to add more changes, it looks good to me

Copy link

@dima-avdeev-jb dima-avdeev-jb left a comment

Choose a reason for hiding this comment

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

Same from me

@MatkovIvan
Copy link
Member Author

Before After
Screenshot 2023-04-21 at 13 55 30 Screenshot 2023-04-21 at 13 56 27

@MatkovIvan MatkovIvan marked this pull request as ready for review April 21, 2023 12:13
@MatkovIvan MatkovIvan merged commit b2f35ae into jb-main Apr 21, 2023
2 checks passed
@MatkovIvan MatkovIvan deleted the ivan.matkov/rtl-detection branch April 21, 2023 12:55
eymar pushed a commit that referenced this pull request May 25, 2023
This allows paging playground to resolve compose deps.

Test: cd paging && ./gradlew bOS
Change-Id: I01d3774eefef7fab1380040a00bb840afa245903

This is an imported pull request from androidx#514.

Resolves #514
Github-Pr-Head-Sha: 0d8e2e9
GitOrigin-RevId: bcbbfc2
Change-Id: If61bbef2c6498a6e94ccaf62c77cc3011ff566d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants