<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; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Thanks for this explanation. When I was using the kludge solution and it broke last October, Vafa suggested that this problem might be corrected by TL2015 but I’ve been struggling to figure out how to follow up on that. Now I don’t have to!</div>
<div><br>
</div>
<div>I had been monitoring the back-and-forth with Khaled’s changes but I had not connected those to this issue (nor understood all the technical details).</div>
<div><br>
</div>
<div>I am grateful for this clean solution, as it enables me to stick with an engine I understand and have a big investment in. Thanks again.</div>
<div><br>
</div>
<div>Karljürgen</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>David Carlisle <<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>><span style="font-family: Calibri, sans-serif; font-size: 14px;">On 24 April 2015 at 18:35, Karljurgen Feuerherm
</span><span dir="ltr" style="font-family: Calibri, sans-serif; font-size: 14px;"><<a href="mailto:kfeuerherm@wlu.ca" target="_blank">kfeuerherm@wlu.ca</a>></span><span style="font-family: Calibri, sans-serif; font-size: 14px;"> wrote:</span></div>
<div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>I tried all kinds of variations (including \texthebrew{} in the button labels), but not this!</div>
<div><br>
</div>
<div>I guess the \textenglish{} wrappers keep things tidy, somehow?</div>
<div><br>
</div>
<div>Thanks so much.</div>
<div><br>
</div>
<div>K</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yes the problem is that the underlying \beginL \beginR direction primitives re-order the \specials<br>
</div>
<div> as well the text direction so the specials to end the pdf form object ends up before the<br>
 ones starting  them and things go wrong. So \textenglish used as a convenient way to get back<br>
</div>
<div>to Left-to-right so the \special's are not re-ordered and then you need to nest \texthebrew<br>
</div>
<div>again for the text.<br>
<br>
</div>
<div>Khaled had an experimental build for a while last year attempting to fix this<br>
(I guess it would have fixed this case) but unfortunately it broke other things<br>
</div>
<div>and it's been reverted so this workaround is needed.<br>
<br>
</div>
<div>David<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</span>
</body>
</html>