View Single Post
Old 10-04-2013, 06:46 AM   #7
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Nigelinspain View Post
Hi everyone,

Thanks for the advice and help. I did this as a test file as I wanted to try and clear out a few errors that had appeared on a clients job. I did validate the epub file in Sigil and it showed no errors.

Here is the simple html I used for this test from the front matter to the start of the first chapter. You can see that I wanted the book to begin with Book Starts Here and gave it the id="start" code.

But whenever I viewed it in Kindle Previewer it always started at The Universal Law of Attraction.

</head>
<BODY>
<p class="large">Law of Attraction Explained</p>

<p class="center">by</p>

<p class="center">Nigel Thomas</p>

<p class="breakhere"</p>

<p class="class" id="start"><h2>Book starts here</h2>

<p class="breakhere"</p>

<p class="first" id="toc"><h2>Table of Contents</h2>

<p class="first"><a href="#universal_law_of_att">The Universal Law of Attraction</a></p>

<p class="first"><a href="#what_is_the_law">What is the Law of Attraction</a></p>

<p class="first"><a href="#law_of_att_tech">Law of Attraction Techniques</a></p>

<p class="breakhere"</p>

<p class="first"><h2><a name="universal_law_of_att">The Universal Law of Attraction</a></h2>

This is the html I put into Sigil to produce the epub file and when I checked that everything was fine so I have no idea why it did not start at the page I wanted it to.

Thanks
Nigel
Hi, Nigel:

I was asking for the order of the files in the ePUB, and this seems to be a section from the TOC, but I'll try to assist:

1. Did you add "text" to the Guide, in the OPF, to indicate the start location? By using the Semantics menu, for the file where you want to start? That is the correct method for setting an ePUB start reading page.
2. It's difficult for me to tell, from what you've pasted here, if where you have the "break here" is supposed to indicate different files, or simply paragraphs on a page? Or are those empty paragraphs supposed to be...what are those supposed to be? Can you clarify?
3. If these are supposed to be separate files--so that "Book Starts Here" is an actual file--the Title page, then part of your problem is that you're converting an ePUB without a text semantic set, I believe.
4. If these are all paragraphs on a page--in other words, a single file--then you'll have to set your SRL semantic by hand, using the id you created.

Did you say you were creating this book for a client?

Hitch
Hitch is offline   Reply With Quote