well, I was pointed to Flaraby as a possible solution for my Arabic production woes, and I found some time this afternoon to purchase it and take a look. The price is reasonable at only $10 (especially if it solved my production problems!) and I was able to get the ZIP with no trouble.
After looking at the code and how it works, I don’t think it will work for me. This is not a reflection in the quality or how well it works, but rather how it accomplishes the magic. Basically (I hope I don’t spill the beans here and give away the secret..) it’s sending the Arabic text string out to PHP where it’s prepared for display in Flash. Here’s the show stopper for me.. Flash displays the text using vector shapes. Yep.. each of the Arabic characters are not unicode characters (and so no bidi rules to wrestle with), but are just vector shapes that are dynamically placed in the correct position.
I think the PHP could be converted to another language easily enough if you needed it since it’s not a huge amount of code (~160 lines) and not terribly complex.
I can see how this solution could be very cool, and it obviously works well for some applications, but unfortunately not for the work I do. sigh. The interesting thing too.. if this were used in Flash 8 where all of the “text” could be cached as bitmap then I think the performance hit when scrolling it would be nearly nothing.
Oh, if you are interested in purchasing Flaraby then go to their main page and drill down..
On another related note.. http://www.the-right-to-flash.com seems to be gone? That’s a shame.. ((edited to add the new link: http://the-right-to-flash.amirdotan.com))
26 Aug 2005 at 09:04 pm | #
i'm genuinely curious to know if this concept works for RTL:
http://broadcast.artificialcolors.com/index.php?title=flash_rtl_via_a_simple_hack_non_rhetoric
g.
27 Aug 2005 at 01:33 am | #
AlSalam Alaykom Wa Rahmato Allah Wa Barakatoh,
Flaraby is specially cool for a non Arabic supported system.
A unicode solution, if it exists, may do what you want, but if the user hasn't the Arabic font ?
I tried to make one with perl, which I had no idea, but unfortunatly failed matching two characters, one from input string and the other from a character map array.
If you could do so, you can just match every character of the input string to another in a predefined unicode characters array and, I guess it will work.
PS: please tell me if you did.
Thanks for purchasing...
27 Aug 2005 at 05:19 am | #
Sounds a pretty good idea. I think it will help me with my current project, although I definitly would like an arabic input box where I can paste the text into and/or type (bi-deirectional) text into. The extra filesize will have negligable effect for my particular project. I will probably create a html based text input box to input text into the application and abandon a flash based input box for now.
Had a look at g's link and it seems to simply reverse the text box which is not really the solution that people have been trying so hard to achieve as the text is often bi-driectional. Numbers and western chars are still typed in and displayed ltr, creating a kind of half reversed jumbled string that flash still won't display properly. If you paste a mix of arabic and western text into it you will find it does not work as expected.
I've had no reply on my e-mails to macromedia staff on when/if they will improve rtl support in Flash, but I guess they are understandably too busy to talk to me at the moment. I think we can forget it for the near future unless they are being highly secretive.
Thanks Mike for the advice you have given me recently and the feedback on this component, it was very useful as I have been way too busy with the rest of the project to buy and test it myself (although I definitly will be doing so soon).
Thanks to Ahmad for creating Flaraby and answering my questions!
Craig
27 Aug 2005 at 11:48 am | #
Craig,
Macromedia still researching on this bidirectional issue.
http://weblogs.macromedia.com/md/archives/2005/08/the_lesser-know.cfm
28 Aug 2005 at 10:05 pm | #
Here's an updated URL for the-right-to-flash petition:
http://the-right-to-flash.amirdotan.com
29 Aug 2005 at 04:32 am | #
For a non editable text there already are some fairly good solution (like Flaraby).
As Craig wrote the real necessity is for a working bidi input text field.
A company I'm working with will need a BiDi input text box for a large project that will require the support of Arabic, Hebrew and Latin bidirectional text.
I was thinking of making an Open Source project out of it, and I alredy have some ideas for the algorithms and implementation.
Please contact me if you are interested in taking part in it.
Who knows... a Hebrew/Arabic Open source project it my get to CNN or Aljazeera
Cheers,
Le-Fay.
29 Aug 2005 at 04:37 am | #
My email (forgot to add it to the last post):
07 Sep 2005 at 02:21 pm | #
just a note.. I tried this new solution: http://flashrtl.com/ and it worked on some strings but not on others (so I can't use it for production work..). It worked for simple strings that had Arabic and one or two English words mixed in. However when it hit strings that had 4 or 5 English words wrapped in parenthesis (like this) mixed in with the Arabic it scrambled up the words. I've sent info to the authors to let them know. It doesn't use an embedded font or anything and it's all in a neat AS2 class. (The author of flashrtl contacted me and said the problems I saw were due to it being in beta and they hope to correct them. I'm crossing my fingers and toes.)
Le-Fay.. I hate to sound negative, but so far I haven't found a solution to display non editable RTL text in Flash. I've been looking for about three years now because I do a fair amount of high exposure SWFs in Arabic using a labor intensive method that does work.. Believe me, I try every new solution that I can find, but so far they all have a problem (high processor use, large file size, no reduction in production time, etc) that prevents me from using them in my production work.
19 Nov 2005 at 07:42 am | #
hrm, you all seem to be discussing arabic fonts as if you can already input them easily into flash...
ii've been trying to input the characters in the "Times New Roman" font (the Arabic charcters can be accessed using the character map) and when i enter با it appears as ب ا. How do i get macromedia flash to support the glyph variants?
19 Nov 2005 at 09:32 am | #
If you have Arabic language support in your windows system, you should be able to input Arabic in Flash correctly.
30 Nov 2005 at 06:45 am | #
i wanna know how can i write arabic in flash
15 Dec 2005 at 01:34 pm | #
Quote: "If you have Arabic language support in your windows system, you should be able to input Arabic in Flash correctly"
hmm, so far I can't INPUT into flash, but I can load from a textfile. When I try inputting directly into a static text box, the characters do not merge, but remain in their isolated forms.
16 Dec 2005 at 12:22 am | #
Alsalam Alaykom Wa Rahmato Allah Wa Barakatoh,
I meant input Arabic in the runtime (swf) not the Flash IDE.
Flash static textField isolates Arabic characters, and that's "normal". But in Flash 8, you can input Arabic text in a dynamic textField (reversed) and it will render OK in the runtime.
16 Dec 2005 at 07:26 am | #
As-salamu Alaykom Wa Rahmato Allah Wa Barakatoh,
I get your meaning now. The only problem is, the font I wish to use is not a standard arabic font, and if I embed the font, then it does not render ok in the runtime. Once I removed the embedded font however, things work as you said.
Any solution for this (besides allowing the user to download the font I am using since it is copyrighted).
Thanks
Salaam
28 Dec 2005 at 09:59 am | #
Hi, Flaraby is now on newhive,
http://www.newhive.com
Please contact with email.
Sorry for inconvinience.
07 Feb 2006 at 08:48 pm | #
(this comment was lost in the move so I'm reposting it here)
Flaraby2 beta is now available for testing.
please visit:
http://www.newhive.com/work/flaraby/
For more information and comments please visit the forum. http://newhive.com/forum/viewtopic.php?p=4#4
24 Jul 2006 at 06:44 pm | #
kewl... this one helpd me a lot :D
19 Mar 2007 at 04:40 pm | #
Assalamou Alykom
I don't understand, somethings, first, excuse my english,
I've heard too much about FLARABY and RTL, and other solutions.
I was searching a way to import arabic content from XML file, into Flash, and parsing its Help, I found it possible, converting the XML file to UTF 8.
and this is the help text :
"
Creating documents with multilanguage text using the #include action
You can create a document that contains multiple languages using the #include action.
You should save the text file in UTF-8 format. Save the file using an application that supports UTF-8 encoding, such as Dreamweaver.
You must include the following header as the first line of the file, to identify the file as Unicode to the Flash authoring tool:
//!-- UTF8
NOTE
Be sure to include a space after the second dash (-).
By default, the Flash authoring application assumes that external files that use the #include action are encoded in the traditional code page of the operating system running the authoring tool. Using the //!-- UTF8 header in a file tells the authoring tool that the external file is encoded as UTF-8.
"
And it will works on all the platforms, cause it's UTF8 Folks!!!!
Thank you for reading
22 Apr 2007 at 06:10 pm | #
hi there
please dose any one have flaraby 2
i wanna test it
the site is not available any more
17 May 2007 at 11:36 pm | #
there is a program long time I used it's like a note pad .you just drop the font in the windows then you just type it on the pad copy it then paste it ..then you are done in what ever soft wear
29 Oct 2007 at 05:18 pm | #
this program worked well for me:
Shetab Farsi Negar 3.2
available from download.com
24 Nov 2007 at 09:51 am | #
Guys try this using flash,xml and css
http://www.aarif.be/creativeUAE/arabic-in-flash-using-xml-css/
24 Nov 2007 at 10:56 am | #
just in case people have missed it.. Flash Player 10 is supposed to have support for bi-directional text. The bi-di text support has already been demoed at conferences..