|
|||||
|
|||||
Related Syntax | Related Concepts | ||||
modifier |
break-width |
Syntax
break-width preferred-width (to maximum-width)? open stream-identifier with break-width preferred-width (to maximum-width)? set stream-identifier with (break-width preferred-width (to maximum-width)?) to stream-expression
Argument definitions
Defines acceptable line widths for all streams. Used in conjunction with replacement-break
or insertion-break
.
You can use break-width either as a declaration or as a modifier for open
. If you use break-width in a declaration, it applies only to #main-output. If you use break-width as a modifier to the open keyword, it applies only to the stream being opened.
You must also use "%/" to show each breakable point (except for data coming from the markup parser, such as PCDATA from an SGML document instance).
For example:
break-width 35 to 45 replacement-break "%_" "%n" process submit "A narrow column this shall be; at position 36, a break you'll see." find space => space-in-line output "%/" || space-in-line ; OUTPUT: ; A narrow column this shall be; at ; position 36, a break you'll see.
An OmniMark program can have only one break-width declaration.
Unlike the other open modifiers, break-width must be parenthesized within a set
action. This avoids potential ambiguity in the interpretation of the to
keyword.
Older versions of OmniMark allowed you to omit the keyword to
when specifying the maximum width. This use is now deprecated.
Related Syntax |
Related Concepts |
Copyright © Stilo International plc, 1988-2010.