Tang, Song and Ming Dynasties