Issue 71383 - [a11y] Default style and font name text attributes are not provided.
Summary: [a11y] Default style and font name text attributes are not provided.
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 2.0.4
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: accessibility
Depends on: 72800
Blocks:
  Show dependency tree
 
Reported: 2006-11-09 16:19 UTC by richburridge
Modified: 2013-08-07 14:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
This patch adds font name mapping to OOo (1.88 KB, patch)
2006-12-22 14:10 UTC, nospam4obr
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description richburridge 2006-11-09 16:19:47 UTC
See also Orca bug #363827, which is blocked by this bug.
http://bugzilla.gnome.org/show_bug.cgi?id=363827

In Orca, when we get the default text attributes for a piece of
text, we get back a list that's something like:

size:12; left-margin:0; pixels-below-lines:0; pixels-above-lines:0;
variant:normal; invisible:false; right-margin:0; strikethrough:false;
underline:none; indent:0; style:normal; weight:400; justification:left

There are two important attributes that are not included:

The font name (such as Times-Roman).

The style. What the bug submitter means by "style" here, is the thing 
that you choose in the combo box that is just to the left of the font 
name -- or by going to the Format menu and selecting Styles and 
Formatting.   Getting "normal" and "italic" through the "style" 
exposed by OOo 2.0.4 is working just fine.  However, getting information 
about the style being used (like whether or not it's a heading, etc.) 
is not working at all because OOo is not exposing that information.
Comment 1 michael.ruess 2006-11-09 21:29:11 UTC
Reassigned to ES.
Comment 2 eric.savary 2006-11-10 10:21:24 UTC
Reassigned to OBR
Comment 3 nospam4obr 2006-11-10 10:55:01 UTC
@od: what is the OOo term for this ? Paragraph template ?

Whether a piece of text is a heading or not should probably get exposed via the role of that object, even 
though this might not implemented in writer yet due to a lack of an "accessible role changed" event.

Even though I think the template name is not a classical text attribute, I agree it might make sense to 
expose it as such. But we probably want a localized name, right ? 
Comment 4 Oliver-Rainer Wittmann 2006-11-10 11:34:49 UTC
The OOo term is: Paragraph Style

Yes, you are right, that the Paragraph Style of a paragraph isn't an attribute
of the paragraph. It is possible to provide the name of the Paragraph Style of a
paragraph at our accessibility API. But, keep in mind, that in OOo a Paragraph
Style can have a parent Paragraph Style. Thus, the Paragraph Styles can build a
hierarchy.
What do you mean by "localized name"? The name of the Paragraph Style, which is
shown in the Styles and Formatting dialog?
Comment 5 nospam4obr 2006-11-10 11:41:46 UTC
I meant: if I write a document with a german OOo using the style "Ãœberschrift 1", will this automatically 
become "Heading 1" when I read the document in an en-US version of OOo ?
Comment 6 Oliver-Rainer Wittmann 2006-11-10 14:48:01 UTC
Ok, that's what I have assumed.
Internally, we distinguish between programmatic names and display names for
Styles. These names can also be found in the OpenDocument file format.
Comment 7 joaniediggs 2006-12-18 17:20:16 UTC
I wasn't sure how significantly voting is taken into consideration here, so I'm
voting AND commenting. :-)

I realize that you all are quite busy, but if exposing this -- and similar --
information via at-spi could somehow be prioritized, that would be awesome.  

As it currently stands, there is still quite a bit of formatting which a sighted
user can obtain immediately with a mere glance that a blind user cannot.  (In
addition to this bug, please see issues #71385, #72161, #70872)  In order for a
blind user to obtain this information, he/she must move to the relevant
toolbar/dialog box controls and examine their values. The problem with this
method is two-fold:

1. The user has to suspect that there is something worth checking for.

2. For each character or paragraph (depending on the attribute in question) to
be checked, the user has to take the time to move to the text in question, then
navigate to the toolbar/dialog in question, then navigate to the control in
question, and finally return to the document to repeat the entire process for
the next bit of text.

Given a sufficiently lengthy document, item #2 could take a blind user an hour
whereas the equivalent check could be done by other (sighted) users in mere
minutes. 

As for item #1:  In my experience, most users tend to suspect that they have
correctly applied the formatting they intended --  not that they've managed to
significantly mess up their document with unintended attributes. :-)  As a
result, the typical user is likely to “double-check†the formatting he/she
expects to be present and relatively unlikely to check the remainder of the
document for unintended formatting (because doing so currently takes so much
time!).  The end result, unfortunately, is not always what the user thinks it is.

Were all of this information to be exposed via at-spi, Orca (and other screen
readers) could be scripted to present the user with, say, all of the non-default
formatting.  That would enable users who are blind to use OOo MUCH more
effectively, efficiently, and with confidence that their documents look as they
intend.

Thank you VERY much for your time and consideration!!
Comment 8 nospam4obr 2006-12-18 20:30:39 UTC
Adding most of the missing text attribute mappings is on my to-do list for early next year. What makes 
setting a specific target milestone difficuilt is that some of the issues request one or two items to be 
exposed as text attributes which are no text attributes in the OOo core (like the style one here).

@mt,od: do we all agree with exposing the display name of the paragraph style as text attibute ?
Comment 9 malte_timmermann 2006-12-19 14:17:36 UTC
Sure, style name is important information.

It's something like a paragraph attribute, so it can be returned in default
attributes.
Comment 10 malte_timmermann 2006-12-19 14:18:03 UTC
Sure, style name is important information.

It's something like a paragraph attribute, so it can be returned in default
attributes.
Comment 11 alpuzz 2006-12-19 23:06:28 UTC
Joanie has done a nice job of outlining the problems posed by the fact that 
this sort of information isn't exposed.  As a real world example of why this is 
important, take my situation.  I am visually impaired myself, and a 
professional in the industry of assistive technology.  Recently, I  had cause 
to update my resume.  I would have preferred to do so using OOo under Linux; 
However, due to the issues described above, I was forced to rely on Ms Word.  

Until OOo is able to provide this sort of information to a  screen reader, it 
will be impractical for those of us who rely on this technology to use it for 
anything other than the editing of very basic documents.
Comment 12 nospam4obr 2006-12-20 12:48:33 UTC
I have file issue 72800 to track the implementation in the word processor module
(writer).
Comment 13 nospam4obr 2006-12-22 14:10:18 UTC
Created attachment 41649 [details]
This patch adds font name mapping to OOo
Comment 14 joaniediggs 2006-12-22 16:16:22 UTC
Do patches such as this one get included in the next developer snapshot?
Comment 15 nospam4obr 2006-12-25 07:34:07 UTC
No, not automatically. Before some code change can be integrated into the main code line, it needs to get 
tested on a dedicated CVS branch (we call this a Child Workspace (CWS)). My plan is to open such a CWS 
early next year.
Comment 16 nospam4obr 2007-01-09 13:07:17 UTC
Just applied the patch adding font name support in CWS atkbridge5.
Comment 17 mdxonefour 2007-01-15 09:43:52 UTC
MD->OBR: As discussed, please put it into the 2.2 release.
Comment 18 nospam4obr 2007-01-18 13:25:45 UTC
gsl/vcl/unx/gtk/a11y/atktextattributes.cxx revision 1.4.136.3 now exposes the
style name as "paragraph-style" attribute.
Comment 19 nospam4obr 2007-01-22 09:50:35 UTC
please verify.
Comment 20 eric.savary 2007-01-24 14:07:00 UTC
Verified in atkbridge5
Comment 21 eric.savary 2007-02-02 11:38:59 UTC
Ok in OOF_m5