-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cursor position incorrect with non-European characters #68
Comments
This report was for the Ubuntu LTS repo version of diakonos (0.9.0) and I found I couldn't build the latest version due to outdated Ruby (1.9.1). So I tried to install it in Ubuntu 15.10 - it's no longer in the repo (why?) so I installed ruby, cloned the git repo, tried to install curses "sudo gem install curses" but it failed to build 'gem native extention'... (Couldn't find ruby.h, so I installed ruby2.1-dev but it still could make a Makefile, 'probably lack of necessary libraries and/or headers') After installing libncurses5-dev and libtinfo-dev (I think) the curses gem did install, and I could run diakonos. Loading the UTF-8 demo in diakonos rendered total rubbish... |
@pepa65 Thank you for the detailed bug report, as well as for being thorough. Can you provide a link to an example file with Thai text? |
I should also mention that Diakonos does not support languages whose characters are different width than normal Roman (English and European) characters. |
Sorry, meant to include this in the report: There must be a way to incorporate this in a future release?? Diakonos seems to have come such a long way since I last evaluated it a number of years ago. Some editors do this correctly, notably JED. jupp, vim, nano, pico, le and joe. Others have the same problem as diakonos, like dex and e3. EDIT: dex has now been fixed (July 2017). |
I've confirmed the behaviour you're seeing. However, I regret to report that languages like Thai are not supported by Diakonos at this time. I don't know if this would be easy to fix/add, but I welcome pull requests. |
I'm not quite up to working on this issue, but the people from dex (similar issue) came up with this:
|
The same problem was present in dex https://github.com/tihirvon/dex and reported there as issue 22, and @craigbarnes just found the way to fix it: tihirvon/dex#22 (comment) !! |
Hoping this is a bug that will be easy to fix:
When opening this UTF-8 sample file in diakonos and going with the cursor to the end of each line,
the cursor lines up with the end of the displayed characters, except in case of the Thai fonts (line 123-130). There the cursor is displayed way past the end of the characters. This makes it difficult to edit Thai texts.
The text was updated successfully, but these errors were encountered: