Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2017, 10:12 PM   #136
raffnix
Junior Member
raffnix began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite 3
Is it possible to use the xray data contained in an original asc/xray file? And maybe automatically get the data from a free amazon sample?

Last edited by raffnix; 02-22-2017 at 10:15 PM.
raffnix is offline   Reply With Quote
Advert
Old 02-24-2017, 10:18 AM   #137
szarroug3
Connoisseur
szarroug3 began at the beginning.
 
Posts: 63
Karma: 12
Join Date: Apr 2016
Device: Kindle PW2
Quote:
Originally Posted by raffnix View Post
Is it possible to use the xray data contained in an original asc/xray file? And maybe automatically get the data from a free amazon sample?
I don't think that would work as the x-ray data is contained in a separate file from the book file. The sample should not contain the data needed. Have you seen it have that date anywhere?
szarroug3 is offline   Reply With Quote
Old 02-24-2017, 05:24 PM   #138
raffnix
Junior Member
raffnix began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2017
Device: Kindle Paperwhite 3
Quote:
Originally Posted by szarroug3 View Post
I don't think that would work as the x-ray data is contained in a separate file from the book file. The sample should not contain the data needed. Have you seen it have that date anywhere?
I'm not sure if I expressed myself clearly, what i'm asking is if we can use the data inside the xray file from a sample book to populate the file your plugin generates(since we can't just copy&paste the original xray file into another book). I hope that's what you got from my original comment.

But anyway, I downloaded a random book sample into my kindle (A Game of Thrones) and then connected it to my pc, went to the book folder and copied the XRAY.entities.xxxxxx.asc file in there to my desktop, then I opened it using this program, it looks like there's enough data in there to fill in the generated XRAY file.

There's an entity table(looks incomplete, there's no reference to Arya or Sansa, for example, but most of the main characters are there, i'm not sure if this is because i got the file from a sample or if the "original" xray is also missing those characters), there's an entity_description table which is IMO one of the most important, there's also an excerpt table, it doesn't looks very useful since character count might vary depending on the way one convert its ebooks, but this table does have a related_entities column which might be useful. I tried the same thing with one of the mistborn novels and observed the same things.

Can we use this xray file(or the "original" one we get when we buy the book) to automatically populate your generated xray file? And the dream would be to have the plugin automatically download the sample xray files so we wouldn't have to download it by ourselves.
raffnix is offline   Reply With Quote
Old 03-03-2017, 12:01 PM   #139
szarroug3
Connoisseur
szarroug3 began at the beginning.
 
Posts: 63
Karma: 12
Join Date: Apr 2016
Device: Kindle PW2
Quote:
Originally Posted by raffnix View Post
I'm not sure if I expressed myself clearly, what i'm asking is if we can use the data inside the xray file from a sample book to populate the file your plugin generates(since we can't just copy&paste the original xray file into another book). I hope that's what you got from my original comment.

But anyway, I downloaded a random book sample into my kindle (A Game of Thrones) and then connected it to my pc, went to the book folder and copied the XRAY.entities.xxxxxx.asc file in there to my desktop, then I opened it using this program, it looks like there's enough data in there to fill in the generated XRAY file.

There's an entity table(looks incomplete, there's no reference to Arya or Sansa, for example, but most of the main characters are there, i'm not sure if this is because i got the file from a sample or if the "original" xray is also missing those characters), there's an entity_description table which is IMO one of the most important, there's also an excerpt table, it doesn't looks very useful since character count might vary depending on the way one convert its ebooks, but this table does have a related_entities column which might be useful. I tried the same thing with one of the mistborn novels and observed the same things.

Can we use this xray file(or the "original" one we get when we buy the book) to automatically populate your generated xray file? And the dream would be to have the plugin automatically download the sample xray files so we wouldn't have to download it by ourselves.
Ah, I misunderstood. Hm, that might be an option but it's likely going to be quite a bit of work to implement. I'll put it in the enhancements bucket on github. I can't pick it up right now though so I'm not sure when it will be looked at.
szarroug3 is offline   Reply With Quote
Old 04-05-2017, 10:12 PM   #140
szarroug3
Connoisseur
szarroug3 began at the beginning.
 
Posts: 63
Karma: 12
Join Date: Apr 2016
Device: Kindle PW2
Released 3.0.5. Minor bug fix and some code cleanup.

@raffnix, I looked into your suggestion. It seems like the x-ray data is only sent if you choose to send the sample directly to the device from amazon. If you download it to your computer, it only gives you the book file with no x-ray files. Unfortunately, this doesn't really work for the plugin since I don't have a way to have log you into your amazon, ask for the book to be sent to the device, then go to the device and get the files off. Sorry. I was really excited about this idea. I hate all the empty data.
szarroug3 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 402 03-05-2017 10:31 AM
[GUI Plugin] EpubMerge JimmXinu Plugins 286 01-31-2017 09:33 PM
[GUI Plugin] Unplugged Jellby Plugins 10 01-02-2017 08:23 AM
[GUI Plugin] Astro-ph iatheia Plugins 14 07-25-2015 11:41 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 03:54 PM.


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