Hello Everyone,
I'm currently working on developing an extension for Adobe Illustrator that involves performing actions within the host application. However, I've encountered an issue with Arabic text that I'm hoping to get some help with.
When you copy Arabic text from a web page, notepad, or any other source and paste/drop it into an Illustrator document, the text appears inverted, with the character positions reversed. Essentially, the Arabic string is visually reversed. I found a solution online from the Adobe Illustrator User Guide, which I've linked below. Following the steps in the guide, I was able to correct the string so it appears correctly visually.
Now, I am trying to achieve the same result programmatically. However, I haven't been able to find the right Adobe Illustrator properties or methods to do this using ExtendScript.
For reference, I've attached two images:
- Image 1: Arabic text that appears correct visually. (Source)
- Image 2: Arabic text in reverse order after being pasted/dropped into an Illustrator document.
Could someone kindly provide guidance on the correct properties or methods I need to use in ExtendScript to fix this issue?
Thank you in advance for any assistance you can provide.
https://helpx.adobe.com/illustrator/using/arabic-hebrew.html [Adobe Illustrator User Guide Link]