Dynamic copyfitting parameter estimation
Abstract
Embodiments are disclosed for real-time copyfitting using a shape of a content area and input text. A content area and an input text for performing copyfitting using a trained classifier is received. A number of remaining characters in the content area is computed in real-time using the input, the computing performed in response to receiving additional input text, wherein computing, in real-time, the number of remaining characters in the content area using the input text includes generating, by the trained classifier, a set of weights including a first set of one or more weights for the input text and a second set of one or more weights for the content area. The first set of one or more weights, the second set of one or more weights, the input text, and the additional input text, and a copyfitting parameter indicating a number of additional characters to be fitted into the content area are determined based on the content area. The copyfitting parameter and the number of remaining characters are presented in real-time.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 0.
Claims (8 — 2 Independent, 6 Dependent)
- Claim 1Independent Claim
A method comprising: receiving a content area of an electronic document and input text for copyfitting into the content area; classifying, by a trained classifier, a shape of the content area; generating a set of weights based on the classified shape of the content area, the set of weights including a first set of one or more weights for the input text and a second set of one or more weights for the content area; determining copyfitting parameters for the content area based on content area features, the first set of one or more weights, the second set of one or more weights, and the input text, the copyfitting parameters including an indication of a number of remaining characters that can be inserted into the content area; and presenting, in real-time, the copyfitting parameters.
- Claim 2Depends on #1
The method of claim 1, wherein the content area features include a minimum content area height, a maximum content area height, a content area width, and an area inside the content area.
- Claim 3Depends on #2
The method of claim 2, wherein input text includes a number of characters, an area covered by the input text, and a width of the input text, wherein each character has a font, a character height, and a character width.
- Claim 4Depends on #3
The method of claim 3, wherein determining the copyfitting parameters for the content area comprises: applying the first set of one or more weights to the number of characters, a number of words in the input text, a width of the input text, an average width of a character, and a line height; and applying the second set of one or more weights to the minimum content area height, the maximum content area height, the content area width, or the content area.
- Claim 5Depends on #1
The method of claim 1, wherein the first set of one or more weights for the input text comprises a weight for one or more of a number of characters in an input text, a number of words in the input text, an area covered by the input text, or a sum of the widths of characters in the input text.
- Claim 6Depends on #1
The method of claim 1, wherein the second set of one or more weights for the content area comprises a weight for one or more of a minimum width of a content area, a maximum width of the content area, a content area height, or area of the content area.
- Claim 7Depends on #1
The method of claim 1, wherein the copyfitting parameters further indicate a number of additional words or lines that can be inserted into the content area.
- Claim 8Independent Claim
A system comprising: a memory component; and a processing device coupled to the memory component, the processing device to perform operations comprising: receiving a content area of an electronic document and input text for copyfitting into the content area; classifying, by a trained classifier, a shape of the content area; generating a set of weights based on the classified shape of the content area, the set of weights including a first set of one or more weights for the input text and a second set of one or more weights for the content area; determining copyfitting parameters for the content area based on content area features, the first set of one or more weights, the second set of one or more weights, and the input text, the copyfitting parameters including an indication of a number of remaining characters that can be inserted into the content area; and presenting, in real-time, the copyfitting parameters.
Technical Overview & Description
BACKGROUND In electronic documents, creating layouts of content within available space is a difficult task often requiring iterations of changes between a designer and an editor. Copyfitting is a process of fitting a specific amount of content into the available space. The editor analyzes the content and any remaining available space to determine if the amount of content (e.g., text characters) is suitable for the available space or if content should be added or removed to optimize a perceptual characteristic of the content. SUMMARY Introduced here are techniques/technologies that relate to dynamically estimating copyfitting parameters for electronic documents. In some embodiments, a copyfitting estimation system computes a copyfitting parameter using a content area and input text. To compute the copyfitting parameter, a content area and input text to the content area are received through a user interface. The content area is selected using a user interface of a document publishing system. A set of weights are applied to features of the input text and the content area to compute the remaining characters, words, or lines in real-time as input text is being received. To generate the set of weights, for each existing shape of a content area, a classifier is trained to learn a relative importance of various perceptual aspects of the input text and dimension features of the content area. A perceptual aspect of the input text includes a typeface, a font size, and spacing between lines of font. A dimension feature of the content area includes height, width, shape, and any additional information that defines the shape such as minimum width or maximum width. Each trained classifier generates a set of weights that are associated with a different shape of the content area (e.g., square, triangle, irregular shape). After identifying the shape of the content area selected in the user interface, the corresponding set of weights generated by the classifier associated with the shap
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (13)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- “
- Copyfitting
- ”
- , Retrieved from
- <
- https://draftingmanuals.tpub.com/14066/css/Copyfitting-44.htm
- >
- , retrieved on Jul. 21, 2023, pp. 1-3.
- “
- Editing