Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2012, 06:52 AM   #1
paul-b
Junior Member
paul-b began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2012
Device: Kindle Fire
Sigil to Kindlegen -- No Table of Contents

  • generate toc.ncx in Sigil
  • Save epub
  • use Kindlegen to convert epub to mobi
  • upload to kindle (Fire) to test

...and I can't get the TOC.

I've searched the Sigil site and these forums and haven't found anything to help me troubleshoot. Chances are that I'm missing something obvious.

I'm pretty good at troubleshooting... if someone could just give me some hints at what to look at.

Using Sigil 0.4.903 .. Kindlegen 1.2

Thank you.
paul-b is offline   Reply With Quote
Old 01-16-2012, 10:56 AM   #2
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
The only thing you're missing is that kindlegen does not create an in-line TOC from the toc.ncx file in the epub.

Calibre does create the inline TOC.
st_albert is offline   Reply With Quote
Advert
Old 01-16-2012, 11:03 AM   #3
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,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Kindlegen only uses the ncx file for chapter "jump points" on the progress bar (bumping the joy-pad right or left will jump to the next/previous entry in the ncx).

As st_albert mentioned, you must create your own inline html TOC (marked as a toc in the guide section of the opf) for kindlegen to enable the "go to contents" feature. Kindlegen doesn't make it for you from the ncx.
DiapDealer is offline   Reply With Quote
Old 01-18-2012, 07:37 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: 76,404
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The more I read about Kindlegen, the more I see how buggy it is.

Yes, Calibre will create a proper ToC based on toc.ncx. But if you put an internal ToC (page(s) of links) then you'll get two ToC when you convert using Calibre.

I've converted ePub to Mobipocket and found Calibre (in most cases) does a better job converting ePub then the Mobipocket tools.
JSWolf is offline   Reply With Quote
Old 01-23-2012, 12:44 PM   #5
Bas
Enthusiast
Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.
 
Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
I'v had similar problem to PaulB
Does this mean from JSWolf quote that you need to cancel the TOC you created in epub before going to Calibre?
Bas is offline   Reply With Quote
Advert
Old 01-23-2012, 01:15 PM   #6
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
I think there is a conversion option in Calibre to tell it not to create another inline TOC if you already have one.

You should keep the epub's toc.ncx in any case, since (some?) kindle devices use both (for different purposes).
st_albert is offline   Reply With Quote
Old 01-23-2012, 01:22 PM   #7
Whackatagin
Tweaker
Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.
 
Whackatagin's Avatar
 
Posts: 102
Karma: 324366
Join Date: Jan 2012
Location: Scotland
Device: Kindle / KOBO / PC
My 2 Cents

Calibre all the way. Edit your TOC in Sigil, let Calibre do the rest. If your "producing" a novel for Kindle you will need to do a little code scrubbing though, Calibre is intended as a library. It just gets you very close to what you need. All hail Kovid.

Kindlegen is truely awful in to many ways to mention. It's sole purpose, I beleive, is to force inexperienced (no disrespect intended) self-publishing writers to produce bland featureless text only books with no professional looking formatting. After all, if we could all produce content to the same market standard why would we need publishers and publishing services.

Sorry, my cynical gene kicked in there.
Whackatagin is offline   Reply With Quote
Old 01-24-2012, 09:36 AM   #8
Bas
Enthusiast
Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.
 
Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
I'v converted my book to epub in Sigil but am having difficulty with the contents TOC - still.

I'v stated to create the contents hyperlinks for chapters using:
<a name="answer_1"><p><Chapter1</p></a>
and
<a href="#answer_1">Chapter 1 in contents</a>

But the Chapter heading is an h2 and i=the html turns it into normal text, not in the centre.
Any ideas?
Shoot me down if I'm doing it the wrong way?
Bas is offline   Reply With Quote
Old 01-24-2012, 09:50 AM   #9
Whackatagin
Tweaker
Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.
 
Whackatagin's Avatar
 
Posts: 102
Karma: 324366
Join Date: Jan 2012
Location: Scotland
Device: Kindle / KOBO / PC
Excerpt from: https://www.mobileread.com/forums/sho...d.php?t=159198

5. Now you will see you have a whole list of xhtml files, one for each of your TOC items. Down at the bottom of this list you have a generate TOC from headings button, press it. Now check the boxes of the items you want to appear in your TOC. When you close this window you will now have a TOC.ncx on your list. This will convert just fine to any format. You can also click on the ncx file and edit what apears on your TOC. Just now it will probably only say "Chapter one" for instance. Just put your cusor inbetween the two chevrons and you can edit the entry to, say, "Chapter 1: A Strange Affair" or whatever. This will now appear instantly in your TOC. Note: If you have no entries in the generate TOC list you need to go back and highlight each chapter heading and select H1 from the little drop down at the top left of your screen. Try again and the chapter names should be on the list.

Hope this helps. Using the generate button at the bottom left will completely re-write your TOC into a well structured ncx file.

Good luck
Whackatagin is offline   Reply With Quote
Old 01-24-2012, 10:30 AM   #10
Bas
Enthusiast
Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.
 
Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
Many thanks - just a bit more to go
I started writing the book in Sept and feel that I am almost there
Bas is offline   Reply With Quote
Old 01-24-2012, 10:43 AM   #11
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,444
Karma: 58055868
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 Bas View Post
I'v converted my book to epub in Sigil but am having difficulty with the contents TOC - still.

