Question: What is the term used for books that lay out spelling rules?
Sentence: Both Serbian and Croatian variants were represented in respectively different grammar books, dictionaries, school textbooks and in books known as pravopis (which detail spelling rules).
Answer in sentence: yes