Bram Moolenaar <[email protected]> wrote:
> > if it's a "LTR file", and in the order
> > 
> > y
> > e
> > a
> > r
> > <space>
> > 9
> > 0
> > 0
> > 2
> > 
> > if it's a "RTL file" (more probable for Arabic).
> > 
> > 
> > The Unicode standard (with which I agree for reasons outlined in my 
> > previous post, and I think you do too), is that they MUST be in the order
> 
> Can you give a reference where Unicode specifies this?

http://unicode.org/reports/tr9/?

Anyway, I don't think storing chars in presentation order is a good
idea.  Apart from problems when using the file (other tools expect the
logical order), this does not make editor's task any easier; people
write text in the logical order (not the presentation order).  For
instance in your example, although the word looks like RAEY, people
write it as YEAR.  So if this is going to work, when inserting the
editor should reverse the order of the characters that appear in parts
which use the characters in an rtl language (this algorithm is explained
in the URL above).  So in practice it might be even harder (or at least
as hard).

        Ali

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to