Hello,
We have tested the change proposed by the admin of the forum and it's working fine. After adding this code in the file HTML2WordML:
if ((isset($properties['dir']) && strtolower($properties['dir']) == 'rtl') ||
(isset($properties['direction']) && strtolower($properties['direction']) == 'rtl')) {
$stringListPr .= '<w:bidi w:val="1" />';
}
this code generates a RTL list in the DOCX ouput:
<?php
require_once 'classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->setRTL();
$html = '<ul>
<li dir="rtl">One</li>
<li dir="rtl">Two <b>and a half</b></li>
</ul>';
$docx->embedHTML($html);
$docx->createDocx('output_rtl');
We have tested the output with MS Word 2007, MS Word 2013 and LibreOffice 5. Please try this code running it standalone and check that PHP Tidy is enabled and running on your server.
For futher support about this issue, please write to contact[at]phpdocx.com
Regards,
Phpdocx support team