Text processing method, apparatus, device, and product

By dynamically adjusting the highlighting method based on text conditions on the terminal device, the problem of clutter caused by word display in long text reading is solved, thus improving the user's reading experience.

CN122431775APending Publication Date: 2026-07-21BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING ZITIAO NETWORK TECH CO LTD
Filing Date
2026-04-20
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

When users input long texts, the existing technology of highlighting words as the smallest unit makes the text appear fragmented, affecting the user's immersive reading experience.

Method used

The terminal device analyzes different conditions of the text and uses different highlighting methods to highlight different parts of the text, including highlighting sentences or words as the smallest unit, and switching the display method when the text meets different conditions, such as switching to displaying sentences as the smallest unit when the number of words exceeds a threshold.

Benefits of technology

It improves the user's reading experience, avoids clutter caused by excessive highlighted content, and enhances the user's immersive reading experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122431775A_ABST
    Figure CN122431775A_ABST
Patent Text Reader

Abstract

Text processing methods, apparatuses, devices, and products are described herein. A method includes obtaining a first text. The method also includes displaying the first text, wherein in response to the first text satisfying a first condition, a first portion of the first text is highlighted in a first highlighting manner. The method also includes obtaining a second text. The method also includes displaying the second text, wherein in response to the second text satisfying a second condition, a second portion of the second text is highlighted in a second highlighting manner. The second condition is different from the first condition, and the second highlighting manner is different from the first highlighting manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to the field of human-computer interaction, and more specifically to text processing methods, devices, equipment, and products. Background Technology

[0002] With the rapid development of smart terminal devices, various terminal products have become deeply integrated into users' daily lives, serving as important carriers for social interaction, life, and work. Against this backdrop, various application software have emerged and rapidly gained popularity, becoming primary channels for users to record their observations, share their lives, and convey their opinions. Furthermore, users can utilize software such as text (or image, video, etc.) editing tools to perform operations such as text input, formatting adjustments, and content structuring. Further, users can also publish, transmit, and interact with edited content through content sharing platforms. Summary of the Invention

[0003] In a first aspect of the examples herein, a text processing method is provided. The method includes acquiring first text. The method further includes displaying the first text, wherein, in response to the first text satisfying a first condition, a first portion of the first text is highlighted in a first highlighting manner. The method further includes acquiring second text. The method further includes displaying the second text, wherein, in response to the second text satisfying a second condition, a second portion of the second text is highlighted in a second highlighting manner. The second condition differs from the first condition, and the second highlighting manner differs from the first highlighting manner. In this way, a terminal device can analyze the acquired text and highlight different content of the text when different conditions are met, so that the highlighting function of the terminal device can match the characteristics of the text and flexibly and specifically highlight the content of the text, thereby improving the user's experience when reading text.

[0004] In a second aspect of the examples herein, a text processing apparatus is provided. The apparatus includes a first acquisition module configured to acquire first text. The apparatus also includes a first display module configured to display the first text, wherein, in response to the first text satisfying a first condition, a first portion of the first text is highlighted in a first highlighting manner. The apparatus further includes a second acquisition module configured to acquire second text. The apparatus also includes a second display module configured to display the second text, wherein, in response to the second text satisfying a second condition, a second portion of the second text is highlighted in a second highlighting manner. The second condition differs from the first condition, and the second highlighting manner differs from the first highlighting manner. The technical effects of the first aspect of this invention also apply to the second aspect.

[0005] In a third aspect of the examples herein, an electronic device is provided. The electronic device includes one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the method of the first aspect. The technical effects of the first aspect of this invention also apply to the third aspect.

[0006] In a fourth aspect of the examples herein, a computer program product is provided. This computer program product is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions that, when executed, cause a machine to implement the methods of the first aspect. The technical effects of the first aspect of this document also apply to the fourth aspect.

[0007] The summary section is provided to present the chosen concepts in a simplified form, which will be further described in the detailed description below. The summary section is not intended to identify key or principal features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. Attached Figure Description

[0008] The above and other features, advantages, and aspects of the examples herein will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. In the accompanying drawings, the same or similar reference numerals denote the same or similar elements, wherein:

[0009] Figure 1 A schematic diagram of an example environment that can be implemented in accordance with some of the examples in this article is shown.

[0010] Figure 2 A flowchart of a text processing method based on some examples in this article is shown.

[0011] Figures 3A to 3E This diagram illustrates an example of highlighting text using sentences as the smallest unit, based on some examples in this article.

[0012] Figures 4A to 4F This illustration shows a manual modification of some examples from this article to highlight text in sentences as the smallest unit.

[0013] Figures 5A to 5G A schematic diagram is shown illustrating examples highlighted in words as the smallest unit, based on some examples in this article.

[0014] Figure 6 A block diagram of a text processing apparatus according to some examples in this paper is shown.

[0015] Figure 7 Block diagrams of electronic devices according to some examples in this article are shown. Detailed Implementation

[0016] It is understood that all user-related data involved in this technical solution should be obtained and used only after authorization from the user. This means that if it is necessary to use a user's personal information in this technical solution, the user's explicit consent and authorization are required before obtaining this data; otherwise, no related data collection and use will be carried out. It should also be understood that when implementing this technical solution, relevant laws and regulations should be strictly followed in the process of data collection, use, and storage, and necessary technical measures should be taken to protect user data security and ensure the secure use of data.

[0017] The examples herein will now be described in more detail with reference to the accompanying drawings. While some examples of this document are shown in the drawings, it should be understood that this document can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these examples are provided to provide a more thorough and complete understanding of this document. It should be understood that the accompanying drawings and examples are for illustrative purposes only and are not intended to limit the scope of this document.

[0018] In the description of the examples in this document, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "an example" or "the example" should be understood as "at least one example". The terms "first", "second", etc., may refer to different or the same objects unless explicitly stated otherwise. Other explicit and implicit definitions may also be included below.

[0019] As mentioned above, with the rapid development of smart terminal devices, various types of devices have become widely integrated into users' daily lives, serving as the primary medium for social interaction, daily life, and work. Against this backdrop, various application software has emerged and rapidly gained popularity, allowing users to record or share their lives using these applications. Furthermore, users can utilize text editing tools to perform operations such as text input, formatting adjustments, and content structuring. For example, users can use a keyboard or the virtual keyboard on their terminal device to input and edit text, creating text-based media content. Further, users can also publish, transmit, and interact with edited content through content sharing platforms.

[0020] To enhance user interaction, smart terminal devices can automatically and intelligently analyze and identify user-input text to extract keywords. These extracted keywords can then be highlighted, eliminating the need for users to manually highlight key words, thus simplifying user operations and improving the overall user experience.

