# US 2018/0004712 A1 · High Quality Setting of Text for Print, With Full Control Over Layout, Using a Web Browser

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0004712 A1
- Document ID: US20180004712A1
- Status: Published application
- Kind: A1
- Application number: 15/545,110
- Filed: 2015-05-21
- Published: 2018-01-04
- Earliest claimed: 2015-01-29
- Assignees: Hewlett-Packard Development Company, L.P.
- Applicants: Hewlett-Packard Development Company, L.P.
- Inventors: Tamir Hassan; Damera Venkata
- Web page: https://patentgrep.com/patent/US20180004712A1

## CPC

- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/109: Font handling; Temporal or kinetic typography
- H04N 1/0044: {for image preview or review, e.g. to help the user position a sheet}
- H04N 1/00464: {using browsers, i.e. interfaces based on mark-up languages}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Described herein are systems and methods for formatting text for generating a print document based on a web document. For example, in some examples, a subset of characters of a first element of a web document is wrapped in a second element. Further, the onscreen position of the subset is determined based on the wrapping. In addition, the position on a print document for the subset is determined based on the determined onscreen position.

## Claims

### Claim 1

A method for formatting text, the method comprising:
wrapping a subset of characters of a first element of a web document in a second element;
determining an onscreen position of the subset based on the wrapping; and
determining a position on a print document for the subset based on the determined onscreen position.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining an attribute of the subset; and
scaling the attribute, wherein determining the position on the print document is further based on the scaling.

### Claim 3 (depends on 2)

The method of claim 2, wherein the attribute comprises at least one of a font size and a line spacing.

### Claim 4 (depends on 2)

The method of claim 2, further comprising scaling the onscreen position based on the scaling of the attribute.

### Claim 5 (depends on 1)

The method of claim 1, wherein the web document is in HyperText Markup Language, wherein the print document is in Portable Document Format and the method comprises outputting the print document.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining coordinates for a valid breaking point in the web document; and
determining a second onscreen position of a second subset of characters of the first element based on the coordinates for the valid breaking point and the onscreen position of the subset, wherein the second subset comprises a hyphenated word that directly follows the subset in the web document.

### Claim 7

An apparatus for formatting text comprising:
a memory; and
a processor configured to:
wrap a subset of characters of a first element of a web document in a second element;
determine an onscreen position of the subset based on the wrapping; and
determine a position on a print document for the subset based on the determined onscreen position.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the processor is further configured to:
determine an attribute of the subset; and
scale the attribute, wherein determining the position on the print document is further based on the scaling.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the attribute comprises at least one of a font size and a line spacing.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to scale the onscreen position based on the scaling of the attribute.

### Claim 11 (depends on 7)

The apparatus of claim 7, wherein the web document is in HyperText Markup Language, the print document is in Portable Document Format and the method comprises outputting the print document.

### Claim 12

A non-transitory computer-readable storage medium comprising a set of computer-readable instructions stored thereon, which, when executed by a processing system, cause the processing system to:
wrap a subset of characters of a first element of a web document in a second element;
determine an onscreen position of the subset based on the wrapping; and
determine a position on a print document for the subset based on the determined onscreen position.

### Claim 13 (depends on 12)

The medium of claim 12, wherein the instructions cause the processing system to:
determine an attribute of the subset; and
scale the attribute, wherein determining the position on the print document is further based on the scaling.

### Claim 14 (depends on 13)

The medium of claim 13, wherein the attribute comprises at least one of a font size and a line spacing.

### Claim 15 (depends on 13)

The medium of claim 13, wherein the instructions cause the processing system to scale the onscreen position based on the scaling of the attribute.
