(resend, using my subscribed email address this time)

Just for clarification: My understanding from Pete's mail was that we
would talk about the line number valid for a single object, not for a
document. And that it doesn't matter whether or not the app has
visualization for line numbers.

So if you have a text document with two paragraphs in OOo (which are
single text objects), each caret pos 0 from each paragraph would again
report line number 1.

We already introduced such API in UAA, but probably after IBM taking it
as a template for IA2 ;)

> http://api.openoffice.org/docs/common/ref/com/sun/star/accessibility/XAccessibleMultiLineText.html

IIRC, this was needed to implement some NsAccessibility API.

The both "special" functions with the Caret might look strange to you,
because you might thinks that one could simply ask for the caret
position and use it.

The reason is that there is some special handling with automatic line
breaks. If you have "AAA BBB", and BBB is in line 2, the caret behind
the blank will normally be shown in line 2 when typing or traveling with
the cursor, except you are in line 1 and press END.

And wrt James's comment that it should be for pieces of text rather than
just the caret - doesn't make sense to me. You might avoid one function
call, but API would look quite strange then.

HTH,
Malte.


Peter Korn wrote, On 08/05/10 18:30:
> 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 <http://www.oracle.com>
> Peter Korn | Accessibility Principal
> Phone: +1 650 5069522 <tel:+1%20650%205069522>
> 500 Oracle Parkway | Redwood City, CA 94065
> Green Oracle <http://www.oracle.com/commitment> 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
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/accessibility-ia2

Reply via email to