|
|
Subscribe / Log in / New account

Catching up with Calibre

By Jonathan Corbet
August 31, 2011
Last week's Edition contained an interview with Kovid Goyal, the maintainer of the Calibre electronic book manager, but it did not look deeply at the application itself. Coincidentally, your editor has been playing with Calibre with renewed interest recently. This application has made considerable progress since your editor's last look at it, so a look at where it has gone is called for. Calibre is not perfect, but it is a useful tool for a somewhat unwilling newcomer to electronic books.

Your editor is not one to resist progress; the transition from vinyl to compact disks was handled with no reservations, despite the fact that there is still something special about those old analog platters. How can one resist a medium that is bulky and heavy, limited to 30 minutes of play time, and which degrades with every playing? When CDs, in turn, started to [Books] go away barely a tear was shed. There has been no pining for 8" floppies, eight-track tapes - or for tape in general. Technology moves forward, and things get better.

But books are special. They represent an old technology well optimized for its intended task and are a thing of beauty. Your editor's love of books has swallowed up vast amounts of time and crowded the house with dead trees; Cicero's classic proverb ("a room without books is like a body without a soul") is well respected here. That occasionally leads to certain amounts of marital stress, but we digress. The point is that the movement of the written word to an increasingly digital-only form is something that has been resisted in these parts for some time.

But the writing is on the wall cloud-based persistent storage device: books as physical objects are on their way out. Once your editor got past the denial phase, it became clear that there were even some advantages to ebooks. They are often cheaper, which is nice. Certain science fiction authors would appear to be paid by the kilogram; reading them in electronic form yields the same entertainment value without the kilograms. Electronic books are especially advantageous when traveling; the weight involved in carrying sufficient reading material for a family vacation was, once again, a source of a certain amount of familial disagreement. Searchability can be a useful feature at times. There is still nothing like a real book, but the electronic version is not entirely without its charms.

One does not need to accumulate many ebooks before it becomes clear that some sort of management scheme is required. Simply keeping books on a reader device is not really an option; that device may well not be entirely under the owner's control, its capacity is limited, it can be lost or damaged, and it eventually will need to be replaced. Just dumping them on a disk somewhere has problems of its own; some sort of management tool is needed. For now, in the free software world, Calibre seems to be that tool.

Calibre

As of this writing, the current version of Calibre is 0.8.16. Releases are frequent - about one week apart - and each release adds bug fixes and new features. The web site recommends installing binary releases directly from there because distributors tend to fall behind that schedule; Rawhide did not let your editor down, though. Interestingly, those looking for the source on the Calibre web site can search for a long time; there are no easily-found pointers to the SourceForge directory where the source can be found. The program is written in Python.

One thing first-time users won't necessarily notice is that Calibre phones home when it starts. The ostensible purpose is to check for new releases, but, in the process, it reports the current running version, the operating system it is running under (Linux is reported as "oth") and a unique ID generated when the program is installed - along with the IP address, naturally. It is not a huge amount of information to report - users of proprietary reader devices have much larger information disclosure issues to be concerned about - but it's [Calibre] still a bit of a privacy violation. Programs that communicate with the mother ship in this way should really inform their users of the fact and give them the opportunity to opt out.

The main Calibre window provides a list of books in the library, an animated "cover browser," a list of metadata types, and a pane for information about the selected book. By default, somebody just wanting to look through the books in the library will find less than 1/4 of the available space dedicated to that task. However, one cannot fault Calibre for lacking configurability; there are few aspects of the interface that cannot be tweaked at will. Unwanted stuff is easily gotten rid of.

There is a toolbar across the top with a large number of entries; they do not all fit unless the window is made quite wide. Some of them can be a bit confusing; should one import a book with "Add books" or "Get books"? The icon labeled "N books" (for some value of N) is actually the way to switch between libraries. "Save to disk" is a bit strange for books in the library, which are already on disk; it seems to be a way to save a book in a different format, though how that relates to the "convert books" operation is not entirely clear. With a bit of time and experimentation, though, it's not too hard to figure out how things work.

