RE: [Flashcoders] flash and Arabic

2007-05-02 Thread Danny Kodicek
 
> Thanks for the help!
> 
> In your professional opinion is "almost the same" good enough 
> or will I need to tweak the char set? So you know I'm only 
> displaying short button labels and headings.

I don't speak Arabic or know anything about it other than what's in the
Unicode data :) I get the impression that Persian is a superset of standard
Arabic (like adding accented European characters to standard Roman), so
something that works with Persian should display standard Arabic correctly
too (I think there are some differences with ligatures, but they're minor).
I know nothing about Sorani, but I'd suggest trying it out and seeing how
things turn out.

By the way: if your text is short and doesn't need line breaks, you *may*
find that if you use non-embedded fonts your text will display correctly
with no work at all. Try that first if you're willing to sacrifice a little
quality.

> Also we're getting the copy supplied from a translation 
> house, the Project Manager said this will be coming over as 
> pdf. I've got a full copy of Acrobat so hope this shouldn't 
> be a problem. If it is would you recommend any other format 
> for them to supply in?

AFAIK, Acrobat supports RTL languages fine (although you may need to install
the language pack on your machine).
> 
> I can't seem to log into the archives, which is frustrating.

You should be able to search them with Google: try 'flashcoders kodicek
arabic' as a search string.

Best
Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-05-02 Thread Jolyon Russ

Thanks for the help!

In your professional opinion is "almost the same" good enough or will I need
to tweak the char set? So you know I'm only displaying short button labels
and headings.

The languages I'm going to be needing to display are Arabic and Sorani. I
think Sorani is as different to Arabic as Persian is to Arabic, but what do
I know?

Also we're getting the copy supplied from a translation house, the Project
Manager said this will be coming over as pdf. I've got a full copy of
Acrobat so hope this shouldn't be a problem. If it is would you recommend
any other format for them to supply in?

I can't seem to log into the archives, which is frustrating.

Cheers again.


Jolyon

On 5/2/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:


> Has anyone had any experience of using the Flash RTL classes
> from here:
> http://www.flashrtl.com/
>
> They seem to be good for Persian, but need porting to other
> char sets, and a general clean up/re-write.
>
> To do this I need to get a better idea of what needs to be
> converted, the order of words or the order of characters but
> not words, or both? I guess this is also dependant on the
> source, for me I'm loading in from XML.
>
> It's still early in the project and I'd like to get this
> nailed down before committing 100% to doing RTL.

If you look back over the archives you'll find a few posts from me on this
subject. For display purposes you may find these classes are enough for
you
- Persian and standard Arabic are almost the same in terms of the
character
set, and Hebrew is much simpler (just plain bidirectional).

Best
Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flash and Arabic

2007-05-02 Thread Danny Kodicek
 > Has anyone had any experience of using the Flash RTL classes 
> from here:
> http://www.flashrtl.com/
> 
> They seem to be good for Persian, but need porting to other 
> char sets, and a general clean up/re-write.
> 
> To do this I need to get a better idea of what needs to be 
> converted, the order of words or the order of characters but 
> not words, or both? I guess this is also dependant on the 
> source, for me I'm loading in from XML.
> 
> It's still early in the project and I'd like to get this 
> nailed down before committing 100% to doing RTL.

If you look back over the archives you'll find a few posts from me on this
subject. For display purposes you may find these classes are enough for you
- Persian and standard Arabic are almost the same in terms of the character
set, and Hebrew is much simpler (just plain bidirectional). 

Best
Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-05-02 Thread Jolyon Russ

Has anyone had any experience of using the Flash RTL classes from here:
http://www.flashrtl.com/

They seem to be good for Persian, but need porting to other char sets, and a
general clean up/re-write.

To do this I need to get a better idea of what needs to be converted, the
order of words or the order of characters but not words, or both? I guess
this is also dependant on the source, for me I'm loading in from XML.

It's still early in the project and I'd like to get this nailed down before
committing 100% to doing RTL.

Help appreciated.


Jolyon

On 3/29/07, Yehia Shouman <[EMAIL PROTECTED]> wrote:


I once emailed Kevin Lynch and the guy generously replied with this:

> Hi Yehia-
>
> Thanks for your note.
>
> Right-to-left text support in Flash Player is an important feature,
> and we know it would be a key addition to the platform. Implementing
> this feature to deliver the right quality is a fairly big undertaking
> -- and we also need to factor in cross-platform support, maintaining
> the stability of the player, and keeping the code size small.  All
> requests for new features are investigated using these same standards
> as we prioritize features for each release. Product Management is
> aware of the need for right-to-left text support. Although we cannot
> provide an exact date for when it will be supported, it is definitely
> under evaluation.
>
> thanks
>
> Kevin
>

Flash supports unicode, it just isn't RTL supportive. Furthermore to this
issue, if you try to use arabic, you won't be able to get a proper text
wrap. There will be compatibility issues on different Windows versions and
between Mac, worth saying backward compatibility with older Flash players
that knows not of unicode. I seriously hope Adobe 's involvement will be
beneficial. (Wish:Adobe Flash CS3 ME)

Regards,
Yehia Shouman
Senior AS Developer and TL
www.santeon.com


On 3/29/07, Omar Fouad <[EMAIL PROTECTED]> wrote:
>
> Well the most thing i used is importing arabic written text from
freehand
> (converted to vectors) and it is just fine... Regarding writing it in
> dynamic text boxes at runtime like this:
>
> myTextField.text "ولا حاجة" it works but you still have to take care
> about text wrapping as in flash doesnt recognize the end of a word, and
> so,
> in multi line cases, sometimes a single word splits.. i used to solve
this
> problem by adding some extra spaces before the last word in a single
> line...
> and the same by parsing text from a metadata in xml...
>
> Hope this helps
>
> regards...
>
>
>
> On 3/29/07, Shaun Collins <[EMAIL PROTECTED]> wrote:
> >
> > I've worked with Arabic in Flash and yes those are the
> > exact problems I experienced. There is an application
> > that will allow you to cut and paste arabic to other
> > applications without destroying the format. It won't
> > work if you're looking for a dynamic solution - if
> > anyone knows of one that would be great.
> >
> > http://www.layoutltd.com/alrassam.php
> >
> > There are arabic fonts you can use in flash but that
> > still doesn't solve the problem of getting the arabic
> > into flash in the right format if you are cutting and
> > pasting.
> >
> > Hope that helps some.
> >
> > --- Omar Fouad <[EMAIL PROTECTED]> wrote:
> >
> > > I work A lot using arabic in flash... I used to
> > > write arabic text
> > > dynamically into dynamic textfields, from xml, or
> > > action script in run
> > > time... Or by writing the arabic text in Free Hand,
> > > Than breaking it into
> > > vector and pasting it into flash as Vector...
> > >
> > > On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote:
> > > >
> > > > We have an approach to deal with a list of 100
> > > phrases in Arabic.
> > > > When you copy and paste a phrase of Arabic into a
> > > Flash textbox,
> > > > Flash reverses it!  So, we first reversed the
> > > characters outside of
> > > > Flash and then copied and pasted the phrases into
> > > Flash.  Problem
> > > > solved right?
> > > >
> > > > We'll, when someone that can read Arabic read it,
> > > they told us that
> > > > the characters look funny.  In essence, the
> > > characters weren't
> > > > connecting to each other correctly!  It's as if
> > > you took a cursive
> > > > font and laid out the characters and the cursive
> > > writing was not
> > > > continuous.
> > > >
> > > > Does anyone have any suggestions on handling Flash
> > > and Arabic?  I did
> > > > some extensive searching and there aren't any
> > > definitive
> > > > solutions...Some suggested using a special Flash
> > > Arabic font, which I
> > > > couldn't find.
> > > >
> > > > Help!
> > > > -James
> > > >
> > > > ___
> > > > [email protected]
> > > > To change your subscription options or search the
> > > archive:
> > > >
> > >
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > > Brought to you by Fig Leaf Software
> > > > Premier Authorized Adobe Consulting and Training
> > > > http://www.figl

RE: [Flashcoders] flash and Arabic

2007-04-16 Thread Danny Kodicek
 > We tried the following:
> (we're embedding fonts in all cases, also we don't have 
> require any input fields...we're just displaying Arabic)

If you don't mind poor antialiasing, you could try not embedding the font -
this fixes all the problems you mention, for dynamic text.
> 
> -Copied Arabic text into a static text field...flash actually  
> reverses the characters.  So we copied reversed text a static 
> field.   
> Then when we published, it seems that the characters were not 
> being displayed correctly.  An arabic reader took a look at 
> it and told us  
> that the arabic characters didn't connect to each other correctly!   
> It's as if you took English script characters and broke them apart!

This quite surprises me, I'd have thought static would work fine. You could
try breaking apart the text once you've pasted it in, this should stop Flash
messing about with it.

> 
> We then tried a few more experiments...
> - copy and pasted Arabic text (normal order) into a dynamic 
> field...flash flipped it.  But when you publish it for Player 
> 8, the order of the text is correct, but the characters 
> looked disjointed again.
> 
> -We published it for Player 7 and this time everything looked 
> perfect.  The order of the text was correct and the 
> characters looked connected!!!
> 
> We basically have all the text assets in a separate .swf 
> (published for Player 7) and we're using it as a runtime 
> shared library.  Our main app is published as Player 8.
> 
> Has anyone else seen this?  Am I not doing something right 
> here? I'm shocked that support for Arabic (and I'm assuming other RTL
> languages) took a step backwards from Player 7 to Player 8.  
> I wonder what it is in Player 9.

Arabic is different from other RTL scripts (well, Hebrew anyway, which is
the only other one I know about) in that it's cursive. Hebrew doesn't suffer
from this complication, so all you have to worry about is bidirectionality. 

All the problems you give, especially variations across Flash versions,
browsers, operating systems etc, were why we ended up going down the
'complete control' route. My system does the whole thing manually, including
BiDi, cursive variations, ligatures and line breaking. It's not easy,
although there was a certain satisfaction in it :)

Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-04-16 Thread nik crosina

