From bd98390451042178150ba3a8bef5d636b6d04f63 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 22 Jul 2019 21:13:27 +0000
Subject: animate (22jul19)

git-svn-id: svn://tug.org/texlive/trunk@51704 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/animate/animate.sty | 27 +++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/animate/animate.sty')

diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index 12ab6bd4289..75941569556 100644
--- a/Master/texmf-dist/tex/latex/animate/animate.sty
+++ b/Master/texmf-dist/tex/latex/animate/animate.sty
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim@version{2019/04/09}
+\def\@anim@version{2019/07/22}
 \ProvidesPackage{animate}
 [\@anim@version\space PDF & SVG animations from files and inline graphics]
 
@@ -239,13 +239,12 @@
       \edef\Gin@svg@view@base{\strip@pt\dimen@}%
       \Gin@req@width0.99626\Gin@req@width%
       \Gin@req@height0.99626\Gin@req@height%
-      \special{dvisvgm:bbox \strip@pt\Gin@req@width bp\GPT@space\strip@pt\Gin@req@height bp}%
       \raise\strip@pt\Gin@req@height bp\hbox{%
         \special{dvisvgm: raw
           <g transform="translate({?x},{?y})">
             <svg overflow="\ifGin@clip hidden\else visible\fi" width="\strip@pt\Gin@req@width" height="\strip@pt\Gin@req@height"
                  viewBox="\Gin@llx\GPT@space\Gin@svg@view@base\GPT@space\Gin@svg@view@width\GPT@space\Gin@svg@view@height">
-              <image width="\Gin@svg@real@width@bp" height="\Gin@svg@real@height@bp" 
+              <image width="\Gin@svg@real@width@bp" height="\Gin@svg@real@height@bp"
                      xlink:href="#1"/>
             </svg>
           </g>}%
@@ -289,10 +288,10 @@
       \fi
       \edef\Gin@setter{\def\noexpand\Gin@urx{\Gin@urx}\def\noexpand\Gin@ury{\Gin@ury}}%
       \expandafter\endgroup\Gin@setter%
-      \def\Gin@llx{0}% 
+      \def\Gin@llx{0}%
       \def\Gin@lly{0}%
       \edef\Gin@svg@real@width@bp{\Gin@urx}%
-      \edef\Gin@svg@real@height@bp{\Gin@ury}%  
+      \edef\Gin@svg@real@height@bp{\Gin@ury}%
     }
     \def\Gin@partext{\par}
     \def\Gread@svg@height#1height={\@ifnextchar\relax{}{\@ifnextchar'\Gread@svg@height@apo\Gread@svg@height@double}}
@@ -2056,7 +2055,7 @@
       /BS <</W 0>>%
       /H/N%
       /T (anm#1)%
-      /Contents (animation by animate[\@anim@version])%
+      \@anim@alttext% %/Contents (...)
       /AA <<%
         /PV <</S/JavaScript/JS \@anim@pojscriptobj>>% PageVisible
         /PO <</S/JavaScript/JS \@anim@pojscriptobj>>% PageOpen
@@ -3048,6 +3047,13 @@
 \define@key{anim@user}{buttonalpha}{%button opacity
   \xdef\@anim@alpha{#1}%
 }
+\define@key{anim@user}{alttext}{%
+  \ifthenelse{\equal{#1}{none}}{%
+    \gdef\@anim@alttext{}%
+  }{%
+    \xdef\@anim@alttext{/Contents (#1)}%
+  }%
+}
 
 \newboolean{@anim@controls}
 \newboolean{@anim@controls@play}
@@ -3243,6 +3249,7 @@
   \let\@anim@usrwd\@anim@pkgwd%
   \let\@anim@usrht\@anim@pkght%
   \let\@anim@usrtht\@anim@pkgtht%
+  \let\@anim@alttext\@anim@@alttext%
   \global\let\@anim@bg\@anim@@bg%
   \global\let\@anim@fg\@anim@@fg%
   \global\let\@anim@@@fg\@anim@@@@fg%
@@ -3449,6 +3456,14 @@
 \define@key{anim@pkg}{buttonsize}{%
   \gdef\@anim@@btnsize{#1}%
 }
+\edef\@anim@@alttext{/Contents(animation by animate[\@anim@version])}
+\define@key{anim@pkg}{alttext}{%
+  \ifthenelse{\equal{#1}{none}}{%
+    \gdef\@anim@@alttext{}%
+  }{%
+    \xdef\@anim@@alttext{/Contents (#1)}%
+  }%
+}
 
 \newboolean{@anim@@controls}
 \newboolean{@anim@@controls@play}
-- 
cgit v1.2.3

