Bram Moolenaar <[email protected]> wrote:
> OK, so the input() strings are not redirected.  This works:
> 
>       redir >> test.out
>       call feedkeys("testing\<CR>")
>       echo input("say ")
>       redir END
> 
> But perhaps the echo command is sufficient to get arabic shaping?
> 
>       redir >> test.out
>       echo "testing"
>       redir END

It did redirect it but it was not shaped (no unicode presentation forms
that results from arabic_shape()); just normal unicode chars.

Anyway, in my quick glance searching for dependencies, arabic.c seems to
be mostly self contained.  So I think using it directly should not be
that hard.  A mere file data (char *) to unicode code array (int *)
conversion and the reverse seems to be all that is needed (I think
simply wcsrtombs() and mbsrtowcs() can be used for that purpose).  I'll
have a closer look later.

Thanks,
        Ali

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

Raspunde prin e-mail lui