After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 592517 - Cursor position based upon uncontracted text when typing text and contracted braille is enabled
Cursor position based upon uncontracted text when typing text and contracted ...
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: braille
2.27.x
Other All
: Normal normal
: 2.28.0
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-20 21:35 UTC by Willie Walker
Modified: 2009-11-09 21:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to resolve the issue (498 bytes, patch)
2009-08-21 15:40 UTC, Willie Walker
committed Details | Review

Description Willie Walker 2009-08-20 21:35:38 UTC
Enable contracted braille:

orca.settings.enableContractedBraille = True
orca.settings.brailleContractionTable = '/usr/share/liblouis/tables/en-us-g2.ctb'

Type the following in gedit:

what is your

You will observe that the braille cursor position appears where it would be if the text were uncontracted.
Comment 1 Willie Walker 2009-08-21 15:40:41 UTC
Created attachment 141351 [details] [review]
Patch to resolve the issue

The problem was in braille.py:Region:contractLine.  If the cursor offset being passed to liblouis is outside the string, liblouis would just send it back.  This patch makes sure the cursor ends up in the right spot.
Comment 2 Willie Walker 2009-08-21 15:42:36 UTC
Committed for 2.27.91.