Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2013, 03:52 PM   #166
joenojunk
Junior Member
joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.
 
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
joenojunk is offline   Reply With Quote
Old 07-16-2013, 06:52 PM   #167
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,494
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 joenojunk View Post
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
Assuming that you're using the book for your own purposes, and not uploading it, which wouldn't make it past the KDP, you can do whatever you want, as it's a personal app, really. Kindle books/mobi's don't use js, only JSON, and even that, in a very limited capacity, so what you do for your own reading pleasure is entirely up to you. It's a lot of extra effort just to get around using the OPF's Guide items, which for the most part, work perfectly.

Hitch
Hitch is offline   Reply With Quote
Advert
Old 07-17-2013, 03:48 PM   #168
joenojunk
Junior Member
joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.
 
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
joenojunk is offline   Reply With Quote
Old 07-17-2013, 04:38 PM   #169
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,494
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 joenojunk View Post
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

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
Hitch is offline   Reply With Quote
Old 07-17-2013, 05:15 PM   #170
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by joenojunk View Post
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
Sorry, I've no idea about using Java to run the android version of the Kindle app.

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.
pdurrant is offline   Reply With Quote
Advert
Old 07-17-2013, 05:15 PM   #171
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Hitch View Post
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
He's talking about a small external java application, not javascript inside the book.
pdurrant is offline   Reply With Quote
Old 07-17-2013, 05:48 PM   #172
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,494
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 pdurrant View Post
He's talking about a small external java application, not javascript inside the book.
PDurrant:

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
Hitch is offline   Reply With Quote
Old 07-17-2013, 06:15 PM   #173
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Hitch View Post
PDurrant:

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
He's made the concordance. What he's working on is a script/app to run on his Kindle Fire (an android device) that will tell the Kindle app to open the book at any particular location, so that his app can open the book at (say) page 304, doing the translation from page number to location for him.

I suspect he'd be better off looking into how Amazon handles their 'real page numbers' instead.
pdurrant is offline   Reply With Quote
Old 07-17-2013, 07:41 PM   #174
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,494
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 pdurrant View Post
He's made the concordance. What he's working on is a script/app to run on his Kindle Fire (an android device) that will tell the Kindle app to open the book at any particular location, so that his app can open the book at (say) page 304, doing the translation from page number to location for him.

I suspect he'd be better off looking into how Amazon handles their 'real page numbers' instead.
Ok, yes, I think we are talking apples and oranges. From my perspective, what I think of is: how does this get sold through Amazon? I guess the answer is, it gets sold/vended as an appurtenant app to the actual mobi, as it can't be sold via the KDP process. That's where my trolley was leaving the tracks.

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
Hitch is offline   Reply With Quote
Old 07-18-2013, 12:13 AM   #175
joenojunk
Junior Member
joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.joenojunk got an A in P-Chem.
 
Posts: 7
Karma: 6166
Join Date: Jul 2013
Device: Kindle
Quote:
Originally Posted by Hitch View Post
Ok, yes, I think we are talking apples and oranges. From my perspective, what I think of is: how does this get sold through Amazon? I guess the answer is, it gets sold/vended as an appurtenant app to the actual mobi, as it can't be sold via the KDP process. That's where my trolley was leaving the tracks.

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
I do have the Cross reference table for the ACA BRB , If you Have a use for it, Its a bit faster than searching for a word pattern.
joenojunk is offline   Reply With Quote
Old 07-18-2013, 01:02 AM   #176
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
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!)
st_albert is offline   Reply With Quote
Old 07-18-2013, 03:50 AM   #177
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,494
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 joenojunk View Post
I do have the Cross reference table for the ACA BRB , If you Have a use for it, Its a bit faster than searching for a word pattern.
Joe:

My clients would be most grateful for it; can you PM me your contact info, which I will give to them?

Hitch
Hitch is offline   Reply With Quote
Old 02-12-2015, 05:04 PM   #178
nanourbina
Junior Member
nanourbina began at the beginning.
 
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.
nanourbina is offline   Reply With Quote
Old 02-12-2015, 06:56 PM   #179
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,494
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 nanourbina View Post
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.
We don't make books with html cover pages in them; we build our MOBIs from kindlegenned specially-altered ePUBS, with the OPF pointing at the cover.jpg (or cover.xxx image file). That makes no change to the SRL that we've found.

FWIW.

Hitch
Hitch is offline   Reply With Quote
Old 02-14-2015, 12:09 PM   #180
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
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.
Notjohn is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:30 PM.


MobileRead.com is a privately owned, operated and funded community.