![]() |
#1 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
EPUB to AZW3 adds inline ToC to end of book?
I have a quite normal EPUB with a ToC in the toc.ncx but no inline ToC in the text of the book. When I convert it to AZW3 it suddenly acquires an inline ToC following the last chapter, which has <body id="calibre_generated_inline_toc"> as if it were generated by Calibre's "Insert Inline ToC" tool.
Does anyone have any idea what might be causing this? I regularly convert EPUBs to AZW3 to read on my Kindle, and I've never seen this happen before... |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,023
Karma: 90000009
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
That is the default conversion behavior for AZW3 format.
In the conversion settings in the "AZW3 output" tab there is an option "Do not add Table of Contents to book" to disable this. |
![]() |
![]() |
![]() |
#3 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
I decided to open the AZW3 that had the inline ToC and another AZW3 in the editor to see if I could spot any difference. The book with the inline ToC opens without any problems, but whichever other one I tried it with, the editor reported this error: Code:
calibre, version 3.28.0 ERROR: Failed to open book: Failed to open book, click "Show details" for more information. Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\job.py", line 35, in run File "site-packages\calibre\gui2\tweak_book\boss.py", line 60, in get_container File "site-packages\calibre\ebooks\oeb\polish\container.py", line 1508, in get_container File "site-packages\calibre\ebooks\oeb\polish\container.py", line 1469, in __init__ InvalidMobi: Failed to explode MOBI Last edited by Phssthpok; 08-06-2018 at 04:42 AM. |
|
![]() |
![]() |
![]() |
#4 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
I have "Do not add Table of Contents to book" ticked, as above. I have also looked at other settings, but the only one I can find that seems like it might be relevant is Common Options -> Table of Contents -> Force use of auto-generated ToC (which is NOT ticked). Is there any reason anyone can think of why this might happen? The fact that it only happens to a few books is particularly baffling -- other books are fine, but if I delete the AZW3s and reconvert, the same few books consistently end up with a ToC at the end, as if there's something in the books themselves that makes it happen... Last edited by Phssthpok; 09-05-2018 at 11:58 AM. |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,173
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#6 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,613
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Phssthpok - I don't convert EPUB to AZW3, so this is mere speculation:
Maybe the books that don't have the ToC are using book specific conversion settings, and the ones that do have the ToC are using the conversion settings from Preferences -- or vice versa. There's a Restore Defaults button on the Conversion dialogue (bottom left) BR |
![]() |
![]() |
![]() |
#7 |
ɴₐɴ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 2507940
Join Date: Jun 2011
Location: 37.2N 93.3W
Device: KV PW4 PW3 PW2
|
This may clear up some confusion about conversion settings:
https://manual.calibre-ebook.com/con...for-conversion |
![]() |
![]() |
![]() |
#8 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
"1. From the defaults set in Preferences->Conversion "2. From the saved conversion settings for each book being converted (if any). This can be turned off by the option in the top left corner of the Bulk Conversion dialog." And 2 takes precedence. This is a nasty, subtle and unexpected trap that I would expect most people would be surprised by -- having converted a book, discovered a problem, changed preferences according and reconverted, I would expect the new preference settings to hold. By no, they will be ignored completely! And even worse, if I convert a single book (or if, as in my case, I auto-convert to AZW3 when attempting to upload EPUBs to my Kindle, and never convert manually), I don't have the option to do anything about this AT ALL. And finally, even having unticked the box, the next time I do a bulk conversion the box is ticked again -- so it looks like (for certain books at least) I have to include them in a bulk conversion (and remember to untick the box again!) in order to kill off the ToC Zombie that keeps rising from the dead. Is there no way to untick this box permanently? Last edited by Phssthpok; 09-06-2018 at 07:24 AM. |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Hm. This works for me fine since years. Had you check your global conversion template in preferences for format MOBI and AZW3 output options looks like? As BR wrote, the global template "defaults" will be overwritten from a manual changed template for a individual book. To reverse this behavior you need to set the preferences to default for these books.
A behavior that I really like because I don't need to think about original vs manipulated conversion behavior. My standard behavior is to manipulate as less as possible during a converting process and do modifications only if a default setup or a book design so poor that I need to correct to become it on a reader readable. The only thing I am sometimes missing is a easy way to identify books with a non default individual conversion setups within the library. Maybe an enhancement for a plugin? ![]() |
![]() |
![]() |
![]() |
#10 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,613
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Yes, this would be nice and handy.
![]() |
![]() |
![]() |
![]() |
#12 | ||
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
Quote:
![]() Last edited by Phssthpok; 09-16-2018 at 05:13 AM. |
||
![]() |
![]() |
![]() |
Tags |
azw3, inline toc |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting EPUB to AZW3: TOC loses CSS | Phssthpok | Conversion | 4 | 10-02-2016 06:14 AM |
TOC problem - AZW3 and MOBI do not show inline H2 | hrvojej | Conversion | 2 | 06-06-2016 03:29 PM |
ePub -> AZW3 bug: inline ToC gets wrong styles | Phssthpok | Conversion | 11 | 07-14-2015 10:52 AM |
Epub to AZW3, TOC margins off, text OK | Ma'am-I-Am | Conversion | 0 | 10-18-2014 07:40 PM |
Use Regex to Code an Inline TOC, from an External TOC's .ncx File | mostlynovels | ePub | 2 | 03-16-2011 12:15 PM |