Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2015, 07:56 AM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Book opens after remove bookmarks unexpectedly

Check Book:
INFO: The bookmarks file used by the calibre ebook viewer is present [META-INF/calibre_bookmarks.txt]
Description: This file stores the bookmarks and last opened information from the calibre ebook viewer. You can remove it if you do not need that information, or don't want to share it with other people you send this book to.

I Remove the file & Save

Now I expect the book opens with the cover page.
Click image for larger version

Name:	title.xhtml.png
Views:	274
Size:	88.4 KB
ID:	143083
title.xhtml (This file is the cover page of this book)

Thought wrong, it opens always (as I repeat the process multiple times) on chapter 49 (number half visible).
Click image for larger version

Name:	Chapter 49.png
Views:	284
Size:	43.8 KB
ID:	143082

Edit Book view
Click image for larger version

Name:	chap49.xhtml.png
Views:	272
Size:	127.7 KB
ID:	143085
chap49.xhtml

I invite you too!

Last edited by chaot; 10-23-2015 at 08:26 AM.
chaot is offline   Reply With Quote
Old 10-23-2015, 08:43 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Because the viewer stores last read position and bookmarks outside the epub file as well.
kovidgoyal is online now   Reply With Quote
Advert
Old 10-23-2015, 09:02 AM   #3
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
If I got you right: on my PC the last read position is stored somewhere. But if I give the book to someone else it opens with the Cover Page!?

Where is somewhere?
chaot is offline   Reply With Quote
Old 10-23-2015, 09:28 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
In calibre's Configuration directory.

Preferences ==> MIscellaneous ==> Open calibre configuration directory.

The default is %APPDATA%\calibre\ on Windows, or ~/.config/calibre/ on linux.

Bookmarks are saved in the file "iterator.pickle", but only for your user account.

They are also backed up inside the EPUB, unless you remove them, or set the option no to save them in the book.
eschwartz is offline   Reply With Quote
Old 10-23-2015, 11:20 AM   #5
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
File ''iterator.pickle'' I can't open, the content is quite likely for me also of little interest.

Quote:
... or set the option no to save them in the book.
You probably meant these two settings!?

Click image for larger version

Name:	Configure e-book viewer.png
Views:	287
Size:	70.2 KB
ID:	143096
Configure e-book viewer

Calibre Manual is (as usual) not or less useful. See Bookmarks

chaot is offline   Reply With Quote
Advert
Old 10-23-2015, 11:34 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Correct, those are the settings.

And iterator.pickle has a file extension which most text editors don't associate with plus it contains binary data, which is why you can't open it.
Nevertheless, if you delete it the bookmarks should be cleared away.


I don't think calibre's user manual needs to elaborate on the layout of the backend configuration files.
eschwartz is offline   Reply With Quote
Old 10-23-2015, 11:51 AM   #7
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Nevertheless, if you delete it the bookmarks should be cleared away.
Since I destroyed ones (years ago) my whole laptop (more willfully) by deleting/removing everything what seems me superfluous there even in the hidden files, I have become more cautious.
We, I mean me, leave everything as Kovid Goyal has established. It'll make sense.

Quote:
I don't think calibre's user manual needs to elaborate on the layout of the backend configuration files.
Here you may have right. But there's a list in work that confirms my thesis of low usability of the manual. Someday I'm going to confront the Forum community with that.

Last edited by chaot; 10-27-2015 at 06:37 AM. Reason: complete qoute→:shrug:
chaot is offline   Reply With Quote
Old 10-23-2015, 12:20 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by chaot View Post
Since I destroyed ones (years ago) my whole laptop (more willfully) by deleting/removing everything what seems me superfluous there even in the hidden files, I have become more cautious.
We, I mean me, leave everything as Kovid Goyal has established. It'll make sense.
And I am telling you I have examined the data structure of that file.
It is a python dictionary of filenames and the corresponding bookmarks info. That is all.

An example (unpickled):


{u'bookmarks_/home/eschwartz/Calibre Library/Marion G. Harmon/Villains Inc. (1189)/Villains Inc. - Marion G. Harmon.mobi': u'calibre_current_page_bookmark*|!|?|*1*|!|?|*/2/4/8/11004/2/18/2/1:20\n', u'bookmarks_/home/eschwartz/Calibre Libraries/Amazon/Terry Pratchett/Eric (169)/Eric - Terry Pratchett.mobi': u'calibre_current_page_bookmark*|!|?|*1*|!|?|*/2/4[text]/2/4/4/6/2/2[filepos3535]/4/14/1:0\n'}
eschwartz is offline   Reply With Quote
Old 10-27-2015, 08:00 AM   #9
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by eschwartz View Post
Nevertheless, if you delete it [file iterator.pickle] the bookmarks should be cleared away.
Quote:
And I am telling you ...
Okay, I made some experiments.

