Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2012, 02:16 AM   #1
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
Sigil and chapters.

I use the epub format exclusively and I sometimes have to convert files from different formats to epub. There again, I use Calibre, exclusively, usually ebook-convert on the command line. When Calibre has finished converting I load the file into Sigil because Sometimes Calibre won't detect the chapter headings automatically. Now here comes the problem:
Calibre has split each chapter into a separate htm file, so it must know where the chapter breaks are. Anyway sometimes I can use Sigil to generate the chapters in the TOC like this: In the lower right corner of Sigil there is a button labled "Generate Table of Contents". If I press this button a dialog opens and a list of all the chapters is there and I can click ok and the toc will be filled with chapter titles that correspond to the htm files on the left.

This works sometimes and sometimes it don't. My question is, "How can I get it to work all the time, automatically? Why won't it work every time?
Any help will be greatly appreciated!
Paul
p3aul is offline   Reply With Quote
Old 11-29-2012, 06:28 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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil builds the TOC using heading tags (h1, h2, h3, etc ... ). If the chapters in the calibre-created epub don't use h tags for chapter headers, you won't be able to automatically build a ToC with Sigil.

So to answer your other question ... to "get it to work every time," make sure your epub uses proper heading tags for chapters before trying to build the ToC with Sigil.
DiapDealer is offline   Reply With Quote
Advert
Old 11-29-2012, 09:45 AM   #3
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
This may be as simple as selecting the chapter title and applying h1, h2 etc. from the taskbar. If you don't like how this affects display, the Sigil manual tells you how to add an h1 tag not affecting any particular text item.
exaltedwombat is offline   Reply With Quote
Old 11-29-2012, 07:03 PM   #4
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
I opened an epub in sigil that already had a TOC.
I've looked in the html for the chapters and i don't see a <h2> markup on any chapter. I have also looked in the stylesheet and there is nothing there to designate Chapter headings as <h2>. So where is it picking them up from ?
p3aul is offline   Reply With Quote
Old 11-29-2012, 07:37 PM   #5
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: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If the ePub already has a ToC, Sigil isn't "picking them up" from anywhere. It's simply using the pre-existing NCX ToC. You only need h tags to automatically generate a ToC using Sigil.
DiapDealer is offline   Reply With Quote
Advert
Old 11-29-2012, 09:23 PM   #6
p3aul
Captain Courageous
p3aul doesn't litterp3aul doesn't litter
 
p3aul's Avatar
 
Posts: 239
Karma: 102
Join Date: Apr 2009
Device: calibre, PRS 505
OK It seems when I convert a mobi for instance to an epub Caibre generates the h2 tags and if Calibre doesn't pick them up for a TOC Sigil will if I click "Generate Table of Contents".
Thanks everyone.
p3aul is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil + Adobe Digital Editions + chapters wkuiper Sigil 6 11-23-2012 10:58 AM
Sigil 0.3.4 / Problème CSS entre Sigil et iPad Grivels Software 10 07-03-2011 09:06 AM
Sigil and epub (can I delete empty chapters?) desaderal Sigil 3 03-24-2011 07:57 AM
azw to mobi: Not detecting chapters/page break at chapters and no TOC RachDvn Calibre 3 01-16-2011 09:53 AM
ePub Chapters vs. Stanza Chapters kjk Sigil 4 09-14-2009 10:50 AM


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


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