View Single Post
Old 08-07-2009, 12:20 AM   #1
Achilles
Enthusiast
Achilles began at the beginning.
 
Posts: 27
Karma: 32
Join Date: Aug 2009
Device: Kindle 2
Unhappy TOC created with EPUB but not LRF?

OK, this is driving me bananas. I've spent the past two days off and on trying to clean up some RTF books into html and then convert them to LRF for viewing on my PRS-505. I've saved the RTF out to html using the microsoft word "filtered html" option and then run it through HTML tidy to clean things up. I've then created an XPath expression to detect my chapters, it looks like this:

Code:
//*[((@class = 'c1') and re:test(., 'chapter|book|section|part\s+', 'i')) or @class = 'chapter']
Now, the screwy thing is that when I convert to EPub the chapter detection works great and a TOC is created. When I convert to LRF, however, no TOC is created even though the log file says that it's detecting chapters. I've got "Force use of auto-generated Table of Contents" checked, but it's not working. Does anyone have any suggestions? Let me know what other information you'd need to diagnose the problem. Thanks in advance people!
Achilles is offline   Reply With Quote