Add tests for mixed text direction.
Add expected run lengths to test data.
Add more sample texts.
Generalise text from SpanData for other tests.