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 05-15-2014, 11:20 AM   #1
nowefg
Junior Member
nowefg began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite Next Gen
Brand new Calibre user - confusion about auto-gen chapters not working

Hi all,

I'm really appreciating the Calibre software, and find it easy to use, after making my usual 3 or 4 bungled attempts to do something with it. TOC's, though, have me stymied.

I tried using auto-generate to create a TOC with entries for the chapters in a book was I converting from pdf, and the chapter headings that show in Calibre are just right for the book I'm editing.

When I load the azw3 file in my Kindle Paperwhite Next Gen, though, these chapter headings do show up, but they don't link to anything. All that shows are the names of each chapter, followed by an identical number, in this case the number 6, for every toc entry. They're not active links.

I looked in quick start guide, but didn't see additional steps I need to take to create the actual link between auto-generated chapter headings, and their locations. I was assuming that, since Calibre found the proper divisions of the text, it would, as in "auto-generate," already know where it found the respective headings breaks, and would automatically link the chapter headings to those locations.

If I have to laboriously page through the whole book to find the actual locations of these "headings" Calibre found by itself, and then link the locations to those headings manually, that would not be especially automatic or useful. Ergo, I'm bungling something somewhere.

Being brand new to all this, I'm still very impressed with this software. I can see it goes pretty deep, and I'm still just trying to wade the shallows. Assuming I missed something obvious, can any advise about how to auto-generate a functional toc?

Last edited by nowefg; 05-15-2014 at 12:30 PM.
nowefg is offline   Reply With Quote
Old 05-15-2014, 11:26 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@nowefg - perhaps this will help ==>> http://blog.calibre-ebook.com/2013/0...e-toc-for.html

BR
BetterRed is offline   Reply With Quote
Advert
Old 05-15-2014, 11:44 AM   #3
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: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
@nowefg
Br gave you a good link to use the TOC generator

The TOC is not 'chapters'.

Chapters are a logical division created by the author.
A book (content) could consist of 1 large file (IMHO not recommended) with chapter headings marked as anchor points. The TOC can still jump you there.
theducks is offline   Reply With Quote
Old 05-15-2014, 12:27 PM   #4
nowefg
Junior Member
nowefg began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite Next Gen
Quote:
Originally Posted by BetterRed View Post
@nowefg - perhaps this will help ==>> http://blog.calibre-ebook.com/2013/0...e-toc-for.html

BR
Thanks BetterRed,

The tutorial is dated, I think, as the UI doesn't match the 1.36 UI I have, on which there is no icon for edit. It's just a right-click away, though.

I followed the simple steps, and still get a TOC that is not linked to anything at all, i.e., accessing an entry on the new TOC doesn't open the relevant location.
nowefg is offline   Reply With Quote
Old 05-15-2014, 12:33 PM   #5
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: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by nowefg View Post
Thanks BetterRed,

The tutorial is dated, I think, as the UI doesn't match the 1.36 UI I have, on which there is no icon for edit. It's just a right-click away, though.

I followed the simple steps, and still get a TOC that is not linked to anything at all, i.e., accessing an entry on the new TOC doesn't open the relevant location.
This is for a making a NCX TOC.
If you saw green ticks, there should have been a link to that point.
After the NCX has been built, you can (optionally) then generate a HTML (AKA inline) TOC from that.
Tools:Table of contents:Insert inline...
theducks is offline   Reply With Quote
Advert
Old 05-15-2014, 12:40 PM   #6
nowefg
Junior Member
nowefg began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite Next Gen
Quote:
Originally Posted by theducks View Post
This is for a making a NCX TOC.
If you saw green ticks, there should have been a link to that point.
After the NCX has been built, you can (optionally) then generate a HTML (AKA inline) TOC from that.
Tools:Table of contents:Insert inline...
New terms: NCX; no idea what that refers to,

I did see the green ticks, one for each "chapter" that auto-generate found.

Opening the book in the Calibre reader, the new TOC is present, each blue TOC entry is selectable, but clicking on any entry only leads back to the location of the TOC itself, it doesn't "jump" to the destination the entry refers to.

Just tried it again, from scratch, and get the same result.

"If you saw green ticks, there should have been a link to that point."

This is exactly what's not happening. Got the ticks, but no link.

Last edited by nowefg; 05-15-2014 at 12:57 PM.
nowefg is offline   Reply With Quote
Old 05-15-2014, 01:20 PM   #7
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: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by nowefg View Post
New terms: NCX; no idea what that refers to,

I did see the green ticks, one for each "chapter" that auto-generate found.

Opening the book in the Calibre reader, the new TOC is present, each blue TOC entry is selectable, but clicking on any entry only leads back to the location of the TOC itself, it doesn't "jump" to the destination the entry refers to.

Just tried it again, from scratch, and get the same result.

"If you saw green ticks, there should have been a link to that point."

