14. A system, comprising: a processor; and a computer-readable storage device coupled to the processor, the computer-readable storage device storing instructions that, when executed by the processor, perform operations including: identifying a hyphenation window comprising text in one or more paragraphs; determining a layout of text within the hyphenation window, the layout comprising a plurality of consecutive text lines; identifying each text line, in the plurality of consecutive text lines, that ends in a hyphen; determining proximity of at least two non-consecutive text lines, in the plurality of consecutive lines, that end in hyphens; and calculating a hyphenation penalty value based on the determined proximity of the at least two non-consecutive lines that end in hyphens.
14. A system, comprising: a processor; and a computer-readable storage device coupled to the processor, the computer-readable storage device storing instructions that, when executed by the processor, perform operations including: identifying a hyphenation window comprising text in one or more paragraphs; determining a layout of text within the hyphenation window, the layout comprising a plurality of consecutive text lines; identifying each text line, in the plurality of consecutive text lines, that ends in a hyphen; determining proximity of at least two non-consecutive text lines, in the plurality of consecutive lines, that end in hyphens; and calculating a hyphenation penalty value based on the determined proximity of the at least two non-consecutive lines that end in hyphens. 16. The system of claim 14 , wherein the operations further comprise: determining a second layout of text, the second layout of text comprising a second plurality of consecutive text lines; identifying each text line, in the second plurality of consecutive text lines, that ends in a hyphen; determining proximity of at least two non-consecutive text lines, in the second plurality of consecutive text lines, that end in hyphens; calculating a second hyphenation penalty value based on the determined proximity of the at least two non-consecutive lines, in the second plurality of consecutive text lines, that end in hyphens; and comparing the hyphenation penalty value to the second hyphenation penalty value.