A cheap casioppeia allows me to read ebooks around 2001.
There are converters available from Amazon and/or Mobi for pdf and doc files.
Plenty of free e-books in Mobipocket format show up fine on Kindle.
The Kindle supports Mobipocket files directly. You don't need to write a script to do that.
A revolutionary portable reader that wirelessly downloads books, newspapers, magazines and blogs to a crisp, high-resolution electronic paper display that looks and reads like real paper, even in bright sunlight.