Sunday, February 20, 2011

Re: bidi in vim

Moshe Kamensky wrote:

> I am interested in writing bidirectional text in Vim. I realise, from
> previous discussions on the list, the it would be difficult to support
> the bidi standard in Vim. However, I was wondering if a more manual
> approach would be easier to implement. What I had in mind was to extend
> the syntax highlighting system, to allow specifying the direction of a
> syntax region. This would mean that the direction of a character is
> determined by its syntax group, so no implementation of the bidi
> algorithm is necessary. Of course, displaying a string in the correct
> direction is more complicated than highlighting with a given colour, but
> perhaps it is easy enough (I'm not familiar with the code).
>
> If this can be done, I think it will solve most practical problems,
> since when editing latex, for example, text in different direction will
> appear in particular commands or environments.

This might work for displaying the text, but how about moving the cursor
through it? And how would commands like "c2w" work when they cross the
bidi boundary?

--
FIRST HEAD: All right! All right! We'll kill him first and then have tea and
biscuits.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: