Bram Moolenaar <[email protected]> wrote:
> Ali Gholami Rudi wrote:
> > was not what I expected. So I think it is a better idea to call
> > arabic_shape() directly from a C program:
> >
> > 1. write a normal file containing some Arabic/Farsi text
> > 2. obtain the expected output by reading the file and calling
> > arabic_shape() on its chars and write it to another file (arabic.c
> > not changed yet)
> > 3. change arabic.c
> > 4. test to see if applying arabic_shape() on the test input yields the
> > expected output
>
> The arabic shaping also works when displaying a message on the command
> line. You could try using :redir to catch the output, something like:
>
> :redir >>test.out
> :call feedkeys("\<CR>")
> :call input(test_string)
> :redir END
>
> I haven't tried it!
It seems calling input writes nothing to test.out but, for instance,
":p" output gets redirected as expected. Am I doing something wrong?
Ali
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---