[0021] In related technologies, smart terminal devices highlight words as the smallest unit. However, when users input long texts, the sheer number of words in the entire article can make the text appear fragmented if the smart terminal device highlights words as the smallest unit, thus affecting the user's immersive reading experience.

[0022] To this end, the examples in this paper provide a text processing scheme. In this scheme, a terminal device executes the text processing scheme by running an application. The terminal device can acquire first text. Then, the terminal device can display the first text. Wherein, in response to the first text satisfying a first condition, the terminal device can highlight a first portion of the first text in a first highlighting mode. Furthermore, the terminal device can also acquire second text. Then, the terminal device can display the second text. Wherein, in response to the second text satisfying a second condition, the terminal device can highlight a second portion of the second text in a second highlighting mode, wherein the second condition is different from the first condition, and the second highlighting mode is different from the first highlighting mode.

[0023] In this way, the terminal device can analyze the acquired text and highlight different content of the text when the text meets different conditions. This allows the terminal device's highlighting function to match the characteristics of the text and flexibly highlight the content of the text in a targeted manner, thereby improving the user's experience when reading the text.

[0024] Figure 1 A schematic diagram of an example environment 100 in which some of the examples in this article can be implemented is shown. For example... Figure 1 As shown, environment 100 includes terminal device 102. The terminal device can be a smartphone, tablet computer, smart wearable device, laptop computer, etc.

[0025] In environment 100, terminal device 102 can run application 104. Users can interact with application 104 through terminal device 102 to obtain information they desire. For example, application 104 can be a text editing tool, a social media platform, or a content publishing platform. Terminal device 102 can display components, text, icons, and other content through the application 104's page.

[0026] In environment 100, terminal device 102 acquires first text 106. The first text 106 can be acquired through user input, reading from local storage, copying and pasting or clipboard acquisition, image recognition, voice recognition acquisition, extraction from chat content, forwarded content, etc.

[0027] In environment 100, terminal device 102, in response to the first text 106 satisfying a first condition, highlights a first portion 108 of the first text 106 using application 104 in a first highlighting mode. The first condition can be related to the language, number of characters, display template, content category, etc., of the text. Highlighting the first portion 108 means that the display mode of the first portion 108 is different from the display mode of other parts of the first text 106, so that the user can focus on the content of the first portion 108 first. In one case, the mode of highlighting the first portion 108 includes changing the font color, bolding the font, changing the background color, displaying italics, increasing the font size, etc. In another case, the first highlighting mode includes highlighting by sentence, highlighting by character, highlighting by word, etc.

[0028] In environment 100, terminal device 102 can also acquire second text 110. The second text 110 can be acquired through user input, reading from local storage, copying and pasting or clipboard acquisition, image recognition, voice recognition, extraction from chat content, forwarded content, etc. In one scenario, the first text 106 and the second text 110 can be different texts entered by the user at different times and on the same interface. In another scenario, the first text 106 and the second text 110 can be obtained by the user continuously editing the same text on the same interface. For example, if the number of characters entered by the user does not exceed the total character threshold, the obtained text is the second text 110. If the user continues to enter text, and the number of characters exceeds the total character threshold, the obtained text is the first text 106.

[0029] In environment 100, terminal device 102, in response to second text 110 satisfying a second condition, highlights a second portion 112 of the second text 110 using application 104 in a second highlighting mode. The second condition can be a condition associated with the text's language, word count, display template, content category, etc., and it differs from the first condition. In one case, the first and second conditions can be complementary. For example, the first condition can be a word count greater than a total word count threshold, while the second condition can be a word count not greater than the total word count threshold.

[0030] In one scenario, after obtaining the first text 106, it is determined whether the first text satisfies a first condition or a second condition. If the first text 106 satisfies the second condition, the corresponding content in the first text 106 is highlighted using a second highlighting method. Similarly, after obtaining the second text 110, it is determined whether the second text 110 satisfies the first condition or the second condition. If the second text 110 satisfies the first condition, the corresponding content in the second text 110 is highlighted using a first highlighting method.

[0031] In one scenario, the first and second highlighting methods can include highlighting at the sentence level, highlighting at the word level, highlighting only words, highlighting only sentences, or a combination of word and sentence highlighting. It should be noted that the first and second highlighting methods are different. For example, when the first highlighting method is highlighting at the sentence level, the second highlighting method can be highlighting at the word level.

[0032] In environment 100, highlighting the second part 112 means that the display method of the second part 112 is different from the display method of other parts of the second text 110 except for the second part 112, so that the user can focus on the content of the second part 112 first. In one case, the way to highlight the second part 112 includes changing the font color, making the font bold, changing the background color, displaying italics, increasing the font size, etc.

[0033] In this way, the terminal device 102 can analyze the acquired text and highlight different content of the text when the text meets different conditions. This allows the highlighting function of the terminal device to match the characteristics of the text and flexibly highlight the content of the text in a targeted manner, thereby improving the text display efficiency and enhancing the user's experience when reading the text.

[0034] Figure 2 A flowchart illustrating some examples of text processing method 200 presented herein is shown. Method 200 can be executed by a terminal device. For example, method 200 can be performed by... Figure 1 The terminal device 102 executes by running application 104. The terminal device can be a smartphone, tablet computer, smart wearable device, laptop computer, etc. Figure 1 In the environment 100 shown, terminal device 102 can run application 104. Users can interact with application 104 through terminal device 102 to obtain information they desire. For example, application 104 can be a text editing tool, a social media platform, or a content publishing platform. Terminal device 102 can display components, text, icons, and other content through the application 104's page.

[0035] It should be noted that the operations performed by the following terminal devices are all executed by running the corresponding applications.

[0036] like Figure 2 As shown, in box 202, the terminal device acquires the first text. For example, in... Figure 1In the environment 100 shown, terminal device 102 acquires first text 106. The first text 106 can be acquired by user input, reading from local storage, copying and pasting or clipboard, image recognition, voice recognition, or extracting from chat content or forwarded content.

[0037] In box 204, the terminal device, in response to the first text satisfying a first condition, highlights a first portion of the first text in a first highlighting mode. For example, in... Figure 1 In the illustrated environment 100, terminal device 102, in response to the first text 106 satisfying a first condition, highlights a first portion 108 of the first text 106 via application 104. The first condition can be related to the language, number of characters, display template, content category, etc., of the text. Highlighting the first portion 108 means that the display method of the first portion 108 differs from the display method of other parts of the first text 106, so that the user can focus on the content of the first portion 108 first. In one case, the method of highlighting the first portion 108 includes changing the font color, bolding the font, changing the background color, displaying italics, increasing the font size, etc. In another case, the first highlighting method includes highlighting at the sentence level, highlighting at the character level, highlighting at the word level, etc.

