> Hello, > > has anyone a working solution to display arabic text that > comes out of a xml correctly with flash? I've found > "http://www.flashrtl.com/", but it seems not to work for me. > I can't read any arabic. I have a correct formatted word > document as draft only, which I want to "convert into flash". > Any ideas?
Yes. We've done it. The solution is hard, but works. I'm going to be releasing a demo of our solution in the next couple of weeks for people to test, but if you want to try to manage it yourself, here's a few hints: 1) Right-to-left (and indeed BiDi) typing and display *does* work in Flash, but only with non-embedded fonts. In that case it uses the OS-level system, which is flawed (especially selection) but works. You also get all the cursive joining. However, you lose antialiasing. Also, line breaks don't work properly. And, of course, you're relying on the OS to do things, which is always a bit nerve-wracking... 2) A solution that uses embedded fonts (and the one we use) is to use a mirror-image font in a mirror-image textfield. This is sweet. Naturally, you don't get BiDi text, but you get RTL. Unfortunately, you don't get the cursive joining of text and you still don't get linebreaks (for some reason, Flash can't break arabic text at the word level, it just breaks it mid-word). 3) For cursive text, you need to replace each 'logical' form with a 'presentation' form (see the Unicode document http://www.unicode.org/uni2book/ch08.pdf). You also need to create ligatures between some characters (ie, replace two characters with a single display character). 4) If you're doing input, you need to do a lot of fiddling to make sure your cursor is going to the right spot. You also need to add your line breaks manually. We're probably going to try to sell our solution so if anyone's interested, please let me know. Danny _______________________________________________ Flashcoders@chattyfig.figleaf.com 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