A framework for premodern Chinese texts