[0038] In box 206, the terminal device obtains the second text. For example, in... Figure 1 In the environment 100 shown, the terminal device 102 can also acquire second text 110. The second text 110 can be acquired through user input, reading from local storage, copying and pasting or clipboard acquisition, image recognition, voice recognition, extraction from chat content, forwarded content, etc. In one scenario, the first text 106 and the second text 110 can be different texts entered by the user at different times and on the same interface. In another scenario, the first text 106 and the second text 110 can be the same text entered by the user at different stages on the same interface. For example, if the number of characters in the user's input text is less than a certain threshold, the input text is the second text 110. If the user continues to input text and the number of characters exceeds a certain threshold, the input text is the first text 106. Furthermore, if the user deletes part of the already entered text, making the number of characters less than a certain threshold, the already entered text is the second text 110.

[0039] In box 208, the terminal device, in response to the second text satisfying the second condition, highlights a second portion of the second text in a second highlighting manner. For example, in... Figure 1In the illustrated environment 100, terminal device 102, in response to second text 110 satisfying a second condition, highlights a second portion 112 of the second text 110 via application 104. The second condition can be a condition associated with the text's language, word count, display template, content category, etc., and it differs from the first condition. In one case, the first and second conditions can be complementary. For example, the first condition can be a word count greater than a total word count threshold, while the second condition can be a word count not greater than the total word count threshold.

[0040] In one scenario, the first highlighting method includes highlighting at the sentence level, at the character level, or at the word level. It should be noted that the first highlighting method differs from the second highlighting method. For example, the first highlighting method uses sentences as the smallest unit, while the second highlighting method uses words as the smallest unit.

[0041] In one context, highlighting the second part 112 means that the display method of the second part 112 is different from the display method of other parts of the second text 110 except for the second part 112, so that the user can focus on the content of the second part 112 first. In one context, the methods of highlighting the second part 112 include changing the font color, making the font bold, changing the background color, displaying italics, increasing the font size, etc.

[0042] In this way, the terminal device can analyze the acquired text and highlight different content of the text when the text meets different conditions. This allows the terminal device's highlighting function to match the characteristics of the text and flexibly highlight the content of the text in a targeted manner, thereby improving the user's experience when reading the text.

[0043] In one scenario, the terminal device can also highlight at least one sentence in the first text. In this way, the terminal device can highlight sentences in the text to showcase key points, avoiding fragmented text due to overly short highlighted content, thus enhancing the user's immersive reading experience.

[0044] In one scenario, the terminal device can also highlight at least one sentence in the first text, using sentences as the smallest unit. In another scenario, the terminal device can also highlight at least one sentence and at least one word in the first text. In this way, the terminal device can highlight a sentence, or at least one sentence and at least one word, rather than just a single word or phrase, thus making the overall reading experience smoother and improving the user's reading experience. Furthermore, highlighting at least one sentence and at least one word in the first text avoids displaying too much content in the first text, and combining sentence and word highlighting can enrich the user's reading experience.

[0045] In one scenario, the first condition includes using a first template (also referred to herein as a multi-page template) to display text content, which utilizes multiple pages to display the text content. In this way, the terminal device can utilize multiple pages to display text content. That is, the terminal device can reasonably split and orderly arrange the complete text content, relying on multiple pages to segment and carry text information, thereby avoiding excessive text content on the same page and improving the user's reading interaction experience. In some scenarios, in response to a third operation, the first page among the multiple pages is deleted, wherein the text on the first page is correspondingly deleted. In some scenarios, in response to a fourth operation, the second page among the multiple pages is moved to change the order of the second page among the multiple pages, wherein the order of the text on the second page in the first text is correspondingly moved. For example, when using a multi-page template including multiple pages to display the first text, in response to a deletion operation on one of the multiple pages, the text contained on that page can be deleted from the first text. As another example, in response to a drag operation on one of the multiple pages, the order of that page among the multiple pages can be changed, thereby correspondingly changing the position of the text contained on that page in the first text. This method allows users to edit text by manipulating the page, improving the efficiency of text editing.

[0046] In one scenario, the terminal device can also highlight the first and second sentences of the first text, where the number of characters between the first and second sentences exceeds a first threshold (also referred to as the spacing character threshold in this document), and the first and second sentences are two adjacent sentences among the highlighted sentences. In this way, the terminal device can maintain the spacing between the highlighted sentences, ensuring a relatively large gap between them to avoid the highlighted sentences being piled up in a local area. Furthermore, maintaining the spacing between the highlighted sentences can effectively prevent the highlighted content from being too concentrated, causing user confusion and visual clutter, resulting in a clear and orderly text display.

[0047] In one scenario, the number of sentences highlighted within a single paragraph of the first text is less than a second threshold (also referred to as the sentence count threshold in this document). In another scenario, the ratio of the first number to the second number is less than a third threshold (also referred to as the proportion threshold in this document), where the first number is the number of at least one highlighted sentence, and the second number is the total number of sentences contained in the first text. In this way, the terminal device can avoid highlighting too many sentences in a single paragraph, thus preventing the highlighted content from becoming too concentrated and causing cluttered text display. Furthermore, by controlling the proportion of highlighted sentences to the total number of sentences in the text, the terminal device can also avoid excessive highlighting that could lead to confusion of key points, and facilitate the orderly presentation of key information within the text, enabling users to clearly distinguish between important and ordinary sentences while reading, thereby improving the efficiency of information recognition.

[0048] In one scenario, the terminal device can also highlight at least one sentence in the first text if the number of characters in the first text exceeds a fourth threshold. Alternatively, the terminal device can highlight at least one character or word in the first text if the number of characters in the first text does not exceed the fourth threshold. In this way, the terminal device can analyze the acquired text, highlighting at least one character or word when the text has few characters, and highlighting at least one sentence when the text has many characters. This allows the terminal device's highlighting function to match the text length, flexibly and specifically highlighting the text content, thereby improving the user's reading experience. For example, taking highlighting as the highlighting method: if the number of characters in the user-entered text is less than the fourth threshold, keywords in the entered text are highlighted using word highlighting or character highlighting. If the user continues to enter text and the number of characters exceeds the fourth threshold, key sentences in the entered text are highlighted using sentence highlighting. Furthermore, if the user deletes part of the entered text, reducing the number of characters in the text to less than the fourth threshold, keywords in the entered text are highlighted again using word highlighting or character highlighting. This means a scheme that dynamically adopts different highlighting methods based on the number of words already entered in the text.

