# US 2026/0064934 A1 · Method and apparatus, device, medium and program product for aligning texts

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

- Number: US 2026/0064934 A1
- Document ID: US20260064934A1
- Status: Published application
- Kind: A1
- Application number: 19/315,348
- Filed: 2025-08-29
- Published: 2026-03-05
- Earliest claimed: 2024-08-30
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Xinyue WANG
- Web page: https://patentgrep.com/patent/US20260064934A1

## CPC

- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 3/0485: Scrolling or panning
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure relate to a method and apparatus for aligning texts, a device, a medium and a program product. The method comprises displaying an original text and a modified text of the original text. The method also comprises receiving hovering of a cursor over a first line in one text of the original text or the modified text. The method also includes highlighting the first line and a second line in the other text of the original text or the modified text corresponding to the first line based on hovering of the cursor over the first line. The method further includes in response to receiving an operation for clicking associated with the hovering cursor, aligning the first line with the second line to implement text alignment.

## Claims

### Claim 1

A method for aligning texts, comprising:
displaying an original text and a modified text for the original text:
receiving hovering of a cursor over a first line in one text of the original text or the modified text:
highlighting the first line and a second line in the other text of the original text or the modified text corresponding to the first line based on the hovering of the cursor over the first line; and
in response to receiving an operation for clicking associated with the hovering cursor, aligning the first line with the second line to implement text alignment.

### Claim 2 (depends on 1)

The method of claim 1, wherein highlighting the first line and a second line in the other text of the original text or the modified text corresponding to the first line comprises:
determining a duration of the cursor hovering over the first line;
in response to the duration exceeding a predetermined duration, determining the second line corresponding to the first line in the other text; and
highlighting the first line and the second line.

### Claim 3 (depends on 2)

The method of claim 2, wherein highlighting the first line and a second line in the other text of the original text or the modified text corresponding to the first line further comprises:
displaying a connecting line for connecting the first line with the second line; or
displaying a prompt information for an alignment operation.

### Claim 4 (depends on 3)

The method of claim 3, wherein the connecting line is positioned in a gap between the original text and the modified text.

### Claim 5 (depends on 1)

The method of claim 1, wherein aligning the first line with the second line to implement text alignment comprises:
in response to receiving the operation for clicking associated with the hovering cursor, scrolling the other text; and
in response to the second line in the other text being at the same horizontal position as the first line, stopping the scrolling to align the second line with the first line.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
displaying a synchronous scroll control and an asynchronous scroll control for a scroll operation:
in response to the synchronous scroll control being selected, receiving a first scroll operation for the original text or the modified text; and
synchronously scrolling the original text and the modified text based on the first scroll operation.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
in response to the asynchronous scroll control being selected, receiving a second scroll operation for the original text or the modified text; and
scrolling the original text or the modified text based on the second scroll operation.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining an added portion and a deleted portion based on the original text and the modified text:
highlighting the added portion in the modified text; and
highlighting the deleted portion in the original text.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
determining a number of a set of sub-regions in a navigation bar associated with the one text based on a number of a set of paragraphs in the one text:
determining a second length of a first sub-region in a set of sub-regions corresponding to the paragraph based on a first length of a paragraph in the set of paragraphs; and
displaying the navigation bar based on the number of the set of sub-regions and the second length.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
receiving hovering of the cursor over a second sub-region in the set of sub-regions; and
displaying a number of a set of modifications in a paragraph in the set of paragraphs corresponding to the second sub-region based on the hovering of the cursor over the second sub-region.

### Claim 11 (depends on 10)

The method of claim 10, wherein the second sub-region comprises a set of modification marks corresponding to the set of modifications; and the method further comprises:
receiving hovering of the cursor over a target modification mark in the set of modification marks:
enlarging the target modification mark;
in response to receiving an operation for clicking the enlarged target modification mark, jumping to a modification portion in the one text corresponding to the target modification mark; and
highlighting the modification portion for a predetermined duration.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
displaying the navigation bar at one of following positions: above, below, to the left or to the right of the one text.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
displaying the original text in one column of a left column and a right column; and
displaying the modified text in the other column of the left column and the right column.

### Claim 14

An electronic device, comprising:
at least one processor; and
a memory for storing instructions which, when executed by the at least one processor, causes the at least one processor to:
display an original text and a modified text for the original text:
receive hovering of a cursor over a first line in one text of the original text or the modified text:
highlight the first line and a second line in the other text of the original text or the modified text corresponding to the first line based on the hovering of the cursor over the first line; and
in response to receiving an operation for clicking associated with the hovering cursor, align the first line with the second line to implement text alignment.

### Claim 15 (depends on 14)

The device of claim 14, wherein instructions causing the processor to highlight the first line and a second line in the other text of the original text or the modified text corresponding to the first line comprises instructions causing the processor to:
determine a duration of the cursor hovering over the first line;
in response to the duration exceeding a predetermined duration, determine the second line corresponding to the first line in the other text; and
highlight the first line and the second line.

### Claim 16 (depends on 15)

The device of claim 15, wherein instructions causing the processor to highlight the first line and a second line in the other text of the original text or the modified text corresponding to the first line further comprises instructions causing the processor to:
display a connecting line for connecting the first line with the second line: or
display a prompt information for an alignment operation.

### Claim 17 (depends on 16)

The device of claim 16, wherein the connecting line is positioned in a gap between the original text and the modified text.

### Claim 18 (depends on 14)

The device of claim 14, wherein instructions causing the processor to align the first line with the second line to implement text alignment comprises instructions causing the processor to:
in response to receiving the operation for clicking associated with the hovering cursor, scroll the other text; and
in response to the second line in the other text being at the same horizontal position as the first line, stop the scrolling to align the second line with the first line.

### Claim 19 (depends on 14)

The device of claim 14, the processor is further caused to:
display a synchronous scroll control and an asynchronous scroll control for a scroll operation:
in response to the synchronous scroll control being selected, receive a first scroll operation for the original text or the modified text; and
synchronously scroll the original text and the modified text based on the first scroll operation.

### Claim 20

A non-transitory computer-readable storage medium with computer programs stored thereon which, when executed by a processor, causing the processor to:
display an original text and a modified text for the original text:
receive hovering of a cursor over a first line in one text of the original text or the modified text:
highlight the first line and a second line in the other text of the original text or the modified text corresponding to the first line based on the hovering of the cursor over the first line; and
in response to receiving an operation for clicking associated with the hovering cursor, align the first line with the second line to implement text alignment.
