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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2017, 07:44 AM   #1
Andys
Member
Andys began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
[Request] External bookmark file for calibre viewer

Hi, this feature would be very helpful for library used in sync on two or more PC.
Basically, I need a setting which will override iterator.pickle, and read external file located in the same foder as book file (for example, main file "book.fb2" with bookmark file "book.bkm")
Current functionality is very limited and does not support any sane sync process:
1. on different PCs, books folder can be located on different drives so syncing iterator.pickle would be pointless.
2. not all books are stored in epub format (so no internal bookmarks)
3. even if converted to epub format, modifying epub with internal bookmarks.txt is bad for checksum
4. from what I read on forum, iterator.pickle always have precedence over internal epub bookmarks

Or, make iterator.pickle bookmarks relative to database location so I could sync it between PCs?

Or, is there any way to 'auto-import' bookmarks from file when starting viewer and auto-export when exiting and/or modifying bookmarks?

Last edited by Andys; 07-17-2017 at 07:46 AM.
Andys is offline   Reply With Quote
Old 07-17-2017, 08:26 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: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply store bookmarks in the epub file. I have no idea what bad for checksum means. I assume you eman the checksum of the epub file changes, though I dont see what is bad about that.

Last edited by kovidgoyal; 07-17-2017 at 08:30 AM.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-17-2017, 09:00 AM   #3
Andys
Member
Andys began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
Quote:
Originally Posted by kovidgoyal View Post
I assume you mean the checksum of the epub file changes, though I dont see what is bad about that.
1. I am not sure if the book is intact and needs recovering from backup
2. Comparing ebooks to another collection/folder can't be done
3. There are some plugins that overwrite epub completely when downloading from online source and I suppose this way of storing bookmarks isn't in epub definition so I have to beg each plugin author to support it.
4. What if I prefer html of fb2 format?
Andys is offline   Reply With Quote
Old 07-17-2017, 10:17 AM   #4
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: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1) Umm why would the book not be intact? If you are worried about data on your disk being randomly corrupted, you have bigger problems. By that logic, any file on your disk that is changed by any program at any time could possibly be corrupt and need restoring from backups.

2) Exact binary matches of ebooks are pretty useless, unless they are the exact same file, in which case, they will also match on lots of other dimensions, not affected by the presence of a bookmarks file.

3) Since the bookmarks are file specific, replacing the epub file with another means the bookmarks wont work anyway.

