← Back to team overview

dx-packages team mailing list archive

[Bug 362221] Re: add atk text interface to bubbles

 

** Project changed: notify-osd => notify-osd (Ubuntu)

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to notify-osd in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/362221

Title:
  add atk text interface to bubbles

Status in “notify-osd” package in Ubuntu:
  Fix Released

Bug description:
  As text in notification bubbles are fairly dynamic, an atk text
  interface will help assistive technologies distinguish between
  replaces and appends. There should also be as much support for
  advanced text features as possible.

  Here is a list of interface methods, and the feasibility of having
  them given the current limitations in the bubble rendering code:

  Accessibility::Text::getText
  Accessibility::Text::getCharacterAtOffset
  These should be easy to implement, simply get the bubble's body contents.

  Accessibility::Text::getTextAfterOffset,
  Accessibility::Text::getTextAtOffset,
  Accessibility::Text::getTextBeforeOffset  
  These will be problematic to implement fully, specifically because it requires knowledge of line boundaries.

  Accessibility::Text::removeSelection
  Accessibility::Text::setCaretOffset
  Accessibility::Text::setSelection
  Accessibility::Text::getSelection
  Accessibility::Text::addSelection 
  These simply should return false or zero values since the bubble is not editable, selectable or caret navigable.

  Accessibility::Text::getCharacterExtents
  Accessibility::Text::getRangeExtents
  Accessibility::Text::getOffsetAtPoint
  Accessibility::Text::getBoundedRanges
  These will be problematic to implement since the text rendering is flat - no extents information is stored after the bubble is rendered.

  Accessibility::Text::getAttributeValue
  Accessibility::Text::getAttributes
  Accessibility::Text::getAttributeRun
  Should be possible to implement. The good news is that there is only one "attribute run" since the bubble's body does not support markup. The bad news is that we will probably need to retrieve the information directly from defaults.c, or whatever config backend we use, since the bubble does not store enough text attribute info itself.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/362221/+subscriptions