Loading ...
Sorry, an error occurred while loading the content.

Re: [PATCH] make adding new letters to arabic.c easier

Expand Messages
  • Tony Mechelynck
    ... I haven t (yet?) unzipped the attachment, but if all shapes of all letters (even not including harakat), plus both shapes of laam-alif (which may be
    Message 1 of 46 , Jun 8, 2009
    • 0 Attachment
      On 06/06/09 14:49, Ali Gholami Rudi wrote:
      > Ali Gholami Rudi<aliqrudi@...> wrote:
      >> I'll try to make an automatic test when I get more spare time. I did
      >> try using arabic.c directly, but realized a few simple dependencies. I
      >> didn't find the time to have closer look but it didn't look very
      >> serious.
      >
      > 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.
      >
      > Ali

      I haven't (yet?) unzipped the attachment, but if all shapes of all
      letters (even not including harakat), plus both shapes of laam-alif
      (which may be regarded as composed but is still used even in
      non-vocalized text), have to be included, it would have to be several
      times longer than "the quick brown fox jumps over the lazy dog". Still
      manageable, of course, if cleverly contrived.


      Best regards,
      Tony.
      --
      Everybody wants to go to heaven, but nobody wants to die.

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Ameretat Reith
      On Wed, 08 Oct 2014 08:11:34 +0330 ... For ZWNJ, I did a tiny modification telling `arabic_shape` in one of it s invocations, to separate letters based on
      Message 46 of 46 , Oct 12, 2014
      • 0 Attachment
        On Wed, 08 Oct 2014 08:11:34 +0330
        Ali Gholami Rudi <ali.gholami.rudi@...> wrote:

        > I tested it and it is working wonderfully. The only issue is
        > ZWNJ (unicode 0x200c) and ZWJ (unicode 0x200d); I wonder if
        > the letters before and after these characters can be shaped
        > properly...

        For ZWNJ, I did a tiny modification telling `arabic_shape` in one of
        it's invocations, to separate letters based on previously entered ZWNJ
        character. ZWJ could be treated similarly but I doubt with current
        provided letters which are limited to Arabic and Farsi, there could be a
        use case for ZWJ.

        You can apply `zwnj.0.patch` on a recent vim tarball or `zwnj.1.patch`
        on top of your patch.

        --
        --
        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 vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/d/optout.
      Your message has been successfully submitted and would be delivered to recipients shortly.