X 1.0rc1: text() does not return all intervening blanks, add's others

Bug #701012 reported by RaiMan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Low
RaiMan

Bug Description

Using:

print selectRegion().text().strip()

and selecting some words side by side with intervening blanks (e.g. button texts), you will find, that in many cases not all blanks are returned (seems to be the first one !?).

   There are other cases, where blanks are inserted, that are not there.

e.g. this is returned for the above sentence:
Thereare other c ases. where blanks are inserted. that are not there

If the space between words is larger, there might be additional linefeeds:

e.g. part of the top menu returns:
Blueprlnts
 TransIal*l0ns
 Answers

this corresponds to the bug 701005 trailing x'0A20'

Tags: fkt-text
Revision history for this message
sledge (sledgeas) wrote :

Same here with 1.0rc3. Button on screen says "New Test", debug output correctly identifies two words:
26 7 43 15: New
77 7 42 15: Test

But result string is collapsed onto "NewTest"... Should be a trivial fix

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → RaiMan (raimund-hocke)
tags: added: fkt-text
Revision history for this message
Dr. Xenofon Nastos (xenofon-nastos) wrote :

Is there any Progress on this issue?
Regards,
Xenofon

Revision history for this message
Eugene S (shragovich) wrote :

You should switch to a current version of Sikuli as this one is not supported anymore.

Revision history for this message
Dr. Xenofon Nastos (xenofon-nastos) wrote :

I have already switched to the latest 1.1 build, the bug is still there.

Revision history for this message
RaiMan (raimund-hocke) wrote :

Yes

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.