Hello again.
I was working on other files here and found that this solution is somewhat unstable.
Did some further digging and found that if the <li> tag has a text-align style set to "right" then the list item will show on the left after all.
For example, this will create a list item on the left :
<ol>
<li dir="rtl" style="text-align:right">
<span>RTL</span>
</li>
</ol>
For the moment, I've applied the following (somewhat rough, I know) sollution in HTML2WordML :
(added the 'unset' to the solution you've suggested previously)
if ((isset($properties['dir']) && strtolower($properties['dir']) == 'rtl') ||
(isset($properties['direction']) && strtolower($properties['direction']) == 'rtl')) {
unset($properties['text_align']);
$stringListPr .= '<w:bidi w:val="1" />';
}
Will be happy to hear that this (or a better) solution will also be included in the next versions to come :)
Thanks.
Nir.