Answered
RTL and XML
Hello, what is the best way to use the new text component to
import the arabic language via xml into flash.
I noticed in the demo with the spinning globe that the arabic text is actually unicode, the unicode string is actually LTR, then is displayed RTL. Obviously this works nicely with wordwrap etc. Is there some sort of converter I can get to convert RTL arabic to LTR unicode?
I'm wondering also if its possible to import the Arabic font as a string from XML, and have things like the word wrap work correctly, I'm presuming here (maybe naively) that there isn't a RTL XML format and if there is flash doesn't wrap its head around it. I can't imagine writing whole paragraphs of text backwards in xml. To do this do I need to use markup code as per the bidi.xml file in the examples, where it seperates out each line for display to deal with the wrap issues.
Any insight would be great, I'm sorry if my explanations are a little newby, i'm no gun.
K.
I noticed in the demo with the spinning globe that the arabic text is actually unicode, the unicode string is actually LTR, then is displayed RTL. Obviously this works nicely with wordwrap etc. Is there some sort of converter I can get to convert RTL arabic to LTR unicode?
I'm wondering also if its possible to import the Arabic font as a string from XML, and have things like the word wrap work correctly, I'm presuming here (maybe naively) that there isn't a RTL XML format and if there is flash doesn't wrap its head around it. I can't imagine writing whole paragraphs of text backwards in xml. To do this do I need to use markup code as per the bidi.xml file in the examples, where it seperates out each line for display to deal with the wrap issues.
Any insight would be great, I'm sorry if my explanations are a little newby, i'm no gun.
K.
