Date: prev next · Thread: first prev next last


On 2024-04-11 08:42, Roberto Scano wrote:
Sorry i don't explain well. If I copy and paste image from a browser that
has alt text, during copy it miss alt text.

Thanks for the explanation.

I've tested that. For that to work, the corresponding data needs to be present in the clipboard after copying from the browser.

In a quick test, it works for me on Linux like this:

1) go to https://www.libreoffice.org/ in Firefox
2) copy the LibreOffice logo
3) open Writer
4) press Ctrl+Shift+V to open the "Paste Special" dialog
5) select "Hypertext Markup Language (HTML)" for the source format and press OK to paste

After that the alt text "logo" is set for the image in LibreOffice, which is the alt text set in HTML on the website, as can be seen with the wl-paste tool after copying in Firefox:

$ wl-paste -t text/html
<meta http-equiv="content-type" content="text/html; charset=utf-8"><img style="width:230px; height:auto;" src="https://www.libreoffice.org/themes/libreofficenew/img/logo.png"; alt="logo">

It does not work when just using Ctrl+V to paste instead of using "Paste Special", likely because some image format is used as the source and that doesn't contain the information on the alt text specified in HTML.

My test was with Firefox 115.9.1esr and a current development version of LibreOffice using the qt6 VCL plugin on Linux (Debian testing).

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7d1dc5707edb992f62d0a4b5bf1e8395f71f6e7b
CPU threads: 12; OS: Linux 6.6; UI render: default; VCL: qt6 (cairo+wayland)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

--
To unsubscribe e-mail to: accessibility+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/accessibility/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.