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

Any strategy for handle other languages displays? #82

Closed
magicdawn opened this issue Jan 17, 2016 · 6 comments
Closed

Any strategy for handle other languages displays? #82

magicdawn opened this issue Jan 17, 2016 · 6 comments

Comments

@magicdawn
Copy link

e.g Simplified Chinese (as 简体中文)

image

And for simplified chinese, test with unicode \u4E00-\u9FA5, should double the length, then it will display well.

strlen('你好world') => 2*2 + 5 = 9

BTW, I'm using the Hack Font for display.

@magicdawn
Copy link
Author

After https://github.com/magicdawn/cli-table/commit/65d1857e82df461dfaffaf611f19133a46c74425 it displays well for chinese. but what about other languages ?

@magicdawn
Copy link
Author

Time flies and Problems remains 😂

@zhangqingyv
Copy link

same problem

qq20161125-0 2x

@magicdawn
Copy link
Author

magicdawn commented Nov 25, 2016

I have a PR at #92, but looks like the project is not maintained any more, see package.json deps,
the mocha's old name expressso list there 😂

@tecfu
Copy link

tecfu commented Nov 25, 2016

Use tty-table instead. It has built-in support for unicode characters.

@tyrasd
Copy link

tyrasd commented Sep 20, 2018

This should be fixed with #97, right?

@chrean chrean closed this as completed Jul 28, 2021
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

5 participants