Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-13-2011, 12:28 AM   #1
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
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?
Attached Thumbnails
Click image for larger version

Name:	TOC Mobi.jpg
Views:	269
Size:	256.1 KB
ID:	72709   Click image for larger version

Name:	TOC Calibre Mobi.jpg
Views:	299
Size:	189.2 KB
ID:	72710  
eggheadbooks1 is offline   Reply With Quote
Old 06-13-2011, 07:26 AM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
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.
user_none is offline   Reply With Quote
Advert
Old 06-13-2011, 03:37 PM   #3
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by user_none View Post
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?
Since the TOC is built using headers, I made a doc with only the TOC and headers in it (if you erase the headers, the TOC goes with it). Attached are three files:
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
Attached Files
File Type: mobi InDesign Export to Kindle.mobi (19.1 KB, 163 views)
File Type: mobi Word to HTML to Calibre.mobi (24.0 KB, 182 views)
File Type: mobi Word to HTML to Calibre 2.mobi (18.0 KB, 138 views)
eggheadbooks1 is offline   Reply With Quote
Old 06-13-2011, 03:48 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 06-13-2011, 04:20 PM   #5
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by JSWolf View Post
I think what was meant was to post the working files, not the finished files.
The system will not allow me to upload the InDesign file nor the HTML files. So here are the two Word doc files.

Michelle
Attached Files
File Type: doc TOC and Headers.doc (35.0 KB, 190 views)
File Type: doc TOC and Headers 2.doc (72.0 KB, 160 views)
eggheadbooks1 is offline   Reply With Quote
Advert
Old 06-14-2011, 07:22 AM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
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.
user_none is offline   Reply With Quote
Old 06-14-2011, 02:33 PM   #7
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by user_none View Post
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.
Hi User:
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
eggheadbooks1 is offline   Reply With Quote
Old 06-14-2011, 03:48 PM   #8
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by eggheadbooks1 View Post
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?
Using blockquotes is a work around for limtations of the MOBI format. Margin support is very poor.

Quote:
Originally Posted by eggheadbooks1 View Post
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.
Open a bug at https://bugs.launchpad.net/calibre and request this be added as an option.

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.
user_none is offline   Reply With Quote
Old 06-14-2011, 05:07 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 06-24-2011, 07:34 PM   #10
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by kovidgoyal View Post
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.
Dear Kovid:

Yes, and thank you for that rude response.

I'd been a fan up 'til now...

Michelle
eggheadbooks1 is offline   Reply With Quote
Old 06-24-2011, 07:37 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're most welcome
kovidgoyal is offline   Reply With Quote
Old 07-25-2011, 10:07 PM   #12
bhoyt
Enthusiast
bhoyt began at the beginning.
 
bhoyt's Avatar
 
Posts: 39
Karma: 10
Join Date: Jun 2011
Location: Oamaru, New Zealand
Device: KT, Android Tablet and Phone
Quote:
Originally Posted by kovidgoyal View Post
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.
Is this margin limitation and fixed blockquote size still the case with Kindle 3?
bhoyt is offline   Reply With Quote
Old 07-25-2011, 10:24 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes .
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:27 AM.


MobileRead.com is a privately owned, operated and funded community.