I realize its too much to post the entire document. Here is a small portion of document, it just keep repeating itself for various verses. Sorry this is the minimum example size I could squeeze it to.
\documentclass[a4paper,12pt]{article}
%\usepackage[left=0.15in,right=0.15in,top=0.75in,bottom=0.75in]{geometry}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{longtable}
\usepackage[doublespacing]{setspace}
\usepackage{verse}
\usepackage{varwidth}
\AtBeginEnvironment{Verse}{\singlespacing}
\AtBeginEnvironment{longtable}{\onehalfspacing}
\newcommand{\blt}{\begin{longtable}{p{1.5cm}p{0.05cm}p{3.5cm}|p{1.5cm}p{0.05cm}p{3.5cm}|p{1.5cm}p{0.05cm}p{3.5cm}}}
\newcommand{\elt}{\end{longtable}}
\newcommand{\bv}{\begin{Verse}\large}
\newcommand{\ev}{\end{Verse}}
\newcommand{\bfns}{\begin{footnotesize}}
\newcommand{\efns}{\end{footnotesize}}
\newcommand{\sz}{\\[\normalbaselineskip]}
\newcommand{\csec}[1]{\section{#1}}
\newenvironment{Verse}
{\center\varwidth{\linewidth}}
{\endvarwidth\endcenter}
\setmainfont[Script=Devanagari]{Sanskrit 2003}
\begin{document}
\bv
तपः स्वाध्यायनिरताम् तपस्वी वाग्विदाम् वरम् | \\
नारदम् परिपप्रच्छ वाल्मीकिर्मुनिपुङ्गवम् ॥ १.१.१ ॥
\ev
\bfns \blt \hline
तपस्वी & = & sagacious thinker & वाल्मीकि: & = & Sage [Poet] वाल्मीकि & तपः & = & in thoughtful-meditation \\
स्व अध्याय & = & in self, study of scriptures & निरतम् & = & always - who is eternally studious in scriptures& वाक् & = & in speaking [in enunciation] \\
विदाम् & = & among expert enunciators & वरम् & = & sublime one - with नारद & मुनि पुन्गवम् & = & with sage, paragon, with such a paragon sage Naarada \\
नारदम् & = & with [such a sage] Naarada & परिपप्रच्छ & = & verily [inquisitively,] inquired about
\elt \efns
सर्व गुण समिष्टि रूपम् पुरुषम् all, merited endowments, composite, in form - about such a man.]
A thoughtful-meditator, an eternally studious sage in scriptures about the Truth and Untruth, a sagacious thinker, and a sublime enunciator among all expert enunciators is नारद, and with such a Divine Sage नारद, the Sage-Poet वाल्मीकि is inquisitively enquiring about a man who is a composite for all merited endowments in his form and calibre. [1-1-1]\\
\end{document}
This is the command I ran: htxelatex bala.tex # generate html. Now I am getting the following error:
(/usr/local/texlive/2011/texmf-dist/tex/generic/tex4ht/html4-math.4ht))
(./bala.aux)
! LaTeX Error: Command `\acute' already defined in `'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.33 \begin{document}
?
I changed the package options of fontspec to \usepackage[no-math]{fontspec} and it gave me this error:
----------------------------------------------------
(--- xdv font = [/usr/local/texlive/2011/texmf-dist/fonts/opentype/public/lm/lmmono10-regular.otf] (not implemented) ---)
--- warning --- Couldn't find font `[/usr/local/texlive/2011/texmf-dist/fonts/opentype/public/lm/lmmono10-regular.otf].htf' (char codes: 0--255)
(--- xdv font = Sanskrit2003 (not implemented) ---)
--- warning --- Couldn't find font `Sanskrit2003.htf' (char codes: 0--255)
(--- xdv font = Sanskrit2003 (not implemented) ---)
--- error --- Illegal storage address
----------------------------
t4ht.c (2010-12-16-08:47 kpathsea)
t4ht -.xdv
-f/Bala
(/usr/local/texlive/2011/texmf-dist/tex4ht/base/unix/tex4ht.env)
Entering Bala.lg

htxelatexand if I comment out fontspec, hyperref, multicol and inputenc, but Indic characters don't appear. I think you should consult this problem at tex4ht mailing list http://tug.org/mailman/listinfo/tex4ht – michal.h21 Jan 31 '12 at 16:38XeLaTeXdocument to HTML this may not end up as a duplicate. – Alan Munn Feb 03 '12 at 16:01inputencpackage with xelatex documents. Also, rather than posting a link to a huge document, you should try to make a simple example first to see where things are breaking. – Alan Munn Feb 03 '12 at 18:03htxelatexand then go from there. – Alan Munn Feb 11 '12 at 16:58