Re: Find Next Bold/Italic etc. not working with custom text component
Re: Find Next Bold/Italic etc. not working with custom text component
- Subject: Re: Find Next Bold/Italic etc. not working with custom text component
- From: Josh Scotland <email@hidden>
- Date: Thu, 08 Aug 2013 22:25:03 -0700
Hi Boris,
That attributed string you posted looks good.
Also from logging queried attributes it is clear that AXStyleRangeForIndex is never queried even though it is reported as supported parameterized attribute. Correct, I don’t believe AXStyleRangeForIndex is used for those searching commands.
I’m not sure what’s going on here, Boris. Maybe asking some questions will help: - None of the searching commands are working, even for italic and underline?
- VO+T [read text attributes] is working as expected?
- You’re getting character echo when keyboard arrowing around and typing? (confirms that AXFocusedUIElement is set up properly)
- Does changing the font do anything (e.g. Helvetica)?
- Have you had any updates on the issue since yesterday?
Thanks, Josh
On Aug 7, 2013, at 3:26 PM, Boris Dušek < email@hidden> wrote: Hello,
I am trying to fix accessibility of LibreOffice, specifically searching for text attributes in the main text component (which is a AXTextArea). I want e.g. VO-Cmd-B to find the next bold text portion.
AXAttributedStringFromRange is properly implemented - attributes are correctly announced as one moves cursor through the text with arrows. AXStyleRangeForIndex is reported as a supported parameterized attribute in accessibilityParameterizedAttributeNames. I did not test whether this method returns correct results for this attribute, but based on logging of NSAccessibility method calls, this attribute is never requested.
Yet searching for e.g. next bold text using VO-Cmd-B does not work - VoiceOver announces "Bold text item not found". Also from logging queried attributes it is clear that AXStyleRangeForIndex is never queried even though it is reported as supported parameterized attribute.
Please find (at the bottom of this email) the attributed string returned for AXAttributedStringFromRange for a sample document I created. E.g. when having cursor at the beginning of the document, first press of VO-Cmd-B should take one to "is" and second press to "accessibility".
I would appreciate any tips or pointers on what to try or where to look to fix the problem of text attribute searching not working.
Thanks, Boris
"This { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }is{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = "TimesNewRomanPS-BoldMT"; AXFontSize = 12; AXVisibleName = "Times New Roman Bold"; }; } a testing text. It serves to be able to test the { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }accessibility{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = "TimesNewRomanPS-BoldMT"; AXFontSize = 12; AXVisibleName = "Times New Roman Bold"; }; } of the { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }text component{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = "TimesNewRomanPS-ItalicMT"; AXFontSize = 12; AXVisibleName = "Times New Roman Italic"; }; } of { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }LibreOffice{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = "TimesNewRomanPS-ItalicMT"; AXFontSize = 12; AXVisibleName = "Times New Roman Italic"; }; }. More { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }specifically{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; AXForegroundColor = "<CGColor 0x10182e820> [<CGColorSpace 0x10182e7a0> (kCGColorSpaceICCBased; kCGColorSpaceModelRGB; Generic RGB Profile)] ( 1 0.2 0.2 1 )"; }, { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }typing and cursor echo{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; AXUnderline = 1; } do not work in the current version of { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }LibreOffice{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = "TimesNewRomanPS-ItalicMT"; AXFontSize = 12; AXVisibleName = "Times New Roman Italic"; }; } (and quite some number of { AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }previous versions{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; AXUnderline = 1; }).{ AXFont = { AXFontFamily = "Times New Roman"; AXFontName = TimesNewRomanPSMT; AXFontSize = 12; AXVisibleName = "Times New Roman"; }; }"
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden