On Wed, 14 Aug 2013 21:59:11 +0430
Ali Gholami Rudi <[email protected]> wrote:
> As Tony pointed out, arabic.c replaces Arabic characters with their
> Unicode presentation forms; Arabic and Farsi letters have different
> shapes based on their positions inside words. My patch simplifies
> arabic.c and adds Farsi letters. The patch I use, ported to Vim-7.4,
> can be obtained from: http://litcave.rudi.ir/farsi_vim.diff
>
> Ali
>
Thanks Ali.
It worked good. Just failed for Tatweel. I suppose, it's due to this
fact your algorithm considers surrounding characters abilities for
reshaping -having [sfim] members in structure- but it's not sufficient,
at least for your table. Old code works because it's somewhat agnostic
about character abilities and it calls half-shape anyway.
I think one solution is change Tatweel structure to something like
{0x0640, 0, 0x0640, 0x0640, 0x0640}
or change can_join(), though I've not tested it yet.
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.