Middle Chinese (simplified Chinese: 中古汉语; traditional Chinese: 中古漢語; pinyin: zhōnggǔ Hànyǔ), formerly known as Ancient Chinese, is the historical variety of Chinese that is phonologically recorded in the Qieyun, a rime dictionary first published in 601 and followed by several revised and expanded editions. The fanqie method used to indicate pronunciation in these dictionaries, though an improvement on earlier methods, proved awkward in practice. The mid 12th-century Yunjing and other rime tables incorporate a more sophisticated and convenient analysis of the Qieyun phonology. The rime tables attest to a number of sound changes that had occurred over the centuries following the publication of the Qieyun. Linguists sometimes refer to the system of the Qieyun as Early Middle Chinese and the variant revealed by the rime tables as Late Middle Chinese.
The dictionaries and tables describe pronunciations in relative terms, but do not give their actual sounds. The Swedish linguist Bernard Karlgren believed that the dictionaries recorded a speech standard of the capital Chang'an of the Sui and Tang dynasties, and produced a reconstruction of its sounds. However, based on the more recently recovered preface of the Qieyun, most scholars now believe that it records a compromise between northern and southern reading and poetic traditions from the late Northern and Southern dynasties period. This composite system contains important information for the reconstruction of the preceding system of Old Chinese phonology (1st millennium BC).
The Karlgren–Li reconstruction of Middle Chinese was a representation of the sounds of Middle Chinese devised by Bernhard Karlgren and revised by Li Fang-Kuei in 1971, remedying a number of minor defects.
The Qieyun rime dictionary was created by Lu Fayan in 601 as a guide to proper pronunciation, particularly for the reading of classic texts. The dictionary divided characters between the four tones, which were subdivided into 193 rhymes and then into homophone groups. The pronunciation of each homophone group is given by a fanqie formula, a pair of common characters respectively indicating the initial and final sounds of the syllable. Lu Fayan's work was very influential, and led to a series of expanded and corrected versions following the same structure, the most important of which is the Guangyun (1007–8). The Qieyun was thought lost until the mid-20th century, and scholars worked from the Guangyun. Fortunately it was later found that the Guangyun had preserved the phonological system of the Qieyun with no significant change. The Qing dynasty scholar Chen Li analysed the fanqie spellings of the Guangyun, determining which initial and final spellers represented the same sounds, and thus enumerating the initials and finals of the underlying system. However this method gave no indication of how these were pronounced.