So Adobe Director is not alone in behaving oddly with fonts, char sets
and languages ...
... that makes me really look forward to that project now ;)

Thanks,

Nik Crosina

On 4/16/07, James Tu <[EMAIL PROTECTED]> wrote:

We tried the following:
(we're embedding fonts in all cases, also we don't have require any
input fields...we're just displaying Arabic)

-Copied Arabic text into a static text field...flash actually
reverses the characters.  So we copied reversed text a static field.
Then when we published, it seems that the characters were not being
displayed correctly.  An arabic reader took a look at it and told us
that the arabic characters didn't connect to each other correctly!
It's as if you took English script characters and broke them apart!

We then tried a few more experiments...
- copy and pasted Arabic text (normal order) into a dynamic
field...flash flipped it.  But when you publish it for Player 8, the
order of the text is correct, but the characters looked disjointed
again.

-We published it for Player 7 and this time everything looked
perfect.  The order of the text was correct and the characters looked
connected!!!

We basically have all the text assets in a separate .swf (published
for Player 7) and we're using it as a runtime shared library.  Our
main app is published as Player 8.

Has anyone else seen this?  Am I not doing something right here? I'm
shocked that support for Arabic (and I'm assuming other RTL
languages) took a step backwards from Player 7 to Player 8.  I wonder
what it is in Player 9.


-James


On Apr 16, 2007, at 7:10 AM, nik crosina wrote:

> Thank you very much, Danny,
>
>
> Yes I thought that this post sank without a trace, lucky you saw it!
>
> Fro the moment I jsut needed to know if there were any issues, as I am
> tendering for an English course DVD that will be sold in the Middle
> East.
>
> Do I remember seeing your name on Director forums a long time ago?
>
>
> Nik Crosina
>
>
> On 4/16/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:
>>  > HI,
>> >
>> > It now transpires that the project I am quoting for needs
>> > much of it done in Arabic. As it is my first multi language
>> > project in Flash are there any issues with that in Flash (I
>> > could write an encyclopedia full about Director and its
>> > characater set issues)
>>
>> Just got back from holiday and noticed this post which doesn't
>> seem to have
>> had any replies.
>>
>> Arabic in Flash is possible but tricky. Exactly how tricky depends
>> on what
>> exactly you need to do. Just putting static Arabic text on screen
>> is easy -
>> no different from Roman. Dynamic text is essentially okay, but you
>> need to
>> watch out for RTL and Bidirectional issues. One major issue is
>> that Flash
>> behaves differently for embedded and non-embedded fonts. Text
>> rendered using
>> non-embedded fonts uses the OS-level text renderer, and so renders
>> the text
>> using the standard Bidirectional algorithm. For single-line text
>> this is
>> perfect (although we didn't test for a very wide range of OS's and
>> browsers
>> - I suspect there might be some niggles on various combinations); for
>> multiple-line text you'll find that line breaks do not get added
>> correctly
>> (words get broken half-way across) so you'll need to add your line
>> breaks
>> directly into the dynamic text. Text rendered using embedded fonts
>> does not
>> render correctly: it has the same line-break issues as before, but
>> also it
>> renders LTR and fails to correctly interpret the Arabic characters
>> into
>> their cursive variants (that is, join them correctly to give the
>> 'handwritten' style that Arabic text should have). There are ways
>> around
>> this, including some code libraries (check out FlashRTL).
>> Personally, I
>> prefer this option as you're in more control - I hate leaving
>> things to the
>> OS unless I absolutely have to!
>>
>> Of course, the above also depends on the *source* of your dynamic
>> text: if
>> you're in complete control, you can store the text directly as the
>> characters that will appear on-screen. But if it's coming from
>> something
>> like an external XML file or some other data source, you'll need
>> to consider
>> these issues.
>>
>> If you want input text, you're in a different kettle of
>> crustaceans. We
>> managed to solve it, but it was a big job. There aren't currently any
>> available commercial solutions to this, but hopefully as soon as I'm
>> finished with my enormous globalisation job that's taken me the
>> best part of
>> a year, we'll be releasing my solution in some form.
>>
>> Danny
>>
>> ___
>> [email protected]
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
>
>
> --
> Nik C
> ___

Re: [Flashcoders] flash and Arabic

2007-04-16 Thread James Tu

We tried the following:
(we're embedding fonts in all cases, also we don't have require any  
input fields...we're just displaying Arabic)


-Copied Arabic text into a static text field...flash actually  
reverses the characters.  So we copied reversed text a static field.   
Then when we published, it seems that the characters were not being  
displayed correctly.  An arabic reader took a look at it and told us  
that the arabic characters didn't connect to each other correctly!   
It's as if you took English script characters and broke them apart!


We then tried a few more experiments...
- copy and pasted Arabic text (normal order) into a dynamic  
field...flash flipped it.  But when you publish it for Player 8, the  
order of the text is correct, but the characters looked disjointed  
again.


-We published it for Player 7 and this time everything looked  
perfect.  The order of the text was correct and the characters looked  
connected!!!


We basically have all the text assets in a separate .swf (published  
for Player 7) and we're using it as a runtime shared library.  Our  
main app is published as Player 8.


Has anyone else seen this?  Am I not doing something right here? I'm  
shocked that support for Arabic (and I'm assuming other RTL  
languages) took a step backwards from Player 7 to Player 8.  I wonder  
what it is in Player 9.



-James


On Apr 16, 2007, at 7:10 AM, nik crosina wrote:


Thank you very much, Danny,


Yes I thought that this post sank without a trace, lucky you saw it!

Fro the moment I jsut needed to know if there were any issues, as I am
tendering for an English course DVD that will be sold in the Middle
East.

Do I remember seeing your name on Director forums a long time ago?


Nik Crosina


On 4/16/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:

 > HI,
>
> It now transpires that the project I am quoting for needs
> much of it done in Arabic. As it is my first multi language
> project in Flash are there any issues with that in Flash (I
> could write an encyclopedia full about Director and its
> characater set issues)

Just got back from holiday and noticed this post which doesn't  
seem to have

had any replies.

Arabic in Flash is possible but tricky. Exactly how tricky depends  
on what
exactly you need to do. Just putting static Arabic text on screen  
is easy -
no different from Roman. Dynamic text is essentially okay, but you  
need to
watch out for RTL and Bidirectional issues. One major issue is  
that Flash
behaves differently for embedded and non-embedded fonts. Text  
rendered using
non-embedded fonts uses the OS-level text renderer, and so renders  
the text
using the standard Bidirectional algorithm. For single-line text  
this is
perfect (although we didn't test for a very wide range of OS's and  
browsers

- I suspect there might be some niggles on various combinations); for
multiple-line text you'll find that line breaks do not get added  
correctly
(words get broken half-way across) so you'll need to add your line  
breaks
directly into the dynamic text. Text rendered using embedded fonts  
does not
render correctly: it has the same line-break issues as before, but  
also it
renders LTR and fails to correctly interpret the Arabic characters  
into

their cursive variants (that is, join them correctly to give the
'handwritten' style that Arabic text should have). There are ways  
around
this, including some code libraries (check out FlashRTL).  
Personally, I
prefer this option as you're in more control - I hate leaving  
things to the

OS unless I absolutely have to!

Of course, the above also depends on the *source* of your dynamic  
text: if

you're in complete control, you can store the text directly as the
characters that will appear on-screen. But if it's coming from  
something
like an external XML file or some other data source, you'll need  
to consider

these issues.

If you want input text, you're in a different kettle of  
crustaceans. We

managed to solve it, but it was a big job. There aren't currently any
available commercial solutions to this, but hopefully as soon as I'm
finished with my enormous globalisation job that's taken me the  
best part of

a year, we'll be releasing my solution in some form.

Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Nik C
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcode

Re: [Flashcoders] flash and Arabic

2007-04-16 Thread nik crosina

same here,
Nik

On 4/16/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:


> Thank you very much, Danny,
>
>
> Yes I thought that this post sank without a trace, lucky you saw it!
>
> Fro the moment I jsut needed to know if there were any
> issues, as I am tendering for an English course DVD that will
> be sold in the Middle East.
>
> Do I remember seeing your name on Director forums a long time ago?

You'll still see it on some of them :) I work on a big Flash-in-Director
project, so I encounter some of the worst of both worlds...

Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Nik C
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flash and Arabic

2007-04-16 Thread Danny Kodicek
 
> Thank you very much, Danny,
> 
> 
> Yes I thought that this post sank without a trace, lucky you saw it!
> 
> Fro the moment I jsut needed to know if there were any 
> issues, as I am tendering for an English course DVD that will 
> be sold in the Middle East.
> 
> Do I remember seeing your name on Director forums a long time ago?

You'll still see it on some of them :) I work on a big Flash-in-Director
project, so I encounter some of the worst of both worlds...

Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-04-16 Thread nik crosina

Thank you very much, Danny,


Yes I thought that this post sank without a trace, lucky you saw it!

Fro the moment I jsut needed to know if there were any issues, as I am
tendering for an English course DVD that will be sold in the Middle
East.

Do I remember seeing your name on Director forums a long time ago?


Nik Crosina


On 4/16/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:

 > HI,
>
> It now transpires that the project I am quoting for needs
> much of it done in Arabic. As it is my first multi language
> project in Flash are there any issues with that in Flash (I
> could write an encyclopedia full about Director and its
> characater set issues)

Just got back from holiday and noticed this post which doesn't seem to have
had any replies.

Arabic in Flash is possible but tricky. Exactly how tricky depends on what
exactly you need to do. Just putting static Arabic text on screen is easy -
no different from Roman. Dynamic text is essentially okay, but you need to
watch out for RTL and Bidirectional issues. One major issue is that Flash
behaves differently for embedded and non-embedded fonts. Text rendered using
non-embedded fonts uses the OS-level text renderer, and so renders the text
using the standard Bidirectional algorithm. For single-line text this is
perfect (although we didn't test for a very wide range of OS's and browsers
- I suspect there might be some niggles on various combinations); for
multiple-line text you'll find that line breaks do not get added correctly
(words get broken half-way across) so you'll need to add your line breaks
directly into the dynamic text. Text rendered using embedded fonts does not
render correctly: it has the same line-break issues as before, but also it
renders LTR and fails to correctly interpret the Arabic characters into
their cursive variants (that is, join them correctly to give the
'handwritten' style that Arabic text should have). There are ways around
this, including some code libraries (check out FlashRTL). Personally, I
prefer this option as you're in more control - I hate leaving things to the
OS unless I absolutely have to!

Of course, the above also depends on the *source* of your dynamic text: if
you're in complete control, you can store the text directly as the
characters that will appear on-screen. But if it's coming from something
like an external XML file or some other data source, you'll need to consider
these issues.

If you want input text, you're in a different kettle of crustaceans. We
managed to solve it, but it was a big job. There aren't currently any
available commercial solutions to this, but hopefully as soon as I'm
finished with my enormous globalisation job that's taken me the best part of
a year, we'll be releasing my solution in some form.

Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Nik C
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] flash and Arabic

2007-04-16 Thread Danny Kodicek
 > HI,
> 
> It now transpires that the project I am quoting for needs 
> much of it done in Arabic. As it is my first multi language 
> project in Flash are there any issues with that in Flash (I 
> could write an encyclopedia full about Director and its 
> characater set issues)

Just got back from holiday and noticed this post which doesn't seem to have
had any replies.

Arabic in Flash is possible but tricky. Exactly how tricky depends on what
exactly you need to do. Just putting static Arabic text on screen is easy -
no different from Roman. Dynamic text is essentially okay, but you need to
watch out for RTL and Bidirectional issues. One major issue is that Flash
behaves differently for embedded and non-embedded fonts. Text rendered using
non-embedded fonts uses the OS-level text renderer, and so renders the text
using the standard Bidirectional algorithm. For single-line text this is
perfect (although we didn't test for a very wide range of OS's and browsers
- I suspect there might be some niggles on various combinations); for
multiple-line text you'll find that line breaks do not get added correctly
(words get broken half-way across) so you'll need to add your line breaks
directly into the dynamic text. Text rendered using embedded fonts does not
render correctly: it has the same line-break issues as before, but also it
renders LTR and fails to correctly interpret the Arabic characters into
their cursive variants (that is, join them correctly to give the
'handwritten' style that Arabic text should have). There are ways around
this, including some code libraries (check out FlashRTL). Personally, I
prefer this option as you're in more control - I hate leaving things to the
OS unless I absolutely have to! 

Of course, the above also depends on the *source* of your dynamic text: if
you're in complete control, you can store the text directly as the
characters that will appear on-screen. But if it's coming from something
like an external XML file or some other data source, you'll need to consider
these issues.

If you want input text, you're in a different kettle of crustaceans. We
managed to solve it, but it was a big job. There aren't currently any
available commercial solutions to this, but hopefully as soon as I'm
finished with my enormous globalisation job that's taken me the best part of
a year, we'll be releasing my solution in some form.

Danny

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-03-29 Thread Yehia Shouman

I once emailed Kevin Lynch and the guy generously replied with this:


Hi Yehia-

Thanks for your note.

Right-to-left text support in Flash Player is an important feature,
and we know it would be a key addition to the platform. Implementing
this feature to deliver the right quality is a fairly big undertaking
-- and we also need to factor in cross-platform support, maintaining
the stability of the player, and keeping the code size small.  All
requests for new features are investigated using these same standards
as we prioritize features for each release. Product Management is
aware of the need for right-to-left text support. Although we cannot
provide an exact date for when it will be supported, it is definitely
under evaluation.

thanks

Kevin



Flash supports unicode, it just isn't RTL supportive. Furthermore to this
issue, if you try to use arabic, you won't be able to get a proper text
wrap. There will be compatibility issues on different Windows versions and
between Mac, worth saying backward compatibility with older Flash players
that knows not of unicode. I seriously hope Adobe 's involvement will be
beneficial. (Wish:Adobe Flash CS3 ME)

Regards,
Yehia Shouman
Senior AS Developer and TL
www.santeon.com


On 3/29/07, Omar Fouad <[EMAIL PROTECTED]> wrote:


Well the most thing i used is importing arabic written text from freehand
(converted to vectors) and it is just fine... Regarding writing it in
dynamic text boxes at runtime like this:

myTextField.text "ولا حاجة" it works but you still have to take care
about text wrapping as in flash doesnt recognize the end of a word, and
so,
in multi line cases, sometimes a single word splits.. i used to solve this
problem by adding some extra spaces before the last word in a single
line...
and the same by parsing text from a metadata in xml...

Hope this helps

regards...



On 3/29/07, Shaun Collins <[EMAIL PROTECTED]> wrote:
>
> I've worked with Arabic in Flash and yes those are the
> exact problems I experienced. There is an application
> that will allow you to cut and paste arabic to other
> applications without destroying the format. It won't
> work if you're looking for a dynamic solution - if
> anyone knows of one that would be great.
>
> http://www.layoutltd.com/alrassam.php
>
> There are arabic fonts you can use in flash but that
> still doesn't solve the problem of getting the arabic
> into flash in the right format if you are cutting and
> pasting.
>
> Hope that helps some.
>
> --- Omar Fouad <[EMAIL PROTECTED]> wrote:
>
> > I work A lot using arabic in flash... I used to
> > write arabic text
> > dynamically into dynamic textfields, from xml, or
> > action script in run
> > time... Or by writing the arabic text in Free Hand,
> > Than breaking it into
> > vector and pasting it into flash as Vector...
> >
> > On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote:
> > >
> > > We have an approach to deal with a list of 100
> > phrases in Arabic.
> > > When you copy and paste a phrase of Arabic into a
> > Flash textbox,
> > > Flash reverses it!  So, we first reversed the
> > characters outside of
> > > Flash and then copied and pasted the phrases into
> > Flash.  Problem
> > > solved right?
> > >
> > > We'll, when someone that can read Arabic read it,
> > they told us that
> > > the characters look funny.  In essence, the
> > characters weren't
> > > connecting to each other correctly!  It's as if
> > you took a cursive
> > > font and laid out the characters and the cursive
> > writing was not
> > > continuous.
> > >
> > > Does anyone have any suggestions on handling Flash
> > and Arabic?  I did
> > > some extensive searching and there aren't any
> > definitive
> > > solutions...Some suggested using a special Flash
> > Arabic font, which I
> > > couldn't find.
> > >
> > > Help!
> > > -James
> > >
> > > ___
> > > [email protected]
> > > To change your subscription options or search the
> > archive:
> > >
> >
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> > >
> >
> >
> >
> > --
> > Omar Fouad - Digital Emotions...
> >
> > Love is always patient and kind. It is never
> > jealous. Love is never boastful
> > nor conceited It is never rude or selfish. It does
> > not take offense and is
> > not resentful. Love takes no pleasure in other
> > people's sins...but delights
> > in the truth. It is always ready to excuse, to
> > trust, to hope... and to
> > endure... whatever comes.
> > ___
> > [email protected]
> > To change your subscription options or search the
> > archive:
> >
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> 

Re: [Flashcoders] flash and Arabic

2007-03-29 Thread Omar Fouad

Well the most thing i used is importing arabic written text from freehand
(converted to vectors) and it is just fine... Regarding writing it in
dynamic text boxes at runtime like this:

myTextField.text "ولا حاجة" it works but you still have to take care
about text wrapping as in flash doesnt recognize the end of a word, and so,
in multi line cases, sometimes a single word splits.. i used to solve this
problem by adding some extra spaces before the last word in a single line...
and the same by parsing text from a metadata in xml...

Hope this helps

regards...



On 3/29/07, Shaun Collins <[EMAIL PROTECTED]> wrote:


I've worked with Arabic in Flash and yes those are the
exact problems I experienced. There is an application
that will allow you to cut and paste arabic to other
applications without destroying the format. It won't
work if you're looking for a dynamic solution - if
anyone knows of one that would be great.

http://www.layoutltd.com/alrassam.php

There are arabic fonts you can use in flash but that
still doesn't solve the problem of getting the arabic
into flash in the right format if you are cutting and
pasting.

Hope that helps some.

--- Omar Fouad <[EMAIL PROTECTED]> wrote:

> I work A lot using arabic in flash... I used to
> write arabic text
> dynamically into dynamic textfields, from xml, or
> action script in run
> time... Or by writing the arabic text in Free Hand,
> Than breaking it into
> vector and pasting it into flash as Vector...
>
> On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote:
> >
> > We have an approach to deal with a list of 100
> phrases in Arabic.
> > When you copy and paste a phrase of Arabic into a
> Flash textbox,
> > Flash reverses it!  So, we first reversed the
> characters outside of
> > Flash and then copied and pasted the phrases into
> Flash.  Problem
> > solved right?
> >
> > We'll, when someone that can read Arabic read it,
> they told us that
> > the characters look funny.  In essence, the
> characters weren't
> > connecting to each other correctly!  It's as if
> you took a cursive
> > font and laid out the characters and the cursive
> writing was not
> > continuous.
> >
> > Does anyone have any suggestions on handling Flash
> and Arabic?  I did
> > some extensive searching and there aren't any
> definitive
> > solutions...Some suggested using a special Flash
> Arabic font, which I
> > couldn't find.
> >
> > Help!
> > -James
> >
> > ___
> > [email protected]
> > To change your subscription options or search the
> archive:
> >
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
>
> --
> Omar Fouad - Digital Emotions...
>
> Love is always patient and kind. It is never
> jealous. Love is never boastful
> nor conceited It is never rude or selfish. It does
> not take offense and is
> not resentful. Love takes no pleasure in other
> people's sins...but delights
> in the truth. It is always ready to excuse, to
> trust, to hope... and to
> endure... whatever comes.
> ___
> [email protected]
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] flash and Arabic

