How to quickly fix Safari 5 Reader typography

I really like the clutter-free reading experience the new Reader feature in Safari 5 brings. However, what I don’t like too much is the standard html rendering it uses for typography. The full fix for this would be to write a Safari extension to run the whole text through LaTeX or the very least through the Knuth & Plass algorithm.

However, a quick fix for the horrible justified text is this:

Open the contents of Applications/Safari.app:

Then open Resources/Reader.html in a text editor.

Around line 82 there is a CSS rule for .page. Update it to left-align the paragraphs:

.page {
    font: 20px Palatino, Georgia, Times, "Times New Roman", serif;
    line-height: 160%;
    text-align: left !important;
}

Use !important as well, just to make sure. Save the file (you might need to type in your password here), and you’re done!

If you dislike Palatino, you can of course edit the CSS to your heart’s content. For me, the biggest beef were the rivers flowing through the text when using the default justified alignment.

Posted at 17PM on 06/09/10 | 3 comments » | Filed Under: | read on

Speaking at Frozen Rails

The first-ever Ruby/Rails conference in Finland, Frozen Rails, is going to take place May 7th in Helsinki. The speaker lineup is top notch, including three Rails core team members and the inimitable Chris Wanstrath. For an unknown reason, in the midst of these high profile guys, a random guy from Tampere has ended up in the speaker list. Yours truly has the honorable (and somewhat frightening) job to wrap up the conference with an ending talk.

My talk is tentatively titled “Of Perfection, Perfectionism and Perfect Web Apps”. It will be less of a technical talk and more a critical, personal, humorous and hopefully entertaining performance about the previous decade spent writing various kinds of web sites and apps.

If you still haven’t secured your ticket, hurry up! The 99€ early bird price goes out tonight.

Posted at 18PM on 03/23/10 | | Filed Under: | read on