Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-17-2014, 03:31 AM   #1
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: 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.
JSWolf is offline   Reply With Quote
Old 09-17-2014, 03:44 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
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
BetterRed is online now   Reply With Quote
Advert
Old 09-17-2014, 04:03 AM   #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: 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:
Originally Posted by BetterRed View Post
@JSWolf - what about people who don't read from the calibre library directories but from their Save to Disk location.

BR
A metadata.opf file can be created alongside the eBook.
JSWolf is offline   Reply With Quote
Old 09-17-2014, 05:04 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
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
BetterRed is online now   Reply With Quote
Old 09-17-2014, 10:42 AM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
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
phossler is offline   Reply With Quote
Advert
Old 09-17-2014, 12:18 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,285
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by phossler View Post
I would guess that adding a new Preference "To Update or Not To Update" would be easy to add and allow flexibilty
I thought there already was an option not to store the last read location.....
PeterT is offline   Reply With Quote
Old 09-17-2014, 06:42 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by PeterT View Post
I thought there already was an option not to store the last read location.....
Yep, its always been there for me

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
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	193
Size:	17.9 KB
ID:	128489  
BetterRed is online now   Reply With Quote
Old 09-23-2014, 05:42 PM   #8
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: 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:
Originally Posted by PeterT View Post
I thought there already was an option not to store the last read location.....
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.
JSWolf is offline   Reply With Quote
Old 09-24-2014, 03:35 AM   #9
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,285
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by JSWolf View Post
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.
Buuuut... That's what turning the setting off already does! It does not store the last read location ANYWHERE.

Maybe the point I am not getting is that you DO WANT the last read location stored, just not in the ePub itself?
PeterT is offline   Reply With Quote
Old 09-24-2014, 06:08 AM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by PeterT View Post
Maybe the point I am not getting is that you DO WANT the last read location stored, just not in the ePub itself?
Not often I speak for others, but it's pretty clear that's what Jon wants - but the question is, where to put the last read position.

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.
BetterRed is online now   Reply With Quote
Old 09-24-2014, 10:31 AM   #11
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: 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:
Originally Posted by PeterT View Post
Buuuut... That's what turning the setting off already does! It does not store the last read location ANYWHERE.

Maybe the point I am not getting is that you DO WANT the last read location stored, just not in the ePub itself?
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.
JSWolf is offline   Reply With Quote
Old 09-24-2014, 10:32 AM   #12
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: 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:
Originally Posted by BetterRed View Post
Not often I speak for others, but it's pretty clear that's what Jon wants - but the question is, where to put the last read position.

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
I do have another suggestion, if the eBook is stored in Calibre, use meatadata.opf to store the last read page. If the eBook is not in Calibre, don't store the page number at all.
JSWolf is offline   Reply With Quote
Old 09-24-2014, 04:27 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
I do have another suggestion, if the eBook is stored in Calibre, use meatadata.opf to store the last read page. If the eBook is not in Calibre, don't store the page number at all.
Jon, That would remove a feature currently enjoyed by those who have chosen to keep their books beyond the calibre walled garden - a.k.a. the library manager's library/author/book folder (directory) structure.

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
BetterRed is online now   Reply With Quote
Old 09-24-2014, 04:48 PM   #14
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
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.
chaley is offline   Reply With Quote
Old 09-24-2014, 04:51 PM   #15
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: 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:
Originally Posted by chaley View Post
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.
I agree that the reading position should be kept external to the eBook. But I'd need to have someone able to code this as I don't program in Python and I don't know the Calibre code.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:13 AM.


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