5. A method in accordance with claim 1 , further comprising parameterizing the model using parameters selected from the group consisting of special widths, a hyphenation penalty and a last line distribution factor.
1. A method for locating line breaks in text, the method being carried out by a computer device having a processor and system memory, comprising: a) creating a probabilistic model of a paragraph of text, parameterized by inter-word spacing; and b) running an inference on the model to find a sequence of line-breaks that maximize the joint probability of line break positions with minimum deviation of inter-word spacing from an ideal value, by performing a max-product belief propagation operation to determine the maximum joint probability of line break locations with minimum deviation of inter-word spacing from the ideal value.