<div dir="ltr">Ok, after creating bidi.4ht (attached), the previous error is gone but now there is nothing in html output. I get:<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>Searching `lm-rep-cmrm.htf' for `cmr10.htf'<br>
(/usr/local/texlive/2011/texmf-dist/tex4ht/ht-fonts/unicode/lm/lm-rep-cmrm.htf)<br>[1 file test.html<br> file test.css<br> file test.tmp<br>]<br>Execute script `test.lg'<br>----------------------------<br>t4ht.c (2010-12-16-08:47 kpathsea)<br>
t4ht -.xdv <br> -f/test <br>(/usr/local/texlive/2011/texmf-dist/tex4ht/base/unix/tex4ht.env)<br>Entering test.lg<br>System call: dvips -E -Ppdf -mode ibmvga -D 110 -f test.idv -pp 2 > <a href="http://zztest.ps">zztest.ps</a><br>
This is dvips(k) 5.991 Copyright 2011 Radical Eye Software (<a href="http://www.radicaleye.com">www.radicaleye.com</a>)<br>dvips: ! Bad DVI file: id byte not 2<br>--- Warning --- System return: 256<br>Entering test.css<br>
Entering test.tmp<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br><br>It is obviously using dvips with htxelatex which I believe it should not be doing.<br><br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 2:10 AM, Vafa Khalighi <span dir="ltr"><<a href="mailto:vafaklg@gmail.com">vafaklg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Can TeX4ht handle RTL LaTeX documents or if not, would you be willing to add support for RTL. My attempts so far have failed. Consider the following minimal example:<br>
<br>\documentclass{article}<br>\usepackage{xepersian}<br>
\begin{document}<br>این یک آزمایش است.<br>\end{document}<br><br>after running xtxelatex on this, I get:<br><br>No file test.aux.<br>(/usr/local/texlive/2011/texmf-dist/tex/latex/tipa/t3cmr.fd)<br>! You can't use `\relax' after \the.<br>
\NoHtmlEnv ....0pt\ht:everypar {\the \ht:everypar <br> }<br>l.3 \begin{document}<br> <br>? <br><br></div>
</blockquote></div><br></div>