Haodoo-on-kindle is a project mainly written in PERL and TEX, it's free.
This is for haodoo on kindle.