"finding the first line from a book is a slightly tricky matter – not to mention how you determine where the last line is" Sounds like an intriguing bibliographic metadata challenge for those marking up texts.