I'v stated to create the contents hyperlinks for chapters using:
<a name="answer_1"><p><Chapter1</p></a>
and
<a href="#answer_1">Chapter 1 in contents</a>

But the Chapter heading is an h2 and i=the html turns it into normal text, not in the centre.
Any ideas?
Shoot me down if I'm doing it the wrong way?
Bang!

A simple manual/Inline TOC . Style is set in the CSS: .toc_item
Code:
<blockquote>
    <p><a class="toc_item" href="../Text/0743471792__p__split_1.html#Chap_1">Chapter 1</a><br />
  ...
Styling is set in the CSS: .chapter
Code:
  <h1 class="chapter" id="calibre_chapter_1"><a id="Chap_1"></a> <b>Chapter 1</b></h1>
Note: this example uses 2 different id, the first is used by the NCX, the other is used by the Inline (or other link)

Last edited by theducks; 01-24-2012 at 10:52 AM. Reason: typo
theducks is offline   Reply With Quote
Old 01-24-2012, 10:54 AM   #12
Whackatagin
Tweaker
Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.
 
Whackatagin's Avatar
 
Posts: 102
Karma: 324366
Join Date: Jan 2012
Location: Scotland
Device: Kindle / KOBO / PC
Quote:
Originally Posted by Bas View Post
Many thanks - just a bit more to go
I started writing the book in Sept and feel that I am almost there
Sheesh! that's fast. I started my current project in March 2009...and I'm nearly there. And I write full-time!
Whackatagin is offline   Reply With Quote
Old 01-24-2012, 01:52 PM   #13
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
And also note, as theducks' example illustrates, that you should use id= instead of name= .
st_albert is offline   Reply With Quote
Old 01-26-2012, 06:44 AM   #14
Bas
Enthusiast
Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.
 
Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
Many thanks - the book is only a compilation - most of my time has been spent trying to improve the formatting but your Whakatagin para 6 has thrown me a bit.
It says remove all <br/> but does it mean "where a para is needed" as by removing them all it makes the items in my Contents turn into a sentence - plus all my bullet point lists have <br/> in them.
Also my paras all start with <p class="sgc-1"><span> html not with <p class=MsoNormal> ??
Bas is offline   Reply With Quote
Old 01-26-2012, 07:52 AM   #15
Whackatagin
Tweaker
Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.Whackatagin ought to be getting tired of karma fortunes by now.
 
Whackatagin's Avatar
 
Posts: 102
Karma: 324366
Join Date: Jan 2012
Location: Scotland
Device: Kindle / KOBO / PC
Hi Baz.

The MsoNormal & SGC-1 thing....they are basically the same thing. The MsoNormal is just the style imported from a basic paragraph in a word doc. SGC-1 is the inherant Sigil style for an indented para. Most people import from word, that's why the kwik guide refers to Mso.

The BR tag thing...if you are going to mobi then these will all be ignored during conversion, that is why we use &nbsp; (Ironically, mobi conversion creates br tags. I know it's a mind-@*%$) As for the usage, here is a snippet from a well formed epub ready to convert. It shows: end of paragraph, paragraph break/new scene, and the start of the next set of paragraphs.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<p class="MsoNormal">‘He’d better remember I’m the professional and he’s the student,’ muttered Stephen as he struggled after her with their luggage.</p>

<p class="MsoNormal">&nbsp;</p>


<p class="MsoNormal">After a short......(it goes on and ends as above, all paras should be as the first one above. Without the nbsp tag they will all run on, as in any normal book.)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As and epub, or after conversion via Calibre, it will apear as...
~~~~~~~~~~~~~~~~~~~~~~~~~~~

‘He’d better remember I’m the professional and he’s the student,’ muttered Stephen as he struggled after her with their luggage.

After a short......(it goes on)
________________________________(with indents, post removed them.)

The nbsp tag within <P> tags is read as a new paragraph with nothing in it, this a blank line/paragraph break. It will work for any place where you want a blank line.

If you are authoring with Sigil you will encounter some differences. I know it sounds like a pain when you have obviously made a lot of progress in Sigil, but might I suggest you copy and past your chapter files back into word or wordpad, set it up as you want it and re-input back into Sigil. That will, most likely, sort most of your "gremilins". Going from epub to mobi is a fickle thing at the best of times, that is why you'll hear most folk cry "Simple is best".

Hope that helps and didn't just confuzzle you more...

Last edited by Whackatagin; 01-26-2012 at 08:35 AM. Reason: Indents didn't carry across to post, sorry.
Whackatagin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents fiona86 Conversion 1 08-11-2011 08:14 AM
Please, help with Table of Contents fe0642 Conversion 3 08-09-2011 01:23 PM
Help with my Table of Contents Skylinefranc Calibre 0 03-19-2010 01:55 AM
How to: table of contents wizzofoz Sigil 1 10-08-2009 09:22 AM
only the table of contents wang960 Sony Reader 3 08-29-2008 01:45 PM


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


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