![]() |
#1 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,022
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Better way to keep track of page numbers
I rather dislike when the Calibre eBook viewer modifies the eBook to keep track of the page number last read. Would it be possible to change this behavior so that instead of modifying the eBook, that Calibre instead used the eBook's metadata.opf file to keep track of the last page read? Thanks.
|
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@JSWolf - what about people who don't read from the calibre library directories but from their Save to Disk location.
BR |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,022
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Jon, I think you need to think it through
Once an epub is it outside of a calibre library it belongs to 'me'. I don't want metadata.opf files sprinkled all through my file system, it's bad enough that windows sprinkles its desktop.ini files like confetti all over the place, they did at least get rid of thumbs.db. I run a video player that remembers the last viewed position, the data is stored for the last N videos in Appdata, where N is specified by me. That's works well... until I copy the video to my netbook to watch on the train. BR |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I would guess that adding a new Preference "To Update or Not To Update" would be easy to add and allow flexibilty
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,285
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#7 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I think I saw a hint somewhere that it's possible to write a viewer PI, if so then perhaps 'someone' could write a PI that would update the "metadata.opf" as Jon suggests - but only if it was present in the same folder as the EPUB. Not sure what the ramifications would be if one say added a tag - would the reading position be lost. I understand Jon's objection to having it in the epub, it changes the file which means it gets backed up, which means that one is lead to ask why so... I didn't change that epub! BR |
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,022
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There is such an option. But what happens is that (for ePub), a file is stored inside the ePub that lets the viewer know what page the ePub was last opened to. This (IMHO) is not solution I want. I don't want my ePub modified just to keep track of the page number.
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,285
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Maybe the point I am not getting is that you DO WANT the last read location stored, just not in the ePub itself? |
|
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If it were written to the metadata.opf file then that would change the raison d'être for those files, the means to reconstruct metadata.db. It would become a sidecar file that would need to follow the epub wherever it roams and it would have to have a unique name because as things stand they're all metadata.opf. If one was willing to forgo having last read position follow the epub when and where ever it roamed then perhaps one could put the last read position (calibre_bookmarks->calibre_current_page_bookmark) with the viewer_open_history in viewer.json in calibre's config data. I think you'd need a 3 choice setting for Save last read position - don't save, save with recently read, and save in the book. BR Last edited by BetterRed; 09-24-2014 at 08:29 AM. |
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,022
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Yes, exactly. I want to be able to store the last read page, but not in the ePub itself. So since we already have metadata.opf, I suggest using that to store the page number last read.
|
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,022
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Are you prepared to suffer all the slings and arrows of outraged calibre users ![]() It would also add a new design goal to the metadata.db file, doing that is never a good idea without due consideration of conflicts of purpose. BR |
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,326
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
In the end it is up to Kovid, but I cannot imagine putting the last read position into metadata.opf. It would be lost the next time you change metadata, because the opf file is first and foremost a backup file. Alternatively, someone finds all places where the file is created/written and builds some merge facility. Also, someone would need to deal with library syncing not destroying the read position when the backup is copied from some other machine.
The reading position is part of the data associated with the human doing the reading. It is not part of the metadata of the book. The info should be stored external to calibre or calibre should support logins and store the info under the user id. Neither of these are likely to happen soon, unless someone who cares will build it. |
![]() |
![]() |
![]() |
#15 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,022
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Chapter Page Numbers Instead of Title Page Numbers | TheArtfulDodger | Devices | 1 | 11-18-2013 01:08 PM |
Keeping track of the current page | Chris Jones | Library Management | 3 | 11-03-2013 12:55 PM |
Kindle (AZW3/MOBI) ebooks with "real page numbers" to PDF with same page numbers? | abvgd | Conversion | 2 | 05-24-2013 01:24 PM |
PRS-T1 Can you make page-numbers correspond to page-turns? | bibahbuzemann | Sony Reader | 13 | 01-01-2012 12:03 AM |
Is there a hack for displaying page numbers rather than location numbers? | nesler | Kindle Developer's Corner | 16 | 02-15-2011 12:00 AM |