Patent ID: 11960818
Assignee: ADOBE INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. 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.