Skip to main content
Participant
June 19, 2024
Question

Help Needed: Correcting Inverted Arabic Text in Adobe Illustrator Using ExtendScript

  • June 19, 2024
  • 1 reply
  • 1560 views

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]

This topic has been closed for replies.

1 reply

Legend
June 20, 2024

There was a similar topic, so I answered it here. Please refer to it.

Apply Character direction to textframe characters via Extendscript