texlive[43133] Master/texmf-dist: media9 (3feb17)

commits+karl at tug.org commits+karl at tug.org
Sat Feb 4 01:24:31 CET 2017


Revision: 43133
          http://tug.org/svn/texlive?view=revision&revision=43133
Author:   karl
Date:     2017-02-04 01:24:31 +0100 (Sat, 04 Feb 2017)
Log Message:
-----------
media9 (3feb17)

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

Modified: trunk/Master/texmf-dist/doc/latex/media9/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/media9/ChangeLog	2017-02-04 00:24:15 UTC (rev 43132)
+++ trunk/Master/texmf-dist/doc/latex/media9/ChangeLog	2017-02-04 00:24:31 UTC (rev 43133)
@@ -1,3 +1,7 @@
+2017-02-03
+	* v0.75 : media9.sty
+	* fix: RTL related (luaTeX)
+
 2017-01-30
 	* v0.74 : media9.sty
 	* fix: usability in righ-to-left typesetting context

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

Modified: trunk/Master/texmf-dist/source/latex/media9/media9.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/media9/media9.tex	2017-02-04 00:24:15 UTC (rev 43132)
+++ trunk/Master/texmf-dist/source/latex/media9/media9.tex	2017-02-04 00:24:31 UTC (rev 43133)
@@ -1243,7 +1243,7 @@
 
 If increasing \TeX's main memory does not help, use the package option `\verb+bigfiles+' with media9. It defers file embedding from the DVI producing to the PS producing step.
 
-  \item In right-to-left typesetting context (RTL), the \verb+<poster text>+ argument of \verb+\includemedia+ and the text arguments for button faces of the \verb+\mediabutton+ command should be enclosed in pairs of \verb+\beginR+ and \verb+\endR+.
+  \item In right-to-left typesetting context (RTL) using the (pdf)\LaTeX{} or \XeLaTeX{} engines, the \verb+<poster text>+ argument of \verb+\includemedia+ and the text arguments for button faces of the \verb+\mediabutton+ command should be enclosed in pairs of \verb+\beginR+ and \verb+\endR+.
 \end{enumerate}
 
 \section{Acknowledgements}

Modified: trunk/Master/texmf-dist/tex/latex/media9/media9.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/media9/media9.sty	2017-02-04 00:24:15 UTC (rev 43132)
+++ trunk/Master/texmf-dist/tex/latex/media9/media9.sty	2017-02-04 00:24:31 UTC (rev 43133)
@@ -41,8 +41,8 @@
 \RequirePackage{atbegshi}
 \RequirePackage{atenddvi}
 
-\def\g at mix@date at tl{2017/01/30}
-\def\g at mix@version at tl{0.74}
+\def\g at mix@date at tl{2017/02/03}
+\def\g at mix@version at tl{0.75}
 
 \def\g at mix@liiikerneldate{2015/09/27}
 \def\g at mix@liiipkgdate{2015/09/27}
@@ -886,11 +886,23 @@
 }
 \ExplSyntaxOn
 
+%environment for setting LTR typesetting direction with e-TeX based engines 
+\cs_new:Nn\mix_beginLTR:{
+  \cs_if_exist:NT\TeXXeTstate{
+    \int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
+  }
+}
+\cs_new:Nn\mix_endLTR:{
+  \cs_if_exist:NT\TeXXeTstate{
+    \int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
+  }
+}
+
 \ior_new:N\l_mix_vfile_stream %file stream for 3D views files
 \NewDocumentCommand\includemedia{O{}mm}{%#1 options, #2 text/image #3 media file
   \mix_uriend:
   \group_begin:
-  \int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
+  \mix_beginLTR:
   \leavevmode
   %empty stream as appearance dummy
   \cs_if_exist:NF\g_mix_appearance_tl{
@@ -1197,22 +1209,24 @@
     }{%insert play button overlay
       \mix_insert_btnocg: %create OCG
       \cs_gset_eq:Nc\mix_pbtn:NN{g at mix@pbtn@\g_mix_usrpbtn_tl @tl}
-      %\hbox_set:Nn\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
-      \sbox\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
-      \box_move_down:nn{\g_mix_dp_tl}{
-        \hbox_to_wd:nn{\g_mix_wd_tl}{
-          \vbox_to_ht:nn{\g_mix_tt_tl}{
-            \vss
-            \ocgbase_oc_bdc:n{\g_mix_btnocg_tl}
-            \box_use:N\l_mix_pbtn_box
-            \ocgbase_oc_emc:
+      \group_begin:
+      \cs_if_exist:NT\textdir{\textdir TLT}
+        \sbox\l_mix_pbtn_box{\mix_pbtn:NN\g_mix_wd_tl\g_mix_tt_tl}
+        \box_move_down:nn{\g_mix_dp_tl}{
+          \hbox_to_wd:nn{\g_mix_wd_tl}{
+            \vbox_to_ht:nn{\g_mix_tt_tl}{
+              \vss
+              \ocgbase_oc_bdc:n{\g_mix_btnocg_tl}
+              \box_use:N\l_mix_pbtn_box
+              \ocgbase_oc_emc:
+            }
           }
         }
-      }
+      \group_end:
     }
     \int_gincr:N\g_mix_rmcnt_int
   }
-  \int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
+  \mix_endLTR:
   \group_end:
 }
 \tl_set_eq:NN\l_mix_includemedia_tl\includemedia
@@ -2360,7 +2374,7 @@
 \NewDocumentCommand\mediabutton{O{}m}{%#1 options, #2 normal button text
   \mix_uriend:
   \group_begin:
-  \int_compare:nT{\TeXXeTstate>\c_zero}{\beginL}
+  \mix_beginLTR:
   \leavevmode
   %reset various variables
   \tl_gclear:N\g_mix_overbtn_tl
@@ -2422,7 +2436,7 @@
     }
     \int_gincr:N\g_mix_mbtncnt_int
   }
-  \int_compare:nT{\TeXXeTstate>\c_zero}{\endL}
+  \mix_endLTR:
   \group_end:
 }
 \tl_set_eq:NN\l_mix_mediabutton_tl\mediabutton



More information about the tex-live-commits mailing list