The problem with the PDF TOC getting generated correctly is that Word's Navigation control is not catching all the Heading formatted text sections. I'm trying to figure out what's going on here. MS Word 's document map has some issues
http://www.shaunakelly.com/word/numbering/documentmap.html. The document navigation model which is used for exporting headings to pdf applications is a different object than the TOC generation which works correctly. It may be that the paragraph characters which occur at the end of every line (a feature inherited from Ted Hildebrandt's document) is participating in Word's inability to export the TOC to a pdf directly.
Jonathan has been encouraging me to get ATR out of word and into xml. Which would be the best repository format for this book, before having a robust html version of it.
Here are some thoughts on fixing the TOC issue. In general, if Open Office can read it, other tools can use it. Once Open Office can generate the correct table of contents, we can probably convert cleanly. When I read your document with Open Office, the headers are all formatted correctly, but they
Try saving to .rtf, then reading the .rtf and generating a TOC. If you can do that, I can probably convert it cleanly for you from the .rtf (and it will probably fix any errors in the .doc).
Try saving to html, no matter how ugly that html is, and send me the results. I may be able to convert it to clean html using some tools I have.
That's what I'd try first
I have time this week to work on this. So good advice is needed. I'm half tempted to write a doc.exporttohtml function in Word which would export only the content and formatting to a textfile (html compliant) which would line up with the end-users's RobertsonCSS stylesheet. That way, all the TOC information, different header levels (Robertson uses an inconsistent outline format) and formatting (such as iltalic, bold) could be retained, along with a GRtext tag and HebText tag for Greek or Hebrew. Shouldn't the Robertson CSS stylesheet be created first? 3 languages, All Caps for titles, Greek in bold, italic font, some Greek superscript or subscripts, etc.