texlive[60401] Master/texmf-dist: animate (2sep21)

commits+karl at tug.org commits+karl at tug.org
Thu Sep 2 22:31:07 CEST 2021


Revision: 60401
          http://tug.org/svn/texlive?view=revision&revision=60401
Author:   karl
Date:     2021-09-02 22:31:07 +0200 (Thu, 02 Sep 2021)
Log Message:
-----------
animate (2sep21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
    trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
    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	2021-09-02 20:30:52 UTC (rev 60400)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2021-09-02 20:31:07 UTC (rev 60401)
@@ -1,3 +1,6 @@
+2021-09-02
+	* fix: non-conforming SVG id attribute values
+
 2021-08-19
 	* fix: wrong orientation of button faces on landscape pages (dvips)
 

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

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2021-09-02 20:30:52 UTC (rev 60400)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2021-09-02 20:31:07 UTC (rev 60401)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}[2020-10-01]
 
-\def\@anim at version{2021/08/19}
+\def\@anim at version{2021/09/02}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF & SVG animations from files and inline graphics]
 
@@ -199,7 +199,7 @@
 
   %approach similar to OCGs, that is, putting the frame content in an svg group,
   % <g id='...'>...</g>, whose visibility is then manipulated by JavaScript
-  \def\@anim at newocg#1#2{\xdef\@anim at curocg{id='#1.#2' class='ocg'}}
+  \def\@anim at newocg#1#2{\xdef\@anim at curocg{id='_#1.#2' class='ocg'}}
   \def\ocgbase at add@to at off@list#1{%
     \xdef\@anim at curocg{\@anim at curocg\space visibility='hidden'}%
   }
@@ -3715,8 +3715,8 @@
         var ocg=this.getOCGs(this.pageNum);$%
       \fi
       for(var i=0;i<ocg.length;i++){$%
-        \if at anim@dvisvgm
-          var ocgName=ocg[i].getAttribute('id').split('.');$%
+        \if at anim@dvisvgm % slice(1) --> remove leading underscore
+          var ocgName=ocg[i].getAttribute('id').slice(1).split('.');$%
         \else
           var ocgName=ocg[i].name.split('.');$%
         \fi
@@ -3732,10 +3732,10 @@
     \fi%
     \if at anim@controls at play%
       \if at anim@dvisvgm
-        a#1_btnPauseLeft=document.getElementById('#1.PauseLeft');$%
-        a#1_btnPlayLeft=document.getElementById('#1.PlayLeft');$%
-        a#1_btnPauseRight=document.getElementById('#1.PauseRight');$%
-        a#1_btnPlayRight=document.getElementById('#1.PlayRight');$%
+        a#1_btnPauseLeft=document.getElementById('_#1.PauseLeft');$%
+        a#1_btnPlayLeft=document.getElementById('_#1.PlayLeft');$%
+        a#1_btnPauseRight=document.getElementById('_#1.PauseRight');$%
+        a#1_btnPlayRight=document.getElementById('_#1.PlayRight');$%
       \else
         a#1_btnPauseLeft=this.getField('#1.PauseLeft');$%
         a#1_btnPlayLeft=this.getField('#1.PlayLeft');$%



More information about the tex-live-commits mailing list.