View Single Post
Old 05-09-2013, 02:01 PM   #5
mibtp
Enthusiast
mibtp began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Jan 2013
Device: Amazon Cloud
Thank you so much for taking the time to explain. I really appreciate it! Hopefully this thread will help other with similar issues.

PatriceWilliamsMarks.com

Quote:
Originally Posted by RbnJrg View Post
Hi Patrice;

It's not a difficult task to set the "start reading" location; maybe the difficult thing is to explain it I'll try to do my best:

1. The first thing you need to do is to open the .html file where you want to set the "start reading" location. Open that file with a text processor like Notepad or Wordpad or something similar (I use Notepad++ but Notepad or Wordpad also will be usefull). We'll suppose that this .html is named "Mybook.html"

2. Once you opened "Mybook.html", find the word what you want to be the start of the reading. Suppose that you have something like this:

Code:
...
...

<h2>The Frog-King, or Iron Henry</h2>

  <p>In old times when wish*ing still helped one, the*re lived a king whose daugh*ters were all beau*ti*ful, but the youngest was so beau*ti*ful that the sun it*self, which has seen so much, was as*ton*ished when*ev*er it shone in her face.
...
...
</p>
You want the sentence "The Frog-King..." to be the start. Then, you need to add an "id" tag to that. Of the following way:

Code:
<h2 id="start">The Frog-King, or Iron Henry</h2>
On the other hand, if you don't have a tag like <h2> (or <p>, where to add id="start", you also can do the following:

Code:
<h2><a id="start"></a>The Frog-King, or Iron Henry</h2>
Both method will work.

Save the file "MyBook.html" with the changes.

After that you need to open the "content.opf" file associated with "MyBook.html"; also, open that file with a text proccesor. At the end of that file, you'll see a section named "Guide"; you will find something like:

<guide>

After that, add the following entry:

<reference href="MyBook.html#start" title="Beginning" type="text"/>

Of course, in place of "MyBook.html#start" you'll write here the real name of your .html file.

Save the changes. Now you'll be able to compile the .mobi book with Kindlegen and the book will start where you' wanted

Regards
Rubén
mibtp is offline   Reply With Quote