![]() |
#1 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Adjusting TOC level indents
When converting to mobi from InDesign using the Kindle plug-in, I get a nicely laid out TOC with subtle indents between levels. But when I use Calibre, I get these extreme indents that look awful. (See attached screen shots.) Is there a way to format the indents in Calibre?
|
![]() |
![]() |
![]() |
#2 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Left margin handling in the Kindle is not very fine grained. My guess is InDesign is using blank characters to fake a margin while calibre is adding a full margin based indent.
Is it possible for you to post a sample (just the TOC page) of the book you're working on? Last edited by user_none; 06-13-2011 at 07:30 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
1. InDesign Export to Kindle mobi (note there is only a metadata TOC as InDesign discards the text TOC upon export). 2. Word to HTML to Calibre mobi. In this case there are two TOCs, the text and the metadata one. I did two tests, one where I didn't add a TOC in Word; I exported the HTML and used Calibre to force a TOC build based on the headers; and a second where I didn't force a build but indicated TOC level path expressions. Results were the same. 3. This third file is Word to HTML to Calibre. In this case I did not force a build or define TOC level expressions, to see if Calibre would auto-detect the TOC structure from the HTML. It did not: you can see the metadata TOC is flat. Thanks for your help. Michelle |
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,021
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I think what was meant was to post the working files, not the finished files.
|
![]() |
![]() |
![]() |
#5 | |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
Michelle |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Looking at the InDesign and calibre MOBI files I see why they're displaying differently. The InDesign file is using a series of before the entries in order to have them indented. The entity create a hard space that is not collapsable. calibre is using a series of nested blockquotes. Since, MOBI not having very robust margin support calibre fakes the left margin using blockquotes. The amount of indentation is not adjustable (aside form adding more by nesting).
Both ways have disadvantages. Blockquotes as you see have a large indent. is not going to have an indented left margin if the text wraps onto the next line. Unfortunately, I don't know how one would prepare an input document (if it's possible) to not put the TOC into blockquotes. |
![]() |
![]() |
![]() |
#7 | |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
I have noticed that in my InDesign-generated mobi TOC that the text wraps around and flushes left, which looks messy. Why must blockquotes have such a large indent? Is this not programmer-dependent? Is this something that Calibre can change for future versions or is this some universal HTML thing where it isn't adjustable? If the former, as a user I would suggest the current aesthetics of the blockquotes are not pleasing. One other thing I think needs to be addressed is the automatic removal of duplicate header entries. I noticed that when Calibre builds the TOC using the forced entries option, it removes duplicates. This is a problem for manuals like the one I am writing where each chapter ends with "Case Study: Baby Jane" and "Useful Links." Not good at all, IMHO. I would suggest removing this feature. Regards, Michelle |
|
![]() |
![]() |
![]() |
#8 | ||
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Quote:
I don't deal with MOBI very much (I hate the format). I will ask someone I know to weigh in on the margin issue. They might have some ideas. |
||
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
MOBI has no support for margins. The Kindle renders a blockquote with a margin of 1.5em. You don't like it, complain to Amazon.
|
![]() |
![]() |
![]() |
#10 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're most welcome
![]() |
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 39
Karma: 10
Join Date: Jun 2011
Location: Oamaru, New Zealand
Device: KT, Android Tablet and Phone
|
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes .
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Can Nook read Multi-level TOC? | jhempel24 | Barnes & Noble NOOK | 13 | 12-09-2010 11:55 PM |
Multi-Level TOC | edbro | Calibre | 4 | 09-16-2010 06:54 PM |
Multi level TOC | PAQUITO | Bookeen | 1 | 12-23-2009 03:57 AM |
adjusting toc.ncx file to restore missing chapters viewed in Adobe Digital Editions | cyberbaffled | ePub | 5 | 12-06-2009 09:44 PM |
ePub, 505 and multi-level ToC | JSWolf | Calibre | 4 | 06-04-2009 02:12 PM |