Patent ID: 7502998

Claim:
A computer-implemented method operable on a page of at least text comprising: balancing the at least text on the page without forcing any of the at least text onto a previous page or a next page, wherein balancing the at least text on the page comprises balancing the at least text on the page on a rolling pair of lines-by-rolling pair of lines basis, wherein balancing the at least text on the page on a rolling pair of lines-by-rolling pair of lines basis comprises moving a word from a first line of a rolling pair of lines to a second line of the rolling pair of lines based on a predetermined criteria, and wherein the predetermined criteria is met if the following conditions are satisfied: a sum of word gaps of the rolling pair of lines decreases by moving the word from the first line of the rolling pair of lines to the second line of the rolling pair of lines; and an absolute value of the difference of the word gaps of the rolling pair of lines reduces by moving the word from the first line of the rolling pair of lines to the second line of the rolling pair of lines; and outputting the page.