[XeTeX] Media9 buttons in RTL text

Karljurgen Feuerherm kfeuerherm at wlu.ca
Fri Apr 24 19:35:12 CEST 2015


I tried all kinds of variations (including \texthebrew{} in the button labels), but not this!

I guess the \textenglish{} wrappers keep things tidy, somehow?

Thanks so much.

K

From: David Carlisle <d.p.carlisle at gmail.com<mailto:d.p.carlisle at gmail.com>>
Reply-To: "xetex at tug.org<mailto:xetex at tug.org>" <xetex at tug.org<mailto:xetex at tug.org>>
Date: Friday, April 24, 2015 at 11:07
To: "xetex at tug.org<mailto:xetex at tug.org>" <xetex at tug.org<mailto:xetex at tug.org>>
Subject: Re: [XeTeX] Media9 buttons in RTL text

\documentclass{article}
\usepackage{libertine,media9,polyglossia}
\setdefaultlanguage[variant=british]{english}
\setotherlanguage[]{hebrew}

\begin{document}
\marginpar{\includemedia[
  label=song49,
  activate=pagevisible,
  deactivate=pageinvisible,
  noplaybutton,
  flashvars={source=http://www.kfeuerherm.ca/IntHeb/BBE.mp3&hidebar=true},
  transparent
]{\makebox[1cm]{x}}{APlayer.swf}\mediabutton[mediacommand=song49:playPause,tooltip={Play/Pause}]{(P)}\mediabutton[mediacommand=song49:play[(0.0)],tooltip={Reset}]{(R)}}

\begin{hebrew}
\textenglish{\mediabutton[
  mediacommand=song49:play[(0.65)],
  mediacommand=song49:pause[(1.45)],
  overface=ONE
]{\texthebrew{בראשׁית}}}
\textenglish{\mediabutton[
  mediacommand=song49:play[(1.8)],
  mediacommand=song49:pause[(2.45)],
  overface=TWO
]{\texthebrew{ברא}}}
\textenglish{\mediabutton[
  mediacommand=song49:play[(2.8)],
  mediacommand=song49:pause[(3.8)],
  overface=THREE
]{\texthebrew{אלהים}}}
\end{hebrew}

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20150424/df3acd15/attachment-0001.html>


More information about the XeTeX mailing list