Word wrap

Word wrap is a software-based function to present the line case of digital texts according to the representation and to maintain a uniform line length approximately. It is generated, for example, via the HTML tag
. In contrast, a hard line break is a fixed predetermined line end marker, and is used in desktop publishing as a sales interpreted ( paragraph mark, English pilcrow, symbol: . ¶), the soft line break (symbol: ↵) indeed enforces new line, the paragraph formatting interrupts, however, do not. In contrast to these two, there are for word wrap no control character - it can be found but also the expression of soft carriage return ( engl. soft hyphenation ).

Function of change

The break must be automatically adapted to the circumstances:

  • For text change ( insertion or deletion ) in the preceding text of the paragraph,
  • After a change of the available line width,
  • When changing the font properties, so if characters in relation to the line width to be narrower or wider.

The line break is only a temporary display on the respective output medium under current conditions; the actual (source) text is not changed. This can lead to deviations, if a non-existent hyphenation option forces the premature break in the standing at the right edge of word paragraph. Experts speak of the flutter paragraph, in contrast to Justify formatting. For more information describes the text formatting, it can also be about control characters, the flush on the right or left of the row set.

The automatic feed is also referred to as the "flow of the text", and forms one of the central frameworks in web design: because the programmer does not know the characters per line on the screen of his reader, there is no fixed text flow formatting are possible.

Text detection

Aims publication on a finished umbrochenes document from ( for example, printing on paper or creating a PDF file), then the line break should be displayed as you enter (layout corresponds edition, english What you see is what you get ( WYSIWYG) ) to manually to be able to prevent unwanted separations on the HTML tag or arrange additional separation possibilities.

Under the conditions of web typography all variants must be considered and the line width undesirable tearing related parts as well as new creations of compound words in English are for the automatic wrapping to edit from the start especially.

Line separation

The respective software attempts by exploiting the available line width as close to the edge ( in a peripheral area, such as an inch ) to find a possibility of separation.

This can be:

In cases 3 and 4, a hyphen in the representation on the output medium (screen, print, etc.) will be inserted. For the accurate determination of the possible break points, there are algorithms, such as the Unicode line breaking algorithm.

For automatic word division at the end of a line, it is necessary that the language of the text passage is declared and orthographic rules for word division, but also digital dictionaries for recognizing compound words are available at the time of presentation for that language.

In block set is then carried the exclusion of the line.

Unwanted lines separating

Sometimes you do not want to be torn apart contiguous groups of characters, although they contain spaces or hyphens.

Therefore we offer:

  • Protected spaces
  • Protected dashes
  • Definition of related areas

Examples:

  • 5 m or bank code 100 100 10 (space within the figures protect )
  • PQ formula ( no separation at the hyphen between P and Q)
  • 3 6 = 5 4 ( contiguous range )

Others

The High School of the line breaks in typography is to achieve in the successive rows have a similar word space, so that a uniform gray value of the text passage is formed. The overwhelmed most of the programs for the PC sector, but is made ​​from the free program of professional and TeX typesetting systems.

91524
de