Decoding Chinese calligraphy