Skip to main content
Known Participant
April 14, 2023
Question

Detect by code the width of the Arabic letter which is a type of path in Adobe Illustrator

  • April 14, 2023
  • 3 replies
  • 1596 views

In Adobe Illustrator I have many paths like arabic words in ottoman calligraphy layout, and the source of these paths is not a outlined text but a path.
So I need to detect by code (javascript, python, VBscript, ...) the width of each arabic character in that path because I'm going to cut and separate each character in the path.
The cutting code depends on determining the location of the cutting in the path, which is equal to the starting location of the path, and add to it the width of the letter that I will cut now.
Note: I know in advance every letter in this path through previously preserved data. I only know what the letter is, and I do not know what is its size that changes from one word to another because it is a calligraphy layout and not a fixed font.

This topic has been closed for replies.

3 replies

femkeblanco
Legend
April 15, 2023

Sorry to be defeatist, but since this is a cursive style, separating the letters is beyond the power of any script.

AliTleissAuthor
Known Participant
April 15, 2023

yes I know this is very difficult but I try to do it.

thanks for your reply.

AliTleissAuthor
Known Participant
April 15, 2023
m1b
Community Expert
Community Expert
April 14, 2023

Hi @AliTleiss, this is a challenge. First you'd need to recognize the text (I've used MacOS's Vision framework, but does it recognize Arabic script?), and then, as well as get the recognized text, you'd need to get the recognized bounds of each character and from there you could calculate where to divide the text. I don't know how to get the character bounds, by the way, but it should be possible. Hopefully someone can help.

- Mark

AliTleissAuthor
Known Participant
April 14, 2023

hello @m1b , thank you