![]() |
#1 |
Author&Publisher
![]() Posts: 61
Karma: 10
Join Date: Oct 2009
Location: Colorado, USA
Device: Kindle
|
programming "Go To" menu
This continues the issue I raised on 12-13-10, to whose participants I'm also responding to individually at this time.
Anyone know how to program the "Beginning" selection of the (pull-down) "Go To" menu? Nowhere in the filename.opf or toc.html or toc.ncx files does the reserved word "Beginning" occur. It randomly begins my book on the "Acknowledgements" page, even though in the .opf file I have a guide item <reference type="start" title="Welcome" href="filename.html#start"> and in the filename.html for the book content I have the anchor <a name="start"/>; both in response to suggestions made in this forum on 12-13-10. The "Go To" menu does include the "Welcome" item linked to the intended "start" position, but this is a redundant option, considering that the TOC enables the user to start at the "start" location. Somehow I need to program the "Beginning" selection to start at the "start" position, and nothing in either the Kindle or Mobipocket userguides explains how. |
![]() |
![]() |
![]() |
#2 |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Did you try my previous suggestion of using type="text" rather than type="start"?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Here's an example MOBI file, created from the files in the attached ZIP file using Kindlegen. When opened in Kindle Previewer, it starts at the designated location at the beginning of chapter 1.
The relevant guide item in the OPF file is: Code:
<reference type="text" title="Start" href="testbook.html#start"/> |
![]() |
![]() |
![]() |
#4 |
Author&Publisher
![]() Posts: 61
Karma: 10
Join Date: Oct 2009
Location: Colorado, USA
Device: Kindle
|
Hi Donna. Good to hear from you again. I made that change, "start" to "text", and the file still opens in KindlePreview at my "acknowledgements" page.
|
![]() |
![]() |
![]() |
#5 |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Hmmm... something slightly weird going on. If you post (attach) the OPF file, and copy and paste the HTML code around the start of the Acknowledgements page, plus the HTML code around the point where you want the book to open up at, I'll see if I can figure out what's happening, cyberbaffled.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Author&Publisher
![]() Posts: 61
Karma: 10
Join Date: Oct 2009
Location: Colorado, USA
Device: Kindle
|
Way-weird. You won't find anything beyond what's expected. Did you find my continuation of the 12-13 thread in which I mention these lines from the command line parse: "Info(prcgen): Resolving hyperlinks
Info(prcgen): Resolving start reading location Info(prcgen): Added metadata Start reading "1748" "? In my opf file there's no "metadata" identified as "Start". What's that about? And where is line "1748" located. It's not in the (book content) filename.html file or in the (Kindlegen generated) filename.mobi file as viewed in KindlePreview, so where is it? |
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,517
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
This should be in the guide of the opf: <reference title="Start" type="text" href="filename.html#start" /> ...and this should be in the html: <a id="start" /> Note the "space" before the "/>". In the first post, you specified this: <a name="start"/>. That may have just been a typo, but if the html document is declared as "XHTML 1.0 Strict" in the DOCTYPE declaration... that space is really important. You also want to use id="start" in the html anchor point instead of name="start". Last edited by DiapDealer; 12-20-2010 at 03:09 PM. |
|
![]() |
![]() |
![]() |
#8 | |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Quote:
The reason I suggested posting the OPF file plus HTML extracts is simply that sometimes a second pair of eyes will spot something that the first person isn't seeing because they've gone over the code so many times. Like spotting typos in a book, etc. ![]() |
|
![]() |
![]() |
![]() |
#9 |
Author&Publisher
![]() Posts: 61
Karma: 10
Join Date: Oct 2009
Location: Colorado, USA
Device: Kindle
|
Good to hear from you again DiapDealer. Why is that space important? Whatever the answer, I'll return to the code and make sure it's there.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic "furthest read page" eliminated from Go To menu | RAH | Barnes & Noble NOOK | 3 | 11-29-2010 07:37 AM |
Convert "Section Menu" in "Main Menu" | zeener | Recipes | 2 | 11-23-2010 10:33 AM |
Creator taking control of the "first page" link in the "content" menu | cyberbaffled | Kindle Formats | 2 | 07-11-2010 04:21 PM |
"E-books" Menu: missing entry for epub book uploads ?!? | cklammer | Feedback | 0 | 12-06-2009 06:28 AM |
"Menu" and "Mark" keys does not work | murad | Sony Reader | 4 | 07-11-2009 12:35 PM |