<div dir="ltr">This is the fix, I wrote today which fixes color isuue automatically in RTL mode. But it does not support color texts spanning multiple lines because then I would need to have \beginspecial and \endspecial primitives. I have explinaed where and how these two primitives should be used. This fix perfectly works with color and xcolor packages and no more macro programming is required. <br>
<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>\long\def\color@b@x#1#2#3{%<br> \leavevmode\beginL<br> \setbox\z@\hbox{\kern\fboxsep{\set@color{\beginL#3\endL}}\kern\fboxsep}%<br> \dimen@\ht\z@\advance\dimen@\fboxsep\ht\z@\dimen@<br>
 \dimen@\dp\z@\advance\dimen@\fboxsep\dp\z@\dimen@<br> {#1{#2\color@block{\wd\z@}{\ht\z@}{\dp\z@}%<br>      \box\z@}}\endL}<br>\def\before@color{\if@RTL \beginL \aftergroup \endR \set@color@stack \beginR \aftergroup\endL \else \set@normalcolor\fi}% when \beginspecial and \endspecial are implemented, then replace \set@color@stack with &quot;\set@colorspecial&quot;<br>
%\def\set@colorspecial{\beginspecial{color push \current@color}{color pop}%<br>%    \aftergroup \endspecial} % needs to be implemented when primitives \beginspecial and \endspecial are present<br>\AtBeginDocument{\let\set@normalcolor\set@color%<br>
\def\set@color{\ifhmode\before@color\else\set@normalcolor\fi}}<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

</blockquote></div><br></div>