perl-unicode

Re: Bidirectional (bidi) Support?

2003-10-25 14:30:06

"Bob Hallissy" <Bob_Hallissy(_at_)sil(_dot_)org> wrote in message
news:OFA3E32D4C.D67B7CEA->ON80256DC7(_dot_)0038F9CD(_at_)notes(_dot_)sil(_dot_)org(_dot_)(_dot_)(_dot_)

On 21/10/2003 01:09:32 "Chris Whiting" wrote:

I have implemented ... an Arabic shaping algorithm in
Perl and was wondering if it would be useful to upload it to cpan.

I presume your algorithm depends on the Arabic presentation forms available
as separately encoded >characters in Unicode. If this is the case, and given
that lots of Arabic characters in Unicode do not have >all their
presentation forms separately encoded, nor will any new presentation forms
be added to the >standard, it would seem such an algorithm would be of
limited, and perhaps, misleading help.


The algorithm, and all that I have seen, convert Arabic characters in the
\x{06--} range to Arabic Presentation Forms A ( starting at \x{FB50} or B
( starting at \x{FE70} ) characters depending on their medial, isolated,
initial, and final values per the Unicode standard.

I am not sure that I understand your point.  Isn't this the purpose of the
Arabic Presentation Forms?

I have found several different algorthms that do this but have found none on
CPAN.  Note that I may help someone else (who has a simpler module than
mine) to upload his files.

I use the modules when rendering text on images using ImageMagick which
performs no shaping nor bidi algorithm.  Without this shaping module  many
of the characters are not rendered correctly.  It my case the shaping module
is not limited nor misleading but required.

Perhaps, you have a better way?

Chris


Bob


<Prev in Thread] Current Thread [Next in Thread>