|03-31-2010, 07:48 PM||#1|
Join Date: Mar 2010
Location: Atlanta, GA
Device: Archos 5 32GB/Android - Aldiko
Managing HTML Link Behavior, From TOC to Chapter Headings
From within an HTML formatted eBook, I am trying to get the Calibre Ebook viewer to display each of my chapters with the chapter heading at the top of the viewing page when I click on a link in my TOC. I am trying to do this w/o Xpath, but entirely within the HTML so that when I take a book that has been converted from HTML to the epub format by Calibre and send it to my eReader, I will hopefully get the same behavior there as in Calibre.
Thus far, with one exception, I have been able to get all my TOC links working from within HTML such that when I click on a link in the TOC from within the viewer, the chapter heading shows at the top of the viewing window (all my HTML tags for chapter headings are <H3> & </H3>). The exception places the chapter heading at the bottom of the viewing window and not at the top. I did some research by cracking open the epub and looking at the HTML files in there. I discovered that the exception is occuring because the chapter heading is at the very bottom of one of the HTML files and the body of the chapter is at the top of the next HTML file in the sequence.
I am not certain that continuing to manipulate the HTML tags in the eBook file can get around this. Kovid, what would you suggest I do? or is there anything I can do in this situation to correct this? If the chapter heading is in one file and the body of the chapter is in another, displaying the chapter heading at the top of the viewing window would result in what amounts to a blank page since it appears that the viewer can only have one file opened at a time.
Looking forward to a solution to this issue.
|03-31-2010, 11:55 PM||#2|
creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
use the detect chapters setting in the conversion options under structure detection. Put //h:h3 in there and convert your html to epub
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Odt to ePub chapter link errors||Chrysanthemum||Calibre||8||07-15-2010 09:24 PM|
|Repeated Chapter Headings in Kobo Table of Contents||capsolo||Sigil||5||06-20-2010 03:09 AM|
|Detect chapter headings with capitalized words||fiendmish||Calibre||6||05-31-2010 10:45 AM|
|Image maps as Chapter Headings?||kjk||Sigil||6||10-17-2009 06:27 PM|
|Link behavior||daesdaemar||Feedback||2||12-13-2008 09:08 AM|