Automatically configuring white space around an object in a document
First Claim
1. A method for formatting a document in a word processor, comprising:
- placing an object in a section of text in the document;
arranging a specified amount of white space on each side of a set of sides of the object;
placing a first portion of text from the section of text on a first side of the object and a second portion of text from the section of text on a second side of the object; and
after placing the first portion of text and the second portion of text;
determining whether the first portion of text on the first side of the object is located further from the object than the second portion of text on the second side of the object, andwhen the first portion of text is located further from the object than the second portion of text;
determining whether the first portion of text is displaced by less than a threshold amount due to the specified amount of white space arranged on the first side of the object,determining whether one or more reserved spaces associated with the first portion of the text are unused, andwhen the first portion of text is displaced by less than the threshold amount and the one or more reserved spaces associated with the first portion of the text are unused;
determining that an adjustment to the specified amount of white space on the first side of the object can be made, andadjusting the specified amount of white space on the first side of the object so that the first portion of text is located closer to the object, wherein adjusting the specified amount of white space comprises adjusting a per-object white space value associated with the first side of the object based on an offset value associated with the object.
1 Assignment
0 Petitions
Accused Products
Abstract
The described embodiments provide a word processor for formatting a document. During operation, the word processor places an object in a section of text in a document. When placing the object in the section of text, the word processor adds a specified amount of white space on a set of sides of the object. The word processor then places text from the section of text on at least a first side and a second side of the object. After placing the text, the word processor determines if the text on the first side of the object is located further from the object than the text on the second side of the object. If so, the word processor adjusts the white space on the first side of the object so that the text on the first side of the object is located closer to the object.
19 Citations
21 Claims
-
1. A method for formatting a document in a word processor, comprising:
-
placing an object in a section of text in the document; arranging a specified amount of white space on each side of a set of sides of the object; placing a first portion of text from the section of text on a first side of the object and a second portion of text from the section of text on a second side of the object; and after placing the first portion of text and the second portion of text; determining whether the first portion of text on the first side of the object is located further from the object than the second portion of text on the second side of the object, and when the first portion of text is located further from the object than the second portion of text; determining whether the first portion of text is displaced by less than a threshold amount due to the specified amount of white space arranged on the first side of the object, determining whether one or more reserved spaces associated with the first portion of the text are unused, and when the first portion of text is displaced by less than the threshold amount and the one or more reserved spaces associated with the first portion of the text are unused; determining that an adjustment to the specified amount of white space on the first side of the object can be made, and adjusting the specified amount of white space on the first side of the object so that the first portion of text is located closer to the object, wherein adjusting the specified amount of white space comprises adjusting a per-object white space value associated with the first side of the object based on an offset value associated with the object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A non-transitory computer-readable storage medium for storing instructions that when executed by a computer cause the computer to perform a method for formatting a document in a word processor, comprising:
-
placing an object in a section of text in the document; arranging a specified amount of white space on each side of a set of sides of the object; placing a first portion of text from the section of text on a first side of the object and a second portion of text from the section of text on a second side of the object; and after placing the first portion of text and the second portion of text; determining whether the first portion of text on the first side of the object is located further from the object than the second portion of text on the second side of the object, and when the first portion of text is located further from the object than the second portion of text; determining whether the first portion of text is displaced by less than a threshold amount due to the specified amount of white space arranged on the first side of the object, determining whether one or more reserved spaces associated with the first portion of the text are unused, and when the first portion of text is displaced by less than the threshold amount and the one or more reserved spaces associated with the first portion of the text are unused; determining that an adjustment to the specified amount of white space on the first side of the object can be made, and adjusting the specified amount of white space on the first side of the object so that the first portion of text is located closer to the object, wherein adjusting the specified amount of white space comprises adjusting a per-object white space value associated with the first side of the object based on an offset value associated with the object. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. An apparatus for formatting a document in a word processor, comprising:
a processing subsystem including a microprocessor, wherein the processing subsystem is configured to; place an object in a section of text in the document; arrange a specified amount of white space on each side of a set of sides of the object; place a first portion of text from the section of text on a first side of the object and a second portion of text from the section of text on a second side of the object; measure a first distance between the first side of the object and the first portion of text; measure a second distance between the second side of the object and the second portion of text; determine whether the first portion of text on the first side of the object is located further from the object than the second portion of text on the second side of the object based on the first distance and the second distance; and when the first portion of text is located further from the object than the second portion of text; determine whether the first portion of text is displaced by less than a threshold amount due to the specified amount of white space arranged on the first side of the object, determine whether one or more reserved spaces associated with the first portion of the text are unused, and when the first portion of text is displaced by less than the threshold amount and the one or more reserved spaces associated with the first portion of the text are unused; determine that an adjustment to the specified amount of white space on the first side of the object can be made, and adjust the specified amount of white space on the first side of the object so that the first portion of text is located closer to the object, wherein the specified amount of white space is adjusted by adjusting a per-object white space value associated with the first side of the object based on an offset value associated with the object.
-
21. A method for formatting a document in a word processor, comprising:
-
placing an object in a section of text in the document; arranging a specified amount of white space on each side of a set of sides of the object; placing a first portion of text from the section of text on a first side of the object and a second portion of text from the section of text on a second side of the object; and after placing the first portion of text and the second portion of text; measuring a first distance between the first side of the object and the first portion of text, measuring a second distance between the second side of the object and the second portion of text, determining whether the first portion of text on the first side of the object is a first desired distance from the object, when the first distance is different from the first desired distance; determining that a first adjustment to the specified amount of white space on the first side of the object can be made when one or more reserved spaces associated with the first portion of text are unused, and adjusting the specified amount of white space on the first side of the object so that the first portion of text is located at the first desired distance from the object, determining whether the second portion of text on the second side of the object is a second desired distance from the object, and when the second distance is different from the second desired distance; determining that a second adjustment to the specified amount of white space on the second side of the object can be made when one or more reserved spaces associated with the second portion of text are unused, and adjusting the specified amount of white space on the second side of the object so that the second portion of text is located at the second desired distance from the object.
-
Specification