Question: what is the idiomatic expression of by the book?
Answer: by the book. Very correctly, in strict accordance with the rules. Book in this expression is a set of established rules or, originally, of moral or religious precepts.