support for buffered text and japanese