×

Validating document content prior to format conversion based on a calculated threshold as a function of document size

  • US 9,996,501 B1
  • Filed: 06/28/2012
  • Issued: 06/12/2018
  • Est. Priority Date: 06/28/2012
  • Status: Active Grant
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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×