# US 12,118,291 B2 · Method and apparatus, electronic device and storage media for content presentation

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

- Number: US 12,118,291 B2
- Document ID: US12118291B2
- Status: Granted
- Kind: B2
- Application number: 18/542,309
- Filed: 2023-12-15
- Published: 2024-04-11
- Granted: 2024-10-15
- Earliest claimed: 2022-01-27
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Kailin Xu
- Web page: https://patentgrep.com/patent/US12118291B2

## CPC

- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/177: of tables; using ruled lines
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/157: using dictionaries or tables
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/18: of spreadsheets (form-filling G06F40/174)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the disclosure provide a method, an apparatus and an electronic device for content presentation. When a selection operation for a cell in a target table is detected, the content of the rich text in the selected cell can be obtained, and the style of the unit rich text can be obtained. Then, the target rich text can be generated based on the obtained content and style of the obtained rich text, where the style of the target rich text may be the same as that of the rich text, and the target rich text may be presented in a formula editing region of the target table. In this way, the content styles of the selected cells of content styles in the formula editing region in the target table can be kept consistent, so that the whole target table can be more regular.

## Claims

### Claim 1

A method for content presentation, comprising:
in response to detecting a selection operation for a cell in a target table, obtaining a content of a rich text in the cell, and determining a style of the rich text;
generating a target rich text to be presented in a formula editing region of the target table based on the content of the rich text and the style of the rich text, wherein the target rich text has the same style as the rich text;
presenting the target rich text in the formula editing region of the target table; and
in response to receiving a style change instruction, changing the style of the rich text and the style of the target rich text according to the style change instruction, wherein the style change instruction is used to change the style of the rich text or the style of the target rich text.

### Claim 2 (depends on 1)

The method of claim 1, wherein the generating a target rich text to be presented in a formula editing region of the target table based on the content of the rich text and the style of the rich text comprises:
generating a style rendering instruction based on the style of the rich text;
inputting the style rendering instruction and the content into a rich text editor, wherein the rich text editor is used to perform style rendering for the content according to the style rendering instruction; and
generating the target rich text based on a result of the rendering of the content by the rich text editor.

### Claim 3 (depends on 1)

The method of claim 1, wherein the target table comprises a presentation interface, the presentation interface comprises at least one style control, and each style control is used to indicate a rendering style; and
the method further comprises:
in response to detecting a selection operation for the formula editing region, determining a rendering style corresponding to the target rich text; and
adjusting a way for presenting the style control corresponding to the respective determined rendering style in the presentation interface.

### Claim 4 (depends on 3)

The method of claim 3, wherein the determining a rendering style corresponding to the target rich text comprises:
obtaining rendering styles that are applied when performing the rendering for the content by the rich text editor;
determining at least one applied target rendering style based on the number of rendering characters corresponding to the respective rendering styles from the rendering styles that are applied; and
determining the rendering style corresponding to the target rich text based on the at least one applied target rendering style.

### Claim 5 (depends on 1)

The method of claim 1,
wherein the style change instruction is a first style change instruction, and the first style change instruction is used to change the style of the rich text.

### Claim 6 (depends on 5)

The method of claim 5, wherein the target table comprises a presentation interface, the presentation interface comprises at least one style control, and each style control is used to indicate a rendering style; and
the first style change instruction is generated by:
generating the first style change instruction based on a triggering operation for the presented style control.

### Claim 7 (depends on 1)

The method of claim 1,
wherein the style change instruction is a second style change instruction, and the second style change instruction is used to change the style of the target rich text.

### Claim 8 (depends on 7)

The method of claim 7, wherein the second style change instruction is generated by:
in response to detecting a selection operation for the formula editing region, presenting an editing operation interface corresponding to the rich text editor, wherein the editing operation interface comprises at least one editing icon; and
generating the second style change instruction based on a selection operation for an editing icon in the editing operation interface.

### Claim 9 (depends on 1)

The method of claim 1, wherein the style of the rich text comprises at least one of the following:
a font, a glyph, a hyperlink, an attachment link, or a link for indicating a specific user.

