[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

Heiko Tietze  changed:

   What|Removed |Added

 CC|libreoffice-ux-advise@lists |heiko.tietze@documentfounda
   |.freedesktop.org|tion.org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #13 from sdc.bla...@youmail.dk ---
(In reply to Christophe Strobbe from comment #12)

> Neither "Alternative Text" nor "Description" are primarily intended for
> tooltips.
Understood.  But BZ shows that people use or want to use the possibilities in
the software.

> 2. Sighted authors might start thinking that those attributes are intended
> for tooltips and begin use them for additional information instead of text
> alternatives.
IIUC, at present LO does not use those fields when hovering the mouse over
non-text objects. Michael was just pointing out that this possibility might be
attractive to some.

If this capability were added, then could we address your concern by using the
"help" page -- by pointing out that if this feature is being used to create
"accessible" documents, then "Text Alternative" should only be used to describe
the object.

This is an example of my point at the end of comment 10,
(a) do not tell the user what to do, but
(b) give adequate information so that they can make an informed decision about
how to use the feature.

> Is this too much detail 
Yes (in relation to help page) and No (in relation to giving a better idea of
what needs to be documented in help).


> HTML support (because I prefer to leave that out until we have fixed the
> issue of exporting long descriptions)
Assuming/hoping this will be resolved soon.  Will wait to update the help until
"the dust from construction settles".

Final question:
> Assistive technologies, such as screen readers used by blind people, should
> announce the presence of a long description to the user 
But how can these technologies know that a "long description" is present? 
Doesn't it depend on LO exporting this information to an HTML or PDF tag (or
internally to its own documents if this capability is added) in a form that
would likely to be recognized by these technologies? 

I ask because the online help has to document what happens, not what "should"
happen.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #12 from Christophe Strobbe  ---
Apologies for the long "omnibus" comment:

(In reply to Michael Weghorn from comment #8)
> (In reply to sdc.blanco from comment #6)
> > For example:
> > 1. Is Text Alternative and Description only relevant in relation to export
> > (HTML, PDF)?  Or does it have (or is supposed to have) other purposes?
> 
> I think that it can also be helpful when using LO itself get a text
> description, just the same as it can be used with HTML or PDF.

The distinction between the (short) text alternative and the long description
applies across document formats: HTML, PDF, LibreOffice Writer, LibreOffice
Impress, ...
(I can only speculate about the reasons why Microsoft Word 2019 removed the
distinction; it might just be because the goal of "Title" versus "Description"
was not clear from the UI and documentation and hence confused authors.)

(In reply to Michael Weghorn from comment #8)
> (In reply to Christophe Strobbe from comment #1)
> > (Note also that "Description" should only be filled in for images that are
> > too complex to be described using only an alt attribute. The alt attribute
> > is always read; the long description is presented through a mechanism that a
> > screenreader user can chose to ignore or skip. In many cases, this is a
> > link.)
> 
> -> "description" is supposed to be used for a more detailed description of
> the image if a "short summary" in the "Text Alternative" field doesn't cover
> all relevant information?

Right. You always fill in the field "Alternative (Text only)" (soon to be
renamed so something better; see Bug 148941 ). If the image is too complex or
contains too much detail, you only describe the most essential information in
"Alternative (Text only)" and add the full details in "Description".

(In reply to sdc.blanco from comment #9)
> I have seen in BZ (but could not find it again) that one person mentioned
> using the Description field for documentation in a corporate setting (maybe
> in/with templates).
> 
> iiuc, you imagine that hovering the mouse over an object would show the
> "Alternative Text" and/or "Description"?  (sounds good!)
> How would you display the data if both fields are used?
> 
> And maybe an option in Tools > Options > View to toggle which ones are
> shown?  (It looks like there is just enough room next to Mouse to put the
> controls.)

"Description" is not really related to corporate contexts. However, I can
imagine that companies often use charts and diagrams that are too complex to be
described with a short text alternative and that the description field
therefore becomes more important.

Neither "Alternative Text" nor "Description" are primarily intended for
tooltips and I am wary of recommending exposure as a tooltip for two reasons:
1. Screen reader users don't use a mouse, so tooltips are not exposed to them.
(Just like the "title" attribute in HTML, which is useless to screen reader
users.)
2. Sighted authors might start thinking that those attributes are intended for
tooltips and begin use them for additional information instead of text
alternatives.


(In reply to sdc.blanco from comment #10)
> > > But what can be said about the use/function of Description?
> No strong opinions here -- happy to follow the sensible ideas already being
> proposed/developed here by Christophe and Michael.
> 
> But one question in relation to the help page for the "Description" control.
> Here is the current text:
> 
>Enter a description text. The long description text can be entered to
>describe a complex object or group of objects to users with screen reader
>software. The description is visible as an alternative tag for 
>accessibility tools.
> 
> Notice the mention about screen reader software and accessibility tools. Two
> questions.
> 
> 1.  Should the help page mention these topics at all?  (I am assuming "yes").

Yes, but how you mention them is important, since most people are not familiar
with them. (See more below.)


> 
> 2.  But if yes, then presumably there are some standards (e.g., alt tag)
> that are used to support screen readers and other tools.  But I get the
> impression (from the links that Christophe has sent) that "description" is
> not so standardized.  So maybe it is necessary to simply explain clearly
> what gets exported to PDF and HTML (are there other exports?) -- without
> making these generic/vague claims about screen reader software, etc.  Maybe
> something like:
> 
>Whether the Description tag is used by other software depends on the 
>software's implementation.   
> 
> Not trying to promote a particular formulation here -- rather my concern is
> that the description of Description should give adequate and accurate
> information so that users can make informed decisions about what might be
> possible with this field.

I think the guidance on both Title and Description needs a rewrite. I would
suggest the 

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #11 from Christophe Strobbe  ---
(In reply to Michael Weghorn from comment #7)
> (In reply to Christophe Strobbe from comment #1)
> > The "Title" matches the alt attribute for images in HTML.
> > The "Description" would match the "long description" for images in HTML and
> > there are various ways of doing this in HTML. The Web Accessibility
> > Initiative's tutorial on complex images describes a few ways of doing this:
> > https://www.w3.org/WAI/tutorials/images/complex/ .
> 
> Thanks, that's very informative.
> What about just setting the description in the "longdesc" attribute using a
> "data:" URI, like this example from
> https://www.w3schools.com/tags/att_img_longdesc.asp ?

The longdesc attribute has a long history of being rather poorly supported by
screen readers and has been removed from HTML5, so that is not a good solution.
(Please note that W3Schools is not related to the W3C and that their tutorials
have no higher authority than anybody else's.)

> 
> > 
> >  > longdesc="data:text/html;charset=utf-8;,%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3EDescription%20of%20the%20Logo%3C/title%3E%3C/head%3E%3Cbody%3E%3Cp%3ESome%20description%20goes%20here%3C/body%3E%3C/html%3E">
> 
> Not having much experience with either HTML or a11y, that looks to me like
> it might be a rather straightforward way. 

Longdesc had fairly poor support in browsers and screen readers when used
correctly (using a regular URL or URL fragment). I have never seen the data:URI
version in the wild, nor tested it.

> 
> > A technique not described in the above tutorial is using the details and
> > summary elements inside the figcaption element below the image (img and
> > figcaption being both wrapped in the figure element), so the long
> > description is available through a disclosure widgets. This works both for
> > screen reader users and other keyboard users. (An example in German can be
> > found at
> > https://digitalisierung.hdm-stuttgart.de/barrierefreiheit/gesetze-und-
> > richtlinien/ .)
> 
> LO provides the possibility to insert a caption to the image (right click ->
> "Insert Caption"), which seems to be what "figcaption" is for semantically
> in the first place (at a quick glance, but I'm not very experienced with
> either HTML or a11y) so I'm wondering whether using "figcaption" for
> something else wouldn't somehow "conflict" with that concept?

I hope I haven't caused any confusion with the example from HdM Stuttgart. A
caption is no replacement for a text alternative or a long description, since
the caption is also presented to sighted users and can be used in LO to
generated a "Table of Figures" for the entire document.
I wanted to show that there are many techniques for long descriptions in HTML
instead of just one "canonical" one, so if you want to use LibO as an HTML
editor, you will at some point encounter a method that is not supported by
LibO. That would be different if LibO only exported HTML, just like it only
exports PDF without enabling PDF editing as such.

> 
> > (Note also that "Description" should only be filled in for images that are
> > too complex to be described using only an alt attribute. The alt attribute
> > is always read; the long description is presented through a mechanism that a
> > screenreader user can chose to ignore or skip. In many cases, this is a
> > link.)
> 
> Do I understand correctly that this is something that the user decides, so
> should be mentioned in the documentation?

If a long description is available, its availability should be announced to the
user (based on the appropriate API call between LibO and the screen reader), at
which point the user decides whether to read it or not. (This is how NVDA
implemented it in 2012, for example:
https://github.com/nvaccess/nvda/issues/809 .)


> 
> Interestingly, Word (or its ODT import functionality) doesn't seem to use
> the concept of separate fields for title and description. When opening the
> sample file in Word, right-clicking the image and selection "Edit alt text",
> an "Alt Text" box shows up that has the content of both fields merged
> together:
> 
> > This is the text alternative
> > 
> > This is the description // where does this appear?
> 
> and it is exported to HTML like this:
> 
> >  > src="Description%20Test%20file_files/image002.gif" align=left hspace=12
> > alt="Title: This is the text alternative - Description: This is the 
> > description > // where does this appear?"
> > v:shapes="Image1">

Until version 2016, MS Word had two separate fields: Title and Description.
Since Word 2019, there is only the Alt Text field. (Word 2019 also introduced
the "Mark as decorative" textbox.) Some people are still using Word 2016,
especially those who don't want to move to a subscription-based model for
desktop software.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #10 from sdc.bla...@youmail.dk ---

> > But what can be said about the use/function of Description?
No strong opinions here -- happy to follow the sensible ideas already being
proposed/developed here by Christophe and Michael.

But one question in relation to the help page for the "Description" control. 
Here is the current text:

   Enter a description text. The long description text can be entered to
   describe a complex object or group of objects to users with screen reader
   software. The description is visible as an alternative tag for 
   accessibility tools.

Notice the mention about screen reader software and accessibility tools. Two
questions.

1.  Should the help page mention these topics at all?  (I am assuming "yes").

2.  But if yes, then presumably there are some standards (e.g., alt tag) that
are used to support screen readers and other tools.  But I get the impression
(from the links that Christophe has sent) that "description" is not so
standardized.  So maybe it is necessary to simply explain clearly what gets
exported to PDF and HTML (are there other exports?) -- without making these
generic/vague claims about screen reader software, etc.  Maybe something like:

   Whether the Description tag is used by other software depends on the 
   software's implementation.   

Not trying to promote a particular formulation here -- rather my concern is
that the description of Description should give adequate and accurate
information so that users can make informed decisions about what might be
possible with this field.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #9 from sdc.bla...@youmail.dk ---
(In reply to Michael Weghorn from comment #8)
> I think that it can also be helpful when using LO itself get a text
> description, just the same as it can be used with HTML or PDF.
+1

I have seen in BZ (but could not find it again) that one person mentioned using
the Description field for documentation in a corporate setting (maybe in/with
templates).

iiuc, you imagine that hovering the mouse over an object would show the
"Alternative Text" and/or "Description"?  (sounds good!)
How would you display the data if both fields are used?

And maybe an option in Tools > Options > View to toggle which ones are shown? 
(It looks like there is just enough room next to Mouse to put the controls.)


> > Should help say what is the expected behavior, and then have a caveat...
> I tend towards the second option, once it's clear what the expected 
> behavior is. 
Me too. So thanks for helping to moving the thinking forward toward a first
resolution of "expected behavior".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #8 from Michael Weghorn  ---
(In reply to sdc.blanco from comment #6)
> For example:
> 1. Is Text Alternative and Description only relevant in relation to export
> (HTML, PDF)?  Or does it have (or is supposed to have) other purposes?

I think that it can also be helpful when using LO itself get a text
description, just the same as it can be used with HTML or PDF.

> 2. At present, for PDF export, only Images will export Text Alternative and
> Description.  Perhaps the help should say that?  Or should help say what is
> the expected behavior, and then have a caveat like "At present, this only
> works for Images"?  (this is a UX question)

I tend towards the second option, once it's clear what the expected behavior
is. (I think something like "At present, this is only exported for Images,
there's bug 149013 for other formats" or somesuch might be helpful to keep
track of this?)

> 3. As noted in this ticket, Description is not exported to HTML.  So the
> current help is highly misleading (just plain false, afaict, and somewhat
> irresponsible). But what can be said about the use/function of Description?
> (another UX question)

Depending on where the discussion goes, I think Christophe's comment 1 could be
an answer here:

(In reply to Christophe Strobbe from comment #1)
> (Note also that "Description" should only be filled in for images that are
> too complex to be described using only an alt attribute. The alt attribute
> is always read; the long description is presented through a mechanism that a
> screenreader user can chose to ignore or skip. In many cases, this is a
> link.)

-> "description" is supposed to be used for a more detailed description of the
image if a "short summary" in the "Text Alternative" field doesn't cover all
relevant information?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

Michael Weghorn  changed:

   What|Removed |Added

 Blocks||101912
   Keywords|needsUXEval |accessibility

--- Comment #7 from Michael Weghorn  ---
(In reply to Christophe Strobbe from comment #4)
> An accessible authoring tool is required to preserve accessibility features
> when exporting to or saving in other formats where corresponding features
> are available.

I agree. Adding this ticket to the a11y meta bug.

(In reply to Christophe Strobbe from comment #1)
> The "Title" matches the alt attribute for images in HTML.
> The "Description" would match the "long description" for images in HTML and
> there are various ways of doing this in HTML. The Web Accessibility
> Initiative's tutorial on complex images describes a few ways of doing this:
> https://www.w3.org/WAI/tutorials/images/complex/ .

Thanks, that's very informative.
What about just setting the description in the "longdesc" attribute using a
"data:" URI, like this example from
https://www.w3schools.com/tags/att_img_longdesc.asp ?

> 
>  longdesc="data:text/html;charset=utf-8;,%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3EDescription%20of%20the%20Logo%3C/title%3E%3C/head%3E%3Cbody%3E%3Cp%3ESome%20description%20goes%20here%3C/body%3E%3C/html%3E">

Not having much experience with either HTML or a11y, that looks to me like it
might be a rather straightforward way. 

> A technique not described in the above tutorial is using the details and
> summary elements inside the figcaption element below the image (img and
> figcaption being both wrapped in the figure element), so the long
> description is available through a disclosure widgets. This works both for
> screen reader users and other keyboard users. (An example in German can be
> found at
> https://digitalisierung.hdm-stuttgart.de/barrierefreiheit/gesetze-und-
> richtlinien/ .)

LO provides the possibility to insert a caption to the image (right click ->
"Insert Caption"), which seems to be what "figcaption" is for semantically in
the first place (at a quick glance, but I'm not very experienced with either
HTML or a11y) so I'm wondering whether using "figcaption" for something else
wouldn't somehow "conflict" with that concept?

> (Note also that "Description" should only be filled in for images that are
> too complex to be described using only an alt attribute. The alt attribute
> is always read; the long description is presented through a mechanism that a
> screenreader user can chose to ignore or skip. In many cases, this is a
> link.)

Do I understand correctly that this is something that the user decides, so
should be mentioned in the documentation?

Interestingly, Word (or its ODT import functionality) doesn't seem to use the
concept of separate fields for title and description. When opening the sample
file in Word, right-clicking the image and selection "Edit alt text", an "Alt
Text" box shows up that has the content of both fields merged together:

> This is the text alternative
> 
> This is the description // where does this appear?

and it is exported to HTML like this:

>  src="Description%20Test%20file_files/image002.gif" align=left hspace=12
> alt="Title: This is the text alternative - Description: This is the 
> description > // where does this appear?"
> v:shapes="Image1">


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=101912
[Bug 101912] [META] Accessibility (a11y) bugs and enhancements
-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-13 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #6 from sdc.bla...@youmail.dk ---
(In reply to Heiko Tietze from comment #5)
> Ultimately not a topic for UX since exporting the description is done in 
> the background. 
But the penultimate topic is for UX  - namely, what should users be expecting
from the "Text Alternative" and "Description" fields?  (and Christophes
interesting comment 4 makes these questions particularly salient).

As a first step toward clarifying those expectations, please help me
evaluate/revise the existing descriptions of these controls in the Description
dialog (Format > Description). 

help.libreoffice.org/7.4/en-US/text/shared/01/05190100.html

NB. I am not asking for an "ideal design" -- just a reasonable, pragmatic
proposal for the current functionality. The immediate problem is that the scope
or function of "Text Alternative" and "Description" are unclear. 

For example:
1. Is Text Alternative and Description only relevant in relation to export
(HTML, PDF)?  Or does it have (or is supposed to have) other purposes?

2. At present, for PDF export, only Images will export Text Alternative and
Description.  Perhaps the help should say that?  Or should help say what is the
expected behavior, and then have a caveat like "At present, this only works for
Images"?  (this is a UX question)

3. As noted in this ticket, Description is not exported to HTML.  So the
current help is highly misleading (just plain false, afaict, and somewhat
irresponsible). But what can be said about the use/function of Description?
(another UX question)

I accept the possibility that no one knows the answers to these questions --
which is why it seems appropriate to have a genuine UX evaluation, so that
those responsible for the backend have a "target" (design specifications) to
work towards. 

Again -- for now -- I am only seeking a reasonable first step in relation to
the existing functionality -- primarily so that a few sentences in the help
page can be revised -- and trust that this first small step will generate
additional steps (bug reports).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #5 from Heiko Tietze  ---
So I misinterpreted your "the long description is available through a
disclosure widgets" with my reply "we do the required minimum"?

Ultimately not a topic for UX since exporting the description is done in the
background. My comment was just about balancing effort vs. need with the idea
that HTML is not a native format for text processors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

--- Comment #4 from Christophe Strobbe  ---
@Heiko If LibreOffice is not an HTML editor, the proper response is to remove
its HTML editing capabilities, not to declare this issue "not a bug". An
accessible authoring tool is required to preserve accessibility features when
exporting to or saving in other formats where corresponding features are
available.

Each accessibility issue we ignore will increase the irrelevance of LibreOffice
on the European market in 2025, when the European Accessibility Act comes into
force. After 2025, LibreOffice will either (mostly) meet standard EN 301 549 or
be replaced by a different product (most likely Microsoft Office) in both
public administrations and companies in the European Union.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-12 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

Heiko Tietze  changed:

   What|Removed |Added

 CC||m.wegh...@posteo.de

--- Comment #3 from Heiko Tietze  ---
My take: LibreOffice is not an HTML editor and we do the required minimum.
Wouldn't invest effort for the description. => NAB

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Libreoffice-ux-advise] [Bug 149013] Description of images, OLE objects and shapes is not exported to HTML

2022-05-11 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=149013

sdc.bla...@youmail.dk changed:

   What|Removed |Added

   Keywords||needsUXEval
 CC||libreoffice-ux-advise@lists
   ||.freedesktop.org

--- Comment #2 from sdc.bla...@youmail.dk ---
Once the "expected" LO behavior is clarified, then I will update the help page
for the Description control in the Description dialog [1].  The entry for that
control will also be included in the help page for the Options tab [2]. 

The existing text in [1] appears to have been written in 2003 and never
updated. Perhaps corrections, clarifications, additions are needed. Will add
NeedsUXEval.


[1] https://help.libreoffice.org/7.4/en-US/text/shared/01/05190100.html
[2] https://help.libreoffice.org/7.4/en-US/text/swriter/01/05060900.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.