View Single Post
Old 12-18-2021, 08:41 AM   #227
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
I added images to X-Ray for MOBI and AZW3 books in commit https://github.com/xxyzz/WordDumb/co...1888f4ef1b5f95, the latest build can be downloaded from GitHub Actions(https://github.com/xxyzz/WordDumb/ac...uns/1596064865). Please try it out and report bugs.

For KFX books, I'll need jhowell's help again. The X-Ray data for KFX looks like this:
Code:
sqlite> SELECT * FROM excerpt WHERE image NOT NULL;
+-----+---------+--------+-------+------------------+---------+
| id  |  start  | length | image | related_entities |  goto   |
+-----+---------+--------+-------+------------------+---------+
| 576 | 1       | 0      | e6    |                  | 1       |
| 577 | 2179585 | 71     | e2GX  |                  | 2179583 |
| 578 | 2179667 | 57     | e2H8  |                  | 2179665 |
The "goto" column is the image tag offset in the file, I guess the "image" will be similar to the "src" of the img tag in MOBI file.

The "start" and "length" are for the sentence below the image. For convenience(laziness), I set "start" to the same as "goto" and "length" to 0 in this commit.

Last edited by xxyzz; 12-18-2021 at 08:55 AM.
xxyzz is offline   Reply With Quote