3 ms·
> How do I break the text up into segments that will fit within the horizontal width of the graphical window without changing the meaning of any of the text? T
by kazinator 4y ago
> How do I break the text up into segments that will fit within the horizontal width of the graphical window without changing the meaning of any of the text?
This is language dependent. For instance, the Japanese don't care. I was reading a novel a few months ago, and a chapter ended in a sentence ending in "た。" (ta.) due to some past tense verb. This "た。" did not fit, and so was just punted to the next page, which was otherwise entirely blank. There is no concept of hyphenation.
So if the text is Japanese, you just chop it into the required line length,
and you're pretty much done; no hyphenation is required, no multi-pass breaking algorithm to create an evenly gray page, nothing.