[0049] In one scenario, the terminal device can also respond to the first text having more than a fourth threshold by displaying the first text using a first template, which utilizes multiple pages to display the text content. Alternatively, the terminal device can respond to the first text having fewer than the fourth threshold by displaying the first text using a second template (also referred to herein as a single-page template), which utilizes a single page to display the text content. In this way, the terminal device can use a single-page template when the text has fewer words and a multi-page template when the text has more words, achieving flexible layout based on the text's length and avoiding excessive text piling up on a single page, thus improving the user's reading experience. Furthermore, template selection is automatic without requiring manual user input, enhancing the user's interactive experience.

[0050] Figures 3A to 3E The diagram shows an example 300 of highlighting text using sentences as the smallest unit, which is one of the examples in this article. Figure 3A The process shown can be performed as follows: Figure 1 The terminal device 102 shown executes by running application 104. For example... Figure 3A As shown in box 302, the terminal device acquires text. In one scenario, the terminal device can acquire text through user input, reading from local storage, copying and pasting or using the clipboard, image recognition, speech recognition, extraction from chat content, forwarded content, etc.

[0051] In box 304, the terminal device responds to the text's word count exceeding a total word count threshold by displaying the text in a multi-page template. The total word count threshold is a pre-set threshold used to determine the text's length. For example, the total word count threshold can be 120, 132, 140, 150, or 180, etc. It should be understood that the total word count threshold can also be set according to actual needs, and is not limited to the specific values ​​mentioned above. In one scenario, the total word count threshold is 140. That is, when the terminal device responds to the text's word count exceeding 140, it determines the text is a long document and displays it in a multi-page template.

[0052] In one scenario, a multi-page template refers to a pre-built template that can be expanded into multiple pages with a consistent style. Using a multi-page template, the terminal device utilizes multiple pages to display the text content. Furthermore, the terminal device determines the number of pages in the multi-page template based on the number of characters in the text. For example, if the number of characters in the text is greater than a total character count threshold but less than the total number of characters that two pages can hold, the number of pages in the multi-page template can be 2. As another example, if the number of characters in the text is greater than the total number of characters that four pages can hold, the number of pages in the multi-page template must be at least 5. Additionally, the terminal device can divide the text content into multiple segments based on the maximum number of characters that a single page can hold, and display different segments of text content on different pages to achieve text display using a multi-page template.

[0053] In box 306, the terminal device responds to displaying text in a multi-page template, highlighting certain sentences within the text. When displaying text in a multi-page template, the text typically contains a large number of words. Understandably, highlighting individual words or phrases within longer texts can lead to a poor reading experience and hinder user immersion. Therefore, when displaying text in a multi-page template, the terminal device highlights certain sentences within the text. In one scenario, the terminal device highlights at least one sentence in the text, using the sentence as the smallest unit. In another scenario, the terminal device highlights the core argument sentence, topic sentence, concluding sentence, key phrase, and / or summary sentence as critical sentences. By highlighting at least one complete sentence in the text, the terminal device allows users to quickly access important information while reading fluently.

[0054] like Figure 3B As shown, the terminal device displays a text acquisition interface 308 via an application. The text acquisition interface 308 includes an input hotspot 310 and a control component 312. (As shown...) Figure 3C As shown, the terminal device displays a virtual keyboard 314 in response to a trigger on the input hotspot 310. The virtual keyboard 314 allows the user to input text. While the user is inputting text 316, the terminal device displays the text 316 to provide real-time input feedback to the user. After the user finishes inputting the text 316, they can retract the virtual keyboard 314 and click on the control component 312 to enter the text 316 layout interface.

[0055] like Figure 3DAs shown, in response to a trigger on control component 312, the terminal device displays a text layout interface 318. The terminal device uses the text layout interface 318 to display pre-formatted text 316. The text 316 includes highlighted key sentences 320. In one scenario, the terminal device displays text 316 as a multi-page template in response to the text 316 having a character count exceeding a total character count threshold. In another scenario, the terminal device can switch between displayed text pages in response to a user's swipe operation and prompt the user for the current page based on page number 322. In yet another scenario, the text 316 may also include at least one highlighted sentence and at least one highlighted word. That is, the text 316 highlights not only sentences but also words, employing a mixed highlighting method for sentences and words.

[0056] like Figure 3E As shown, the terminal device displays text 316 using a multi-page template. The terminal device highlights key sentences 324, 326, and 328. In one scenario, the number of characters between any two key sentences exceeds a character interval threshold. For example, key sentences 324, 326, and 328 are at least 80 characters apart. In another scenario, the number of key sentences in each paragraph of text 316 is less than a sentence count threshold. For example, each paragraph of text 316 includes only one key sentence. In yet another scenario, the ratio of the number of key sentences to the total number of sentences in text 316 does not exceed a percentage threshold. For example, the ratio of the number of key sentences to the total number of sentences does not exceed 20%. The key sentences are the highlighted sentences in text 316. In another scenario, the terminal device can use a large model to identify the content of text 316 to utilize multi-page templates for display, highlight sentences, and match images for layout. For example, the terminal device can analyze the content of text 316 to match images associated with the text content and automatically layout them in the appropriate positions for display. It should be understood that the interval word count threshold, sentence count threshold, and percentage threshold can also be set according to actual needs, and are not limited to the specific values ​​mentioned above.

[0057] Furthermore, the terminal device saves each page as an image to form an image gallery. Multiple pages support switching order or deletion. In one scenario, in response to a triggering operation to modify text 316, the terminal device can expand the text editing interface for the user to edit. Further, after some pages are deleted, or the order of multiple pages is changed, in response to entering the text editing interface or returning to the text acquisition interface 308, the unmodified initial text is displayed in the text editing interface or the returned text acquisition interface 308. In one scenario, in response to modifying text 316, the terminal device renders and displays the modified text in page order by locating the first page among multiple pages.

[0058] return Figure 3D Describe the other components of the text layout interface 318 and the publishing process after the text 316 is formatted. For example... Figure 3D As shown, the terminal device uses the text layout interface 318 to highlight the template 330 used by the current text 316, and displays multiple preset templates (e.g., template 332) normally. The current template 330 is the multi-page template used by the current text 316. The user can switch the currently displayed template of text 316 by clicking on other preset templates. For example, in response to the user clicking on template 332, the terminal device uses template 332 to display text 316. Further, the terminal device restores template 330 to normal display and highlights template 332 to indicate the currently used template to the user.

