07-16-2013, 03:52 PM | #166 |
Junior Member
Posts: 7
Karma: 6166
Join Date: Jul 2013
Device: Kindle
|
I know this is more of an html forum but maybe some can help
With a little jave I working on a script that will open my book (on my kindle fire) To a particular location. I am able to open the book with this. Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIE W); File file = new File("/sdcard/Books/Testbook.prc"); intent.setDataAndType(Uri.fromFile(file), "application/x-mobipocket-ebook"); startActivity(intent); Catlog doesn’t’ give me a lot of info I can use. So what would be the commands after the book opens. THX |
07-16-2013, 06:52 PM | #167 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
Advert | |
|
07-17-2013, 03:48 PM | #168 |
Junior Member
Posts: 7
Karma: 6166
Join Date: Jul 2013
Device: Kindle
|
I’m not modifying to book or trying to get around OPF's Guide items, we are trying to utilize them.
The issue we are having is that we have a Hard Copy book 679 pages and the Kindle e-book Has no pages just locations . i.e When we are at pg 450, in the hard copy, our kindle users have a difficult time go To that page . I created a table that corresponds to Pg to location i.e pg 450 =loc 4479 This is ok but still a little inconvenient. My app Does open the book and Kindle reader but Im still struggling to Find the commands that after the book opens to go to a particular location. Once I can find that command. I can write a script i.e if pg 450 then go Loc 4479 Joenojnk |
07-17-2013, 04:38 PM | #169 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Joe: You can't use JS in a book that's going to be put on sale as a MOBI file via Amazon. That's kind of what I was asking you. There are THREE OPF Guide items allowable via Amazon, and they'll grey out any others you add: Start, TOC and Cover. Simply put them in the Guide. After that, you're just expending effort for no return. If you try to upload a mobi file with JS in it at Amazon it will not pass intake. Hitch |
|
07-17-2013, 05:15 PM | #170 | |
The Grand Mouse 高貴的老鼠
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
As an alternative, I beleive that Amazon do have some way of tying page number into a Kindle ebook. Perhaps looking that up in the documentation for Kindlegen will give a way to accomplish what you want without having to write some separate code, and that will work with any Kindle device. |
|
Advert | |
|
07-17-2013, 05:15 PM | #171 | |
The Grand Mouse 高貴的老鼠
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
07-17-2013, 05:48 PM | #172 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I get that, but...not to be dense, how's it getting from here to there? I went back and read the original post, but it seems as though the intent is for a mobi that goes through the usual channels. My comprehension here is that he's trying to create a type of concordance or compendium that x-refs the original page numbers to an (external?) reference material/app? Hitch |
|
07-17-2013, 06:15 PM | #173 | |
The Grand Mouse 高貴的老鼠
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
I suspect he'd be better off looking into how Amazon handles their 'real page numbers' instead. |
|
07-17-2013, 07:41 PM | #174 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Yes, I know why he's working on it. We get requests like this from groups (ACA, particularly) that has a handbook in both forms, and has study groups that have this issue; when the group moderator wants to refer to a given passage (5th paragraph on page 221), etc.; what we've stuck with is, quote the first 4 words. That always works, even though I'd be the first to agree that searching on a K2 is pretty slow going. ;-) The typing part, rather than the search itself. I don't see easy answers for this on any digital media that isn't PDF, myself. Hitch |
|
07-18-2013, 12:13 AM | #175 | |
Junior Member
Posts: 7
Karma: 6166
Join Date: Jul 2013
Device: Kindle
|
Quote:
|
|
07-18-2013, 01:02 AM | #176 |
Guru
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
From what I can tell, matching the page number of a print edition to a position in a Kindle e-book file is a mysterious process that can only be accomplished by Amazon, if and only if it has access to both the e-book (mobi+) and the print version (via create space?). Now, Adobe has a straightforward and published way to do this via a mapping file inserted into the epub, but said file will not (as I understand it) translate to Amazon mapping of the Mobi file.
In other words, if you want to do this with a Kindle book, give Amazon both the mobi format and the print book (as PDF?) in create space, and let them do it. Otherwise, you may be SOL. This is NOT the final word on the subject, but just what I have heard. YMMV. Albert (Corrections to the above are most welcome!) |
07-18-2013, 03:50 AM | #177 |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
02-12-2015, 05:04 PM | #178 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2015
Device: iPad, Kindle
|
I know this is a somewhat dormant thread, but I'd like to detail how I solved this exact issue.
When emailing my kindlegen-produced MOBI file to a Kindle Touch or a Kindle Fire HD, the book would open to somewhere in the Table of Contents, instead of to my Prologue. I had, of course, specified the Prologue as the "text" item in the guide in the opf file. Selecting "Beginning" on the Touch also went to the middle of the table of contents. As it turns out, my problem was caused because I was using an HTML file as the Cover page (which only referenced the JPEG file). I noticed that kindlegen was complaining about it. I then changed the opf file to only reference the jpeg file and the problem went away (this had to be done in the metadata, in the manifest, in the spine, and in the guide). Just one more data point in case someone runs into this as well and you happen to have a cover as an HTML file. |
02-12-2015, 06:56 PM | #179 | |
Bookmaker & Cat Slave
Posts: 11,494
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
FWIW. Hitch |
|
02-14-2015, 12:09 PM | #180 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
FWIW, most of us who write books with citations are quite accustomed to treating e-books as if each chapter were an article in a professional journal: you don't cite a page, you just cite the article (or in this case, the chapter title).
Obviously this would not work in A la recherche du temps perdu, with its multi-hundred-page chapters, but in most cases -- given the limitless search capabilities of Kindles -- it's just as quick as flipping through the pages of the print edition. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to define the "Start" or "Beginning" page in Calibre | paul_01 | Conversion | 5 | 08-12-2016 07:58 AM |
Kindle : go to beginning and default start location issues. | aschofield | Devices | 10 | 07-01-2012 03:10 PM |
Calibre wont start (first time start up) | Mike Railton | Devices | 15 | 05-25-2012 03:14 AM |
From the beginning ........ | Aspic8 | Writers' Corner | 15 | 10-10-2011 12:05 PM |
How do I go to the beginning of a book | heritage | Amazon Kindle | 8 | 12-24-2010 04:13 PM |