![]() |
#16 |
Addict
![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
|
Well, I converted Sigil modified epubs to mobi in Calibre a few times and I have tested it right now with the latest versions of both programs, modifying and converting the Calibre manual - the original TOC is preserved correctly. So there must be something specific about this file.
|
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
this specific file has now been manipulated by both sigil & calibre, the "magic bullet" was the h3 stuff, & both programs are now handling it as expected. as for using sigil + calibre generally, I got the recommendation for sigil from this board, as calibre has no find/replace features. I'm now using sigil to fix typos & to remove spurious line feeds, instead of going in & out of .rtf to do that with MS word. so I maintain & work on an epub version then convert it for kindle. AFAIK there are no sigil like tools for wotking directly with .mobi files. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Forget the Sigil vs calibre stuff, I'll edit some of my previous posts to avoid any more confusion.
I've just had another look at the toc.ncx file inside the source epub. It doesn't look right. This is an extract: Code:
<navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>PROLOGUE</text> </navLabel> <content src="Text/part1.xhtml"/> </navPoint> <navPoint id="navPoint-2" playOrder="2"> <navLabel> <text></text> </navLabel> <content src="Text/part2.xhtml"/> <navPoint id="navPoint-3" playOrder="3"> <navLabel> <text>CHAPTER ONE</text> </navLabel> <content src="Text/part2.xhtml#heading_id_3"/> </navPoint> </navPoint> If this is tidied up in the source epub, the conversion to mobi should work work OK. I tidied it up by removing the red bits as indicated, for all chapters. However, not everyone would know how to do this nor would they want to. The conversion settings in post #14 should correct the toc.ncx by recreating from scratch, without having to do manual surgery. To avoid this problem in the future, one would need to know how the source toc.ncx file got messed up in the first place. |
![]() |
![]() |
![]() |
#19 |
Addict
![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
|
The red part most likely corresponds to the empty h1 tags. But indeed, the history of how the TOC was created would be needed to debug this properly.
|
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
i got hold of the original ebup again & checked. it's toc is exactly as posted above. there are, however, no calibre tags so be seen anywhere, so I have no idea how the epub was created. I have not seen this in any different formats."original source" attached for research only- will remove it later
update - removed now. Last edited by cybmole; 12-20-2010 at 09:03 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
As you say, there are no tell-tale signs of calibre in this epub. I don't know Sigil well enough to know what to look for. It may just be that the original epub creator thought the TOC was fine because the epub's TOC is fine when you open it in the calibre Viewer or Firefox epubreader. It's only the conversion process which has highlighted the problem.
I guess it will remain a mystery. ![]() I think you'd better remove the attachment before the forum police descend. |
![]() |
![]() |
![]() |
#22 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks - have done as you suggest - in the meantime I finished the book, whose mystery was slightly less enthralling than this code hunt! - so we can all move on now.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of Contents | peterinnes | Sigil | 1 | 09-29-2010 03:03 AM |
Help with my Table of Contents | Skylinefranc | Calibre | 0 | 03-19-2010 12:55 AM |
How to: table of contents | wizzofoz | Sigil | 1 | 10-08-2009 08:22 AM |
only the table of contents | wang960 | Sony Reader | 3 | 08-29-2008 12:45 PM |
Creator Table of Contents | Nate the great | Kindle Formats | 5 | 07-10-2008 05:55 AM |