Automatic detection and removal of typographic rivers in electronic documents
AssigneeAdobe Inc.
InventorsAshish Jain, Arushi Jain
Life of this patent
Estimating the term…
Abstract
Embodiments are disclosed for removing typographic rivers from electronic documents. The method may include receiving an electronic document including a plurality of words for automatic typographic correction. A typographic river is identified in the electronic document, the typographic river including a plurality of nodes, each node including an empty glyph. A candidate adjustment that removes the first node of the plurality of nodes is identified and the candidate adjustment is applied to the electronic document.
Claims17
A method comprising:
- receiving an electronic document including a plurality of words for automatic typographic correction;
- identifying a typographic river in the electronic document based on positions of empty glyphs on consecutive lines of text in the electronic document, wherein the typographic river includes a plurality of nodes, wherein each node comprises an empty glyph;
- identifying a candidate adjustment that removes a first node of the plurality of nodes by:
- searching the electronic document for a hyphenation point that is located in a vicinity of a first line of text;
- and
- computing, using a fitting parameter for the first line of text, an adjustment factor for a character spacing, a word spacing, or a glyph scaling for the first line of text;
- and
- applying the candidate adjustment to the electronic document.
A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
- receiving an electronic document including a plurality of words for automatic typographic correction;
- identifying a typographic river in the electronic document based on positions of empty glyphs on consecutive lines of text in the electronic document, wherein the typographic river includes a plurality of nodes, wherein each node comprises an empty glyph;
- identifying a candidate adjustment that removes a first node of the plurality of nodes by:
- searching the electronic document for a hyphenation point that is located in a vicinity of a first line of text;
- and
- computing, using a fitting parameter for the first line of text, an adjustment factor for a character spacing, a word spacing, or a glyph scaling for the first line of text;
- and
- applying the candidate adjustment to the electronic document.
A system comprising:
- a memory component;
- and
- a processing device coupled to the memory component, the processing device to perform operations comprising:
- receiving an electronic document including a plurality of words for automatic typographic correction;
- detecting a typographic river, the detecting comprising:
- identifying a first position of a first empty glyph in a first line of text;
- identifying a second position of a second empty glyph in a second line of text;
- identifying a third position of a third empty glyph in a third line of text;
- comparing a first distance between the first position and the second position with a threshold distance;
- comparing a second distance between the second position and the third position with the threshold distance;
- and
- in response to determining that the first distance and the second distance are less than the threshold distance, identifying the first empty glyph, second empty glyph, and third empty glyph as nodes in the typographic river;
- identifying a candidate adjustment that increases the first distance or the second distance to a distance that is greater than the threshold distance by computing, using a fitting parameter, an adjustment factor for a character spacing, a word spacing, or a glyph scaling for the first line of text, wherein the first line of text includes a hyphenation point;
- and
- applying the candidate adjustment to the electronic document.
Dependencies are inferred from the claim text.