texlive[54453] Master/texmf-dist: media9 (21mar20)

commits+karl at tug.org commits+karl at tug.org
Sat Mar 21 22:20:07 CET 2020


Revision: 54453
          http://tug.org/svn/texlive?view=revision&revision=54453
Author:   karl
Date:     2020-03-21 22:20:07 +0100 (Sat, 21 Mar 2020)
Log Message:
-----------
media9 (21mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/media9/ChangeLog
    trunk/Master/texmf-dist/doc/latex/media9/media9.pdf
    trunk/Master/texmf-dist/tex/latex/media9/media9.sty
    trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty

Modified: trunk/Master/texmf-dist/doc/latex/media9/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/media9/ChangeLog	2020-03-21 21:19:47 UTC (rev 54452)
+++ trunk/Master/texmf-dist/doc/latex/media9/ChangeLog	2020-03-21 21:20:07 UTC (rev 54453)
@@ -1,3 +1,8 @@
+2020-03-20
+	* v1.07 : media9.sty
+	* v0.38 : pdfbase.sty
+	* fix :  pdfbase.sty, dvisvgm driver: transform attr in \pbs_pdfxform:nnnnn
+
 2020-03-04
 	* v1.06 : media9.sty
 	* v0.37 : pdfbase.sty

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

Modified: trunk/Master/texmf-dist/tex/latex/media9/media9.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/media9/media9.sty	2020-03-21 21:19:47 UTC (rev 54452)
+++ trunk/Master/texmf-dist/tex/latex/media9/media9.sty	2020-03-21 21:20:07 UTC (rev 54453)
@@ -37,8 +37,8 @@
 \RequirePackage{xparse}
 \RequirePackage{atbegshi}
 
-\def\g at mix@date at tl{2020/03/04}
-\def\g at mix@version at tl{1.06}
+\def\g at mix@date at tl{2020/03/20}
+\def\g at mix@version at tl{1.07}
 
 \ProvidesExplPackage{media9}{\g at mix@date at tl}{\g at mix@version at tl}
 {acrobat-9/X compatible media}

Modified: trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty	2020-03-21 21:19:47 UTC (rev 54452)
+++ trunk/Master/texmf-dist/tex/latex/media9/pdfbase.sty	2020-03-21 21:20:07 UTC (rev 54453)
@@ -159,8 +159,8 @@
 \RequirePackage{expl3}
 \RequirePackage{l3keys2e}
 
-\def\g at pbs@date at tl{2020/03/04}
-\def\g at pbs@version at tl{0.37}
+\def\g at pbs@date at tl{2020/03/20}
+\def\g at pbs@version at tl{0.38}
 
 \ProvidesExplPackage{pdfbase}{\g at pbs@date at tl}{\g at pbs@version at tl}
 {driver independent access to low-level PDF features}
@@ -334,8 +334,8 @@
   \cs_new_nopar:Npn\_pbs_reftonum:w #1~0~R{#1}
 
   %literal PDF code into content stream, no saving of graphics state
-  \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or `page'
-    \str_case:nnF{#1}{             % #2: raw PDF
+  \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or
+    \str_case:nnF{#1}{                       % #2: raw PDF           `page'
       % `direct' inserts raw pdf code without translating origin (0,0) to
       % current position: origin is lower left page corner
       {direct}{\pdfliteral~direct~{#2}}
@@ -539,16 +539,20 @@
     }
 
     %literal PDF code into content stream; open text objects are always closed
-    \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or `page'
-      \str_if_eq:nnTF{#1}{}{         % #2: raw PDF
-        % set current location's coordinates to (0,0), while saving graphics
+    \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or
+      \str_case:nnF{#1}{                       % #2: raw PDF             `page'
+        % `pdf:code' inserts raw pdf code without translating origin (0,0) to
+        % the current position. Unlike pdftex, origin is (+72bp,-72bp) from the
+        % upper left page corner. In analogy to pdftex, newer dvipdfmx versions
+        % also provide `pdf:direct:' and `pdf:page:', but actually, both are
+        % just aliases for `pdf:code'.
+        {direct}{\special{pdf:code~#2}}
+        {page}{\special{pdf:code~#2}}
+      }{
+        % sets current location's coordinates to (0,0), while saving graphics
         % state before and re-instating after insertion (this is different from
         % \pdfliteral{...}
         \special{pdf:content~#2}
-      }{
-        % `direct' works the same as `page': no origin translation,
-        % no gs saving, but closing open text objects
-        \special{pdf:code~#2}
       }
     }
 
@@ -708,8 +712,8 @@
     \bool_if:NTF\g_pbs_dvisvgm_bool{
       \tl_gset:Nx\g_pbs_hash_tl{\token_to_str:N#}
       %insert literal Postscript code
-      \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or `page'
-        \str_if_eq:nnTF{#1}{}{         % #2: raw Postscript
+      \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or
+        \str_if_eq:nnTF{#1}{}{                   % #2: raw Postscript     `page'
           % set current location's coordinates to (0,0) and set unit vectors to
           % 1bp right and 1bp upwards; graphics state is saved before and
           % re-instated after insertion
@@ -747,7 +751,7 @@
           \raisebox{\c_zero_dim}[\c_zero_dim][\c_zero_dim]{
             \special{dvisvgm:raw~{?nl}<defs>{?nl}
               <
-                g~transform='translate(-{?x},-{?y})'~#4~
+                g~transform='scale(-1)translate({?x},{?y})scale(-1)'~#4~
                 id='pbs at obj\int_use:N\g_pbs_obj_int'~class='xform'
               >
             }
@@ -796,6 +800,7 @@
         \special{!~
           %keeping track of xform nesting level
           true~setglobal~globaldict~/pbs at xform@level~0~put~false~setglobal
+          %
           %back-transforms user coords to page coords (bigpoints with reference
           %point [0,0] in the bottom-left page corner)
           % user_x user_y pbs at user2page --> page_x page_y
@@ -835,8 +840,8 @@
       }
 
       %insert literal Postscript code
-      \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or `page'
-        \str_if_eq:nnTF{#1}{}{                   % #2: raw Postscript
+      \cs_new_protected_nopar:Nn\pbs_literal:nn{ % #1: empty (`'), `direct' or
+        \str_if_eq:nnTF{#1}{}{                   % #2: raw Postscript     `page'
           % set current location's coordinates to (0,0) and set unit vectors to
           % 1bp right and 1bp upwards; graphics state is saved before and
           % re-instated after insertion



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