View Single Post
Old 11-14-2007, 12:02 PM   #1
klikklak
Connoisseur
klikklak doesn't litterklikklak doesn't litter
 
Posts: 86
Karma: 124
Join Date: Nov 2007
Location: helsinki
Device: nokia 770, PRS-500
tips for batch conversion with emacs

Hi all,

Even though I haven't received my prs500 yet, I've spent my time converting books to lrf. I thought I'd share some tips on batch conversion as the linux version of the gui doesn't support batches yet.

Start emacs, do 'ctrl-x d' '/path/to/files' to run dired. When in directory do '%-m' 'lit$' or 'txt$' or any combination. You can also just move on top of the file and press 'm'. Then press 'alt-!' and type in 'any2lrf ?' the ? is replaced with an invididual filename from the list of selected files. Let it crunch away and you'll have a directory full of goodness.

For pdf files and pdflrflinux-0.99 it's slightly more complicated. Enter dired and select pdf files (with %-m 'pdf$'), then alt-! and the following line: ' for file in * ; do pdflrflinux-0.99 -i "$file" -o "$file".lrf ; done '

This creates files with the lrf added to the end like filename.pdf.lrf which is a bit ugly, but atleast it works.

Hope this helps atleast someone.
klikklak is offline   Reply With Quote