Is there an ancient book that explains the meaning of each Chinese character?

Yes, I study China language and literature.

Shuowen Jiezi is the first dictionary to analyze glyphs. It was written by Xu Shen.

Kangxi Dictionary makes a detailed analysis of glyphs and explains their meanings. The ancient books such as Zhengzitong in Ming Dynasty are also cited as the source of Chinese characters, and Guang Yun and other phonetic methods are cited for the phonetic notation of Chinese characters. In particular, this dictionary introduces variant characters in detail, and the most luxurious one is Photocopy of Neifu. However, this book is too complicated to consult, that is, many words are different from the way we consult in ancient form now, so if you don't specialize in the direction of ancient Chinese, you are not recommended to buy it.

There are also Chinese Dictionary (Commercial Press), Chinese Dictionary and Chinese Dictionary. , and our modern consulting methods are basically the same, one of which is edited by Mr. Lu Feikui, an expert on China.

The above is to find and analyze content words from the meaning source of glyphs. If you look for function words, you can also look for "Zhuzi variation" and so on. Of course, you can also look for "erya" in ancient Chinese, but ancient books in this area are more expensive.