4) Since you are reading the books in the viewer and the viewer internally converts all formats to an epub like format anyway, it doesn't matter if you prefer reading another format, you are effectively reading epub in any case.
kovidgoyal is offline   Reply With Quote
Old 07-17-2017, 10:18 AM   #5
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: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh and in any case, it is on my TODO list to add proper annotations support to the new in browser viewer (which will also form the basis of a replacement for calibre viewer) and when that happens the annotations will be stored in the database itself.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-17-2017, 05:37 PM   #6
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: 20,544
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Oh and in any case, it is on my TODO list to add proper annotations support to the new in browser viewer (which will also form the basis of a replacement for calibre viewer) and when that happens the annotations will be stored in the database itself.
Should I worry that a future version of the calibre viewer (i.e. the one that doesn't run inside a browser) will not be usable to view ePubs that are not in a library (notionally in a database) - or will annotations be disabled when used in that mode?

BR
BetterRed is offline   Reply With Quote
Old 07-17-2017, 09:53 PM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Andys View Post
3. There are some plugins that overwrite epub completely when downloading from online source and I suppose this way of storing bookmarks isn't in epub definition so I have to beg each plugin author to support it.
Which plugins are you talking about? The only one I can immediately think of is FanFicFare, and it should be handling the annotations and reading position. If it isn't, then it has been broken in a recent version and should be reported.

For other plugins, don't beg, ask politely. Most of us plugin developers are willing to listen to suggestions. Whether we implement them, will depend on whether they can be implemented, whether they fit the plugin and time. For this, it's probably not hard to save the file with the bookmarks in them and then restore it later. But, if the structure of the epub changes, keeping the references in the bookmarks valid will be the problem.
davidfor is offline   Reply With Quote
Old 07-17-2017, 11:11 PM   #8
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: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by BetterRed View Post
Should I worry that a future version of the calibre viewer (i.e. the one that doesn't run inside a browser) will not be usable to view ePubs that are not in a library (notionally in a database) - or will annotations be disabled when used in that mode?

BR
No, they will simply fallback to being stored in the config file, when viewing books not in a library.
kovidgoyal is offline   Reply With Quote
Old 07-17-2017, 11:45 PM   #9
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: 20,544
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
No, they will simply fallback to being stored in the config file, when viewing books not in a library.
Can you consider providing an option to store annotations in same location as the epub file (eg <whatever>.calan) so that they can be moved, copied, shared etc as a 'matched pair'.

BR
BetterRed is offline   Reply With Quote
Old 07-18-2017, 12:33 AM   #10
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: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
They will still be stored inside the epub as well.
kovidgoyal is offline   Reply With Quote
Old 07-20-2017, 03:16 AM   #11
Andys
Member
Andys began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
Quote:
Originally Posted by kovidgoyal View Post
Oh and in any case, it is on my TODO list to add proper annotations support to the new in browser viewer (which will also form the basis of a replacement for calibre viewer) and when that happens the annotations will be stored in the database itself.
Well, this would be very very nice, storing it in database would be the solution to almost all bookmark problems.
But a suggesion - when you write browser viewer please make it possible to open it from actual calibre app too, not only from server web interface. Maybe like passing direct web link to browser so it would skip library view and open the book immediately in web reader. That's because browsing library and finding books in web interface is so much clunkier and slower than in native calibre app so I'd avoid web interface entirely.

Quote:
Originally Posted by davidfor View Post
Which plugins are you talking about? The only one I can immediately think of is FanFicFare, and it should be handling the annotations and reading position. If it isn't, then it has been broken in a recent version and should be reported.
You pinpointed it correctly. I don't really like to always remember that I should extract and re-insert bookmarks on full epub redownload which is required in some specific situations. Of course, external bookmarks would be likely broken anyway when I do that but at least I would keep annotations so I could search for text and readd bookmark at new position

Last edited by Andys; 07-20-2017 at 03:26 AM.
Andys is offline   Reply With Quote
Old 07-20-2017, 07:25 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Andys View Post
You pinpointed it correctly. I don't really like to always remember that I should extract and re-insert bookmarks on full epub redownload which is required in some specific situations. Of course, external bookmarks would be likely broken anyway when I do that but at least I would keep annotations so I could search for text and readd bookmark at new position
I suggest asking if it is intended. The structure FFF creates is consistent, so, unless there are extra chapters added early in the book, the bookmarks will probably be OK.
davidfor is offline   Reply With Quote
Old 07-20-2017, 06:57 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: 20,544
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
They will still be stored inside the epub as well.
Then no need to worry

Moderator Notice
This thread doesn't appear to conform to the Purpose of Development subforum sticky, i.e. the OP is not proposing to do any actual development, so I've moved it to the main calibre forum.


BR
BetterRed is offline   Reply With Quote
Old 07-21-2017, 05:49 PM   #14
moredrowsy
Connoisseur
moredrowsy began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Aug 2016
Device: Kindle Paperwhite 3
@kovidgoyal

I think the annotations feature would be awesome. How will the annotation files be formatted? Will it be easily readable in a text viewer? I tend to make notes and often summaries and ideas for concepts in a text book. If the annotations file is easily readable outside calibre, it would be great if you make an option for the annotations as a separate file instead of in the database or inside the epub file. That way I can just easily open the folder and copy of it, email to myself and read it later on my phone when I'm away from my computer or when my computer is turned off. Thanks.
moredrowsy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: Reading Timer and Speed in Calibre Viewer truth1ness Calibre 23 09-24-2016 07:54 PM
E-book viewer - bookmark marking vanishes DrChiper Calibre 12 06-18-2014 06:07 PM
External viewer opens temp file Aiwass Library Management 4 04-29-2013 04:44 AM
Request for better touch support for calibre viewer Dreading Calibre 3 12-20-2011 10:44 AM
Calibre viewer setting file time banjomike Calibre 6 06-14-2010 05:18 PM


All times are GMT -4. The time now is 03:40 AM.


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