qvacua / vimr

VimR — Neovim GUI for macOS in Swift
https://twitter.com/VimRefined
MIT License
6.66k stars 218 forks source link

Feature request: RTL language support #461

Open yardnsm opened 7 years ago

yardnsm commented 7 years ago

I think it would be great to add support for RTL languages (Hebrew and Arabic).

Currently, when typing some words in Hebrew it becomes a mess. The letters order is reversed, and some of the letters are missing:

screen shot 2017-06-09 at 0 53 09

In macOS terminal this issue does not occur (this is how it should look like):

screen shot 2017-06-09 at 0 52 50
qvacua commented 7 years ago

This will take some time, I guess... First of all, since I cannot write in any RTL languages, I cannot really test it.... Secondly I probably have to rewrite a big portion of the rendering code to accommodate this. So bear with me.

typoman commented 5 years ago

Here another RTL script user but I would love to see Arabic in a code editor. One of the only environments that support this is the MacOs terminal.app and it's because it uses CoreText. If you had used just an NSTextView, all of the writing systems will be rendered correctly; so you really don't need to take care of text rendering or rewrite a huge part of your code. I was wondering why you didn't choose this approach or why the app doesn't use the native OS text engine (CoreText)?