[0059] In one scenario, the terminal device also utilizes the text layout interface 318 to display a quick publishing component 334 and a publishing editing component 336. The quick publishing component is used to directly publish the text 316 displayed in the current template 330 using a preset publishing mode. Users can quickly publish by clicking the quick publishing component 334 without further modification of the published content. The publishing editing component 336 displays the publishing editing interface. The terminal device uses the publishing editing interface to obtain the user-inputted publishing mode and can publish content including the text 316 based on the user-inputted publishing mode. The user-inputted publishing mode includes the title, text, tags, etc. In this way, the terminal device can meet the editing and publishing needs when the input text is long, improving the convenience of long-text publishing tools and enhancing the user's interactive experience.

[0060] In one scenario, the terminal device can also respond to a trigger operation on a modification component and if the first text meets a first condition, by locating the first text at a first position in the modification panel to display the first text. The terminal device can also respond to a trigger operation on a modification component and if the second text meets a second condition, by locating the second text at a second position in the modification panel to display the second text, where the second component is configured to modify highlighted content based on user input, wherein the first position differs from the second position. In this way, the terminal device can display the modification panel through a trigger operation on a modification component, and by using different templates to display the text at different positions in the modification panel, it can better match the characteristics of text displayed with different templates, thereby quickly locating the position where the user is most likely to want to modify the highlighted content, improving the user's interactive experience.

[0061] In one scenario, the terminal device can also respond to a first operation (also referred to herein as a trigger operation) and if the first text satisfies a first condition, displaying a first component (also referred to herein as a modification panel). This first component is configured to modify highlighted content based on user input. Then, the terminal device can also respond to the presence of a highlighted sentence on the current page by locating the highlighted sentence on the current page to display at least a portion of the first text in the first component, including the highlighted sentence. In this way, when text is highlighted in sentences as the smallest unit and a highlighted sentence exists on the current page, the terminal device can utilize the modification panel to display the text content at the location of the highlighted sentence. This allows the modification panel to display the highlighted sentence and its associated context, facilitating the user's ability to unhighlight or select other text content to be highlighted, thus improving the user's interactive experience.

[0062] In one scenario, the terminal device can also respond to the presence of a highlighted sentence on the current page by locating to a third sentence and using the first component to display at least a portion of the first text, including the third sentence. The third sentence is the first highlighted sentence of the first text on the current page and is displayed in the center of the first component. In this way, the terminal device can display the first sentence in the center of the editing panel, allowing the editing panel to display the highlighted sentence and its associated context. This facilitates the user's ability to unhighlight the sentence or select other text content to be highlighted, improving the user's interactive experience.

[0063] Figures 4A to 4F The diagram illustrates a manual modification of example 400 of this article, highlighting the text with sentences as the smallest unit. Figure 4AThe process shown can be performed as follows: Figure 1 The terminal device 102 shown executes this. For example... Figure 4A As shown in box 402, the terminal device displays a modification panel in response to a trigger operation on the modification component. The terminal device displays the modification component in the text layout interface and, in response to a trigger operation on the modification component, displays a modification panel for modifying highlighted text content. The modification panel may cover and obscure part of the text layout interface display. In one scenario, in response to a trigger operation on an area of ​​the text layout interface not obscured by the modification panel, the terminal device cancels the display of the modification panel and displays the complete text layout interface.

[0064] In box 404, the terminal device responds to displaying text using a multi-page template by using a modification panel to display the text content at the location of the highlighted sentence. When the text is displayed using a multi-page template, the text is often lengthy, and the terminal device highlights at least one sentence in the text, using sentences as the smallest unit. Because the text is lengthy, if the modification panel were used to locate the beginning of the text, the user might need to perform numerous swipes to find the position corresponding to the highlighted content. Therefore, if a highlighted sentence exists on the current page, when the modification panel is displayed, the terminal device locates the highlighted sentence and uses the modification panel to display the text content at that location.

[0065] In one scenario, in response to the absence of a highlighted sentence on the current page, the terminal device uses a modification panel to display the text content at the beginning of the text.

[0066] In box 406, in response to the selection of the first content displayed using the modification panel, the terminal device highlights the first content using the modification panel. The modification panel can be used to de-highlight or select unhighlighted content for highlighting. For example, in response to an operation on the area containing the first content displayed on the modification panel, the terminal device determines that the first content has been selected and highlights the first content using the modification panel to provide feedback to the user that the first content has been selected.

[0067] In box 408, the terminal device highlights the first content. When exiting the editing panel, or when the first content in the editing panel is selected, the terminal device uses the text layout interface to highlight the first content, so as to modify the highlighted text content.

[0068] like Figure 4B As shown, in the text layout interface 410, the terminal device displays text 412. Text 412 includes highlighted key sentences 414. Furthermore, the terminal device also uses the text layout interface 410 to display a modification component 416. The modification component 416 can be used to trigger the display of a modification panel.

[0069] like Figure 4C As shown, in response to a trigger operation on the modification component 416, the terminal device displays the modification panel 418. The modification panel 418 partially obscures the text layout interface 410. Since the text 412 on the current page includes a key sentence 414, the terminal device automatically locates the position of the key sentence 414 and uses the modification panel 418 to display the text content near the location of the key sentence 414.

[0070] Furthermore, the key sentence 414 is located in the middle of the editing panel 418. In one scenario, the key sentence 414 being located in the middle of the editing panel 418 can also be understood as the key sentence 414 being located in at least the middle or near-middle number of lines in the total number of lines of text displayed in the editing panel 418. For example, if the editing panel 418 displays 8 lines of text, the key sentence 414 is at least partially located in the 4th line. Or, for another example, if the editing panel 418 displays 11 lines of text, the key sentence 414 is at least partially located in the 5th line.

[0071] In one scenario, the key sentence 414 is highlighted both in the text layout interface 410 and in the editing panel 418. For example... Figure 4C As shown, in the modification panel 418, the area containing the key sentence 414 is filled, while the area containing other text content is not filled. Furthermore, in response to a trigger operation on the area containing the key sentence 414, the area containing the key sentence 414 can be unfilled to indicate that the key sentence 414 has been de-highlighted.

[0072] In one scenario, the terminal device also utilizes the modification panel 418 to display an automatic modification component 420 and a clear component 422. The automatic modification component 420 can be used by the terminal device to automatically re-analyze the key content in the text 412 and highlight it. Furthermore, the clear component 422 can be used to clear the highlighted text content in the text 412. For example, in response to a trigger operation on the clear component 422, the terminal device can dehighlight all highlighted content in the modification panel 418.

[0073] like Figure 4D As shown, in response to a trigger operation on the area where the key sentence 414 is located in the modification panel 418, or in response to a trigger operation on the clear component 422, the terminal device uses the modification panel 418 to display text content including the unhighlighted key sentence 414.

[0074] like Figure 4EAs shown, in response to an operation triggered on the area containing sentence 424 in the modification panel 418, the terminal device highlights sentence 424 using the modification panel 418 to provide feedback to the user that sentence 424 has been selected. Specifically, the terminal device fills the area containing sentence 424 to highlight it.

