We understand that the TIG may not always match perfectly when whole phrases are used, due to slight differences in word spacing or the like. Sometimes using fractional text sizes can help, but assuming that still won’t work, here are a couple other ideas:
- Search for combinations of words. For example, to find the Chinese Newspaper - Evening item, you would find all of the places where “Chinese” appears and all of the places where “Evening” appears and then click the location where they both appear on the same line. Something like this might do the trick:
put everyImageLocation(text:"Chinese") into languageLocs
put everyImageLocation(text:"Evening") into editionLocs
repeat with each location of languageLocs
repeat with each item of editionLocs
if location.y - it.y is between -3 and 3 then
Here I allowed for the y locations to be slightly off from each other (up to 3 pixels higher or lower) and still be considered on the same “line”, since the TIG-generated images may differ somewhat (for example, the “g” in “Evening” descends below the text baseline, but “Chinese” doesn’t have any descenders).
- If that seems too complex or doesn’t work for some reason, you might consider a totally different approach using coordinate calculations. Since you say you want to step through each of the items, you might simply find the top item, then add to the y coordinate of the location each time through your loop:
put imageLocation(text:"Chinese") into location
repeat 4 times
add (0,30) to location
This assumes the distance between items in the list is 30 pixels – you’ll need to adjust that to represent the actual distance.
Hopefully one of these will help you!