Append text chunks to either the start or end of the text fragment, depending on the text direction. The direction is determined by what script its code points are from.