Validating document content prior to format conversion based on a calculated threshold as a function of document size
First Claim
Patent Images
1. A method comprising:
- receiving, by a processing device, an electronic publication in a first format;
generating, by the processing device, a document object model (DOM) tree for the electronic publication;
prior to conversion of the electronic publication to a second format, determining, by the processing device, the electronic publication will contain errors after conversion of the electronic publication to the second format by applying one or more rules associated with the second format to the DOM tree and identifying a plurality of errors in the electronic publication;
determining, by the processing device, a first error type associated with a first error of the plurality of errors;
determining, by the processing device, a second error type associated with a second error of the plurality of errors;
assigning a first weight to the first error type and a second weight to the second error type, wherein the first weight represents a severity associated with the first error type, and wherein the second weight represents a severity associated with the second error type;
calculating, by the processing device, an error metric based on the first weight assigned to the first error type and the second weight assigned to the second error type;
determining, by the processing device, a size of the electronic publication;
calculating, by the processing device, an error threshold as a function of the size of the electronic publication, wherein the error threshold is directly proportional to the size of the electronic publication;
determining, by the processing device, the error metric does not exceed the error threshold; and
converting the electronic publication from the first format to the second format in response to determining the error metric does not exceed the error threshold.
1 Assignment
0 Petitions
Accused Products
Abstract
A content validation module receives an electronic media item in a first format. The content validation module may determine whether the electronic media item will contain errors when the electronic media item is converted to a second format. The content validation module may also obtain an error metric for the electronic media item and may refrain from converting the electronic media item to the second format if the error metric exceeds an error threshold.
49 Citations
21 Claims
-
1. A method comprising:
-
receiving, by a processing device, an electronic publication in a first format; generating, by the processing device, a document object model (DOM) tree for the electronic publication; prior to conversion of the electronic publication to a second format, determining, by the processing device, the electronic publication will contain errors after conversion of the electronic publication to the second format by applying one or more rules associated with the second format to the DOM tree and identifying a plurality of errors in the electronic publication; determining, by the processing device, a first error type associated with a first error of the plurality of errors; determining, by the processing device, a second error type associated with a second error of the plurality of errors; assigning a first weight to the first error type and a second weight to the second error type, wherein the first weight represents a severity associated with the first error type, and wherein the second weight represents a severity associated with the second error type; calculating, by the processing device, an error metric based on the first weight assigned to the first error type and the second weight assigned to the second error type; determining, by the processing device, a size of the electronic publication; calculating, by the processing device, an error threshold as a function of the size of the electronic publication, wherein the error threshold is directly proportional to the size of the electronic publication; determining, by the processing device, the error metric does not exceed the error threshold; and converting the electronic publication from the first format to the second format in response to determining the error metric does not exceed the error threshold. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus comprising:
a processing device to; receive an electronic publication in a first format; prior to conversion of the electronic publication to a second format, determine the electronic publication will contain one or more errors upon conversion of the electronic publication to the second format by applying one or more rules associated with the second format to a document object model (DOM) tree for the electronic publication and identify a plurality of errors in the electronic publication; determine a first error type associated with a first error of the plurality of errors; determine a second error type associated with a second error of the plurality of errors; assign a first weight to the first error type and a second weight to the second error type, wherein the first weight represents a severity associated with the first error type, and wherein the second weight represents a severity associated with the second error type; calculate an error metric based on the first weight assigned to the first error type and the second weight assigned to the second error type; determine, by the processing device, a size of the electronic publication; calculate an error threshold as a function of the size of the electronic publication, wherein the error threshold is directly proportional to the size of the electronic publication; determine the error metric does not exceed the error threshold; and convert the electronic publication from the first format to the second format in response to a determination that the error metric does not exceed the error threshold. - View Dependent Claims (7, 8, 9, 10, 11, 12, 13)
-
14. A non-transitory computer-readable storage medium storing instructions which, when executed, cause a processing device to perform a method comprising:
-
receiving, by the processing device, an electronic publication in a first format; prior to conversion of the electronic publication to a second format, determining, by the processing device, the electronic publication will contain one or more errors upon conversion of the electronic publication to the second format by applying one or more rules associated with the second format to a document object model (DOM) tree for the electronic publication and identifying a plurality of errors in the electronic publication; determining, by the processing device, a first error type associated with a first error of the plurality of errors; determining, by the processing device, a second error type associated with a second error of the plurality of errors; assigning a first weight to the first error type and a second weight to the second error type, wherein the first weight represents a severity associated with the first error type, and wherein the second weight represents a severity associated with the second error type; calculating, by the processing device, an error metric based on the first weight assigned to the first error type and the second weight assigned to the second error type; determining, by the processing device, a size of the electronic publication; calculating, by the processing device, an error threshold as a function of the size of the electronic publication, wherein the error threshold is directly proportional to the size of the electronic publication; determining, by the processing device, the error metric does not exceed the error threshold; and converting the electronic publication from the first format to the second format in response to determining the error metric does not exceed the error threshold. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21)
-
Specification