Optical transmission spectroscopy of hot Jupiter atmospheres