« Twitter Should Move Away from Ruby | Main | Amazon Tighten Their Grip on Kindle Distribution »

May 01, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451c41c69e201157065178a970b

Listed below are links to weblogs that reference Displaying Code on the Kindle:

Comments

Chris

I've been playing around with this on my Kindle 1. It seems to me that the fixed-width font is still a serif font. It's basically the same as the regular font with finer lines and fixed width. It takes up a lot more room. I've put some code examples on my kindle and compared, and I would rather have the non-fixed width font than the wrapping.

Remko Tronçon

@Jocke The horrible crippling of book typography is not an inherent eBook Reader thing. Other eBook readers like the iRex Illiad allow you to watch original PDFs, on reasonably-sized screens. I have seen these in action, and I can tell you that it's stunning. Downside is that these things are still slow, so that's a turnoff for me to buy one (despite the fact that I *really* want one).

But I'm with you otherwise: I would *never* buy a Kindle or any ePub book, because I also believe that a book is meant to be read with the exact same typography it was made. Why pay money for a crippled version of a book?

The examples in this article don't look bad though, so good work Dave. But still, it's not a PragProg PDF.

Roland Halder

I read the mobi files on my IPAQ, which is great, but the code-images are almost unreadable - even when I zoom they are!

Therefore I clearly vote for text - or both.

Nathan Leavitt

With the announcement of the Kindle2 DX, it obviously would be best to display in text. The DX will wrap less :)

cbmeeks

I'm not sure if anyone mentioned this yet but why not just have any large amounts of code as an image and then rotate the image?

The reader would have to spin their Kindle around 90 degrees to view but I don't think that is a big deal. I do that all of the time on my iPhone.

Geo

I'm wondering how PDF text shows in the bigger kindle DX (larger version). Supposedly it is a direct PDF reader, and might not break up the layout. Anyone know this for sure?

Phil

Looks like Kindle v1 users don't get the monospaced font (though it's not clear why this wasn't included as a firmware upgrade, maybe just an artificial incentive to upgrade? Boo.) I like the way it's handled via images. Word wrapping makes it very difficult to read, as I've seen in some converted PDFs. But I was pretty impressed with how Programming Clojure looked on my v1 Kindle. Very nicely done!

Jon

I prefer the text examples you've given. The wrapping is unfortunate, but at least with the examples you have shown, it doesn't make it less legible. Perhaps using text will provide motivation to Amazon to open up a smaller pitch fixed width font (or a decent Sans font).

Rojotek

Could you do the image approach, and then provide a link to the source code?

I've been recently reading an ebook that got it wrong using text. It was really very painful. It made me appreciate why people have gone with the image approach, and support that strategy more.

Nesteruk.wordpress.com

Don't forget that by rasterizing code as images you're making Kindle DX users really miserable because we get blurry, blown-out images we can't even scale. That's why it's only worth buying PDFs for the DX.

Dave Thomas

We decided to take the "code-as-text" approach several years ago now, so you won't see code images in our books.

The current issue is what to do about wrapped code lines—still a challenge, given that we don't control the width of the device, but nowhere near as obnoxious as the initial problem with a lack of code font support in the readers.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Now in Beta

  • Programming Ruby, 3rd Edition
    Third Edition, Covering Ruby 1.9, now available
My Photo

Pragmatic Stuff

Photos

  • www.flickr.com
    This is a Flickr badge showing public photos from pragdave tagged with pragdave_badge. Make your own badge here.

Site Search

  • Google Search

    The web
    PragDave