Text this: Compression theory for inhomogeneous systems