The diary as literature — private records never meant for us, from Pepys to Thoreau, that turn ordinary days into history.