Click image for larger version

Name:	config_calibre (with iterator.pickle).png
Views:	251
Size:	38.7 KB
ID:	143221
.config_calibre (contains file iterator.pickle)

I delete that file.

Restart calibre and open various books, which read position I have noticed me.
With amazement: Exactly there the books reopen, not as expected at the beginning of the book.

File iterator.pickle is still missing in .config/calibre.

I change the reading position (as I continued to read ).
Another look in .config/calibre: Now the file iterator.pickle is established again.

Maybe I have something you've already told me overlooked. Otherwise your above thesis [...bookmarks should be cleared away.] is refuted.
__________________________________________________
I do not know what your example (unpickled) is or should show me.
Edit: Sorry, now I understand what it is: A fragment of that mysterous iterator.pickle file, of course!?

Last edited by chaot; 10-27-2015 at 11:22 AM.
chaot is offline   Reply With Quote
Old 10-27-2015, 10:35 AM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, I just tested it, and deleting iterator.pickle wipes away all bookmarks for me. Confirmed and thanks for encouraging me to field-test my theory.
But you do need to make sure it is not being saved inside calibre_bookmarks.txt

If either one is present, the bookmarks will still be there -- and they will get updated in both.




You can stop calibre from saving calibre_bookmarks.txt in the Viewer preferences
General ==> Miscellaneous options
Uncheck "Keep a copy of the bookmarks/current page inside the ebook file, for easy sharing"


...


Yes, my example was a fragment of iterator.pickle
eschwartz is offline   Reply With Quote
Old 10-27-2015, 10:53 AM   #11
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Just to make sure, did you uncheck those two items (see image) in the viewer settings? If not, it will continue to open where you last closed.

If I have bookmarks I don't want/need, I just open 'show/hide bookmarks' in the viewer and delete them from there (I also delete in the file editor, but not sure if that's necessary, haven't tested that far).

Also, unless there's an option for it that I haven't seen, simply having a bookmark will not open the viewer at that location. Would be difficult when you have multiple bookmarks.
Attached Thumbnails
Click image for larger version

Name:	Options.jpg
Views:	224
Size:	53.3 KB
ID:	143225  
MerlinMama is offline   Reply With Quote
Old 10-27-2015, 11:43 AM   #12
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
@eschwartz And I thought so far you would tell us only proofed wisdom here.

With you it works so, with me different.

Since applying these test series and documenting cleary is quite time consuming, the matter also not the most important, we let it be good now as it is.

Thanks to all.
chaot is offline   Reply With Quote
Old 12-11-2015, 02:18 PM   #13
CeeDub
Junior Member
CeeDub began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: Sony PRS-T2
Hello, sorry to revive an older thread, but it's very on topic.

I keep my library in a cloud-synchronized folder. When I read a few chapters on one machine and close the viewer, the calibre_bookmarks.txt in the epub-file is automatically updated on all my other machines.

It used to be that I could continue reading where I left off, regardless of which computer I was on - but that hasn't worked anymore for quite a while. This thread has helped me understand why.

My question is, can the local bookmark file (%APPDATA%\calibre\iterator.pickle) be turned off? I suppose I could delete it manually, but I liked how neatly my bookmarks carried across all my systems without any effort. If not, where do I submit a feature request?

Thank you,
CeeDub
CeeDub is offline   Reply With Quote
Old 12-11-2015, 03:03 PM   #14
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, many people sync their configuration folder as well.

You can use the CALIBRE_CONFIG_DIRECTORY environment variable to relocate calibre's configuration directory into Dropbox. See: http://manual.calibre-ebook.com/cust...ment-variables
eschwartz is offline   Reply With Quote
Old 12-11-2015, 04:39 PM   #15
CeeDub
Junior Member
CeeDub began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2014
Device: Sony PRS-T2
Quote:
Originally Posted by eschwartz View Post
Well, many people sync their configuration folder as well.
I thought of that, but the iterator.pickle file contains local paths. My cloud folder is not the same on all machines. Different user names, drive letters, and such.

I imagine many of the other configuration files will have the same problem.
CeeDub is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove bookmarks winbk7 Library Management 5 04-05-2015 07:12 PM
Touch Book opens at different places Willa Kobo Reader 2 01-08-2013 08:50 AM
Free book (Kindle) - Love Unexpectedly [Romance] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 2 01-31-2011 11:33 AM
Remove all bookmarks on the PRS-650? Amalthia Sony Reader 2 10-22-2010 01:06 PM
How to remove all bookmarks BCCISProf Sony Reader 10 08-25-2009 09:54 AM


All times are GMT -4. The time now is 10:56 AM.


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