Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2014, 10:50 AM   #1
pypo
Member
pypo began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2014
Device: none
Creating Hanging TOC for Kindle Menu

Has anyone been successful at creating a TOC for the Kindle MENU that includes hanging indents like this?

1.0 Hello World
1.1 How to do it
1.2 Why not go ahead
2.0 Things That Work
2.1 Making promises
2.2 What is next
2.2.1 Taking action
2.2.2 Seen it all before
2.3 Testing your choices
3.0 Things That Don't Work
3.1 Avoiding bad advice
3.2 Rabbit holes
3.3 How to email a CEO
4.0 Conclusions

Last edited by pypo; 07-15-2014 at 10:54 AM. Reason: didn't show example
pypo is offline   Reply With Quote
Old 07-15-2014, 11:18 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't see any hanging indents anywhere there. I see an outline (which you should be able to easily achieve with css/style margins, blockquotes, or html lists). If you're talking about an html (inline) toc.

If you're talking about the ncx-based "goto" menu-based toc, you don't really have any control over how those are displayed (other than defining collapsible sections) how the ncx is presented is basically a function of the reading application.

Last edited by DiapDealer; 07-15-2014 at 11:24 AM.
DiapDealer is offline   Reply With Quote
Advert
Old 07-15-2014, 11:38 AM   #3
pypo
Member
pypo began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2014
Device: none
Have another look at the forum post. It didn't format correctly the first try. Now the indents show.

Like I said, I'm not trying to do anything but put the TOC in the Kindle MENU using hanging indents. I know it is possible, because the user manual for Kindle Paperwhite has hanging indents in the Menu TOC. The Menu TOC is not in the body of the document. I don't want a TOC in the body of the document. I just want a TOC in the Kindle MENU and I want that TOC to be consecutively numbered and indented as shown in the example posted here. Maybe I need certain CSS for H1 H2 and H3. Maybe I need some setting for generating the TOC. Maybe something else, I don't know.

If there is a nice way to do all this with Calibre it would be great to hear from someone who has done this before.

Last edited by pypo; 07-15-2014 at 11:40 AM. Reason: better explanation of goal
pypo is offline   Reply With Quote
Old 07-15-2014, 11:58 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Maybe with epub3's nav document?
Spoiler:
Those still aren't hanging indents, btw.
DiapDealer is offline   Reply With Quote
Old 07-15-2014, 12:19 PM   #5
pypo
Member
pypo began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2014
Device: none
Thanks for the pointer.

http://www.idpf.org/accessibility/gu...nt/nav/toc.php

I'll read up on this.
pypo is offline   Reply With Quote
Advert
Old 07-15-2014, 12:19 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,959
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Looks like a standard 'Table' list item or
What you get using Hierarchical header levels with the TOC generator

<h1
<h2
<h2
<h3
theducks is offline   Reply With Quote
Old 07-15-2014, 12:32 PM   #7
pypo
Member
pypo began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jul 2014
Device: none
So if I understand correctly, you are saying that if I use h1, h2, h3 css chapter/section tags, that:

1) Calibre TOC generator will allow me (somehow) to generate the indent codes for a proper toc.ncx and

2) those will show up in the flick menu on Kindle devices.

I can try this of course, but I just wonder if I got your point.
pypo is offline   Reply With Quote
Old 07-15-2014, 12:44 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Keep in mind that what you want may not even be possible using a calibre-built kindlebook (AZW3/KF8). If it's at all dependent on epub3 features, there's a good chance that building the kindlebook with kindlegen may be a requirement.

I don't have a Paperwhite, so I've no idea how they present the toc/nav info.
DiapDealer is offline   Reply With Quote
Old 07-15-2014, 01:01 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The issue here I believe is a question of hierarchy, not really indents. (For the Kindle's Go To menu)

Hierarchical ToCs will be created with calibre's ToC generator, if using the appropriate header tags. Or manually editing the ToC of course.

If the EPUB has a hierarchical ToC, either kindlegen or calibre-convert will preserve it into AZW3, and the Go To menu on the Kindle will have a hierarchical ToC. After that it is up to the Kindle to interpret.

You will see exactly what you see with the User Guide from Amazon.

(NOTE: I believe I heard somewhere that a Kindle bug breaks collapsible/hierarchical ToC if the first element has children.)
eschwartz is offline   Reply With Quote
Old 07-15-2014, 01:40 PM   #10
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,261
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC the PW firmware is capable of displaying the inline ToC as HTML in a popup. This is different from the normal NCX view and allows the popup toc to have custom formatting. I have no idea how it is implemented though.
kovidgoyal is offline   Reply With Quote
Old 07-15-2014, 01:52 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
IIRC the PW firmware is capable of displaying the inline ToC as HTML in a popup. This is different from the normal NCX view and allows the popup toc to have custom formatting. I have no idea how it is implemented though.
by making the kindle think it is a footnote.

Does it render links inside footnotes???
eschwartz is offline   Reply With Quote
Old 07-15-2014, 02:18 PM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm back to betting on the ePub3 navigation document.
DiapDealer is offline   Reply With Quote
Old 07-15-2014, 02:20 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,261
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you look at the markup in the Kindle user guide it is HTML 4 created from adobe framemaker, and the opf was generated from some kind of boilerplate template. I highly doubt it came from an epub 3 document.

Last edited by kovidgoyal; 07-15-2014 at 02:22 PM.
kovidgoyal is offline   Reply With Quote
Old 07-15-2014, 02:52 PM   #14
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Ah well. I wonder if it's something that gets "turned on" in the Kindlebook for publishers with contracts and the like? I really need to get a Paperwhite some day; if only to check out these special footnote and pop-up inline toc features (although I think it's been determined that the pop-up footnotes are basically a heuristic function of the reading software).
DiapDealer is offline   Reply With Quote
Old 07-15-2014, 02:57 PM   #15
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,261
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
pop-up footnotes are a heuristic. I have no idea about the popup inline toc though, as the only book I have ever seen it in is the kindle user guide.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you make TOC visible from Kindle Pull Down Menu Julius Caesar Amazon Kindle 3 08-27-2013 09:52 AM
Creating kindle ebook without a TOC? emerika Kindle Formats 0 03-04-2012 01:09 PM
Creating Proper TOC in Kindle - regex help needed lyric Conversion 1 10-17-2011 06:19 PM
Forcing Kindle's menu TOC mharring Workshop 0 07-07-2010 06:04 PM
Creating TOC thibaulthalpern PDF 3 03-27-2010 04:21 PM


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


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