[Alexandria-list] iPod Notes support [PATCH]
Timothy Malone
timothy.malone at gmail.com
Wed Jan 16 14:36:51 EST 2008
So I finally decided that nobody else was gonna code support for this
(especially since I've never asked), and no other Linux program that I
found could do it either, so I bit the bullet and added it myself. This
is a feature that I used to like in Books.app for the Mac.
It exports your books as iPod note files. It works by making a .linx
file that includes links to each book in your library (they are given
the numerical identifiers that Alexandria uses internally to avoid
filename problems with certain characters (':' for instance)). Each of
those notes includes the title, author, edition, and isbn. Also, if you
have cover images, it will make the title into a link to the cover
image. The iPod should fail gracefully if a book doesn't have a cover
image. The images will only work on 5th generation and above iPods with
firmware version 1.2 and above. I don't know how earlier iPods will
respond (or the Touch for that matter. Does it even have notes?).
Perhaps a checkbox in the file dialog would be good? Maybe just two
export entries, "iPod Notes with photos" and "iPod Notes without
photos".
Also, iPods can only handle 1,000 notes. I'm not sure, but I will try to
find out, if the cover images count towards that total.
Basically, support is somewhat limited. I personally use it to keep a
list of books I am looking for when I go shopping.
To use, simply go to export, choose "iPod Notes", navigate to your iPod
(it must be mounted and have disk access enabled), navigate to the Notes
folder, and pick a name for the list.
Oh, and this is the first time I've ever even looked at Ruby code, so
please forgive the glaring errors I'm sure I made. Though I must say I
already like Ruby quite a bit. This patch took all of 45 minutes to
make, including time spent figuring out how to structure the iPod Notes.
Though mostly I copied code from the other exporters.
Tim Malone
-------------- next part --------------
A non-text attachment was scrubbed...
Name: export_library.diff
Type: text/x-patch
Size: 1267 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20080116/5236a13e/attachment.bin
More information about the Alexandria-list
mailing list