2007-03-28 Thread Shaun Collins
I've worked with Arabic in Flash and yes those are the
exact problems I experienced. There is an application
that will allow you to cut and paste arabic to other
applications without destroying the format. It won't
work if you're looking for a dynamic solution - if
anyone knows of one that would be great.

http://www.layoutltd.com/alrassam.php

There are arabic fonts you can use in flash but that
still doesn't solve the problem of getting the arabic
into flash in the right format if you are cutting and
pasting.

Hope that helps some.

--- Omar Fouad <[EMAIL PROTECTED]> wrote:

> I work A lot using arabic in flash... I used to
> write arabic text
> dynamically into dynamic textfields, from xml, or
> action script in run
> time... Or by writing the arabic text in Free Hand,
> Than breaking it into
> vector and pasting it into flash as Vector...
> 
> On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote:
> >
> > We have an approach to deal with a list of 100
> phrases in Arabic.
> > When you copy and paste a phrase of Arabic into a
> Flash textbox,
> > Flash reverses it!  So, we first reversed the
> characters outside of
> > Flash and then copied and pasted the phrases into
> Flash.  Problem
> > solved right?
> >
> > We'll, when someone that can read Arabic read it,
> they told us that
> > the characters look funny.  In essence, the
> characters weren't
> > connecting to each other correctly!  It's as if
> you took a cursive
> > font and laid out the characters and the cursive
> writing was not
> > continuous.
> >
> > Does anyone have any suggestions on handling Flash
> and Arabic?  I did
> > some extensive searching and there aren't any
> definitive
> > solutions...Some suggested using a special Flash
> Arabic font, which I
> > couldn't find.
> >
> > Help!
> > -James
> >
> > ___
> > [email protected]
> > To change your subscription options or search the
> archive:
> >
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> 
> 
> 
> -- 
> Omar Fouad - Digital Emotions...
> 
> Love is always patient and kind. It is never
> jealous. Love is never boastful
> nor conceited It is never rude or selfish. It does
> not take offense and is
> not resentful. Love takes no pleasure in other
> people's sins...but delights
> in the truth. It is always ready to excuse, to
> trust, to hope... and to
> endure... whatever comes.
> ___
> [email protected]
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-03-28 Thread Alias™

