szarroug3 / X-Ray_Calibre_Plugin

X-Ray Creator plugin for Calibre
http://www.mobileread.com/forums/showthread.php?t=273189
GNU General Public License v3.0
57 stars 12 forks source link

Can I use this on Android? #81

Closed ketanarlulkar closed 7 years ago

ketanarlulkar commented 8 years ago

Can this xRay feature be used on Kindle App for Android? If yes, How to use this?

szarroug3 commented 8 years ago

From what I can see, Android's Kindle App does support X-Ray but our plugin only sends files to Kindles. That being said, you can use the plugin to make the files you need then copy them to your phone.

On Fri, Nov 4, 2016, 3:11 AM Ketan Arlulkar notifications@github.com wrote:

Can this xRay feature be used on Kindle App for Android? If yes, How to use this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUU0Zv8NEz3WalFIGjm1DOXlpXgYeks5q6ui4gaJpZM4KpSD6 .

ketanarlulkar commented 8 years ago

Where do I copy the xray files, in which directory?

I have latest version of kindle android app, and I have copied mobi files into /storage/emulated/0/kindle/ Where should I copy XRAY.entities..asc file?

szarroug3 commented 8 years ago

I believe they should go into the same folder as the book.. That's where they are on my phone.. The kindle app may copy them when you import the book though so you might want to look in that directory too. I think it's mnt/sdcard/android/data/com.amazon.kindle/files

On Fri, Nov 4, 2016, 8:42 PM Ketan Arlulkar notifications@github.com wrote:

Where do I copy the xray files, in which directory?

I have latest version of kindle android app, and I have copied mobi files into /storage/emulated/0/kindle/ Where should I copy XRAY.entities..asc file?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-258583163, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUU-dVPHy8M_LmnpdeiIq-86CWmNKks5q697rgaJpZM4KpSD6 .

szarroug3 commented 8 years ago

Also, you need to make sure the ASIN of the book is the same as in the xray filename

On Fri, Nov 4, 2016, 8:44 PM Samreen Zarroug szarroug3@gmail.com wrote:

I believe they should go into the same folder as the book.. That's where they are on my phone

On Fri, Nov 4, 2016, 8:42 PM Ketan Arlulkar notifications@github.com wrote:

Where do I copy the xray files, in which directory?

I have latest version of kindle android app, and I have copied mobi files into /storage/emulated/0/kindle/ Where should I copy XRAY.entities..asc file?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-258583163, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUU-dVPHy8M_LmnpdeiIq-86CWmNKks5q697rgaJpZM4KpSD6 .

ketanarlulkar commented 8 years ago

This is what I have done:

  1. Copied mobi file into /storage/emulated/0/kindle/ folder
  2. Copied XRAY.entities..asc into /storage/emulated/0/kindle/ folder
  3. Then opened Kindle App.
  4. I can see the book which I copied.
  5. But when I opened the book, I didn't get any X-Ray option in it.
szarroug3 commented 8 years ago

Did you check the other folder I mentioned?

On Fri, Nov 4, 2016, 9:28 PM Ketan Arlulkar notifications@github.com wrote:

This is what I have done:

  1. Copied mobi file into /storage/emulated/0/kindle/ folder
  2. Copied XRAY.entities..asc into /storage/emulated/0/kindle/ folder
  3. Then opened Kindle App.
  4. I can see the book which I copied.
  5. But when I opened the book, I didn't get any X-Ray option in it.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-258585660, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUcutKirYyA7ZIHXYLUI3AEGu-MmUks5q6-nBgaJpZM4KpSD6 .

ketanarlulkar commented 8 years ago

@szarroug3 My Kindle App data is in internal memory only. So I have checked /storage/emulated/0/Android/data/com.amazon.kindle/files There I have a folder for each book named as ASIN of that book. Inside each folder, different number of files are there. Some common files I have as follows:

*.ast
*.kfx
EndAction.data.<ASIN>.asc
XRAY.<ASIN>.<Some_Hash>.db
XRAY.<ASIN>.<Some_Hash>.db-journal

I have this book in my kindle library. This book has

Text-to-Speech: Enabled  
X-Ray: Enabled  
Word Wise: Enabled
Enhanced Typesetting: Enabled

The Folder for this book contains following:

screenshot_20161106-103410

This plugin is creating XRAY.entities.<ASIN>.asc files. But the folder has

XRAY.<ASIN>.<Some_Hash>.db
XRAY.<ASIN>.<Some_Hash>.db-journal
szarroug3 commented 8 years ago

Okay, I think the files need to go in the folder with the same ASIN.

On Sun, Nov 6, 2016, 12:32 AM Ketan Arlulkar notifications@github.com wrote:

@szarroug3 https://github.com/szarroug3 My Kindle App data is in internal memory only. So I have checked /storage/emulated/0/Android/data/com.amazon.kindle/files There I have a folder for each book named as ASIN of that book. Inside each folder, different number of files are there. Some common files I have as follows: .ast .kfx EndAction.data..asc XRAY...db XRAY...db-journal

I have this https://www.amazon.in/Memoirs-Sherlock-Holmes-Wisehouse-Classics-ebook/dp/B01J8I9CQW book in my kindle library. This book has Text-to-Speech: Enabled

X-Ray: Enabled

