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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

View Poll Results: Do you want a plugin to import reading progress from your kindle?
Yes 10 62.50%
No 6 37.50%
Yes, but for a different device. 0 0%
Voters: 16. You may not vote on this poll

Reply
 
Thread Tools Search this Thread
Old 11-23-2024, 06:14 PM   #1
tpb
Junior Member
tpb began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2024
Device: Kindle Paperwhite
Would a Calibre plugin to extract reading progress from the kindle be useful?

I've built some scripts to automatically extract metadata from the Kindle and sync it to user defined custom columns in Calibre. This lets me sort my book collection by read/unread, date last read, number of reads, etc.

The data is provided by KRDS:info like position, completion status, hours read, etc.

If there is interest, I could clean this up and publish it as a calibre plugin. Years ago I saw quite a few threads about this, but I'm not sure if amazon has ever added this ability to newer kindles as mine is quite old now.

For me, my kindle only shows 0-100%, and that percent is reset if you ever open the book to a different page so your progress is lost. There's also no way to see if you read a book more than once, or sort by progress/last read.

This could also be easy to expand to other devices if extractors like KRDS exist on those platforms, but I haven't looked into that yet.
tpb is offline   Reply With Quote
Old 11-25-2024, 02:04 PM   #2
Defenderland
Groupie
Defenderland doesn't litterDefenderland doesn't litterDefenderland doesn't litter
 
Defenderland's Avatar
 
Posts: 177
Karma: 208
Join Date: Feb 2012
Device: Kindle PW
This sounds fantastic.
I personally would be most interested (besides the hours spent on a book being displayed in a column) in the calculation of the reading speed (WPM - words per minute).

Reading without any thoughts on measurement and afterwards checking it, could give interesting insights and comparisons (progress when learning a language, light literature vs heavy, speed variying with author, genre, ...).
Defenderland is offline   Reply With Quote
Advert
Old 11-25-2024, 02:17 PM   #3
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: 76,832
Karma: 138235604
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can the reading position be put back on the Kindle?

I don't know why there is an option for a different device as Kobo Utilities can already get reading positions and put them on the Kobo. This is a plugin for calibre. So we already have a different device able to do this.

And @tpb, if you want this to be a plugin, just make it so. That's how most plugins came to be. Someone wanted it and was able to make it.

Last edited by JSWolf; 11-25-2024 at 02:20 PM.
JSWolf is offline   Reply With Quote
Old 11-26-2024, 03:14 PM   #4
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,791
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by tpb View Post
For me, my kindle only shows 0-100%, and that percent is reset if you ever open the book to a different page so your progress is lost. There's also no way to see if you read a book more than once, or sort by progress/last read.
(for current Kindle) Percent reflects reading location in the book, if you change the location, it changes the percent complete. Amazon also tracks 'furthest page read' FWIW, I don't know if that's available for extraction (probably not).

Of course end of book may be well before the last location in the book, if there are footnotes and other end matter that are there just for reference purposes. There is metadata (ToC entry) that defines End of reading as set by publisher.

Newer Kindles (2024 models and Scribe) use MTP so if you want to read it directly you'll need to figure out how to use calibre's MTP device interface, probably would need to extend it.

I personally don't have any interest in tracking reading at such a granular level but didn't want to vote 'No' as I would not want to discourage the effort to create a plugin that could do these things.
tomsem is offline   Reply With Quote
Old 12-05-2024, 06:17 PM   #5
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,559
Karma: 100606751
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by tomsem View Post
(for current Kindle) Percent reflects reading location in the book, if you change the location, it changes the percent complete. Amazon also tracks 'furthest page read' FWIW, I don't know if that's available for extraction (probably not).
azw3f files in the .sdr directory for KF8/azw3 books have "fpr" and "lpr" fields each of which has a "position" subfield, where the numerical position is the byte number of that location in the uncompressed marked up book text. The values stored in those fields can be extracted with the (partially yours) utility krds.py
https://www.mobileread.com/forums/sh...d.php?t=322172
https://github.com/K-R-D-S/KRDS

I think that "fpr" is furthest position read and "lpr" is last position read, at least the numbers make sense for the books that I spot checked. (Well, I guess the "p" in fpr and lpr could still be "page" since the subfield is "position".)

KFX has a more complicated position structure, but it probably has a similar file amenable extraction by krds.py
j.p.s is offline   Reply With Quote
Advert
Old 12-05-2024, 07:13 PM   #6
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,791
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Good to know.

I suppose we need to check to see if any more changes are needed to krds.py (e.g. for active canvas location, underline type, etc.). I'll try to get to this.
tomsem is offline   Reply With Quote
Old 12-06-2024, 02:07 PM   #7
Drybonz
Connoisseur
Drybonz began at the beginning.
 
Posts: 65
Karma: 10
Join Date: Apr 2010
Device: iPad, Kindle Scribe 2024
I had actually just come to the forum to find out if there was a way to do this... so, yes!
Drybonz is offline   Reply With Quote
Old 12-06-2024, 05:03 PM   #8
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,610
Karma: 67894585
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by JSWolf View Post
...

I don't know why there is an option for a different device as Kobo Utilities can already get reading positions and put them on the Kobo. This is a plugin for calibre. So we already have a different device able to do this.
There are other devices besides Kindle and Kobo? Or am I missing something?
John F is offline   Reply With Quote
Old Today, 06:21 PM   #9
tpb
Junior Member
tpb began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2024
Device: Kindle Paperwhite
Quote:
Originally Posted by tomsem View Post
(for current Kindle) Percent reflects reading location in the book, if you change the location, it changes the percent complete. Amazon also tracks 'furthest page read' FWIW, I don't know if that's available for extraction (probably not).
...
Newer Kindles (2024 models and Scribe) use MTP so if you want to read it directly you'll need to figure out how to use calibre's MTP device interface, probably would need to extend it.
Thanks for this info. So it seems Amazon has still not included the ability to preserve reading progress/read indicators if you ever re-open the book to a different page, which was my main motivation behind this.

I'm really not sure about the MTP issue as a don't have a newer device to test on. Currently I'm just walking through the device path Calibre provides and using KRDS to read contents of the .sdr dirs.


Quote:
Originally Posted by Defenderland View Post
This sounds fantastic.
I personally would be most interested (besides the hours spent on a book being displayed in a column) in the calculation of the reading speed (WPM - words per minute).
.
Good idea. I've added this already and it will be in the initial release.

Quote:
Originally Posted by JSWolf View Post
Can the reading position be put back on the Kindle?.
Yes, I tested this with my kindle using .mobi files and writing the reading position seems to work. Replacing the first two numbers in the lpr struct in the .mbs file makes the kindle open to that new position on the device.

I do not know if this works on other kindles/firmware versions, and I also don't know what risks there may be if the .mbs file is corrupted (e.g. writing a value that is greater than the total positions in the book.). This could be really useful if people have multiple devices though, so I'm open to looking into it.
tpb is offline   Reply With Quote
Reply

Tags
krds

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syncing Reading Metrics/Progress in Between Kobo and Calibre Deobulakenyo Library Management 6 11-07-2021 11:57 PM
Is there any way to backup/restore reading progress to Calibre? OrangeFlavored KOReader 10 05-08-2020 12:33 AM
[Kobo] Reading progress not updated in calibre anymore 69carat Devices 2 01-17-2020 12:01 AM
Calibre annotations and highlight extract plugin for the Nook Simple Touch? einkuser Plugins 15 01-24-2015 09:13 PM
Kindle Reading Progress the_callant Devices 0 10-06-2013 05:32 AM


All times are GMT -4. The time now is 10:18 PM.


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