13. The method of claim 12 , wherein the analysis of the words in different text lines comprises identifying words that intersect the defined alignment guide.
12. A method for (i) analyzing a document that comprises a plurality of words, each word comprising an associated set of glyphs, each glyph having location coordinates, and (ii) generating structural elements that define structure in said document based on said analysis, the method comprising: defining an alignment guide for a set of words in different text lines based on the location coordinates of the glyphs at the edges of the words; removing locations from the alignment guide based on an analysis of the words in different text lines, wherein each particular location of the alignment guide corresponds to a particular text line; associating groups of text lines as aligned groups of text lines based on remaining locations of the alignment guide; using the aligned groups of text lines to specify the structural elements; and defining a structured document based on the glyphs, the aligned groups of text lines, and the structural elements.