On 30/10/2015 3:49 AM, Alexander Surkov wrote:

    -The nodes in the IA@_Range structure may be generic IAccessibles
    and not necessarily IAccessibleText. That would cover the case of
    a composite image with an array of image children that can be
    selected individually.

An edge case is a text document, but where the selection start or end is a graphic. In that case, I think the returned object should actually be the parent and the offset should be the relevant offset of the embedded object. Otherwise, things get confusing for text.

* if returned accessible is generic IAccessible then the integer is child index. The point is *before* a referred child.
I don't quite follow what you mean by *before* the child. So, for the second child, would the offset be 1?

I'm actually wondering whether, in this case, the returned object should just be the relevant child; i.e. startOffset and endOffset are just irrelevant. I realise this makes things different to text, but text is a bit different in that you generally want to expand text to word, line, etc., whereas for non-text cases, you're more interested in just getting at the objects. Remember, the objects might not be siblings; e.g. in a tree view.

    -In some cases it would be good to specify which limit of the
    range is the anchor and which the active end. We could add that to
    the structure as an additional member, or simply document the
    convention that start = anchor and end = active. If we go with the
    latter, then start does not have to be <= end in the Accessible order.

This would certainly be useful, particularly for braille. I have a slight preference for a boolean or similar to specify which end is active/anchor. Alternatively, we could rename start and end to anchor and active.

Jamie

--
James Teh
Executive Director, NV Access Limited
Ph +61 7 3149 3306
www.nvaccess.org
Facebook: http://www.facebook.com/NVAccess
Twitter: @NVAccess
SIP: [email protected]

_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2

Reply via email to