<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Dear colleagues,</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
Thanks to some new features kindly provided by A. Grahn, I have been able to create PDFs whose text is associated with sound, to be played as a whole or word by word.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
In the attached PDF, clicking any of the Hebrew words will play the sound for the word; pressing P in the margin will play or pause, as the case may be, and R will rewind and play the sequence of three words (which are typeset in the wrong order, I know).</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
This works well in LTR mode, even with \texthebrew labels (I have experimented with and without \texthebrew in the button labels).</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div><font face="Calibri,sans-serif">However, trying to place \texthebrew around the buttons so that the labels will typeset in the correct order, or placing \begin{RTL} … \end{RTL} results in "</font><span style="color: rgb(0, 0, 0); font-family: Monaco; font-size: 10px;">xdvipdfmx:fatal:
 A pending form XObject at the end of page.</span><font face="Monaco"><span style="font-size: 10px;">”</span></font></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<span style="font-family: Monaco; font-size: 10px;"><br>
</span></div>
<div>Can anyone advise on how to get the text properly typeset in RTL with embedded media buttons? MWE and a working PDF are attached (compiled with the RTL lines commented out).</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>K</div>
<div style="color: rgb(0, 0, 0);">
<div><br>
</div>
<div>Karljürgen G. Feuerherm, PhD | 2-139 Department of History | Wilfrid Laurier University | 75 University Avenue West | Waterloo, Ontario N2L 3C5</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
</div>
</body>
</html>