Hi, Ali Gholami Rudi <[email protected]> wrote: > I've created a basic test (attached); it ignores composing chars for > now. Files: > > * input: contains a sample arabic text > * old: arabic.[hc] before changing it > * new: arabic.[hc] after changing > * runtest.sh: runs the test > > runtests first uses the "old" folder to create the expected output. > Then it uses "new" folder to create the real output and finally compares > them. As mentioned, it does not handle composing characters yet.
This version handles composing characters, too.
* I've updated new/arabic.[hc] a bit
* old/arabic.[hc] (mainline version) assumes laa combination if the
first char is LAM and that is the reason for arabic_combine in
mbyte.c (which has been moved to arabic.c in the new version). There
is a minimal change in the old/arabic.[hc] to handle laa combination
correctly.
* arabictest.c assumes a UTF-8 locale
So you can compare the old shaping with the new one; simply put your
arabic text into the "input" file and run the runtest.sh script. If you
see any difference, please report.
Ali
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
vim_arabic_test.tar.gz
Description: Binary data
