[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
noBreakHyphen (Non Breaking Hyphen Character)
This element specifies that a non breaking hyphen character shall be placed at the current location in the run content. A non breaking hyphen is the equivalent of Unicode character 002D (the hyphen-minus), however it shall not be used as a valid line breaking character for the current line of text when displaying this WordprocessingML content.
The behavior of a non breaking hyphen in run content shall be to display using the same glyph as the hyphen-minus character, however without being a valid line breaking position (unlike the hyphen-minus character).
[Example: Consider the following sentence in a WordprocessingML document:
This makes a very very very wordy and deliberately overcomplicated sentence.
Normally, just as shown above, this sentence not would be displayed on a single line as it is long enough to require line breaking (given the width of the current page). However, if a hyphen minus were inserted after the letter s in sentence, as follows:
<w:r>
<w:t>This makes a very very very wordy and deliberately overcomplicated s-entence.</w:t>
</w:r>
This would allow a break at that position, and break the word after that character:
This makes a very very very wordy and deliberately overcomplicated s-entence.
If this was not desired, the non breaking hyphen character could be specified as follows:
<w:r>
<w:t>This makes a very very very wordy and deliberately overcomplicated s</w:t>
<w:nonBreakHyphen/>
<w:t>entence.</w:t>
</w:r>
This would display a hyphen character, but would not allow the text to break at that location:
This makes a very very very wordy and deliberately overcomplicated s‑entence.
end example]
Parent Elements |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Empty"/>