Word Wise: Enabled Enhanced Typesetting: Enabled

The Folder for this book contains following:

[image: screenshot_20161106-103410] https://cloud.githubusercontent.com/assets/6256964/20035504/f7d62d8e-a40c-11e6-8bf4-b9f7f27ae094.png

This plugin is creating XRAY.entities..asc files. But the folder has XRAY...db XRAY...db-journal

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-258661757, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUd2r8Pvr4o8EGSoQFVP2Usx-WwoMks5q7WZRgaJpZM4KpSD6 .

ketanarlulkar commented 8 years ago

Really appreciate your help on this, but I have created folder inside it, and copied mobi file and XRAY file in it. But the app is not able to pick the book.

May be due to following

This plugin is creating XRAY.entities..asc files. But the folder has

XRAY.<ASIN>.<Some_Hash>.db
XRAY.<ASIN>.<Some_Hash>.db-journal
szarroug3 commented 8 years ago

No problem. I've actually tried doing it myself with and I can't seem to figure it out either :( Did your device automatically create that folder for you? Mine didn't even create that folder for books I've copied onto the device. It only created it for books that I got on Amazon and those already have X-Rays (X-Ray...db is the x-ray file.

ketanarlulkar commented 8 years ago

Same for me

Mine didn't even create that folder for books I've copied onto the device. It only created it for books that I got on Amazon and those already have X-Rays (X-Ray...db is the x-ray file.

szarroug3 commented 8 years ago

I think you might have to find out how they get that hash value and then use the same format. From what I can see the xray...db file is the x-ray file.

On Mon, Nov 7, 2016 at 10:54 AM Ketan Arlulkar notifications@github.com wrote:

Same for me

Mine didn't even create that folder for books I've copied onto the device. It only created it for books that I got on Amazon and those already have X-Rays (X-Ray...db is the x-ray file.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-258892347, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUVseGaErWiQO22b8OBgxvH57ITeLks5q71ewgaJpZM4KpSD6 .

ketanarlulkar commented 8 years ago

I'm able to convert my book into *.kfx format using this plugin. After adding this *.kfxfile into the <ASIN> folder, the app was still unable to pick the book.

But I'm not sure how to do following

I think you might have to find out how they get that hash value and then use the same format. From what I can see the xray...db file is the x-ray file.

Thanks for your help in understanding this.

BTW, How you figured it out for Kindle, i.e. what is name of X-ray file? where to store it? what should be the content of the X-ray file? How do you figured all of this?

And I'm not sure whether format of the x-ray file created by this plugin i.e. XRAY.entities.<ASIN>.asc and x-ray file already present in folder i.e. XRAY.<ASIN>.<Some_Hash>.db are same. By just changing the name of the file is going to work out for Kindle App for Android?

szarroug3 commented 8 years ago

No problem. I've tried googling to see if anyone else has been able to figure it out. I can't seem to find anything. I can try to figure it out myself but it might take a while. I'm juggling a few other things.

On Mon, Nov 7, 2016, 9:09 PM Ketan Arlulkar notifications@github.com wrote:

I'm not sure how to do that. Thanks for your help in understanding this.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-259033223, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUaU_2JuUW-KfLd18ESQPxJbtz7SFks5q7-ffgaJpZM4KpSD6 .

ketanarlulkar commented 7 years ago

@szarroug3 Any luck finding it? :blush:

szarroug3 commented 7 years ago

Not yet. Sorry I've been working on some other things. I did try to look into it but I haven't found anything yet. I haven't had too much time with holidays and vacation.

On Sun, Dec 25, 2016, 10:41 PM yetanothernerdk notifications@github.com wrote:

@szarroug3 https://github.com/szarroug3 Any luck finding it? 😊

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-269161213, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUaL2sM7W0nAE3iG4ZMs1UxiT8aD1ks5rL0VggaJpZM4KpSD6 .

szarroug3 commented 7 years ago

@yetanothernerdk I just realized I missed one of your questions

BTW, How you figured it out for Kindle, i.e. what is name of X-ray file? where to store it? what should be the content of the X-ray file? How do you figured all of this?

For kindle, the plugin does all of that for your. The file name is XRAY.entities..asc and the file goes into a folder with the book's name with the extension sdr. The folder should be in the same directory as your book. I.e if your book is located at directory_a/book.mobi, the xray file will be directory_a/book.sdr/XRAY.entities..asc

I'm looking into Android now but I don't know if I'll be able to support it in the plugin anytime soon. It will require quite a bit of work since everything seems different on pc and mobile, [location of the files, filenames, etc. etc] but I'll continue looking into it in case you might able to do it manually.

szarroug3 commented 7 years ago

I looked into this and I still can't seem to figure out how to name the file. 😞

ketanarlulkar commented 7 years ago

Is it working for Android? How to use it?

szarroug3 commented 7 years ago

No it's not. I couldn't figure out how to do it so I'm dropping the issue for now.

On Tue, Jun 13, 2017, 7:52 PM yetanothernerdk notifications@github.com wrote:

Is it working for Android? How to use it?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/81#issuecomment-308288678, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUadyMlKDBnPunTdXUnMY-sVEFVyeks5sDy67gaJpZM4KpSD6 .

ketanarlulkar commented 7 years ago

Oh, ok.