|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Is there a way to prevent Calibre adding to the TOC upon conversion?
I have an epub file whose structure and metadata TOC is fine. However I wanted to run it through a Calibre epub-to-epub conversion merely to get the cover to show properly on my Touch (by checking "No SVG cover" in conversion settings). Problem is, no matter what setting I used, I couldn't prevent Calibre from adding items to the TOC.ncx file. (I examined it in pdfxml inspector to double check.)
I tried it with default settings except that I had "none" set for "chapter mark" as I don't want any additional file splits. I tried it with "Do not add detected chapters to the Table of Contents" checked and that didn't work either. Calibre always added these additional TOC items which happen to be literally hundreds of page numbers. So is there some tweak or hidden setting to use so a conversion won't add to the TOC.ncx file? Alternately, is there a way to set the cover of the epub file so the book doesn't show a blank page in the beginning on the device without doing a conversion? I'm stumped. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
You may want to open a bug with that epub. Creating hundreds of TOC items sounds a bit odd.
The simpler solution to your problem would be to use Sigil though. Just open up the epub there and delete the blank cover page. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,162
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Reduce the number of links added to TOC to zero
|
![]() |
![]() |
![]() |
#4 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Kovid, I put the numeral zero in the box but it made no difference. The extra entries still showed up.
The odd thing is that these extra entries don't show up in the TOC window in Calibre's reader but they show up on my Touch. And I know they were added in upon the conversion as I checked the toc.ncx file both before and after the conversion using pdfxml inspector. The good thing is that I was able to delete these extra entries using pdfxml inspector but it's not the most convenient tool to use. Any other suggestions? |
![]() |
![]() |
![]() |
#5 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Sigil does not support toc.ncx files. The TOC is destroyed when you open and save an epub in Sigil that contains such a file. I think the developer is planning to add support for it later.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Last edited by jackie_w; 09-02-2010 at 08:46 PM. |
|
![]() |
![]() |
![]() |
#7 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
I noticed this. I ran across some epubs that are like the OPs results. I don't see any of the extra entries in calibre's viewer until I open and save the epub with Sigil. I'm not interested enough to figure out why this happens. Most of the time the TOC is not affected by a epub conversion.
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,322
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | ||
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@chaley, PatNY, Starson17... Well I'm very glad to have been the messenger, but the real thanks should go to member awp for providing the little gem that is epub-tweak.
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2011
Device: none
|
I am having the same problem of having extra entries added to my TOC by Calibre. As Jackie_w suggested in answer to an earlier question, I don't even use Sigil. I thought checking "Do not add detected chapters to the Table of Contents" would fix this, but no luck! Is this a bug in Calibre? TIA
|
![]() |
![]() |
![]() |
#13 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
First, in the future consider opening a new thread. The thread you reopened is discussing calibre as it existed 30 versions ago.
In addition to checking Do not add detected chapters to the Table of Contents try changing the Number of links to add to Table of Contents to zero? |
![]() |
![]() |
![]() |
#14 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2011
Device: none
|
Quote:
b) Yes, I set the number of links to 0 but I still got the chapters added. I see this bug was reported 2 years ago, but for some reason it was cancelled - so why are we still getting this problem? I can delete them by hand in toc.ncx, but I'll have to do this every time I change something... |
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
@jpaulm,
When doing your second epub to epub conversion what do you have in the Convert - StructureDetection - Detect Chapters at box? I try to avoid epub to epub conversions just in case I get the TOC messed up. If I do have to do one I set the above box to a single forward slash, / - I also set all the TOC boxes on the Convert - TOC page to blank. I don't know whether this is guaranteed to work but you could give it a try. Edit: Oh and make sure Convert - TOC - Force use of auto-generated TOC is unchecked. Looking at a couple of different approaches to your cover problem:
Last edited by jackie_w; 02-21-2011 at 03:25 PM. Reason: Forgot something |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to prevent calibre from automatically sending news to my device? | jedediah | Calibre | 4 | 04-12-2022 07:50 PM |
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion | foxxywith2xs | Calibre | 7 | 12-16-2012 07:49 PM |
Prevent calibre from using second monitor | Barty | Calibre | 2 | 10-08-2010 02:06 PM |
Prevent Calibre to paragraph each line | armkbdotcom | Calibre | 3 | 05-29-2010 03:15 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |