Word Boundaries, Hyphenation, and Hard Spaces
The soft returns are usually placed after the ends of complete words, or after the punctuation that follows complete words. However, word wrap may also occur following a hyphen inside of a word. This is sometimes not desired, and can be blocked by using a non-breaking hyphen, or hard hyphen, instead of a regular hyphen.
A word without hyphens can be made wrappable by having soft hyphens in it. When the word isn't wrapped (i.e., isn't broken across lines), the soft hyphen isn't visible. But if the word is wrapped across lines, this is done at the soft hyphen, at which point it is shown as a visible hyphen on the top line where the word is broken. (In the rare case of a word that is meant to be wrappable by breaking it across lines but without making a hyphen ever appear, a zero-width space is put at the permitted breaking point(s) in the word.)
Sometimes word wrap is undesirable between adjacent words. In such cases, word wrap can usually be blocked by using a hard space or non-breaking space between the words, instead of regular spaces.
Read more about this topic: Word Wrap
Famous quotes containing the words word, hard and/or spaces:
“Life and language are alike sacred. Homicide and verbicidethat is, violent treatment of a word with fatal results to its legitimate meaning, which is its lifeare alike forbidden.”
—Oliver Wendell Holmes, Sr. (18091894)
“The logical English train a scholar as they train an engineer. Oxford is Greek factory, as Wilton mills weave carpet, and Sheffield grinds steel. They know the use of a tutor, as they know the use of a horse; and they draw the greatest amount of benefit from both. The reading men are kept by hard walking, hard riding, and measured eating and drinking, at the top of their condition, and two days before the examination, do not work but lounge, ride, or run, to be fresh on the college doomsday.”
—Ralph Waldo Emerson (18031882)
“Though there were numerous vessels at this great distance in the horizon on every side, yet the vast spaces between them, like the spaces between the stars,far as they were distant from us, so were they from one another,nay, some were twice as far from each other as from us,impressed us with a sense of the immensity of the ocean, the unfruitful ocean, as it has been called, and we could see what proportion man and his works bear to the globe.”
—Henry David Thoreau (18171862)