digram encodings