View Single Post
Old 10-22-2016, 10:04 PM   #7
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by ksimpson1986 View Post
but when i go to "generate TOC", there's nothing there. just a blank window. i'm not sure why it's linked...but it's not linked? i have no clue. this is the one thing with Sigil that's blowing my mind. i feel so limited with this.
As theducks mentioned, Sigil's "Tools - Table of Contents - Generate Table of Contents" is helpful + works when you have a document that is properly marked up using the <h1-h6> tags. Like this:

Spoiler:
Code:
<h1>January</h1>

<h2>January 1</h2>

<h3>Say Goodbye to the Past and Hello to the Future!</h3>

<h4>—Philippians 3:13</h4>

<p>Blah blah blah text.</p>


It won't be able to automatically generate a TOC for you if you have code using <p>s and <div>s like this (I ripped this out of one of the latest InDesign EPUBs I worked on):

Spoiler:
Code:
<div id="_idContainer000" class="Basic-Text-Frame">
	<p class="Chapter-number ParaOverride-1"><span class="CharOverride-1">chapter 1</span></p>
	<p class="Chapter-heading"><span class="CharOverride-2">Education in California</span></p>
</div>
[...]


Quote:
Originally Posted by ksimpson1986 View Post
I'm having an odd issue with this though, if i can figure out how to attach an image with this i'll show you, but i have about 1000 TOC entries that are linked and work correctly.
Ok, from your images I can tell that this is some really rotten code that InDesign created (both for the HTML TOC + the TOC.NCX).

We might be able to salvage something meaningful and better using Regex + digging into the nitty gritty.

Mind sharing this EPUB on the board? Or if it is copyrighted, would you mind putting the EPUB on a filesharing site (Google Drive, etc. etc.) and sending me a link via PM?

Side Note: I also can't see much of a reason WHY this specific book would need a TOC nested four deep (Month -> Month Day# -> Title -> Bible).

Are there multiple sermons per day, or multiple Bibles under each day?

I think it would be better organized by condensing the Month Day# + Title... and maybe the Bible in there too.

Original:

- January
-- January 1
--- Say Goodbye to the Past and Hello to the Future!
---- —Philippians 3:13

Potential #1:

- January
-- January 1: Say Goodbye to the Past and Hello to the Future!
--- —Philippians 3:13

Potential #2:

- January
-- January 1: Say Goodbye to the Past and Hello to the Future! (Philippians 3:13)

Last edited by Tex2002ans; 10-22-2016 at 10:08 PM.
Tex2002ans is offline   Reply With Quote