[0075] In one scenario, in response to a trigger operation on the confirmation component in the upper right corner of the modification panel 418, the terminal device cancels the display of the modification panel 418 and displays the modified text content using the text layout interface 410. In another scenario, in response to a trigger operation on the close component in the upper left corner of the modification panel 418, the terminal device cancels the display of the modification panel 418, does not retain the current modification result, and still displays the unmodified text content using the text layout interface 410.

[0076] like Figure 4F As shown, in response to the confirmation of the modification, the terminal device cancels the display of the modification panel 418 and displays the modified text content using the text layout interface 410. In the modified text content, the original key sentence 414 is no longer highlighted, while sentence 424 is highlighted.

[0077] In one scenario, the terminal device can also respond to a second operation and if the second text satisfies a second condition, displaying a second component configured to modify highlighted content based on user input. Then, the terminal device can also respond to the presence of a highlighted sentence on the current page by locating the start position of the second text and using the second component to display at least a portion of the second text, including the content at the start position. In this way, when highlighting is done at the word level, the terminal device uses a modification panel to display text content up to the start position of the text, facilitating the user's selection of the highlighted content to be modified.

[0078] In one scenario, the terminal device can also highlight at least one word in the second text. In this way, when the text meets the second condition, the terminal device highlights at least one word in the text, thereby highlighting less content and avoiding clutter caused by excessive highlighted content.

[0079] In one scenario, the terminal device can also acquire the text entered by the user on the first interface at a first moment. The terminal device can also acquire the text entered by the user on the first interface at a second moment. The first moment is earlier than the second moment, or the first moment is later than the second moment. In this way, the terminal device can acquire both the first and second text entered by the user through the same interface, allowing the user to achieve differentiated highlighting effects for different text content without switching between different input interfaces. This significantly reduces the complexity of interface interaction and improves operational efficiency and user experience.

[0080] In one scenario, the first and second conditions are associated with at least one of language, word count, or template. In another scenario, the method includes one or more of the following: the first condition includes: the text word count is greater than a fourth threshold; and the second condition includes: the text word count is not greater than the fourth threshold. The first condition includes: displaying the text using a first type of template; and the second condition includes: displaying the text using a second type of template, wherein the first type of template uses multiple pages to display the text, and the second type of template uses a single page to display the text. The first condition includes: the text language is a first language; and the second condition includes: the text language is a second language. In this way, the terminal device can determine whether the first and second conditions are met based on at least one of language, word count, or template, thereby enabling different highlighting methods based on different language, word count, or templates.

[0081] Figures 5A to 5G A schematic diagram of Example 500, which highlights some examples of this article with words as the smallest unit, is shown. Figure 5A The process shown can be performed as follows: Figure 1 The terminal device 102 shown executes through the running application 104. For example... Figure 5A As shown in box 502, the terminal device acquires text. In one scenario, the terminal device can acquire text through user input, reading from local storage, copying and pasting or using the clipboard, image recognition, speech recognition, extraction from chat content, forwarded content, etc.

[0082] In box 504, the terminal device displays the text using a single-page template in response to the text's character count not exceeding a total character count threshold. This total character count threshold is a pre-set threshold used to determine the text length. For example, the total character count threshold can be 120, 132, 140, 150, or 180, etc. It should be understood that the total character count threshold can also be set according to actual needs, and is not limited to the specific values ​​mentioned above. In one scenario, the total character count threshold is 140. That is, the terminal device determines to display the text using a single-page template when the text's character count is no greater than 140.

[0083] In one context, a single-page template refers to displaying text content on a single page. That is, the terminal device can use a single page to display the complete text content. Understandably, the number of characters a single page can hold is greater than or equal to a total character count threshold.

[0084] In box 506, the terminal device responds to displaying text using a single-page template, highlighting a portion of the text. When displaying text using a single-page template, the text is relatively short. If the entire sentence were highlighted, the highlighted content would occupy a large proportion of the text compared to the whole, failing to achieve the effect of highlighting key information. Therefore, in response to displaying text using a single-page template, the terminal device highlights at least one word in the text, using words as the smallest unit.

[0085] In box 508, the terminal device displays a modification panel in response to a trigger operation on the modification component. The terminal device displays the modification component in the text layout interface and, in response to a trigger operation on the modification component, displays a modification panel for modifying highlighted text content. The modification panel may cover and obscure part of the text layout interface display. In one scenario, in response to a trigger operation on an area of ​​the text layout interface not obscured by the modification panel, the terminal device cancels the display of the modification panel and displays the complete text layout interface.

[0086] In box 510, the terminal device responds to displaying text using a single-page template by using a modification panel to display the text content at the initial position of the text. When the text is displayed using a single-page template, the number of words in the text is small, and the terminal device highlights at least one word in the text as the smallest unit. Because the number of words in the text is small, the terminal device can directly use the modification panel to locate the beginning position of the text and display the text content, that is, it can use the modification panel to display all or most of the text content.

[0087] like Figure 5B As shown, the terminal device displays a text acquisition interface 512 via an application. The text acquisition interface 512 includes an input hotspot 514 and a control component 516. (As shown...) Figure 5C As shown, the terminal device displays a virtual keyboard 518 in response to a trigger on the input hotspot 514. The virtual keyboard 518 allows the user to input text. While the user is inputting, the terminal device displays text 520 to provide real-time input feedback. After the user finishes inputting text 520, they can retract the virtual keyboard 518 and click on the control component 516 to enter the text 520 layout interface. In one scenario, the terminal device can also use the text acquisition interface 512 to display the total number of characters entered by the user in real time.

[0088] In one situation, such as Figure 5B The text acquisition interface 512 shown is similar to... Figure 3B The text acquisition interface 308 shown can be the same text acquisition interface. That is to say, users can input different texts at different times through the same text acquisition interface, and the terminal device can use different templates to format the text based on the number of characters in the user's input text.

[0089] Furthermore, the terminal device can also display text using different display methods based on different conditions. For example, if the number of characters in the text entered by the user at the first moment exceeds the total character count threshold and a multi-page template is used, the terminal device highlights at least one sentence in the text. If the number of characters in the text entered by the user at the second moment does not exceed the total character count threshold and a single-page template is used, the terminal device highlights at least one character or word in the text. Here, the first moment is earlier than the second moment. As another example, if the number of characters in the text entered by the user at the first moment exceeds the total character count threshold and a first language is used, the terminal device highlights at least one sentence in the text. If the number of characters in the text entered by the user at the second moment does not exceed the total character count threshold and a second language is used, the terminal device highlights at least one character or word in the text. Here, the first moment is later than the second moment. As yet another example, if the text entered by the user at the first moment is displayed using a multi-page template and a first language, the terminal device highlights at least one sentence in the text. If the text entered by the user at the second moment is displayed using a single-page template and a second language, the terminal device highlights at least one character or word in the text.

