<div dir="ltr">How would that resolve the problem of color, for example? <br><br>These two primitives (\beginspecial and \endspecial) are not documented anywhere but I emailed Ahmad Yazdipur (TeX-e-Parsi&#39;s developer) and today he replied. This is what he said:<br>
<br><br>&quot;The primitives \beginspecial and \endspecial are defined because when \special&#39;s range is more than a line in a paragraph and end of it, is in the middle of another line (e.g. when 1.5 lines of a paragraph is coloured), the coloured range in RTL will not be what we expect and  this is because of the paragraph scan towards the lines which are adjusted from left. With these two primitives (\beginspecial and \endspecial) paragraph scan algorithm can colour the range of each line that was intended to be coloured and as a consequent the problem will disappear&quot;<br>
<br>I actually asked him for more explanation and if he could probably send the implementation of \beginspecial and \endspecial to me. When he replies, I will send it to the list.<br><br>Best wishes,<br>Vafa Khalighi<br></div>