[PATCH 6/7] dwrite: Implement chaining contextual substitution of format 1.