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

Emoji support #55

Closed
ZsemberiDaniel opened this issue Nov 6, 2018 · 1 comment
Closed

Emoji support #55

ZsemberiDaniel opened this issue Nov 6, 2018 · 1 comment

Comments

@ZsemberiDaniel
Copy link

Hi!

I've been using your library and noticed that when I use an emoji in a cell, then the cell's width does not match with the other cells' widths which are in the same column. Is there any way to fix it or it's not possible?

I took a closer look at the functions and I noticed that when for example it has a '😂' emoji, then it counts as 2, but a simple heart emoji is counted as 1.

Thanks in advance,
Daniel

@foutaise
Copy link
Owner

foutaise commented Nov 7, 2018

Hi @ZsemberiDaniel,

Last commit (ae1e496) should improve emoji support.

You'll have to install the wcwidth library (pip install wcwidth) first. It won't provide
a full emoji support (rendering properly emoji is quite complex), but it's a step in the right
direction.

Let me know if it's ok on your side. A new release including this change will occur
in a few days.

Best regards,

@foutaise foutaise closed this as completed Nov 7, 2018
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

No branches or pull requests

2 participants