Allow enhanced zoom to follow text.

Bug #727290 reported by Ekrem Koç on 2011-03-01
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Compiz
Wishlist
Alejandro Leiva
Compiz Core
Wishlist
Unassigned
compiz (Ubuntu)
Wishlist
Unassigned

Bug Description

Binary package hint: compiz

I have enabled: Enhanced Zoom Desktop for Compiz. That works good to mouse, but that doesn't follow to text, when I am typing example xChat or LibreOffice Writer. Can someone make a plug-in that follows text, please?

This compiz accessibility plugin allows compiz to see at-spi events
https://github.com/gloob/compiz-accessibility-plugin
and this fork of the ezoom plugin looks at the accessibility plugin to get the current cursor position and follow it when in panning mode
https://github.com/gloob/gloob-Ezoom-fork

Related branches

UndiFineD (k.dejong) wrote :

It is a wish, but important for those with accessibility issues.
It would be great if someone could pickit up and make this.
Thanks :-)

tags: added: a11y natty
Alan Bell (alanbell) wrote :

the orca package mag.py does text tracking zoom, but using the CPU and is slow. GPU powered compiz zoom would be great.
line 898 seems to be the start of the interesting bit
http://bazaar.launchpad.net/~vcs-imports/gnome-orca/trunk/view/head:/src/orca/mag.py#L898

if the cursor is in a gnome text field then it gets text.caretOffset which is the number of characters from the start of the field
then it calls get.getCharacterExtents(offset,0) which returns the x and y position of the character at that position (along with width and height which we don't care about much)
not sure if that is returning x and y relative to the screen, or the window, or the text area, but either way it is going to be enough to work it out relative to the screen
which means that we can query those events from the compiz plugin and move the focus of the zoomed window when typing
someone else had similar ideas:
http://<email address hidden>/msg01029.html

Changed in compiz (Ubuntu):
importance: Undecided → Low
Changed in compiz (Ubuntu):
status: New → Triaged
importance: Low → Wishlist
affects: compiz → compiz-core
Changed in compiz-core:
status: New → Confirmed
Alan Bell (alanbell) wrote :

this compiz accessibility plugin allows compiz to see at-spi events
https://github.com/gloob/compiz-accessibility-plugin
and this fork of the ezoom plugin looks at the accessibility plugin to get the current cursor position and follow it when in panning mode
https://github.com/gloob/gloob-Ezoom-fork

summary: - Zoom doesn't follow to text
+ Allow enhanced zoom to follow text.
description: updated
Changed in compiz:
status: New → Confirmed
Alan Bell (alanbell) wrote :

code to do this is at
https://github.com/gloob/gloob-Ezoom-fork
https://github.com/gloob/compiz-accessibility-plugin

I put these in a compiz branch and I am trying to build it.

Changed in compiz:
assignee: nobody → Alan Bell (alanbell)
status: Confirmed → In Progress
milestone: none → 0.9.8.0
Changed in compiz:
assignee: Alan Bell (alanbell) → Alejandro Leiva (gloob)
importance: Undecided → Wishlist
Changed in compiz-core:
status: Confirmed → Triaged
importance: Undecided → Wishlist
Changed in compiz:
milestone: 0.9.8.0 → 0.9.8.1
Changed in compiz:
milestone: 0.9.8.2 → 0.9.8.4
Changed in compiz:
milestone: 0.9.8.4 → 0.9.9.0
Changed in compiz:
milestone: 0.9.9.0 → 0.9.9.2
Changed in compiz:
milestone: 0.9.9.2 → 0.9.10.0
Changed in compiz:
milestone: 0.9.10.0 → 0.9.10.2
MC Return (mc-return) on 2013-07-24
Changed in compiz:
milestone: 0.9.10.2 → 0.9.11.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers