<div>Hello,</div><div><br></div>you can also use macro \DeclareUnicodeCharacter from the `inputenc` package. It has two parameters, first is hex value of utf8 character, second is macro to be used, in this case \entity{decimal value of utf8 character}.<div>
<br></div><div>I created simple package, `greek-arabic-4ht.sty`, which covers full unicode range for greek, arabic and extended latin A, but not all characters used in your document are covered!! You can simply add them to the package as you find any such undeclared character. </div>
<div><br></div><div>You can edit your preamble to include packages needed when tex4ht is running like this:</div><div><br></div><div>--------------------</div><div>\documentclass[12pt]{memoir}</div><div><br></div><div>\makeatletter</div>
<div>\@ifpackageloaded{tex4ht}{%</div><div>\newcommand{\greek}[1]{#1}</div><div>\usepackage{greek-arabic-4ht}</div><div>}{%</div><div>\usepackage{fontspec}</div><div>\usepackage{xunicode}</div><div>% Choose roman font (choosing the mapping so that ``--$>$``, '--$>$' etc.).</div>
<div>\setromanfont[Mapping=tex-text]{Palatino}</div><div>% Greek (normally, use first two lines; to make simple file for export to Word, use 3rd line only)</div><div>\newfontfamily{\gr}{New Athena Unicode}</div><div>\newcommand{\greek}[1]{{\gr #1}}</div>
<div>\newfontfamily\arabicfont[Script=Arabic,Scale=1.2,WordSpace=2]{USAMA NASKH}</div><div>\usepackage{bidi}</div><div>}</div><div>\makeatother </div><div>------------------</div><div><br></div><div>If your target format is word, you can translate your document with command:</div>
<div><div><br></div><div>mk4ht oolatex alex "xhtml, charset=utf-8" -utf8</div></div><div><br></div><div>this will make file in openoffice format, which can be easily translated to word. Sample is also included in the attachment.</div>
<div><br></div><div>Regards,</div><div>Michal</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2013/2/18 Radhakrishnan CV <span dir="ltr"><<a href="mailto:cvr@river-valley.org" target="_blank">cvr@river-valley.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sun, Feb 17, 2013 at 4:25 AM, Alexandre Roberts <span dir="ltr"><<a href="mailto:alexandre.roberts@gmail.com" target="_blank">alexandre.roberts@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear tex4ht list members,<div><br></div><div>I am about to begin drafting the first chapter of my dissertation in Byzantine and Middle Eastern history. This is the moment when I will commit to the format I will use for writing my entire dissertation. I want it to be XeLaTeX/BibLaTeX, but unless I can come up with a simple workflow for converting the content of my documents to Word format -- the only format that publishers in my field accept -- I will have to give this up and turn to Word/Endnote or Mellel/Bookends for the next three years.</div>
</div></blockquote></div><div><br>As far as I understand, TeX4ht won't support fontspec or XeLaTeX technologies of using system fonts that do not have *.tfm's. In effect, by adopting TeX4ht, one is likely to loose the features brought in by XeTeX. However, here is another approach.<br>
<ol><li>We translate all the Unicode character representations in the document to Unicode code points in 7bit ascii which is very much palatable to TeX4ht. A simple perl script, <a href="http://etf2ent.pl" target="_blank">etf2ent.pl</a> in the attached archive does the job.</li>
<li>We run TeX4ht on the output of step 1.</li><li>Open the *html in a browser, I believe, we get what you wanted. See the attached screen shot as it appeared in Firefox in my Linux box.<br></li></ol>Here is what I did with your specimen document.<br>
<ol><li>commented out lines that related to fontspec package from your sources named as alex.tex. <br></li><li>added four lines of macro code to digest the converted TeX sources</li><li>ran the command: perl <a href="http://utf2ent.pl" target="_blank">utf2ent.pl</a> alex.tex > alex-ent.tex <br>
</li><li>ran the command: htlatex alex-ent "xhtml,charset=utf-8,fn-in" -utf8 (fn-in option is to keep the footnotes in the same document). I have used a local bib file, mn.bib as I didn't have your bib database. biber was also run in the meantime to process the bibliography database.<br>
</li><li>open the output, alex-ent.html in a browser. I got it as you see in the attached alex.png.</li></ol><p>Hope this might help you.<br></p>Best regards<span><font color="#888888"><br></font></span></div>
</div><span><font color="#888888"><br>-- <br>Radhakrishnan<br><a href="https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1" target="_blank">River Valley</a><br>
<br>
</font></span></blockquote></div><br>
</div>