You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like characters at even positions are missing.
Do you happen to have any idea how I can fix it?
FYI. I tried termbox the C program and confirms it works with Chinese characters.
UPDATE:
After some digging, I realize it is an issue with ratatouille on calculating positions. It is an issue about wide characters including CJK, full-width Unicode characters and some emojis. It can be fixed with a small patch calculating character width. On my local machine, I have got it working properly at least for some Chinese characters. I can make a pull request on it if it makes sense to you. :)
The text was updated successfully, but these errors were encountered:
qhwa
changed the title
Chinese characters are not correctly displayed
Chinese texts are not correctly displayed
Apr 9, 2020
qhwa
changed the title
Chinese texts are not correctly displayed
Some wide characters texts are not correctly displayed
Apr 9, 2020
qhwa
changed the title
Some wide characters texts are not correctly displayed
Some wide characters are not correctly displayed
Apr 9, 2020
It seems that some of the Chinese characters are not displayed.
Let's take the hello world for example. Here's a script:
https://gist.github.com/qhwa/7ef65acb13ec656cc13d7418d066cfcc
when
mix run
it, the expected output will be:Whilst the current output is
Looks like characters at even positions are missing.
Do you happen to have any idea how I can fix it?
FYI. I tried termbox the C program and confirms it works with Chinese characters.
UPDATE:
After some digging, I realize it is an issue with ratatouille on calculating positions. It is an issue about wide characters including CJK, full-width Unicode characters and some emojis. It can be fixed with a small patch calculating character width. On my local machine, I have got it working properly at least for some Chinese characters. I can make a pull request on it if it makes sense to you. :)
The text was updated successfully, but these errors were encountered: