Quote:
Originally Posted by 413Michele
Yeah sure, here's the NCX for Chapter 1:
Code:
<navPoint id="num_5" playOrder="5">
<navLabel>
<text>CAPITOLO I. Come Candido è allevato in un bel castello e come n'è cacciato via.</text>
</navLabel>
<content src="Text/Section0004.xhtml#toc_1"/>
</navPoint>
And here the corresponding part in the file:
Code:
<h2 class="hidden" id="toc_1">CAPITOLO I. Come Candido è allevato in un bel castello e come n'è cacciato via.</h2>
I'll share a finding: in the calibre book Editor, clicking on the index entry highlights the right line in the editor view, but doesn't go to the right position in the preview (it only opens the file at the beginning).
That suggests me that the problem is on how calibre manages the display: none rule, as the link works on the source html, but not on the resulting file. I might be wrong though.
|
Nothing there looks wrong. And a couple of tests I have done seem to be fine. I think we need to see more code. What is around the heading? Is it at the top of the file or somewhere further down? The fact that calibre added an id means it isn't the first of that heading level in the file.
If the book has copyright, you can use the ScrambleBook plugin to produce a version that can be posted here.
Quote:
Sorry, what are you referring to in particular? I'm not sure
|
If the existing code is '<h2 class="chapterClass">', then changing the tag to a "p" will generally keep the desired formatting. But, if it is just '<h2>', I have to change to '<p class="chapterClass">' and create a class 'chapterClass' that displays the text correctly. With your version, there isn't any change needed or new classes.