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 12-30-2020, 02:04 PM   #1276
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: 71,574
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by odamizu View Post
Thank you! This is exciting

Was it necessary for me to compile and run the AppleScript after copying over the files? Or would copying the new files into the AppleScript have been sufficient?

And thank you, pdurrant, as always, for your wonderful AppleScripts. I love them so. I have tried to learn to write AppleScripts, but I don't get far before hitting a wall in my inadequate brain
If the Applescript application already runs on your machine, just replacing the scripts should be sufficient.
pdurrant is offline   Reply With Quote
Old 12-30-2020, 02:55 PM   #1277
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,590
Karma: 4329454
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by pdurrant View Post
If the Applescript application already runs on your machine, just replacing the scripts should be sufficient.
Thank you! I'm ridiculously happy that I succeeded in updating this myself

Last edited by odamizu; 01-02-2021 at 11:13 PM.
odamizu is offline   Reply With Quote
Advert
Old 03-09-2022, 03:55 AM   #1278
kakaka
Junior Member
kakaka began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2022
Device: Kindle
image embeds mobi8

Hello, noob here. Not sure if this is the right place to ask.
But in mobi, image embeds has an attribute recindex which allows you to easily get the href of the image file from content.opf.
How is that done in the azw format?
When unpacking those files, image embeds look something like this (epub converted to azw3 using calibre).

Code:
<p class="c5" aid="N"><a href="kindle:pos:fid:002A:off:0000000000" title="linked image" aid="O"><img alt="Decorative graphic" title="Decorative graphic" src="kindle:embed:003V?mime=image/jpeg" class="calibre4"/></a></p>
I don't understand any of this.
kakaka is offline   Reply With Quote
Old 03-09-2022, 06:32 AM   #1279
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,587
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Not sure what the question is. Is KindleUnpack failing to unpack a book?
DiapDealer is offline   Reply With Quote
Old 03-09-2022, 07:15 AM   #1280
kakaka
Junior Member
kakaka began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2022
Device: Kindle
Quote:
Originally Posted by DiapDealer View Post
Not sure what the question is. Is KindleUnpack failing to unpack a book?
No sorry, this probably isn't the correct place to ask this question. This is more about the kindle format in general. But oh well. My question is that I don't understand how image embeds work in azw. Basically the example above is an image embed in the rawml of an unpacked azw file. I want to know which image, in the image OEBPS directory of the unpacked azw file, that the image embed refers to using that example.

Last edited by kakaka; 03-09-2022 at 07:19 AM.
kakaka is offline   Reply With Quote
Advert
Old 03-09-2022, 08:15 AM   #1281
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,587
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Not really sure to be honest. We've focused primarily on Kindlebooks created with the official tools from Amazon. We try not to break anything when working with calibre-generated kindle books, but there may be something going on there we haven't accounted for.

But there should be no need to examine the rawml to find which embeds go with which images. KindleUnpack uses an algorithm to convert the binary offsets to the image data into urls. So the unpacked html (or the generated epub) should have the links to the correct image in the OEBPS/images directory. The rawml binary offsets will naturally be rather meaningless to the human eye/brain.
DiapDealer is offline   Reply With Quote
Old 03-09-2022, 09:35 AM   #1282
kakaka
Junior Member
kakaka began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2022
Device: Kindle
Ok cool, Could you point me to that algorithm?
kakaka is offline   Reply With Quote
Old 03-09-2022, 12:32 PM   #1283
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
It differs if embedded image, svg image, image url in css files, and of course by mobi6 vs mobi8 (KF8).

Check out the comments in the appropriate routines in mobi_html.py for some info.

For KF8 you will need to understand how aids are base 32 numbers to offsets in the rawml file, what a skeleton vs fragment tables, are etc.

You may just be better off looking at the generated xhtml files in the epub it creates to find the mapping.


Quote:
Originally Posted by kakaka View Post
Ok cool, Could you point me to that algorithm?

Last edited by KevinH; 03-09-2022 at 02:28 PM.
KevinH is offline   Reply With Quote
Old 06-09-2022, 01:48 PM   #1284
WEricBr
Member
WEricBr began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2022
Device: Kindle
KindleUnpack python version

In looking at the ReadMe for KindleUnpack, it shows that Python 2.6 or 2.7 is required. Can the 3.x version be used, or is 2.6 or 2.7 the version that has to be used?

Thanks,

Eric
WEricBr is offline   Reply With Quote
Old 06-09-2022, 01:51 PM   #1285
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: 74,498
Karma: 129668758
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 WEricBr View Post
In looking at the ReadMe for KindleUnpack, it shows that Python 2.6 or 2.7 is required. Can the 3.x version be used, or is 2.6 or 2.7 the version that has to be used?

Thanks,

Eric
If you use Calibre, you can use the KindleUnpack plugin.
JSWolf is offline   Reply With Quote
Old 06-09-2022, 02:01 PM   #1286
WEricBr
Member
WEricBr began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2022
Device: Kindle
I am wanting to get just the headers using the "KindleUnpack -r" option. I tried unpack in Calibre, but did not see a way to dump the headers.

I have used the Calibre-Debug to dump the headers, but wanted to see if there were an differences in the 2 since the header definitions differ in the source code.

Thanks,

Eric
WEricBr is offline   Reply With Quote
Old 06-09-2022, 02:05 PM   #1287
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: 74,498
Karma: 129668758
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can someone please download the 0.83 version and replace the older version in the first post? Thanks.

https://github.com/kevinhendricks/KindleUnpack
JSWolf is offline   Reply With Quote
Old 06-09-2022, 02:06 PM   #1288
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: 74,498
Karma: 129668758
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 WEricBr View Post
I am wanting to get just the headers using the "KindleUnpack -r" option. I tried unpack in Calibre, but did not see a way to dump the headers.

I have used the Calibre-Debug to dump the headers, but wanted to see if there were an differences in the 2 since the header definitions differ in the source code.

Thanks,

Eric
Problem solved. The version in the first post of the KindleUnpack thread is an older version and the one at Github is a newer version.

The KindleUnpack program requires Python 2.7.X or Python 3.4 or later to function properly.

https://github.com/kevinhendricks/KindleUnpack
JSWolf is offline   Reply With Quote
Old 06-09-2022, 02:12 PM   #1289
WEricBr
Member
WEricBr began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2022
Device: Kindle
Thanks, I had a back version that stated 2.6 or 2.7 and I wanted to make sure that I installed the correct version since I have read that 2.x and 3.x are somewhat incompatible.

Thanks again,

Eric
WEricBr is offline   Reply With Quote
Old 06-09-2022, 02:17 PM   #1290
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: 74,498
Karma: 129668758
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 WEricBr View Post
Thanks, I had a back version that stated 2.6 or 2.7 and I wanted to make sure that I installed the correct version since I have read that 2.x and 3.x are somewhat incompatible.

Thanks again,

Eric
Python code can sometimes be made compatible with 2.x and 3.x as is the case here.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i rotate text and insert images in Mobi and EPUB? JanGLi Kindle Formats 5 02-02-2013 04:16 PM
PDF to Mobi with text and images pocketsprocket Kindle Formats 7 05-21-2012 07:06 AM
Mobi files - images DWC Introduce Yourself 5 07-06-2011 01:43 AM
pdf to mobi... creating images rather than text Dumhed Calibre 5 11-06-2010 12:08 PM
Transfer of images on text files anirudh215 PDF 2 06-22-2009 09:28 AM


All times are GMT -4. The time now is 08:40 PM.


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