Whenever I have accidentally stepped on a book of any sort, or even a school bag; my parents have always said that I must ask forgiveness from god by placing my hand on the object first, then my forehead.
I understand that goddess Saraswati is the god of education, is this why Hindus have this tradition?