Hi Omar,

How well has this worked out? Does the text display properly? Are the
issues to do with RTL text input a major problem?

I'd be very interested to know.

Sincerely,
Alias

On 27/03/07, Omar Fouad <[EMAIL PROTECTED]> wrote:

I work A lot using arabic in flash... I used to write arabic text
dynamically into dynamic textfields, from xml, or action script in run
time... Or by writing the arabic text in Free Hand, Than breaking it into
vector and pasting it into flash as Vector...

On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote:
>
> We have an approach to deal with a list of 100 phrases in Arabic.
> When you copy and paste a phrase of Arabic into a Flash textbox,
> Flash reverses it!  So, we first reversed the characters outside of
> Flash and then copied and pasted the phrases into Flash.  Problem
> solved right?
>
> We'll, when someone that can read Arabic read it, they told us that
> the characters look funny.  In essence, the characters weren't
> connecting to each other correctly!  It's as if you took a cursive
> font and laid out the characters and the cursive writing was not
> continuous.
>
> Does anyone have any suggestions on handling Flash and Arabic?  I did
> some extensive searching and there aren't any definitive
> solutions...Some suggested using a special Flash Arabic font, which I
> couldn't find.
>
> Help!
> -James
>
> ___
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flash and Arabic

2007-03-27 Thread Omar Fouad

I work A lot using arabic in flash... I used to write arabic text
dynamically into dynamic textfields, from xml, or action script in run
time... Or by writing the arabic text in Free Hand, Than breaking it into
vector and pasting it into flash as Vector...

On 3/26/07, James Tu <[EMAIL PROTECTED]> wrote:


We have an approach to deal with a list of 100 phrases in Arabic.
When you copy and paste a phrase of Arabic into a Flash textbox,
Flash reverses it!  So, we first reversed the characters outside of
Flash and then copied and pasted the phrases into Flash.  Problem
solved right?

We'll, when someone that can read Arabic read it, they told us that
the characters look funny.  In essence, the characters weren't
connecting to each other correctly!  It's as if you took a cursive
font and laid out the characters and the cursive writing was not
continuous.

Does anyone have any suggestions on handling Flash and Arabic?  I did
some extensive searching and there aren't any definitive
solutions...Some suggested using a special Flash Arabic font, which I
couldn't find.

Help!
-James

___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com