texlive[51704] Master/texmf-dist: animate (22jul19)

commits+karl at tug.org commits+karl at tug.org
Mon Jul 22 23:13:27 CEST 2019


Revision: 51704
          http://tug.org/svn/texlive?view=revision&revision=51704
Author:   karl
Date:     2019-07-22 23:13:27 +0200 (Mon, 22 Jul 2019)
Log Message:
-----------
animate (22jul19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
    trunk/Master/texmf-dist/doc/latex/animate/README.txt
    trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
    trunk/Master/texmf-dist/source/latex/animate/animate.tex
    trunk/Master/texmf-dist/tex/latex/animate/animate.sty

Modified: trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2019-07-22 21:13:12 UTC (rev 51703)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2019-07-22 21:13:27 UTC (rev 51704)
@@ -1,3 +1,6 @@
+2019-07-22
+	* new: option `alttext' for setting description text
+
 2019-04-09
 	* fix: improved patching of `dvisvgm.def'
 
@@ -14,7 +17,7 @@
 	issue in case of side-by-side animations in one SVG
 
 2018-11-30
-	* fix: `setTimeout' JS method (used by timeline feature) differs bewteen
+	* fix: `setTimeout' JS method (used by timeline feature) differs between
 	browsers and PDF viewers
 
 2018-11-29

Modified: trunk/Master/texmf-dist/doc/latex/animate/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/animate/README.txt	2019-07-22 21:13:12 UTC (rev 51703)
+++ trunk/Master/texmf-dist/doc/latex/animate/README.txt	2019-07-22 21:13:27 UTC (rev 51704)
@@ -50,6 +50,7 @@
                     buttonbg=<colour>, buttonfg=<colour>, buttonalpha=<opacity>,
                     loop, palindrome, step,
                     poster[=first | <num> | last | none],
+                    alttext=none | {<alternative description>},
                     method=icon | widget | ocg,
                     dvipdfmx, dvisvgm, xetex,
                     type=[<file ext>],
@@ -79,6 +80,7 @@
                     buttonbg=<colour>, buttonfg=<colour>, buttonalpha=<opacity>,
                     loop, palindrome, step, measure,
                     poster[=first | <num> | last | none],
+                    alttext=none | {<alternative description>},
                     begin={<begin text>}, end={<end text>},
                     timeline=<timeline file>,
                     method=icon | widget | ocg,
@@ -91,12 +93,11 @@
 3. Requirements
 ===============
 
- * e-TeX
- * pdfTeX, version >= 1.20, or LuaLaTeX, version >= 0.95
- * Ghostscript, version >= 9.15 or Adobe Distiller
- * dvipdfmx, version >= 20080607
- * dvisvgm, version >= 2.6.2
- * Acrobat Reader (version >= 7), PDF-XChange, Foxit Reader
+Recent versions of
+ * Ghostscript or Adobe Distiller
+ * dvipdfmx
+ * dvisvgm
+ * Acrobat Reader, PDF-XChange, Foxit Reader
  * Blink-based (Chromium, Chrome, Opera, ...) web browsers or Firefox
 
 

Modified: trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/animate/animate.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/animate/animate.tex	2019-07-22 21:13:12 UTC (rev 51703)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2019-07-22 21:13:27 UTC (rev 51704)
@@ -81,6 +81,9 @@
 }
 
 \hyphenation{Ja-va-Script pro-vid-ed}
+\makeatletter
+\let\animVersion\@anim at version
+\makeatother
 
 \begin{document}
 \title{The {\sffamily animate} Package}
@@ -87,7 +90,7 @@
 \begingroup
 \makeatletter
 \def\@anim at sanitizeColon{}\def\@anim at sanitizeJS{}\def\@anim at endsanitize{}
-\expandafter\parsedate\@anim at version\relax %set current date to package date
+\expandafter\parsedate\animVersion\relax %set current date to package date
 \makeatother
 \author{Alexander Grahn \animategraphics[autoplay,loop,height=1.8ex,nomouse]{8}{bye_}{0}{3}\protect\footnote{Animated GIF taken from \href{http://www.phpBB.com}{phpBB} forum software and burst into a set of EPS files using \href{http://www.imagemagick.org}{ImageMagick} before embedding.}%
 %\space\protect\footnote{Animations may run slowly if viewed in the Acrobat Reader browser plugin.}%
@@ -120,12 +123,13 @@
 \section{Requirements}
 \begin{trivlist}
 %\item $\varepsilon$-\TeX
-\item pdf\TeX{}, version $\ge1.20$, or Lua\TeX{}, version $\ge0.95$, for direct PDF output
-\item Ghostscript, version $\ge9.15$ or Adobe Distiller for PS to PDF conversion
+\item pdf\TeX{}, version $\ge1.40$, or Lua\TeX{}, version $\ge0.95$, for direct PDF output
+\item Ghostscript, version $\ge9.15$, or Adobe Distiller for PS to PDF conversion
 \item \verb+dvipdfmx+ for DVI to PDF conversion
+\item dvipdfmx, version $\ge 20190503$, for DVI to PDF conversion
 \item \verb+dvisvgm+ for DVI to SVG conversion (also requires Ghostscript)
-\item PDF: Acrobat Reader (version $\ge7$), PDF-XChange, Foxit Reader
-\item SVG: Firefox, Chrome/Chromium and others
+\item PDF: Acrobat Reader, PDF-XChange, Foxit Reader
+\item SVG: Chromium-based browsers, Firefox and others
 \end{trivlist}
 
 \section{Installation}
@@ -173,6 +177,7 @@
 type=<file ext>
 method=icon | widget | ocg
 poster[=first | <num> | last | none]
+alttext=none | {<alternative description>}
 \end{verbatim}
 Except for `\verb+dvipdfmx+', `\verb+xetex+', `\verb+dvisvgm+' and `\verb+export+', the listed package options are also available (among others) as command options and will be explained shortly. However, if used as package options they have global scope, taking effect on all animations in the document. In turn, command options locally override global settings. Options without an argument are boolean options and can be negated, with the exception of package-only options `\verb+dvipdfmx+', `\verb+xetex+', `\verb+dvisvgm+ and `\verb+export+', by appending `\verb+=false+'.
 
@@ -365,6 +370,10 @@
 \end{verbatim}
 Measures the frame rate during one cycle of the animation and prints the value to the JavaScript console of the Reader. (For testing purposes.)
 \begin{verbatim}
+alttext=none | {<alternative description>}
+\end{verbatim}\hypertarget{beginend}{}%
+Changes or suppresses alternative description text. The default is `{\ttfamily animation by animate\verb+[+\animVersion\verb+]+}'. This text is shown by some PDF viewers that are not capable of rendering JavaScript animations or used for accessibility purposes.
+\begin{verbatim}
 begin={<begin text>}
 end={<end text>}
 \end{verbatim}\hypertarget{beginend}{}%

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



More information about the tex-live-commits mailing list