Reformatting a document using fuzzy matching
First Claim
1. A method for reformatting a previously formatted electronic document comprising a plurality of discrete portions of text using a computing device, the method comprising the steps of:
- receiving user-selections of a color set and a font set;
determining a format set based on the user selections of the color set and the font set, the format set comprising a plurality of formats, each format comprising a format font name, a format font color and a format font size; and
for each discrete portion of text in the electronic document;
analyzing the discrete portion of text to determine a text font name, a text font color and a text font size, for each format in the format set;
if the format font name matches the text font name, adding a first determined number to a match quality value associated with the format, if the format font color matches the text font color, adding a second determined number to the match quality value, if the format font size is greater than the text font size, multiplying the ratio of the text font size to the format font size by a third determined number to determine a first product and adding the first product to the match quality value, and if the format font size is not greater than the text font size, multiplying the ratio of the format font size to the text font size by the third determined number to determine a second product and adding the second product to the match quality value, and reformatting the discrete portion of text such that the format having the greatest associated match quality value is applied to the discrete portion of text.
2 Assignments
0 Petitions
Accused Products
Abstract
Reformatting a previously formatted document. A unique interface allows preview and selection of both a color set and a font set. A color set comprises a plurality of colors defining a color scheme. The font set comprises a plurality of fonts defining a font theme. A format set is defined by the selection of a color set and a font set. A format set comprises a plurality of formats, each format comprising a format font name, a format font size, a format font color, and other properties. Once a format set is determined, the document is reformatted in such a way as to largely maintain the proportionality and integrity of its previous formatting. In so doing, each discrete portion of text in the document is analyzed to determine its format properties. Each format in the format set is then compared to the text format. Points are added to a match quality value associated with the format when it is determined that a property of the format matches a property of the existing text format. The match quality values for each format in the format set are compared and the format having the greatest associated match quality value is applied to the discrete portion of text.
-
Citations
22 Claims
-
1. A method for reformatting a previously formatted electronic document comprising a plurality of discrete portions of text using a computing device, the method comprising the steps of:
-
receiving user-selections of a color set and a font set;
determining a format set based on the user selections of the color set and the font set, the format set comprising a plurality of formats, each format comprising a format font name, a format font color and a format font size; and
for each discrete portion of text in the electronic document;
analyzing the discrete portion of text to determine a text font name, a text font color and a text font size, for each format in the format set;
if the format font name matches the text font name, adding a first determined number to a match quality value associated with the format, if the format font color matches the text font color, adding a second determined number to the match quality value, if the format font size is greater than the text font size, multiplying the ratio of the text font size to the format font size by a third determined number to determine a first product and adding the first product to the match quality value, and if the format font size is not greater than the text font size, multiplying the ratio of the format font size to the text font size by the third determined number to determine a second product and adding the second product to the match quality value, and reformatting the discrete portion of text such that the format having the greatest associated match quality value is applied to the discrete portion of text. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A system for reformatting a previously formatted electronic document comprising a plurality of discrete portions of text, the system comprising:
-
a display device for displaying the previously formatted electronic document and a user interface for selection of a selected color set and a selected font set;
a memory for storing a plurality of color sets and a plurality of font sets;
an input device for generating commands corresponding to selection of the selected color set and the selected font set;
a processor in communication with the display device, the memory and the input device for receiving the commands and determining a format set based on the selected color set and the selected font set, the format set comprising a plurality of formats, each format comprising a format font name, a format font color and a format font size; and
for each discrete portion of text in the electronic document the processor further operable for;
analyzing the discrete portion of text to determine a text font name, a text font, color and a text font size, for each format in the format set;
if the format font name matches the text font name, adding a first determined number to a match quality value associated with the format, if the format font color matches the text font color, adding a second determined number to the match quality value, if the format font size is greater than the text font size, multiplying the ratio of the text font size to the format font size by a third determined number to determine a first product and adding the first product to the match quality value, and if the format font size is not greater than the text font size, multiplying the ratio of the format font size to the text font size by the third determined number to determine a second product and adding the second product to the match quality value, if every other formatting property of the text, the property matches the corresponding property of the text, adding a determined number to the match quality value, and reformatting the discrete portion of text for display on the display device, such that the format having the greatest associated match quality value is applied to the discrete portion of text. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
-
21. A user interface for reformatting a previously formatted electronic document comprising a plurality of discrete portions of text with a computing device, the user interface comprising:
-
a first control for selection of a color set;
a second control for selection of a font set;
a preview window for displaying a plurality of text samples formatted according to a format set defined by the selected color set and the selected font set, the format set comprising a plurality of formats, each format comprising a format font name, a format font color and a format font size; and
a third control for applying the format set to the electronic document according to the method comprising;
for each discrete portion of text in the electronic document;
analyzing the discrete portion of text to determine a text font name, a text font, color and a text font size, for each format in the format set;
if the format font name matches the text font name, adding a first determined number to a match quality value associated with the format, if the format font color matches the text font color, adding a second determined number to the match quality value, if the format font size is greater than the text font size, multiplying the ratio of the text font size to the format font size by a third determined number to determine a first product and adding the first product to the match quality value, and if the format font size is not greater than the text font size, multiplying the ratio of the format font size to the text font size by the third determined number to determine a second product and adding the second product to the match quality value, if every other formatting property of the text, the property matches the corresponding property of the text, adding a determined number to the match quality value, and reformatting the discrete portion of text, such that the format having the greatest associated match quality value is applied to the discrete portion of text. - View Dependent Claims (22)
-
Specification