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.