From 5dcfe3ea298d342ddebfae69786ac3cb6e5aaee2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 4 Feb 2017 00:24:31 +0000 Subject: media9 (3feb17) git-svn-id: svn://tug.org/texlive/trunk@43133 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/media9/ChangeLog | 4 ++ Master/texmf-dist/doc/latex/media9/media9.pdf | Bin 3606237 -> 3606199 bytes Master/texmf-dist/source/latex/media9/media9.tex | 2 +- Master/texmf-dist/tex/latex/media9/media9.sty | 46 +++++++++++++++-------- 4 files changed, 35 insertions(+), 17 deletions(-) diff --git a/Master/texmf-dist/doc/latex/media9/ChangeLog b/Master/texmf-dist/doc/latex/media9/ChangeLog index 8942b049057..0ac5face85b 100644 --- a/Master/texmf-dist/doc/latex/media9/ChangeLog +++ b/Master/texmf-dist/doc/latex/media9/ChangeLog @@ -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 diff --git a/Master/texmf-dist/doc/latex/media9/media9.pdf b/Master/texmf-dist/doc/latex/media9/media9.pdf index 9294252f337..4f5bcfa7513 100644 Binary files a/Master/texmf-dist/doc/latex/media9/media9.pdf and b/Master/texmf-dist/doc/latex/media9/media9.pdf differ diff --git a/Master/texmf-dist/source/latex/media9/media9.tex b/Master/texmf-dist/source/latex/media9/media9.tex index ca2e7d0b77a..8258a4b9c2b 100644 --- a/Master/texmf-dist/source/latex/media9/media9.tex +++ b/Master/texmf-dist/source/latex/media9/media9.tex @@ -1243,7 +1243,7 @@ The first one is to increase \TeX's main memory. You may follow the steps in the 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++ 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++ 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} diff --git a/Master/texmf-dist/tex/latex/media9/media9.sty b/Master/texmf-dist/tex/latex/media9/media9.sty index e190a94c3e8..4329a0529d8 100644 --- a/Master/texmf-dist/tex/latex/media9/media9.sty +++ b/Master/texmf-dist/tex/latex/media9/media9.sty @@ -41,8 +41,8 @@ \RequirePackage{atbegshi} \RequirePackage{atenddvi} -\def\g@mix@date@tl{2017/01/30} -\def\g@mix@version@tl{0.74} +\def\g@mix@date@tl{2017/02/03} +\def\g@mix@version@tl{0.75} \def\g@mix@liiikerneldate{2015/09/27} \def\g@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@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 -- cgit v1.2.3