Text Word-Wrapping Rules

When TWL ManualEditor wraps text to fit in a text box, it automatically applies wrapping rules that dictate when certain characters and symbols must not be located at the start or end of a line and when certain strings must not be broken up.

Word-Wrapping Rules Settings

All newly created Text objects are automatically set to use the word-wrapping rules.

To disable the word-wrapping rules, toggle the Word-Wrapping Rules button in the Text toolbar.

Word-Wrapping Rules

Characters That Must Not End a Line

If one of these characters is going to be displayed at the end of the current line, the text is wrapped before this character so that it does not end the line.

Caution: If there is a single-byte space after a character that must not end a line, processing to prohibit line-wrapping is canceled because of special processing for the single-byte space, and a character that must not be at the end of a line may be placed at the end of the line.

Characters that must not end a line Double-byte symbols (〔[{〈《「『【‘“
Single-byte symbols [(¡¿「{

Characters That Must Not Start a Line

If one of these characters is going to be displayed at the start of the next line, the text is wrapped before the character so that it does not start the next line.

Caution: If there is a single-byte space in front of a character that must not start a line, the processing to prohibit the start of a line is canceled because of special processing for the single-byte space, and a character that must not be located at the beginning of a line may be placed at the beginning of the line.

Characters that must not start a line Double-byte symbols 、。)〕]}〉》」』】’”,.:
Single-byte symbols )].,:;!?-}」

Strings That Must Not Be Broken

If text including one of these strings is being displayed, the text is wrapped before the string so that the string is not broken between lines.

Strings that must not be broken Single-byte alphanumeric characters Strings of consecutive single-byte alphanumeric characters must not be broken.
Note: If a string does not entirely fit in a text object, the line is wrapped before the string in question.
Single-byte symbols '"™®

All word series are prohibited from wrapping if they are separated using a Unicode quotation mark (″) (U+0022 DOUBLE QUOTATION MARK) such as in ″abc″ and ″ def.″ This code prevents line wraps.

As shown above, there may be unexpected behavior, so if possible, it is recommended to use the Unicode quotation mark ( ”) that prohibits the start of a line (U+201D RIGHT DOUBLEQUOTATION MARK) and the Unicode quotation mark ( “) that prohibits the end of a line (U+201D RIGHT DOUBLEQUOTATION MARK).

Special Processing for Single-Byte Spaces

The first single-byte space adjacent to the character on the left is not included in the x-direction size of the text object.

Therefore, automatic wrapping is applied immediately right of the first single space that is adjacent immediately left of a character, or after a character on the immediate left, and the single-space immediately left of the character is not placed at the start of the line.

However, if two or more single-byte spaces are used consecutively, special processing is not applied to the second and subsequent single-byte spaces, so a single-byte space may be placed at the start of the line.


CONFIDENTIAL