GNOME Bugzilla – Bug 489828
Provide ability to get character attributes at "insertion point"
Last modified: 2009-06-03 09:35:56 UTC
Right now, the AT-SPI provides a getAttributeRun method in Accessibility_Text to allow an assistive technology to query the text attributes of existing text. There are times, however, that the user wants to know what the attributes will be for the characters that will be inserted when they start typing. For example, assume the user is typing in OOo and is using a default style where bold is turned off. The user then back arrows two characters and presses Ctrl+b. At this point in time, the character attributes at the current offset are for the non-bold character at the caret. But, when the user starts typing, the character attributes will be bold. We'd like to explore the idea of API that allows an assistive technology to query what the attributes will be for characters-to-be-inserted at the caret location, which is what we're calling the "insertion point." This API should also support the case where the caret offset is at the end of the text (i.e., caretOffset == len(text)).
Can I say bug #487918 is part of this bug?
(In reply to comment #1) > Can I say bug #487918 is part of this bug? > Oops! Sorry I forgot so quickly about that bug. I think this bug obsoletes bug 487918. Joanie - would you agree?
Indeed. (And I had forgotten about it as well.)
*** Bug 487918 has been marked as a duplicate of this bug. ***
Do we have enough information to move forward with this bug?
Li - I think this is going to require changes to AT-SPI first and then OOo next. Is this something you think you can do for GNOME 2.27.x?
Sure. I prefer extend the definition of parameter, e.g. return attributes at "insertion point" when (offset == -1). The empty slot of AtkText is very limited. Suggestions?
(In reply to comment #7) > Sure. I prefer extend the definition of parameter, e.g. return attributes at > "insertion point" when (offset == -1). This sounds perfect. Thanks!
Created attachment 135070 [details] [review] ATK patch
Created attachment 135071 [details] [review] at-spi patch
I have filed bug #583415 for the gail change. But this should not block OOo.