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

Support East Asian characters and Emojis #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qhwa
Copy link

@qhwa qhwa commented Apr 16, 2020

There is an issue for Ratatouille to display wide characters correctly, especially East Asian characters and Emojis. This script can help reproduce the problem.

So I created a library, ucwidtt to help solve this problem. As you can see, Ucwidth is used here to determine the width of a character. With the width calculated, we can make sure there is enough room for a single character.

So far it works great in my project. Please let me know if there's anything I'm missing?

@qhwa qhwa changed the title support for East Asian characters and Emojis Support East Asian characters and Emojis Apr 24, 2020
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.

1 participant