[Calibre reader] There is a basic reader application built into Calibre; it works well enough, though, likely as not, few users actually read their books in this application. Some of its more obnoxious behaviors (the 1/2 second animated page flip, for example) can be disabled. One thing that cannot be turned off, though, is the obnoxious "tooltips" that show up on everything. Your editor has noticed a trend toward these annoyances in a number of applications; when one can't see the interface through the tips, something is wrong. As can be seen in the associated screenshot, the "next page" tooltip obscures the text of the book itself.

Calibre's management of devices seems to work well; when a recognized device is plugged in, a separate pane showing the contents of that device is created. Books can be copied between the library and the device at will; if needed, Calibre will convert the book to a different format on the way. Your editor's Kindle device Just Works with Calibre; all that was needed was to plug it in. Android devices also work nicely. The Calibre site recommends installing WordPlayer on Android, but interoperation with the open-source FBReader application works well. Aldiko can also be used, though it is necessary to manually import the book files into the application after Calibre has placed them on the device.

Naturally, when working with a Kindle, one quickly runs into DRM issues; Calibre will put up a dialog saying that it cannot work with a locked file and wish you luck. As it happens, there is a plugin out there that can decrypt books from a Kindle and store them in a more accessible format. The Calibre project itself won't go near such plugins, but they are not hard to find. Whether one sees unlocking an ebook as an exercise of fair-use rights on a text that one has purchased or as an act of piracy will depend on one's viewpoint and, perhaps, local law. Your editor can only say that, if he were able to store his purchased ebooks in a format that does not require a functioning Kindle or Amazon's continuing cooperation, he would be much more inclined to buy more such books in the future.

(The Kindle, incidentally, will eventually be replaced with a more open device; selecting that device is likely to be the topic of a future article).

[Calibre search] The "Get books" option pops up a dialog that, seemingly, will search every bookstore on the planet for a given string. Results are listed with their price, format, and DRM status. The process tends to be slow - not surprising, given how many sites must be queried; one will want to trim down the number of sites to speed things up and eliminate results in undesired languages. The Calibre developers have clearly been busy setting up affiliate arrangements with as many of those bookstores as possible. The proceeds support ongoing development of the code, which seems like a good cause, certainly.

Another interesting feature is the ability to download articles from various news sources, format them appropriately, and send them to the device. In the case of the Kindle, that sending happens immediately over the Kindle's cellular connection; there is no need to plug the device into the computer first. Over 1,000 different news sources are supported at this point. If Calibre is left running, downloads can be scheduled to run at regular intervals. The value of this feature arguably drops as always-connected devices take over, but it's easy to see how it could be indispensable for those who do a fair amount of offline reading.

Wishlist and conclusion

There is a fairly well developed search feature clearly designed with the idea that there will be thousands of books in the library. Searches can key on almost any metadata, but there does not seem to be any way to search for books based on their contents. If you cannot remember which book introduced the concept of "thalience," Calibre, it seems, will not be able to help you find it. Indexing a large library to the point where it can be efficiently searched is not a small task, of course, but there are times when it would be nice.

Closer integration between Calibre and the reader devices would be useful. For example, all readers have a concept of bookmarks, or, at least, the current position within a given book. Imagine having a copy of one's current book on a phone handset; it would always be at hand when one finds oneself with an unexpected half hour to kill somewhere. Later, when curling up by the fire with the spouse, the dog, a glass of wine, and the real reader, said reader would already know the new position to start from. No such luck with the reader, alas; even the spouse and the dog can't always be counted upon. Calibre can't fix the latter, but it could convey that kind of information between reader devices.

Even nicer, someday, might be to run an application like Calibre directly on the reader devices, backed up by a library found in personally-controlled storage on the net somewhere. Google's Books offering is aiming at that sort of functionality, without the "personally-controlled" part, but books are too important to leave in some company's hands. Until such a time arrives, we'll be left managing our books on a local system and copying them to devices as needed. Calibre seems to be the best option there is for that management; it is a capable tool that does almost everything a reader could want. It definitely helps to make the transition away from real books a bit less painful.


to post comments

Catching up with Calibre

