Hi Pete,

Returning the line number seems very odd to me; I would avoid it.  Here's why:
  • Some documents/apps do line numbering for the entire document
  • Some documents/apps do line numbering per page
  • Most documents/apps don't have this
  • In many situations, resizing the text field will change the line breaks (and thus the numbering)
  • Some documents/apps only present the portion of text showing in the window (e.g. OpenOffice Writer)
Also, it should be pretty straightforward to count the number of line via our existing API.


Regards,

Peter

On 8/5/2010 7:31 AM, Pete Brunet wrote:
It has been requested that a means be provided to get the current line number of a text control (i.e. the line number that the caret is currently on).  IA2 has a way to get the contents of the current line, but not the line number.

Apparently Firefox returns a "line-number" field in the object attributes for a text control.  I found the FF IA2 spec at
  https://developer.mozilla.org/en/Accessibility/AT-APIs/IA2/Attrs
which just points you to the Gecko spec at
  https://developer.mozilla.org/en/Accessibility/AT-APIs/Gecko/Attrs

The IA2 object spec, which is a work in progress, is at
  http://www.linuxfoundation.org/en/Accessibility/IAccessible2/ObjectAttributes

What are your thoughts on adding line-number to the spec?

By the way, the IA2 object attribute spec was started when Symphony was done but FF IA2 support was still not complete.  So a larger question is if we should harmonize the current IA2 and FF object attribute specs, hopefully borrowing from other mature specs like CSS2 (or maybe even CSS3).  Or should we eliminate the IA2 object attribute spec and instead have each app document its own object attributes.  The former would be better but perhaps not practical.  I'd like to know what the list thinks.

Thanks, Pete
--
Pete Brunet
                                                                
a11ysoft - Accessibility Architecture and Development
(512) 238-6967 (work), (512) 689-4155 (cell)
Skype: pete.brunet
IM: ptbrunet (AOL, Google), [email protected] (MSN)
http://www.a11ysoft.com/about/
Ionosphere: WS4G

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

--
Oracle
Peter Korn | Accessibility Principal
Phone: +1 650 5069522
500 Oracle Parkway | Redwood City, CA 94065

Green Oracle Oracle is committed to developing practices and products that help protect the environment


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

Reply via email to