Macro Language Reference > PIs > Text > <?twbch>
  
<?twbch>
Description
Allows you to specify additional hyphenation characters at which to break a line, in addition to the maximum of 4 characters defined via <?thyc>.
 
The <?twbch> keyword is only effective for hyphenation type <?thytype=0>, i.e. it is not valid with the Dieckmann hyphenation dictionary.
 
Example 541. Add alternatives for characters in the special hyphenation character set
For example, use one of the following commands to define the plus sign as a break/hyphenation characters for situations in which the minus sign is already in use, for example as a minus sign in Maths:
<?twbch=-/+>
or:
<?twbch=+/+>
 
Example 542. Remove / from special hyphenation character set
<?twbch=->
or:
<?twbch-=/>.
 
Example 543. Clear the special hyphenation character set
To have no special word break characters, use the following syntax:
<?twbch="">
Removing '-' and '/' from the word break list causes these characters to be ignored for the purposes of hyphenation and word breaking, just like any other punctuation characters. It does not prevent words with embedded hyphens from being hyphenated. If a word with embedded hyphens would naturally hyphenate at one of the embedded hyphen positions, then it may be that two consecutive hyphens are seen. To get around this, disable hyphenation with <?thyc> or use the <?thych> attribute, to disable or change the hyphen character.
Syntax
<?twbch char:s>
<?twbch>
[no parameter]
Invoke the Word break characters dialog box.
+
Adds characters to the hyphenation character set, to a maximum of four. For example, <?twbch +"="> adds the ' = ' (equals character) to the hyphenation character set. The set will not contain duplicate characters. If no plus or minus is specified, then the hyphenation character set is replaced with the set that has been specified by the single char parameter.
-
Removes characters from the hyphenation character set. For example, <?twbch -".-"> removes the full stop and hyphen from the hyphenation character set. Any characters that do not exist in the hyphenation character set are ignored.
char
Name of a character: if no plus or minus has been specified the hyphenation character set is replaced with the set that has been specified by this single char parameter.
Default value: -/
Additional Information
 
There is a limit of sixteen word break characters in the hyphenation character set.
Related Links