Support new BiDi standard
There is a BiDi/RTL standardization effort. And it is already supported by VTE library (not yet released though), see https://terminal-wg.pages.freedesktop.org/bidi/implementations.html#vte
See also https://gist.github.com/XVilka/a0e49e1c65370ba11c17 for tracking other terminals and programs.
After updating my Gnome Terminal with the new BiDi libvte (thanks to @XVilka 's efforts ), neatvi does not render BiDi text correctly anymore. Vim seems to work well if we :set biditerm.
Farid Cheraghi [email protected] wrote:
After updating my Gnome Terminal with the new BIDI libvte (thanks to @XVilka ), neatvi does not render BIDI text correctly anymore.
Sorry for my delay in answering.
The main issue is that I think a terminal should change neither the position nor the shape of characters on the screen and rendering bidirectional text should be handled by programs that use the terminal and not the terminal itself. A terminal is like a simple shelf on which you put characters; it should not change their order (or shape) on its own. Breaking this assumption by default does not seem a good idea. This may be a convenient feature for some users; in that case I suggest not changing the default behaviour, and adding an option for that instead.
Thanks for the clarification. I really expect BiDi support in the Terminal by default because I personally prefer to use Persian characters for certain filenames or to print an object with Persian chars in R to stdout without having to pipe it to neatvi . I think the best practice is to provide an option at the application level to disable the Terminal BiDi feature.
Farid Cheraghi @.***> wrote:
Thanks for the clarification. I really expect BIDI support in the terminal by default because I personally prefer to use Persian letters for certain file names; I am quite happy that I do not have to use
biconanymore. I think the best practice is to provide this option at the application level e.g. in the Vim and/or Neatvi. I think the current situation with vim showing BIDI text correctly but not being able to layout the text from "right to left" direction could be easily overcome. Neatvi could also provide the same runtime option IMHO.
I have added the LNPREF macro in conf.h that can be used to disable BiDi in vte-based terminals; the comment of its previous line gives more details.
Nevertheless, I disapprove the proposal.
Thanks, Ali
@aligrudi Thank you very much for the enhancement. I will test it as soon as possible.
If the proposal is disapproved, should this issue be closed?
Loric Brevet @.***> wrote:
If the proposal is disapproved, should this issue be closed?
I think so.
In any case, as mentioned, to use Neatvi in terminals that implement this proposal, NLPREF macro in conf.h can be defined as "\33[8l".
Ali
I cannot close it myself, so I let @XVilka or yourself @aligrudi close it.
Loric Brevet @.***> wrote:
I cannot close it myself, so I let @XVilka or yourself @aligrudi close it.
I rarely use the web interface. Is there was a way to do so by replying to an issue (via email).
Thanks, Ali
Hmm. I am not sure issues can be closed by mail.
@XVilka, would you be able to close it yourself? Thanks a lot.
@XVilka, would you be able to close it yourself? Thanks a lot.
Done.