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

Handling multi-space characters (Japanese, Chinese...) width better #14

Closed
wants to merge 2 commits into from

Conversation

Elvyria
Copy link
Contributor

@Elvyria Elvyria commented Nov 11, 2022

Continuing #530, i added visual_cursor method as discussed, but currently fighting incorrect display at scroll position.

Currently I'm not sure if code in example is to blame or tui-rs. Investigating.

@sayanarijit
Copy link
Owner

Thank you. If possible, Please post some characters for testing, I'll review soon.

@Elvyria
Copy link
Contributor Author

Elvyria commented Nov 11, 2022

Sure
JP: ビルドワールドIII〈上〉埋もれた遺跡
KR: 로맨틱 만화, 만화 아니메, 한국 만화

@Elvyria
Copy link
Contributor Author

Elvyria commented Nov 12, 2022

Alright, example should work now much better. I tested it for quite a bit, with mixed languages, and I didn't see any anomalies.

sayanarijit added a commit that referenced this pull request Nov 13, 2022
This PR builds upon #14 to
fix handling multispace characters in tui crate, by providing helper
methods: `visual_cursor` and `visual_scroll`.

Closes: #14
@sayanarijit
Copy link
Owner

I have taken your changes in #15

sayanarijit added a commit to sayanarijit/xplr that referenced this pull request Nov 18, 2022
sayanarijit added a commit to sayanarijit/xplr that referenced this pull request Nov 18, 2022
sayanarijit added a commit to sayanarijit/xplr that referenced this pull request Nov 18, 2022
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