Patent ID: 7420701

Claim:
A method for accurately recognizing a language format of an input imaging data stream when no explicit language switch is present, the method comprising: using a sniffer process to analyze an initial sample of the input imaging data stream to determine the language format, wherein the sniffer process comprises: dynamically enumerating through one or more language recognizers, including heuristically selecting an order for enumerating through the one or more language recognizers, comprising: maintaining a plurality of separate sets of heuristics according to environmental factors, the separate sets of heuristics providing the order for enumerating through the one or more language recognizers, and the environmental factors being selected from the group of: a location of a device rendering the job represented by the input imaging data stream; and a locality of a user generating the input imaging data stream; selecting one of the sets of heuristics according to one or more environmental factors associated with the input imaging data stream; and using the selected set of heuristics to select an order for enumerating through the one or more language recognizers; pre-reading a sample size associated with a first language recognizer of the one or more language recognizers; invoking with the initial sample a callback function associated with the first language recognizer; and determining whether the first language recognizer recognizes the language format; and if the language format is recognized during the sniffer process, rendering a job represented by the input imaging data stream.