### Claim 10

An electronic device, comprising:
one or more processors; and
a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for content presentation comprising:
in response to detecting a selection operation for a cell in a target table, obtaining a content of a rich text in the selected cell, and determining a style of the rich text;
generating a target rich text to be presented in a formula editing region of the target table based on the content of the rich text and the style of the rich text, wherein the target rich text has the same style as the rich text;
presenting the target rich text in the formula editing region of the target table; and
in response to receiving a style change instruction, changing the style of the rich text and the style of the target rich text according to the style change instruction, wherein the style change instruction is used to change the style of the rich text or the style of the target rich text.

### Claim 11 (depends on 10)

The device of claim 10, wherein the generating a target rich text to be presented in a formula editing region of the target table based on the content of the rich text and the style of the rich text comprises:
generating a style rendering instruction based on the style of the rich text;
inputting the style rendering instruction and the content into a rich text editor, wherein the rich text editor is used to perform style rendering for the content according to the style rendering instruction; and
generating the target rich text based on a result of the rendering of the content by the rich text editor.

### Claim 12 (depends on 10)

The device of claim 10, wherein the target table comprises a presentation interface, the presentation interface comprises at least one style control, and each style control is used to indicate a rendering style; and
the method further comprises:
in response to detecting a selection operation for the formula editing region, determining a rendering style corresponding to the target rich text; and
adjusting a way for presenting the style control corresponding to the respective determined rendering style in the presentation interface.

### Claim 13 (depends on 12)

The device of claim 12, wherein the determining a rendering style corresponding to the target rich text comprises:
obtaining rendering styles that are applied when performing the rendering for the content by the rich text editor;
determining at least one applied target rendering style based on the number of rendering characters corresponding to the respective rendering styles from the rendering styles that are applied; and
determining the rendering style corresponding to the target rich text based on the at least one applied target rendering style.

### Claim 14 (depends on 10)

The device of claim 10, further comprising:
wherein the style change instruction is a first style change instruction, and the first style change instruction is used to change the style of the rich text.

### Claim 15 (depends on 14)

The device of claim 14, wherein the target table comprises a presentation interface, the presentation interface comprises at least one style control, and each style control is used to indicate a rendering style; and
the first style change instruction is generated by:
generating the first style change instruction based on a triggering operation for the presented style control.

### Claim 16 (depends on 10)

The device of claim 10,
wherein the style change instruction is a second style change instruction, and the second style change instruction is used to change the style of the target rich text.

### Claim 17 (depends on 16)

The device of claim 16, wherein the second style change instruction is generated by:
in response to detecting a selection operation for the formula editing region, presenting an editing operation interface corresponding to the rich text editor, wherein the editing operation interface comprises at least one editing icon; and
generating the second style change instruction based on a selection operation for an editing icon in the editing operation interface.

### Claim 18 (depends on 10)

The device of claim 10, wherein the style of the rich text comprises at least one of the following:
a font, a glyph, a hyperlink, an attachment link, or a link for indicating a specific user.

### Claim 19

A non-transitory computer-readable medium storing a computer program thereon, the program, when executed by a processor, implementing a method for content presentation comprising:
in response to detecting a selection operation for a cell in a target table, obtaining a content of a rich text in the selected cell, and determining a style of the rich text;
generating a target rich text to be presented in a formula editing region of the target table based on the content of the rich text and the style of the rich text, wherein the target rich text has the same style as the rich text;
presenting the target rich text in the formula editing region of the target table; and
in response to receiving a style change instruction, changing the style of the rich text and the style of the target rich text according to the style change instruction, wherein the style change instruction is used to change the style of the rich text or the style of the target rich text.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the generating a target rich text to be presented in a formula editing region of the target table based on the content of the rich text and the style of the rich text comprises:
generating a style rendering instruction based on the style of the rich text;
inputting the style rendering instruction and the content into a rich text editor, wherein the rich text editor is used to perform style rendering for the content according to the style rendering instruction; and
generating the target rich text based on a result of the rendering of the content by the rich text editor.
