[Webkit-unassigned] [Bug 52148] [Gtk] Implement support for Embedded Objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 18 01:43:53 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=52148
--- Comment #5 from Mario Sanchez Prada <msanchez at igalia.com> 2011-01-18 01:43:53 PST ---
(In reply to comment #4)
> (In reply to comment #3)
>
> > You mean some kind of special character like those found in ff, right?
>
> Yup, FF and OOo Writer.
>
> > Something like this:
> >
> > In [2]: t.getText(0, -1)
> > Out[2]: "Here's our logo: \xef\xbf\xbc It reminds me of airport security
> > screenings. "
>
> Yup.
>
> > My main question is "how that special character helps to screen readers"?
>
> It's a placeholder. For instance, in the case of a radio button, we need
> to know there's an object of ATK_ROLE_RADIO_BUTTON, where it is exactly
> (and thus where to present it).
Ok.
> We also need a means to get that radio button (i.e. the AtkObject
> representation of that radio button) so we can also tell the user
> it's state (checked/unchecked, required, etc.)
That should work well enough through the atk_hyperlink_get_object() method, I guess
> > but I wonder whether it shouldn't be better to provide a textual
> > representation for them.
>
> Well, it's up to the screen reader to handle how to present the state, allow
> users to have 'brief' and 'verbose' output, represent embedded objects in
> braille (often as symbols < > and <x>, rather than text), etc., etc., etc.
> That something WebKitGtk should take on?? ;-) (rhetorical question)
Yeah, forget about my proposal. I don't really think now such a thing should be done in WKGTK's side.
> > Of course, I'm talking from my vast ignorance on the issue :-), and I
> > realize that then we'd need to agree on a specific text representation for
> > each kind of object (e.g. 'checked/unchecked' for check boxes,
> > 'selected/unselected' for radio buttons...) but asking is not harmful
> > either.
>
> And you'd also have to get all those strings localized into all the
> languages gnome is localized into, and figure out brief braille symbols,
> and verbose braille symbols. In a way, I'd love to be able to say, "Yeah,
> you're right, this isn't Orca's job; it's WebKitGtk's." :-) But right now,
> I'm pretty sure we're stuck with it Orca-side. Feel free to keep trying
> to convince me I'm wrong, as I might let you win. ;-)
No, no... :-) I think you're perfectly right, and therefore I'm perfectly wrong. Actually I also thought of the l10n problem at some point after posting my question, and you just confirmed my doubts :-)
> It's never, ever harmful to ask questions. I hope I've answered them.
> If not, ask again and I shall try again.
You have. Thanks
> > > 2. Each embedded object should implement AtkHyperlink.
> >
> > Is this really always needed for each embedded object of any kind?
>
> What we really need is:
>
> * atk_hyperlink_get_start_index()
> * atk_hyperlink_get_end_index()
> * atk_hyperlink_get_object()
>
Good to know, thanks for confirming.
> > I can see it for the image, but don't know how this interface would
> > be implemented for other objects, such as the check boxes or the
> > radio buttons (e.g. what should they return in the
> > atk_hyperlink_get_uri() method?).
>
> Since the return type is a string, and since these objects would not
> have an associated uri, I would think it would return an empty string.
Ok.
> What we really care about is where is the thing w.r.t. the text (start,
> end indices) and to be able to say "give me that object" for the
> purpose of presenting its role, states, coming up with its braille
> representation, etc., etc.
Now I understand much better the problem and a way to a possible and actual solution.
Thanks for the awesome feedback!
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list