Alignment and reflow of displayed character images
First Claim
1. A system comprising:
- one or more processors;
computer-readable media coupled to the one or more processors;
a character spacing module, stored in the computer-readable media and executed by the one or more processors, configured to determine, from a page image of text, a character spacing including (i) a trailing edge character spacing of an end-of-line character of a first line, the trailing edge character spacing corresponding to a first spacing between a trailing edge of the end-of-line character and an end-of-line edge of a character frame associated with the end-of-line character and (ii) a leading edge character spacing of a start-of-line character of a next line subsequent to the first line, the leading edge character spacing corresponding to a second spacing between a leading edge of the start-of-line character and a start-of-line edge of a character frame associated with the start-of-line character, the trailing edge character spacing separate from the leading edge character spacing;
a character location module, stored in the computer-readable media and executed by the one or more processors, configured to identify characters that are not to be placed at a start of a line and characters that are not to be placed at an end of a line of text from the page image of text; and
an alignment and reflow module, stored in the computer-readable media and executed by the one or more processors, configured to generate an initial layout of the text for display on an electronic display that maintains the character spacing from the page image of text between the end-of-line character and the start-of-line character when displayed on a same line of text.
1 Assignment
0 Petitions
Accused Products
Abstract
Determination of an underlying grid structure that facilitates layout of East Asian text is disclosed. The underlying grid structure includes both a size of character frames and a size of a text block frame. The East Asian text may be obtained from a scan of printed material that has the text formatted according to layout conventions established by the publisher. The text may be reformatted to appear on a display of an electronic device in a manner similar to the formatting in the original scanned document. Reformatting may include reflowing the text in order to fit a greater or lesser number of characters on a line. The reflowing may maintain character spacing from the original document and follow formatting rules against locating certain characters at the start or end of a line.
-
Citations
19 Claims
-
1. A system comprising:
-
one or more processors; computer-readable media coupled to the one or more processors; a character spacing module, stored in the computer-readable media and executed by the one or more processors, configured to determine, from a page image of text, a character spacing including (i) a trailing edge character spacing of an end-of-line character of a first line, the trailing edge character spacing corresponding to a first spacing between a trailing edge of the end-of-line character and an end-of-line edge of a character frame associated with the end-of-line character and (ii) a leading edge character spacing of a start-of-line character of a next line subsequent to the first line, the leading edge character spacing corresponding to a second spacing between a leading edge of the start-of-line character and a start-of-line edge of a character frame associated with the start-of-line character, the trailing edge character spacing separate from the leading edge character spacing; a character location module, stored in the computer-readable media and executed by the one or more processors, configured to identify characters that are not to be placed at a start of a line and characters that are not to be placed at an end of a line of text from the page image of text; and an alignment and reflow module, stored in the computer-readable media and executed by the one or more processors, configured to generate an initial layout of the text for display on an electronic display that maintains the character spacing from the page image of text between the end-of-line character and the start-of-line character when displayed on a same line of text. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer-implemented method comprising:
-
under control of one or more computer systems configured with specific executable instructions, determining a character frame size, the character frame size based at least in part on at least one distance between centers of at least two full-width characters; calculating a first distance between a trailing edge of a final character in a line of characters and a trailing edge of a first character frame having the character frame size and surrounding the final character; calculating a second distance between a leading edge of an initial character in a next line of characters and a leading edge of a second character frame having the character frame size and surrounding the initial character, wherein the first distance is different than the second distance; and setting a spacing between the final character and the initial character as the sum of the first distance and the second distance for a layout in which the final character and the initial character are adjacent characters in a same line of characters. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14)
-
-
15. One or more non-transitory computer-readable media storing computer-executable instructions that, when executed on one or more processors, cause a computing device to perform acts comprising:
-
identifying a character at a start of a line of text as a character that is not to be placed at the start of the line; determining if the character that is not to be placed at the start of a line is hanging punctuation that may be hanged beyond an edge of a text bock frame; when the character that is not to be paced at the start of the line is the hanging punctuation, moving the hanging punctuation to a location directly following an end of a previous line of text that is beyond the edge of the text bock frame and adjusting spacing between characters in the line of text in response to the moving of the character that is not to be placed at the start of the line; and when the character that is not to be paced at the start of the line is not the hanging punctuation, moving a final character of the previous line, of text to the start of the line of text and adjusting spacing between characters in the previous line of text based as least in part on moving the final character. - View Dependent Claims (16, 17, 18, 19)
-
Specification