06-04-2010, 05:52 PM | #1 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: iPod Touch, OLPC XO-1
|
Empty calibre_bookmarks.txt in viewed Epub files
In a thread over here, Kovid said:
Quote:
Here's why I ask. I'm on Mac, and I've been looking for a while for an Epub reader that is just a reader -- that is, one that lets me double-click on a book in my filesystem, open it, read it, close it, and not deal with additional content management overhead, not copy the file to its own special little DB, etc etc etc. The closest was FbReader, which I'm not happy with on Mac. So far I've been using BibTeX+BibDesk to manage my files and metadata (for citation purposes), plus Calibre for its Stanza integration (at which it excels, but which I run on a different computer, duplicating a subset of my library), but my best workaround for reading the Epub was to install the Firefox Epubreader plugin and just let it make its own copy of the book. I have just realized that invoking Calibre's ebook-viewer from the command line is almost exactly what I want. Simple, reads the file in place, doesn't force me to navigate through another library structure. Not what I'd call lightweight (70+ megs of RAM to display a 750K Epub?), but acceptable. Only problem is that it unexpectedly alters the Epub file I opened. Which I really don't want. If a reading program is going to change a static document, I really want to request that behavior, not have it happen for me. As far as the ebook-viewer program is concerned, I'd be totally happy if that request was the act of explicitly clicking on the "add bookmark" button. But if I don't do that, I don't want the program going in and putting a bookmark file into my otherwise clean Epub files. I discovered this when I tested ebook-viewer earlier today, and noticed it changed the timestamp of the file I viewed. Then I made two copies of another Epub file, viewed one, unzipped them and compared the contents. I checked the FAQ and docs on the website, but didn't see anything. Google revealed only the thread from which I took the above quote, plus another one here where nothing is resolved. Upon closer examination, I see that the bookmark file stores where I last closed the book. As far as I'm concerned, this is even less desirable behavior, though I see now why it is the default behavior. Is it possible to add a command-line option to disable bookmark writing? Is this a change that might be considered if I raise a ticket? What if I were to contribute a patch? Should I just wrap ebook-viewer in a script that 'chmod 444's the file before and 'chmod 644's after? |
|
06-04-2010, 05:59 PM | #2 |
creator of calibre
Posts: 44,683
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Adding a bookmark file does not change the static document. The documents actual contents are untouched. And no, I'm not going to change this behavior.
|
Advert | |
|
06-04-2010, 06:14 PM | #3 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: iPod Touch, OLPC XO-1
|
Quote:
And the document, considered as a file living on my filesystem, certainly does change. Timestamp, checksum, everything. Remember that the purpose of my using ebook-viewer is because it's the only software I've found that does allow me to treat Epub files as files in my filesystem and not as documents in some content management system -- but only almost. |
|
06-04-2010, 06:25 PM | #4 |
creator of calibre
Posts: 44,683
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you're willing to submit a patch, sure. I have no interest in implementing it myself.
|
06-04-2010, 06:31 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: iPod Touch, OLPC XO-1
|
It might be a while, assuming I ever get to it -- but I wanted to make sure that the patch in principle might get accepted first. Am I right in guessing that Linux is probably the easiest place to hack on it?
|
Advert | |
|
06-04-2010, 06:36 PM | #6 |
creator of calibre
Posts: 44,683
Karma: 24967300
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can run calibre from source trivially on any platform. See the User Manual for instructions.
|
06-04-2010, 06:36 PM | #7 |
Zealot
Posts: 106
Karma: 3566
Join Date: Aug 2008
Location: London UK
Device: iPhone 5, Kindle K3, Kindle Voyage
|
Have you tried Lucidor? (lucidor.org). It's lightweight, runs freestanding or as a firefox plugin, and you can configure it to either copy the .epub to its own directory, or to leave the book where it was found. I can't speak for MAC, being windows atm, but it certainly does not update my files.
It has the occasional rough edge - its still in beta - but I like it for its clean simple interface. Snowman |
06-04-2010, 06:48 PM | #8 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: iPod Touch, OLPC XO-1
|
Quote:
Kovid, thanks. I'll have a look next week when I have some free time. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
conversion to txt or rtf makes empty file | lunixer | Calibre | 10 | 08-25-2010 05:56 PM |
Txt files - Convert to Epub - Multiple files into one book - noob help | Cernan | Calibre | 6 | 05-18-2010 11:12 AM |
Reformatting .txt files | willijt | Workshop | 14 | 03-27-2010 11:05 AM |
Classic Can DRM-protected ePub content from Overdrive be viewed using nook app on iPhone? | doog_smith | Barnes & Noble NOOK | 9 | 02-05-2010 04:29 AM |
Does the card with new firmware need to be empty of other files? | jusmee | Astak EZReader | 4 | 11-06-2009 06:43 PM |