This is exactly what's not happening. Got the ticks, but no link.
You really need to take some time and learn a little about EPUB basics. The MR wiki (link at top) has some good reading

Are you jumping to the INLINE TOC?
Those entries may be faking out the auto-generate (If the book is done right, you may get BOTH. You can delete those that point to the inline TOC) during generation
theducks is offline   Reply With Quote
Old 05-15-2014, 01:57 PM   #8
nowefg
Junior Member
nowefg began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite Next Gen
Quote:
Originally Posted by theducks View Post
You really need to take some time and learn a little about EPUB basics. The MR wiki (link at top) has some good reading
Thanks for the tip.

What I actually really need to do, and the reason I posted the question, is to figure out how to generate a working ToC in Calibre. The dated tutorial steps, clear and simple as they are, haven't led to that result, and I don't think searching a Wiki for a definition of NCX just now, is going to get me there, either.

Quote:
Are you jumping to the INLINE TOC?
No idea what this is, either.

Quote:
Those entries may be faking out the auto-generate (If the book is done right, you may get BOTH. You can delete those that point to the inline TOC) during generation
The azw3 has no ToC to begin with. When the auto-generate process is finished and saved, it does have one, but the links don't work.

Quote:
Those entries may be faking out the auto-generate
Arcane and interesting, but not helpful.

Anyone else have any input?
nowefg is offline   Reply With Quote
Old 05-15-2014, 02:57 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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
ToC entries can be in two places:
  1. TOC#Inline_TOC, meaning it is an actual "page" in the ebook. The Chapter links are standard on-page hyperlinks, and have no semantic value.
  2. NCX, meaning it is reached from the GoTo menu. The Chapter links are defined semantically in the file toc.ncx and can be auto-generated with calibre's Edit ToC, if all chapter headings within the ebook are wrapped in the h1/h2/h3/h4/h5/h6 HTML tags.

One way to create a working, valid ToC is to open the book in calibre's Edit Book feature (shortcut key is "T") and edit the HTML code by each "Chapter $$$" header, to be enclosed in the
Code:
<h2>header goes here</h2>
HTML tags. Then use Generate ToC and it will find thse headers. If your book is not finding the chapters properly, it is probable that the header tags are missing. If you converted this book from a PDF, then I am guessing this is the problem.

For future reference, PDF is a horrible source format to use (as detailed in this sticky: Read this before Posting PDF Questions), and should only be used when there is no other choice. You must expect them to need special treatment.

It may be worth reading this sticky as well: Chapter Detection/Table of Contents Tutorial.

Last edited by eschwartz; 05-18-2014 at 01:05 AM. Reason: grammar typos (I'm crazy that way :p )
eschwartz is offline   Reply With Quote
Old 05-16-2014, 10:39 AM   #10
nowefg
Junior Member
nowefg began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2014
Device: Kindle Paperwhite Next Gen
Quote:
One way to create a working, valid ToC is to open the book in calibre's Edit Book feature (shortcut key is "T") and edit the HTML code by each "Chapter $$$" header, to be enclosed in the
Code:
<h2>header goes here</h2>
HTML tags. Then use Generate ToC and it will find thse headers. If your book is not finding the chapters properly, it is probable that the header tags are missing. If you converted this book from a PDF, then I am guessing this is the problem...

For future reference, PDF is a horrible source format to use You must expect them to need special treatment.
Thank you very much, eschwartz, for the specifics and links; extremely helpful level of information, given that I am motivated, but brand new to Calibre, and to HTML.

This particular book was only available in pdf, and is worth the "special treatment" to me, and gives me an incentive to tackle the learning curve.

I'll explore the options you and the other posters have suggested, optimistically, now, and probably irrationally, too, at least at first.

Last edited by nowefg; 05-16-2014 at 10:55 AM.
nowefg is offline   Reply With Quote
Old 05-16-2014, 10:47 AM   #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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, there you go then, a good reason!

Good luck, and if you have any questions feel free to ask.
eschwartz is offline   Reply With Quote
Old 05-16-2014, 11:02 AM   #12
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You might download a similar sort of book from the MR library and see how it is structured by looking at the code. It might show you something that is not clear from reading.

Try to avoid calibre program conversions, as they work, but they are hard to understand. They have class="calibre1" etc.
mrmikel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Auto Add not working Chocky Library Management 3 09-13-2013 12:46 PM
Amazon could be working on next-gen e-paper display Alexander Turcic News 19 08-13-2013 09:47 AM
Calibre Auto Add not working Chocky Calibre 2 03-04-2013 06:12 PM
Anyone else prefer the user interface of the last-gen Sonys? stodge Sony Reader 14 11-14-2010 05:51 PM
New-ish Cybook Gen 3 user lac231165 Introduce Yourself 8 08-11-2010 05:10 PM


All times are GMT -4. The time now is 01:20 PM.


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