Plugin description:
The plugin adds a line break to the text in such a way that the text does not go beyond the borders of the window.
The plugin works automatically for message windows and the TAA_BookMenu plugin.
The text is carried over by words. That is, it is impossible for one half of a word to be on one line and the other half on the next. The whole word will be moved to a new line. This is how word wrapping works in Windows Notepad and many other places. This way, the text will look neat.
The plugin may not work well if some word is wider than the dialog box. But it is unlikely that anyone in their right mind would use such words in practice.
Plugin Command: getWrappedText
This command will allow you to write the processed text to a variable.
Feature of the plugin: the text color setting (\C[x]) is saved when the line is moved. Even if the new line is displayed in another window (which often happens when transferring text in the message window).
The same applies to the text size setting (\FS[x]).