Text this: Theoretical Foundations for Digital Libraries.