Word Wrap - Word Boundaries, Hyphenation, and Hard Spaces

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:

    She could give herself up to the written word as naturally as a good dancer to music or a fine swimmer to water. The only difficulty was that after finishing the last sentence she was left with a feeling at once hollow and uncomfortably full. Exactly like indigestion.
    Jean Rhys (1894–1979)

    He might have been the dream of a ghost
    In spite of the way his tail had smacked
    My floor so hard and matter-of-fact.
    Robert Frost (1874–1963)

    Surely, we are provided with senses as well fitted to penetrate the spaces of the real, the substantial, the eternal, as these outward are to penetrate the material universe. Veias, Menu, Zoroaster, Socrates, Christ, Shakespeare, Swedenborg,—these are some of our astronomers.
    Henry David Thoreau (1817–1862)