On the setting of books


I redescribe my question, I hope you can understand it. I can’t reply, it’s bad.
I want to set up the content of this book, title. And then send it to a player’s inventory


Could you be more specific? Right click a book item that is on the floor that has the title of X name? Right click a page within a book with the text of X? Etc.