[0090] In one scenario, if the number of characters in the text entered by the user at the first moment exceeds the total character threshold, a multi-page template is used for display, and the first language is used, the terminal device highlights at least one sentence in the text. If the number of characters in the text entered by the user at the second moment does not exceed the total character threshold, a single-page template is used for display, and the second language is used, the terminal device highlights at least one character or word in the text.

[0091] In one scenario, the terminal device can perform real-time character count analysis on the text input 520 within the text acquisition interface 512. If the character count of text 520 does not exceed the total character count threshold, the terminal device displays text 520 using a single-page template. As the user continues to input text 520, if the character count of text 520 exceeds the total character count threshold, the terminal device displays text 520 using a multi-page template.

[0092] like Figure 5DAs shown, in response to a trigger on control component 516, the terminal device displays a text layout interface 522. The terminal device uses the text layout interface 522 to display text 524 after preliminary layout of text 520. Text 524 includes highlighted keywords 526. In one scenario, the terminal device analyzes text 520, and if the number of characters in text 520 does not exceed a total character threshold, it typesets and displays text 520 using a single-page template.

[0093] In one scenario, the terminal device uses the text layout interface 522 to highlight the template 528 used by the current text 524. The current template 528 is the single-page template used by the current text 524. The user can switch the currently displayed template of the text 524 by clicking on other preset templates.

[0094] In one scenario, the terminal device also utilizes the text layout interface 522 to display a publishing and editing component 530 and a quick publishing component 532. The quick publishing component is used to directly publish text 524 displayed in the current template 528 using a preset publishing mode. Users can quickly publish by clicking the quick publishing component 532 without further modification of the published content. The publishing and editing component 530 is used to display the publishing and editing interface. The terminal device uses the publishing and editing interface to obtain the user-inputted publishing mode and can publish content including text 524 based on the user-inputted publishing mode. The user-inputted publishing mode includes titles, text, tags, etc., entered by the user. Furthermore, the terminal device also utilizes the text layout interface 522 to display a modification component 534. The modification component 534 can be used to trigger the display of a modification panel.

[0095] like Figure 5E As shown, in response to a trigger operation on the modification component 534, the terminal device displays the modification panel 536. The modification panel 536 partially obscures the text layout interface 522. The terminal device uses the modification panel 536 to display the text content corresponding to the starting position 538 of the text 524 by locating the starting position 538 of the text 524.

[0096] like Figure 5F As shown, in response to a trigger operation on the area where word 540 is located in the modification panel 536, the terminal device uses the modification panel 536 to highlight word 540 to inform the user that word 540 has been selected.

[0097] like Figure 5G As shown, in response to the confirmation of the modification, the terminal device cancels the display of the modification panel 536 and displays the modified text content using the text layout interface 522. In the modified text content, in addition to the original keyword 526 being highlighted, the newly added word 540 is also highlighted.

[0098] Figure 6 A block diagram of a text processing apparatus 600, as shown in this paper, is illustrated. Figure 6 As shown, device 600 includes a first acquisition module 602 configured to acquire first text. Device 600 also includes a first display module 604 configured to highlight a first portion of the first text in response to the first text satisfying a first condition. Device 600 further includes a second display module 606 configured to highlight a second portion of the first text in response to the first text satisfying a second condition, wherein the second condition is different from the first condition, and the second portion is different from the first portion. In this way, the terminal device can analyze the acquired text and highlight different content of the text when different conditions are met, so that the highlighting function of the terminal device can match the characteristics of the text and flexibly and specifically highlight the content of the text, thereby improving the user's experience when reading text.

[0099] In one embodiment, the device 600 further includes a third display module configured to highlight at least one sentence in the first text.

[0100] In one embodiment, device 600 further includes a fourth display module configured to highlight at least one sentence in the first text, using sentences as the smallest unit. Device 600 also includes a fifth display module configured to highlight at least one sentence and at least one word in the first text.

[0101] In one scenario, the first condition includes using a first template to display text content, the first template utilizing multiple pages to display the text content.

[0102] In one scenario, the device 600 further includes a sixth display module configured to highlight a first sentence and a second sentence in the first text, wherein the number of characters between the first sentence and the second sentence is greater than a first threshold, and the first sentence and the second sentence are two adjacent sentences in the highlighted text.

[0103] In one scenario, the number of sentences highlighted within a single paragraph in the first text is less than a second threshold; and / or, the ratio of the first number to the second number is less than a third threshold, wherein the first number is the number of the at least one highlighted sentence, and the second number is the total number of sentences contained in the first text.

[0104] In one embodiment, device 600 further includes a seventh display module configured to display a first component in response to a first operation and the first text satisfying the first condition, the first component being configured to modify highlighted content based on user input. Device 600 also includes an eighth display module configured to display at least a portion of the first text, including the highlighted sentence, using the first component in response to the presence of a highlighted sentence on the current page.

[0105] In one embodiment, device 600 further includes a ninth display module configured to highlight at least one word in the second text.

[0106] In one scenario, device 600 further includes a tenth display module configured to acquire text input by the user in the first interface at a first moment.

[0107] In one embodiment, device 600 further includes an eleventh display module configured to acquire text input by the user in the first interface at a second time. The first time is earlier than the second time, or the first time is later than the second time. In another embodiment, the first and second texts are acquired during continuous text editing by the user in the first interface.

[0108] In one scenario, device 600 includes one or more of the following: the first condition includes: the number of text characters is greater than a fourth threshold; and the second condition includes: the number of text characters is not greater than the fourth threshold. The first condition includes: displaying text using a first type of template; and the second condition includes: displaying text using a second type of template, wherein the first type of template uses multiple pages to display text, and the second type of template uses a single page to display text. The first condition includes: the text language is a first language; and the second condition includes: the text language is a second language.

[0109] As can be understood above, at least one of the many advantages that can be achieved by the method or process described above can be realized using the apparatus 600 described herein.

[0110] Figure 7 A block diagram of a device 700 capable of implementing several examples of this paper is shown. For example... Figure 7As shown, device 700 includes a central processing unit (CPU) and / or a graphics processing unit (GPU) 702, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 704 or loaded from storage unit 716 into random access memory (RAM) 706. Various programs and data required for the operation of device 700 can also be stored in RAM 706. The CPU / GPU 702, ROM 704, and RAM 706 are interconnected via bus 708. Input / output (I / O) interface 710 is also connected to bus 708. Although not shown in... Figure 7 As shown, device 700 may also include a coprocessor.

