Skip to content

Singlebreak

Instruct OrganiseLines to use the specialized line breaks handling for Single Letter Rendering

Syntax

|singlebreak,maxoffset|

Parameters

maxoffset: float

The max offset a line can grow until inserting a line break. The value must a valid float value or an Exception will be thrown. NOTE: If the current languageid is 6 (Russian), the effective value used is the one provided in this parameter * 1.15.

Remarks

Overwrite the input string with OrganiseLines starting with a maximum line width of 99999. The maximum line width gets overridden from the point where this command is located until the end of the input string by maxoffset.

This also changes the way OrganiseLines works by changing the final line breaks scheme and by changing how letter widths are accumulated (0.975x of each letter's width is accumulated instead of their full width). Normally, OrganiseLines inserts LF for every new lines, but because this scheme isn't supported in Single Letter Rendering, this wouldn't work. This command aims to fix this by changing the LF to line command without parameters which works in Single Letter Rendering.

This command only works in Single Letter Rendering which can be enabled via the single command. No operation occurs if it is not enabled, however, if OrganiseLines is ran on the input string through any ways, it will still change its logic because it is processed there no matter the rendering method. This means that this command can change the line breaker logic without necessarily using Single Letter Rendering.