07-17-2017, 07:44 AM | #1 |
Member
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. |
07-17-2017, 08:26 AM | #2 |
creator of calibre
Posts: 43,860
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. |
Advert | |
|
07-17-2017, 09:00 AM | #3 | |
Member
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
|
Quote:
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? |
|
07-17-2017, 10:17 AM | #4 |
creator of calibre
Posts: 43,860
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. |
07-17-2017, 10:18 AM | #5 |
creator of calibre
Posts: 43,860
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.
|
Advert | |
|
07-17-2017, 05:37 PM | #6 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
07-17-2017, 09:53 PM | #7 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
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. |
|
07-17-2017, 11:11 PM | #8 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, they will simply fallback to being stored in the config file, when viewing books not in a library.
|
07-17-2017, 11:45 PM | #9 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
07-18-2017, 12:33 AM | #10 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
They will still be stored inside the epub as well.
|
07-20-2017, 03:16 AM | #11 | |
Member
Posts: 14
Karma: 10
Join Date: Mar 2015
Device: PC
|
Quote:
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. 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. |
|
07-20-2017, 07:25 AM | #12 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
07-20-2017, 06:57 PM | #13 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
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 |
07-21-2017, 05:49 PM | #14 |
Connoisseur
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. |
|
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 |