summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-12 22:30:35 +0000
committerKarl Berry <karl@freefriends.org>2022-01-12 22:30:35 +0000
commit7d89d54f89bf344350b6970f404917edac997453 (patch)
treeb160414d34866cfd7ad94a7d76c61a3991efc529 /Master/texmf-dist/source/generic
parent51c76bd00f0afd18d79753374d24aee52252ad62 (diff)
alt text in odt output, tex4ht r1056
git-svn-id: svn://tug.org/texlive/trunk@61591 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog4
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex12
2 files changed, 14 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 0507080b417..58ca9bee340 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
@@ -1,5 +1,9 @@
2022-01-12 Michal Hoftich <michal.h21@gmail.com>
+ * tex4ht-ooffice.tex (ooffice.4ht): added alternative
+ text support for images.
+ https://tex.stackexchange.com/a/630017/2891
+
* tex4ht-4ht.tex (graphicx.4ht): declare GraphicsAlt configuration,
in order to support the \includegraphics's alt attribute in other
output formats than HTML.
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
index 9b1fbf1ffcc..663fdb47116 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 1053 2022-01-09 15:36:40Z karl $
+% $Id: tex4ht-ooffice.tex 1056 2022-01-12 22:24:14Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -1171,6 +1171,9 @@ Enable supported image extensions out of the box.
\def:image:mime:type{.gif}{image/gif}
\def:image:mime:type{.svg}{image/svg+xml}
\def\svg:width{0.0pt}\def\svg:height{0.0pt}
+% this is defined in graphicx.4ht, but we should it define here too, for cases
+% when graphicx is not used
+\NewConfigure{GraphicsAlt}{1}
\Configure{IMG}
{|<insert shadowing fig file|>%
\ht:special{t4ht=<draw:frame
@@ -1194,7 +1197,12 @@ Enable supported image extensions out of the box.
/><!--draw:name="}}
{" }
{\ht:special{t4ht=" }}
- {\ht:special{t4ht=--></draw:frame>}}
+ {%
+ \ifx\a:GraphicsAlt\relax%
+ \Configure{GraphicsAlt}{ALT}%
+ \fi%
+ \ht:special{t4ht=--><svg:title>\a:GraphicsAlt</svg:title></draw:frame>}%
+ }
>>>
\<configure ooffice pst-jtree\><<<