Posted Sep 1, 2011 5:01 UTC (Thu) by dlang (guest, #313) [Link] (1 responses)

in late 2006 I took two weeks of vacation around a week long conference. For that trip I had over 50 pounds of books packed (according to the airport scales), the books took up as much room in my luggage as my clothes. since then I've got the Kindle DX (large screen) and my luggage is slightly lighter (fewer books, more electronics) but my available selection on hand to read is _much_ better.

that said, paper books still have their place, and they are still accumulating around the house, just not quite as quickly

since you mentioned Science Fiction, take a look at webscription.net. this is the bookstore for Baen Books, and all the books are DRM free, in multiple formats, and priced fairly well ($6 for the e-book version, available usually two weeks prior to the hardcover hitting the bookstores). they even have a substantial pool of books for free (early books in a series in large part, but not exclusively)

Catching up with Calibre

Posted Sep 1, 2011 14:36 UTC (Thu) by njs (subscriber, #40338) [Link]

> since you mentioned Science Fiction, take a look at webscription.net

Also http://weightlessbooks.com/, which is Small Beer Press and friends, and http://www.bookviewcafe.com/, which is a bunch of established authors going indie. All DRM-free.

Catching up with Calibre

Posted Sep 1, 2011 5:08 UTC (Thu) by malcolmt (guest, #65441) [Link] (2 responses)

The phone-home bit is concerning. I just had a look around the calibre website and couldn't see it mentioned anywhere that they routinely collect identifying information like this (and unique id and IP address definitely counts as that). I don't feel unreasonable in classifying that as as under-handed and fairly unacceptable in this day and age of privacy awareness.

I iz disappointment. :-(

Catching up with Calibre

Posted Sep 1, 2011 7:49 UTC (Thu) by danielpf (guest, #4723) [Link]

There is now a warning in the Wikipedia article :)

Catching up with Calibre

Posted Sep 2, 2011 23:55 UTC (Fri) by nanday (guest, #51465) [Link]

To be fair, Kovid Goyal was completely open about phoning home when I asked him about it. I suspect that he never stopped to think that some of us might object to it.

Just possibly, he might mention this feature more openly or make it optional if people voiced their objections directly to him.

- Bruce Byfield

Catching up with Calibre

Posted Sep 1, 2011 5:46 UTC (Thu) by alonz (subscriber, #815) [Link]

Actually, the best way to get the Calibre sources is documented clearly in the User's Manual:

bzr branch lp:calibre

Catching up with Calibre

Posted Sep 1, 2011 6:48 UTC (Thu) by djc (subscriber, #56880) [Link] (3 responses)

Ah, our editor must be a fan of Karl Schroeder? I recently read my first ebook on my iPad 2 (a gift from work) and it was reason to read many more. There indeed seems to be a few nice things about this ebook thing, although I still eschew purchasing books in e-only package.

Catching up with Calibre

Posted Sep 1, 2011 14:48 UTC (Thu) by lonihpc (guest, #60920) [Link] (2 responses)

Karl Schroeder and Greg Egan. That book isn't even out yet! I assume it was ePUBized from the excerpt available on the author's website. Excellent taste, Mr. Corbet, on both counts. I consider Diaspora the sf novel with the highest ideas-to-page-count ratio ever.

The Clockwork Rocket

Posted Sep 1, 2011 14:59 UTC (Thu) by corbet (editor, #1) [Link]

Clockwork Rocket is out, actually; I nearly bought the dead-trees version but held off; later I found it much cheaper in the electronic format.

Catching up with Calibre

Posted Sep 1, 2011 15:18 UTC (Thu) by nix (subscriber, #2304) [Link]

Damn you for pointing me at that! Now I'm digging through his ridiculously comprehensive information pages rather than doing any work. (Is there anyone else in the SF world who shows his working to this degree? Hal Clement, Poul Anderson, and, more recently, Peter Watts all do it to some degree, but nothing like *this*.)

LWN on the Kindle

Posted Sep 1, 2011 7:33 UTC (Thu) by cdamian (subscriber, #1271) [Link] (2 responses)

On a related note: I would love to have my LWN automatically delivered to my Kindle. Ideally in the right format and not as PDF.

I would even subscribe and pay for it if it were available on Amazon.com . Even better if it would be goodie for subscribers on lwn.net .

LWN on the Kindle

Posted Sep 10, 2011 8:13 UTC (Sat) by panzerboy (guest, #16142) [Link] (1 responses)

I would love that too.

LWN on the Kindle

Posted Jan 19, 2012 15:31 UTC (Thu) by nix (subscriber, #2304) [Link]

You can do this with a tiny cron job that runs something like

ebook-convert "LWN.net Weekly Edition.recipe" \
~/tmp/conversion/lwn-$(date +"%Y-%m-%d").mobi \
--output-profile=kindle --username=$USERNAME \
--password=$PASSWORD --keep-ligatures --smarten-punctuation && \
calibre-smtp -a ~/tmp/conversion/lwn-$(date +"%Y-%m-%d").mobi \
-s "LWN subscription" -r your.mail.srvr -p 25 -e NONE \
your@email.address your-kindle-address@free.kindle.com ""

Caveats: obviously your LWN username and password need setting up: so does your mailserver (encryption is supported); your@email.address should be one of the email addresses permitted to send email to your Kindle on Amazon's management pages, and your-kindle-address@free.kindle.com should obviously enough be your Kindle address. (This is a wifi-only address: omitting the 'free' will use 3G if your Kindle has it, but will charge you for the privilege if it does so.)

Aside: now that the horrible security-hole-filled Calibre mount helper is gone and udisks is our only hope, I'm very impressed by how well it worked. I expected to have to jump through agonizing hoops to teach it that no I do not want the Kindle mounted on /media/Main or wherevertheheck it is that's hardwired into the source code. All such worries were superfluous: udisks figured out the udev-and-/etc/fstab dance that was mounting it on /mnt/kindle on my system, and mounted it there itself with no problems. Impressive.

Catching up with Calibre

Posted Sep 1, 2011 8:06 UTC (Thu) by fb (guest, #53265) [Link] (2 responses)

> It definitely helps to make the transition away from real books a bit less painful.

Over here the transition from real to e-books has been nothing but joy ;-) other than the physical compactness and all the convenience that it entails, another key advantage of e-books is to be able to adjust font type and size so easily.

The main feature of Calibre for me was barely touched in the review: its e-book format conversion capabilities. I have plenty of text only PDFs, and often use Calibre to put them in MOBI format (to get text reflow and font type adjustment in my e-reader).

Calibre conversion

Posted Sep 2, 2011 15:43 UTC (Fri) by rfunk (subscriber, #4054) [Link] (1 responses)

Everyone always recommends Calibre as THE program to use for format conversion, but I find it frustrating for that because it really wants to be a library management program with format conversion as an extra feature. So someone just wanting the conversion must deal with the library management stuff whether we want to or not.

It kind of reminds me of iTunes in that respect.

While I see the advantages of the library-management aspect, we really need an ebook format-conversion program that doesn't have all that baggage.

Calibre conversion

Posted Sep 4, 2011 18:11 UTC (Sun) by cwitty (guest, #4600) [Link]

If you want ebook format conversion without the library management, Calibre can do that. You can use the command-line program ebook-convert (part of the Calibre install) for format conversion; you never even have to run the main library-management program.

Catching up with Calibre

Posted Sep 1, 2011 9:50 UTC (Thu) by nix (subscriber, #2304) [Link] (3 responses)

No such luck with the reader, alas; even the spouse and the dog can't always be counted upon.
I'm still a real-book man (though may be forced away for technical works by space constraints and greppability). However, I can't manage this scene owing to the lack of the fire. I suppose one could get it by burning all my existing paper books, but, well, that would be sacrilege. Books are... well, books. If I burnt them I might as well be one of those cads that snaps spines or scribbles in books with yellow highlighter pen.

Books as kindle

Posted Sep 1, 2011 10:53 UTC (Thu) by man_ls (guest, #15091) [Link] (2 responses)

Allow me to introduce Pepe Carvalho, the Spanish fictional detective who always lights the fire on his chimney using books. He used to say that he have already learned too much and it was time to unlearn.

Also, the name of Amazon's reader (Kindle) means to set on fire, so something must be afoot. Burn your old paper books while getting them in electronic form?

Books as kindle

Posted Sep 1, 2011 20:19 UTC (Thu) by louie (guest, #3285) [Link] (1 responses)

Officially, Kindle uses the alternate meaning of kindle: "Arouse or inspire (an emotion or feeling)" (I think it is on the boot screen?) But I'm sure they're not so dense as to have missed the primary definition...

Books as kindle

Posted Sep 2, 2011 2:05 UTC (Fri) by giraffedata (guest, #1954) [Link]

They're really all the same definition. The "arouse or inspire" usage is just a metaphorical use of the basic definition (to start a fire). I'm sure whoever named the kindle was aware of that.

Analogue comeback

Posted Sep 2, 2011 5:21 UTC (Fri) by eru (subscriber, #2753) [Link] (3 responses)

... despite the fact that there is still something special about those old analog platters. ...

Curiously, where I live (Helsinki), vinyl record players have made a comeback in the electronics departments of ordinary supermarkets, after an absence of decades. The main difference is these new ones have USB ports and can digitize whatever is played. New vinyl records are also again available in ordinary stores. A passing fad, or people getting tired of digitalization?

Analogue comeback

Posted Sep 2, 2011 8:36 UTC (Fri) by fandom (subscriber, #4028) [Link] (2 responses)

It's happening here in Spain too, lately supermakets have added a vinyl section and a couple weeks ago it was reported that vinyl is now the fastest growing music format in the USA Some people tell me they sound better than CDs, but I am afraid my ears aren't good enough to notice.

Analogue comeback

Posted Sep 2, 2011 15:58 UTC (Fri) by bronson (subscriber, #4806) [Link] (1 responses)

This is often true but it has very little to do with the physical medium. Modern CDs are notorious for being mastered with the dynamic range squished and loudness pushed past clipping. That makes it sound more impressive on an ipod with stock headphones or in a car with road noise but produces irritating artifacts on decent stereos.

LPs, because DJs won't stand for these shenanigans, are almost always mastered properly. CDs mastered in the 80s are also usually fine, which is why you sometimes see such insane prices on used Rolling Stones discs.

Analogue comeback

Posted Sep 4, 2011 23:45 UTC (Sun) by foom (subscriber, #14868) [Link]

It's really too bad that more car radios don't have a dynamic range compression knob. I often listen to music in the car, and it's basically impossible to hear correctly mastered CDs...

Catching up with Calibre

Posted Sep 2, 2011 17:09 UTC (Fri) by zooko (guest, #2589) [Link]

Beautiful picture. That looks a lot like my office (and most of the other rooms of my house), including the stack of OLPC XO1s.

Thanks for blazing the way in this -- I too am struggling to relinquish my affection for these heavy, bulky, expensive things. (And I too am looking for a safe and freedom-preserving technology to replace them.)

Catching up with Calibre

Posted Sep 3, 2011 7:27 UTC (Sat) by zooko (guest, #2589) [Link]

> (The Kindle, incidentally, will eventually be replaced with a more open device; selecting that device is likely to be the topic of a future article).

Can't wait! This is the step that I am stuck on. :-)

...when a LWN weekly ed for eBook?

Posted Sep 9, 2011 6:02 UTC (Fri) by rmano (guest, #49886) [Link] (1 responses)

I own a Kindle too, and I use it a lot with calibre to read LWN weekly edition on commute. But the conversion from "bigpage" to the MOBI format is less than optimal.
It would be great to have a properly structured MOBI (or EPUB) version of LWN weekly edition... ;-) (hint, hint)

...when a LWN weekly ed for eBook?

Posted Jan 19, 2012 15:37 UTC (Thu) by nix (subscriber, #2304) [Link]

The conversion from the LWN weekly format appears to be nearly perfect to me. The only problem I've seen is that quotes are not properly italicized.


Copyright © 2011, Eklektix, Inc.
This article may be redistributed under the terms of the Creative Commons CC BY-SA 4.0 license
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds