Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2015, 07:07 PM   #1
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Is There a Way to Protect Amazon's X-Ray Capability on the Kindle?

Processing a book through Calibre kills Amazon's x-ray capability.
Is there anyway to protect or reenable it?

My Workflow:
  • Purchase & Download ebook from Amazon onto my Mac
  • Add to Calibre Library
  • Extract ISBN
  • Download & Fill In Metadata
  • Resize Cover [out of habit - can skip]
  • Fix / Tweak ToC when Necessary
  • Convert/ ReConvert to AWZ3 in order to smarten punctuation, insert the metadata page, and ensure a ToC
  • Count Pages & Words
  • Add to Reading List
  • Sync to Kindle
Nyssa is offline   Reply With Quote
Old 01-03-2015, 09:44 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC the X-Ray functionality is not part of the book, it exists in a separate "sidecar" file, so not, there is not real way to preserve that. I do believe there is a calibre plugin/standalone program that generates X-ray information for any mobi file, you might be able to use that.
kovidgoyal is online now   Reply With Quote
Advert
Old 01-03-2015, 11:02 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Nyssa View Post
Processing a book through Calibre kills Amazon's x-ray capability.
Is there anyway to protect or reenable it?

My Workflow:
  • Purchase & Download ebook from Amazon onto my Mac
  • Add to Calibre Library
  • Extract ISBN
  • Download & Fill In Metadata
  • Resize Cover [out of habit - can skip]
  • Fix / Tweak ToC when Necessary
  • Convert/ ReConvert to AWZ3 in order to smarten punctuation, insert the metadata page, and ensure a ToC
  • Count Pages & Words
  • Add to Reading List
  • Sync to Kindle
Given your workflow, I would think that the x-ray file that came with the Kindle eBook would no longer match the copy you are sending to your Reader.
JSWolf is offline   Reply With Quote
Old 01-03-2015, 11:39 PM   #4
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by kovidgoyal View Post
IIRC the X-Ray functionality is not part of the book, it exists in a separate "sidecar" file, so not, there is not real way to preserve that. I do believe there is a calibre plugin/standalone program that generates X-ray information for any mobi file, you might be able to use that.
Thank you. I will look for it. Would you happen to know what it is called, please?

Quote:
Originally Posted by JSWolf View Post
Given your workflow, I would think that the x-ray file that came with the Kindle eBook would no longer match the copy you are sending to your Reader.
Oh? Why? What exactly do I change that might render it incompatible?
Nyssa is offline   Reply With Quote
Old 01-03-2015, 11:50 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I cant recall, but googling: x-ray calibre

should get you close
kovidgoyal is online now   Reply With Quote
Advert
Old 01-04-2015, 12:14 AM   #6
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by kovidgoyal View Post
I cant recall, but googling: x-ray calibre

should get you close
That seemed to get me closer than what I tried before, even though I used similar words. I guess in this case less was more.

I found this thread and asked there.

Thank you, again.
Nyssa is offline   Reply With Quote
Old 01-04-2015, 01:53 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Nyssa View Post
Oh? Why? What exactly do I change that might render it incompatible?
Reconversion. I believe X-Ray as well as pagenumbers uses data offsets which will change whenever calibre blends the CSS during conversion and when metadata jackets are added.

Merely updating the metadata (including cover) will not break the accuracy of the X-Ray data.

AFAIK the XRay fie should not be getting deleted, I would guess the Kindle simply knows it doesn't match.

Does the book even show up as from Amazon? i.e. if you long-press does the delete option say "remove from device".
Also, the {ebook-file}.sdr folder which contains the extra data like annotations, pagenumbers, X-Ray, etc. must match the filename of the ebook file. I get around this with a custom send-to-device (KINDLE2 driver) filename template in calibre using a custom column called "Original Filename".
eschwartz is offline   Reply With Quote
Old 01-04-2015, 08:38 AM   #8
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
Reconversion. I believe X-Ray as well as pagenumbers uses data offsets which will change whenever calibre blends the CSS during conversion and when metadata jackets are added.

Merely updating the metadata (including cover) will not break the accuracy of the X-Ray data.

AFAIK the XRay fie should not be getting deleted, I would guess the Kindle simply knows it doesn't match.

Does the book even show up as from Amazon? i.e. if you long-press does the delete option say "remove from device".
Also, the {ebook-file}.sdr folder which contains the extra data like annotations, pagenumbers, X-Ray, etc. must match the filename of the ebook file. I get around this with a custom send-to-device (KINDLE2 driver) filename template in calibre using a custom column called "Original Filename".
1. To be sure I understand..Just reconverting is throwing it off, or both reconverting and counting the page numbers?

2. My option says "Delete this Book".

3. Please explain, walk me through, your template?


Quote:
Originally Posted by Nyssa View Post
That seemed to get me closer than what I tried before, even though I used similar words. I guess in this case less was more.

I found this thread and asked there.

Thank you, again.
They have an application for my Kindle's current firmware but not a plugin so I've opted to hold off for now.
Nyssa is offline   Reply With Quote
Old 01-04-2015, 01:49 PM   #9
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
Reconversion. I believe X-Ray as well as pagenumbers uses data offsets which will change whenever calibre blends the CSS during conversion and when metadata jackets are added.

Merely updating the metadata (including cover) will not break the accuracy of the X-Ray data.

AFAIK the XRay fie should not be getting deleted, I would guess the Kindle simply knows it doesn't match.
Quote:
Originally Posted by Nyssa View Post
1. To be sure I understand..Just reconverting is throwing it off, or both reconverting and counting the page numbers?
I was able to answer my own question.

Its strictly reconverting that breaks the x-ray capability. So as long as the original file is AWZ3 I won't convert it.
Nyssa is offline   Reply With Quote
Old 01-05-2015, 12:44 AM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Nyssa View Post
1. To be sure I understand..Just reconverting is throwing it off, or both reconverting and counting the page numbers?

2. My option says "Delete this Book".

3. Please explain, walk me through, your template?
  1. As you discovered, only editing the actual file can cause these changes. Merely counting the pagenumbers will simply open the file for reading.
  2. That indicates that the book no longer matches at all (its mobi-asin isn't registered in your Kindle Cloud), since the X-Ray file uses the mobi-asin to verify itself.
  3. Indeed I can, my entire process, which includes this, is detailed here: https://www.mobileread.com/forums/sho...d.php?t=235537
    If you need anything explained further, I would be happy to clarify any points.
eschwartz is offline   Reply With Quote
Old 01-05-2015, 01:11 AM   #11
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
  1. As you discovered, only editing the actual file can cause these changes. Merely counting the pagenumbers will simply open the file for reading.
  2. That indicates that the book no longer matches at all (its mobi-asin isn't registered in your Kindle Cloud), since the X-Ray file uses the mobi-asin to verify itself.
  3. Indeed I can, my entire process, which includes this, is detailed here: https://www.mobileread.com/forums/sho...d.php?t=235537
    If you need anything explained further, I would be happy to clarify any points.
Thank you!

So,

1. I create the custom column as described in your original post
2. Download the attached file
3. install it in Calibre as a plugin, per the image in post #3 (Which will populate the custom column itself)
4. Continue my workflow as usual, but skip the reconversion


Is that correct?
Nyssa is offline   Reply With Quote
Old 01-05-2015, 01:57 AM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
That file was an outside part of my workflow, it is a linux shellscript that gets run from the command-line.

Copy the custom Save Template text into the configuration screen as per the third post.

Last edited by eschwartz; 01-05-2015 at 02:00 AM.
eschwartz is offline   Reply With Quote
Old 01-05-2015, 05:56 AM   #13
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
That file was an outside part of my workflow, it is a linux shellscript that gets run from the command-line.

Copy the custom Save Template text into the configuration screen as per the third post.
Am I only using this code?
Code:
 program: 
ifempty(
	field('#file'),
	template(
		'{author_sort:sublist(0,1,&)}/{title} - {authors:sublist(0,1,&)}'
	)
)
or all 4 sets of code from your original post?

Also, where do I put it exactly? There doesn't seem to be anywhere to put it under "Configure device" and I do not have a Kindle option as shown in your image under "Plugins".
Nyssa is offline   Reply With Quote
Old 01-05-2015, 10:49 AM   #14
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Just that bit, yes, and there is a field called "save template" in every device driver. Copy it there, even though it isn't a MultiLineEditBox.

The other three bits of code are in part two of my tutorial, about the external standalone syncing script. According to the explanation there, they are the contents of files.
eschwartz is offline   Reply With Quote
Old 01-17-2015, 07:42 AM   #15
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
Just that bit, yes, and there is a field called "save template" in every device driver. Copy it there, even though it isn't a MultiLineEditBox.

The other three bits of code are in part two of my tutorial, about the external standalone syncing script. According to the explanation there, they are the contents of files.
Hi, sorry its been so long since I've gotten back.

Unfortunately, this did not work for me as far as preserving X-Ray capabilities. I tried it with two separate books, even after re-downloading the originals from Amazon.

Am I missing a step?

I have the "Original File" column, and added the code under "Customize Device", then restarted Calibre and resent the books to my Kindle (after making sure the previous versions were removed).

Seeing as this is file related, I wonder if having the APNX Generator plugin is negatively affecting the code - possibly preventing it from doing what its supposed to do?

I do have both "Send Page Number Info" and "Override apnx" selected.

If the Apnx plugin is the culprit, my next question would be: Is there a way to have both X-Ray capability and Page numbers?

Last edited by Nyssa; 01-17-2015 at 07:45 AM.
Nyssa is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renaming Amazon Books and X-Ray Maviellas Calibre 1 02-23-2014 01:41 AM
Amazon's Kindle app for iOS updated with X-Ray for books Jessica Lares Apple Devices 27 12-13-2012 07:52 PM
Dead Money by Ray Banks $.99 [Noir] (Amazon) [US] NightBird Deals and Resources (No Self-Promotion or Affiliate Links) 0 08-21-2012 06:06 PM
Amazon UK store - how to tell which books have X-Ray enabled? gers1978 Amazon Kindle 0 07-16-2012 04:23 PM
How useful is the 3G capability of Kindle? ovaldisk Amazon Kindle 72 08-09-2011 05:48 PM


All times are GMT -4. The time now is 11:23 PM.


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