Text traversal in an artboard
My plugin need to traverse text from a artboard, assign a number to each text (and show it next to the text) and list them in a separate (new) text frame on the same artboard.
1. Traversal for assigning numbers:
I am aware that while finding text frames from the artboard, they are traversed in the same sequence as they are stored in the Ai document.
I use sAIArtSet->MatchingArtSet() for finding the text.
This sequence do not match with the normal english book reading style : left to right and top to bottom.
Thus the numbering done according to my requirement is rather random.
Is there any way to traverse text according to the left to right and top to bottom style ??
2. Displaying a new text frame on the artboard:
What is ideal for a non-image simplest text display on the artboard ?
What I can imagine is, create a text range and add it in a text frame(point text) art on the artboard.
When I try to display texts, all appear in a single line. How do I write multiline text, I want something like '\n' ?
eg: The text should look like :
a. abc
b. xyz
c. pqr