|
|
Thread Tools | Search this Thread |
12-30-2020, 02:04 PM | #1276 | |
The Grand Mouse 高貴的老鼠
Posts: 71,574
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
12-30-2020, 02:55 PM | #1277 |
just an egg
Posts: 1,590
Karma: 4329454
Join Date: Mar 2015
Device: Kindle, iOS
|
Thank you! I'm ridiculously happy that I succeeded in updating this myself
Last edited by odamizu; 01-02-2021 at 11:13 PM. |
Advert | |
|
03-09-2022, 03:55 AM | #1278 |
Junior Member
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> |
03-09-2022, 06:32 AM | #1279 |
Grand Sorcerer
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?
|
03-09-2022, 07:15 AM | #1280 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2022
Device: Kindle
|
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. |
Advert | |
|
03-09-2022, 08:15 AM | #1281 |
Grand Sorcerer
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. |
03-09-2022, 09:35 AM | #1282 |
Junior Member
Posts: 3
Karma: 10
Join Date: Mar 2022
Device: Kindle
|
Ok cool, Could you point me to that algorithm?
|
03-09-2022, 12:32 PM | #1283 |
Sigil Developer
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. Last edited by KevinH; 03-09-2022 at 02:28 PM. |
06-09-2022, 01:48 PM | #1284 |
Member
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 |
06-09-2022, 01:51 PM | #1285 |
Resident Curmudgeon
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
|
|
06-09-2022, 02:01 PM | #1286 |
Member
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 |
06-09-2022, 02:05 PM | #1287 |
Resident Curmudgeon
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 |
06-09-2022, 02:06 PM | #1288 | |
Resident Curmudgeon
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:
The KindleUnpack program requires Python 2.7.X or Python 3.4 or later to function properly. https://github.com/kevinhendricks/KindleUnpack |
|
06-09-2022, 02:12 PM | #1289 |
Member
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 |
06-09-2022, 02:17 PM | #1290 |
Resident Curmudgeon
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
|
Python code can sometimes be made compatible with 2.x and 3.x as is the case here.
|
|
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 | 2 | 06-22-2009 09:28 AM |