Unwanted Alternative Image Names

We are using Libre Office in the writing of technical manuals
where some users make html copies.

Finding that the file names of images are being displayed
beside or below the images in the html versions. Because
all images are given a caption, we do not want the file names too.

  I can remove them by going to each image Properties>Options
and deleting one at a time but this is time consuming when there are
many images - over 100 in one manual. Is there a setting that can
automatically prevent the file names being displayed?

Have looked through the Help but found nothing, did I overlook it?

Gordon
Tauranga N.Z.

Hi Gordon,

gordon cooper schrieb:

We are using Libre Office in the writing of technical manuals
where some users make html copies.

Finding that the file names of images are being displayed
beside or below the images in the html versions. Because
all images are given a caption, we do not want the file names too.

I can remove them by going to each image Properties>Options
and deleting one at a time but this is time consuming when there are
many images - over 100 in one manual. Is there a setting that can
automatically prevent the file names being displayed?

Have looked through the Help but found nothing, did I overlook it?

I guess you are using File > Export > XHTML. At least with that, I can reproduce the problem.

It looks like an error in the XHTML filter. Using an old version of the filter, I see both the caption text and the alternative text of the picture. Using a new version of the filter (here developer version LO 6.0), I see only the alternative text of the picture and no caption text at all.

Please write a bug report for the problem.

It is possible to fix the bug without compiling the LO sources. You can edit the filter directly. You find the filter in <programm

/share/XSLT/export/xhtml. The part body.xsl is relevant here. Do

you know someone with knowledge in XSLT?

Kind regards
Regina

Hi Regina,
                   I expect that you may have read the later postings from myself
on this issue and have seen that I have worked around the problem. The
information appearing in the Alternative (Text only} line was there when
the Open Document files had been created by pasting from html but does
appear when we are inserting images straight into Libre Office.

Am interested in your information about filtering and XSLT, but having
never before worked with editing and conversions in XML, have spent
time today reading about them. You referred to possibly editing the
filter. I could not find your reference '<programm folder>/share/XSLT/
export/xhtml. Where do I start looking for this, in Libre Office, or where?

Am not familiar with LO 6.0., presently working in 5.2.6.2 which is the
version currently available from the repositories for MX-Linux, the OS
that is described in the Manual currently being edited and displaying
of our Alternative Name problem.

I will attend to the bug report.

My thanks for your advice,
Kind regards,
Gordon

Tauranga N.Z.

Hi Gordon,

gordon cooper schrieb:

Hi Regina,
                  I expect that you may have read the later postings
from myself
on this issue and have seen that I have worked around the problem. The
information appearing in the Alternative (Text only} line was there when
the Open Document files had been created by pasting from html but does
appear when we are inserting images straight into Libre Office.

Am interested in your information about filtering and XSLT, but having
never before worked with editing and conversions in XML, have spent
time today reading about them.

Then it will be hard for you. I'm in a similar situation, otherwise I would have made a fix.

   You referred to possibly editing the

filter. I could not find your reference '<programm folder>/share/XSLT/
export/xhtml. Where do I start looking for this, in Libre Office, or
where?

In the folder, where LibreOffice is installed.

Am not familiar with LO 6.0., presently working in 5.2.6.2 which is the
version currently available from the repositories for MX-Linux, the OS
that is described in the Manual currently being edited and displaying
of our Alternative Name problem.

The version doesn't matter. It is an old bug, inherited from OpenOffice.

I will attend to the bug report.

I have written a bug report for it. It is https://bugs.documentfoundation.org/show_bug.cgi?id=109334

Kind regards
Regina

Hi Gordon,

I know you're not using Ubuntu but quite often the various distributions
use similar installations.

  You referred to possibly editing the

filter. I could not find your reference '<programm folder>/share/XSLT/
export/xhtml. Where do I start looking for this, in Libre Office, or
where?

In the folder, where LibreOffice is installed.

In my linux, it is here :

/usr/lib/libreoffice/share/xslt/export/

otherwise try, in a terminal, 'which libreoffice' (without the quotes)
and track it down from there.

hth
Philip

There is another facet of this that is not being considered. Accessible
documents. That is for accessibility and support of Assistive Technology
tools we are required to provide the Alternate text and titles.

Believe the default filters (import and export) are configured to facilitate
that. Additionally, within the UI imposing name for the images/objects is
displayed in the Navigator GUI--unnamed images/objects are not shown by
default.

Some coverage in BZ issues

https://bugs.documentfoundation.org/show_bug.cgi?id=39558

https://bugs.documentfoundation.org/show_bug.cgi?id=96355

https://bugs.documentfoundation.org/show_bug.cgi?id=101193

Hi Regina and Philip,

                                   Thanks for the replies, I now know where to look.
MX is based on Debian and has similarities to Ubuntu. Did scan through
/usr/share/Libre Office/ without success but will try again. Also see that
a bug report has gone.

Regards,
Gordon.

I was not aware of this facet but now having read through
your references, I fully understand. Thank you.

However, the Alternative text should not appear if the image
already has the Name used as the caption. In our case, Alt.
does not appear on the Libre Office original but shows up on
an html export. This has been reported as a bug. Meantime
I am deleting anything on the Alternative text line as this may
cause confusion, particularly in translated copies.

Regards,
Gordon.

Er no. The alternative name is supposed to be a description of the image content.

jonathon

Err, aren't we talking about HTML export? So the alternate text should
be placed as the value of the alt attribute of the img element and
should not be visible on the page at all! But readable by screen
readers?