[0111] Multiple components in device 700 are connected to I / O interface 710, including: input unit 712, such as keyboard, mouse, etc.; output unit 714, such as various types of monitors, speakers, etc.; storage unit 716, such as disk, optical disk, etc.; and communication unit 718, such as network card, modem, wireless transceiver, etc. Communication unit 718 allows device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0112] The various methods or processes described above can be executed by CPU / GPU 702. For example, in one case, the method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 716. In another case, part or all of the computer program can be loaded and / or installed on device 700 via ROM 704 and / or communication unit 718. When the computer program is loaded into RAM 706 and executed by CPU / GPU 702, one or more steps or actions in the methods or processes described above can be performed.

[0113] As described above, it can be understood that by utilizing the device 700 of this paper, at least one of the many advantages achievable by the methods or processes described above can be realized. For example, in this way, the terminal device can analyze the acquired text and highlight different content of the text when different conditions are met. The highlighting function of the terminal device can match the characteristics of the text and selectively highlight the content of the text. This flexibility improves the user experience when reading text.

[0114] In one scenario, the methods and processes described above can be implemented as a computer program product. The computer program product may include a computer-readable storage medium on which computer-readable program instructions for performing the various aspects thereof are loaded. It is understood that by utilizing the computer program product described herein, at least one of the many advantages achievable by the methods or processes described above can be realized. For example, in this way, a terminal device can analyze acquired text, highlighting different content of the text when different conditions are met; the highlighting function of the terminal device can match the characteristics of the text and selectively highlight the content of the text. This flexibility improves the user experience when reading text.

[0115] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0116] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, a local area network (LAN), a wide area network (WAN), and / or a wireless network, to an external computer or external storage device. The network may include copper cables, fiber optic cables, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0117] The computer program instructions used to perform the operations described herein can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​and conventional procedural programming languages. The computer-readable program instructions can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider). In one scenario, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be customized using the status information from the computer-readable program instructions to execute the computer-readable program instructions, thereby implementing various aspects of this document.

[0118] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0119] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0120] The flowcharts and block diagrams in the accompanying figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to several examples herein. In this regard, each box in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the boxes may occur in a different order than those marked in the figures. For example, two consecutive boxes may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each box in the block diagrams and / or flowcharts, and combinations of boxes in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0121] The examples described above are exemplary and not exhaustive, nor are they limited to the disclosed examples. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described examples. The terminology used herein is chosen to best explain the principles, practical applications, or technical improvements to technology in the market, or to enable others skilled in the art to understand the examples disclosed herein.

Claims

1. A text processing method, comprising: Get the first text; The first text is displayed, wherein, in response to the first text satisfying a first condition, a first portion of the first text is highlighted in a first highlighting manner; Get the second text; and The second text is displayed, wherein, in response to the second text satisfying a second condition, a second portion of the second text is highlighted in a second highlighting manner; The second condition is different from the first condition, and the second highlighting method is different from the first highlighting method.

2. The method of claim 1, wherein highlighting the first portion of the first text in the first highlighting manner comprises: Highlight at least one sentence in the first text.

3. The method of claim 2, wherein highlighting the at least one sentence in the first text in the first highlighting manner comprises: At least one sentence in the first text is highlighted, using sentences as the smallest unit. Alternatively, highlight at least one sentence and at least one word in the first text.

4. The method according to claim 2, wherein the first condition includes displaying the first text using a first template, the first template displaying the first text using multiple pages; The method further includes at least one of the following: In response to the third operation, the first page of the plurality of pages is deleted, wherein, The text on the first page was deleted accordingly; or In response to the fourth operation, the second page of the plurality of pages is moved to change the order of the second page in the plurality of pages, wherein the order of the text in the second page in the first text is moved accordingly.

5. The method according to claim 2, wherein, Highlighting at least one sentence in the first text includes: The first and second sentences in the first text are highlighted, wherein the number of characters between the first and second sentences is greater than a first threshold, and the first and second sentences are two adjacent sentences in the highlighted text.

6. The method according to claim 2, wherein, In the first text, the number of sentences highlighted within a single paragraph is less than the second threshold; and / or, The ratio of the first quantity to the second quantity is less than a third threshold, wherein the first quantity is the number of the at least one highlighted sentence, and the second quantity is the total number of sentences contained in the first text.

7. The method according to claim 2, wherein the method further comprises: In response to the first operation and the first text satisfying the first condition, a first component is displayed, the first component being configured to modify the highlighted content based on user input; In response to a highlighted sentence on the current page, at least a portion of the first text, including the highlighted sentence, is displayed in the first component by locating the highlighted sentence.

8. The method of claim 1, wherein highlighting the second portion of the second text in the second highlighting manner comprises: Highlight at least one word in the second text.

9. The method according to claim 1, wherein, The acquisition of the first text includes: acquiring the text input by the user in the first interface at a first moment; The acquisition of the second text includes: acquiring the text input by the user in the first interface at a second moment; The first moment is earlier than the second moment, or the first moment is later than the second moment.

10. The method according to claim 1, wherein the first text and the second text are obtained by the user during continuous text editing in the first interface.

11. The method according to claim 1, wherein, The method includes one or more of the following: The first condition includes: the number of characters in the text is greater than the fourth threshold; and the second condition includes: the number of characters in the text is not greater than the fourth threshold. The first condition includes: displaying text using a first type of template; and the second condition includes: displaying text using a second type of template, wherein the first type of template uses multiple pages to display text, and the second type of template uses a single page to display text; The first condition includes: the text language is a first language; and the second condition includes: the text language is a second language.

12. A text processing apparatus, comprising: The first acquisition module is configured to acquire the first text; A first display module is configured to display the first text, wherein, in response to the first text satisfying a first condition, a first portion of the first text is highlighted in a first highlighting manner; and The second acquisition module is configured to acquire the second text. The second display module is configured to display the second text, wherein, in response to the second text satisfying a second condition, a second portion of the second text is highlighted in a second highlighting manner; The second condition is different from the first condition, and the second highlighting method is different from the first highlighting method.

13. An electronic device, comprising: processor; as well as A memory coupled to the processor, the memory having instructions stored therein, which, when executed by the processor, cause the electronic device to perform the method according to any one of claims 1 to 11.

14. A computer program product comprising computer-executable instructions, wherein the computer-executable instructions are executed by a processor to implement the method according to any one of claims 1 to 11.

15. A computer-readable storage medium having stored thereon computer-executable instructions that can be executed by a processor to implement the method according to any one of claims 1 to 11.