Text processing method and device, electronic equipment, medium and program product

By receiving user input in the interface and displaying and editing selected text in a window, the problem of cumbersome and inefficient text summary operations in the prior art is solved, and more efficient text integration is achieved.

CN120179128APending Publication Date: 2025-06-20VIVO MOBILE COMM CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510169148.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

When users need to select multiple paragraphs of text from web pages or documents for summary, the existing technology has problems such as cumbersome operation and low efficiency.

Method used

Copy and paste one by one by one by receiving user input in the interface, select the required text, and display and edit all selected text in a window.

Benefits of technology

The operation process of text summary is simplified, the efficiency of text integration is improved, and the operation steps of users are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120179128A_ABST
    Figure CN120179128A_ABST
Patent Text Reader

Abstract

The invention discloses a text processing method and device, electronic equipment, a medium and a program product, and belongs to the technical field of computers.The text processing method comprises the steps that under the condition that a first interface is displayed, first input of a first text in the first interface by a user is received, the first interface comprises the first text and a first window; and displaying the first text in the first window in response to the first input.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a text processing method, apparatus, electronic device, medium, and program product. Background Art

[0002] In the related art, when a user browses a web page or processes a document based on a terminal device and needs to select multiple paragraphs of text from a page for summarization, the user usually needs to manually copy, paste, and organize. When the number of paragraphs of the text to be summarized is large and the distribution of the text in each paragraph is relatively scattered, the user usually needs to perform the process of copying, pasting, and organizing multiple times to achieve the summarization of multiple paragraphs of text. It can be seen that this text processing method has problems such as cumbersome operations and low efficiency. Summary of the Invention

[0003] The purpose of the embodiments of this application is to provide a text processing method, apparatus, electronic device, medium, and program product, which is conducive to simplifying the operation process of text summarization and improving the efficiency of text integration.

[0004] In a first aspect, an embodiment of this application provides a text processing method, including:

[0005] When displaying a first interface, receiving a first input from the user for a first text in the first interface, where the first interface includes the first text and a first window;

[0006] In response to the first input, displaying the first text in the first window.

[0007] In a second aspect, an embodiment of this application provides a text processing apparatus, including:

[0008] A receiving module, configured to receive a first input from the user for a first text in the first interface when displaying the first interface, where the first interface includes the first text and a first window;

[0009] A display module, configured to display the first text in the first window in response to the first input.

[0010] In a third aspect, an embodiment of this application provides an electronic device, which includes a processor and a memory. A program or instruction is stored on the memory and can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0011] In a fourth aspect, an embodiment of this application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the steps of the method described in the first aspect.

[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.

[0014] In the embodiments of the present application, since the text selected by the user based on the first input in the first interface can be displayed in the first window, during the text editing process, the user can select all the text to be edited based on the first input. Since all the files selected by the first input are displayed in the first window, the user can edit all the selected text in the first window. During this process, since all the files selected by the first input are displayed in the first window, that is, there is no need for the user to perform copy and paste operations on the text to be edited one by one. Therefore, it is beneficial to simplify the operation process of text summarization and improve the efficiency of text integration. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is one of the schematic flowcharts of a text processing method provided by an embodiment of the present application;

[0016] Figure 2 is one of the schematic diagrams of the interface during the text processing process in an embodiment of the present application;

[0017] Figure 3 is the second schematic diagram of the interface during the text processing process in an embodiment of the present application;

[0018] Figure 4 is the third schematic diagram of the interface during the text processing process in an embodiment of the present application;

[0019] Figure 5 is the fourth schematic diagram of the interface during the text processing process in an embodiment of the present application;

[0020] Figure 6 is the second schematic flowchart of a text processing method provided by an embodiment of the present application;

[0021] Figure 7 is the schematic structural diagram of a text processing device provided by an embodiment of the present application;

[0022] Figure 8 is the schematic structural diagram of an electronic device provided by some embodiments of the present application;

[0023] Figure 9 Schematic diagram of the hardware structure of an electronic device provided for some embodiments of the present application. Detailed implementation manners

[0024] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0025] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.

[0026] Next, a text processing method, device, electronic device, medium, and program product provided in the embodiments of the present application will be described in detail in conjunction with the accompanying drawings through specific embodiments and their application scenarios.

[0027] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a text processing method provided for an embodiment of the present application. The text processing method includes the following steps:

[0028] Step 101: When the first interface is displayed, receive a first input from the user for the first text in the first interface, where the first interface includes the first text and a first window;

[0029] Step 102: In response to the first input, display the first text in the first window.

[0030] The above-mentioned first interface may be an interface for displaying text to be edited, and the text to be edited may be various texts displayed in the electronic device, such as web page text, e-books, documents, etc.

[0031] The above-mentioned first text may be a text block, and the type of the text block may be set in advance according to needs. For example, in some embodiments of the present application, a paragraph of text may be used as a text block, a table may also be used as a text block, and a picture may also be used as a text block.

[0032] Specifically, a text processing plugin can be pre-installed in the electronic device. Please refer to Figure 2 (a). When the first interface is an interface for the user to browse various texts based on the electronic device, when the user starts the text processing plugin, a floating toolbar 201 can be displayed on the first interface. When the user clicks on the floating toolbar 201, Figure 2 the first window 202 shown in (b) can be displayed. When the user clicks on the add new text control 203 in the first window 202, the text selection mode can be entered. At this time, the user can select all the texts to be summarized on the displayed first interface through the above-mentioned first input.

[0033] In some other embodiments of the present application, the electronic device can also provide a unified user interface. The user can directly mark the text to be edited on the current page and can conveniently select and merge multiple text segments within the page. Moreover, a one-key summarization function can be introduced. After the user selects the text, a new document can be quickly generated, which contains all the selected texts. In addition, in the above-mentioned first window 202, drag-and-drop sorting of texts can also be supported, and the user can freely edit and adjust the summarized texts as needed. This method can be compatible with multiple data sources, including but not limited to web pages, e-books, documents, etc., thereby improving the applicability and user experience. The method provided by the embodiments of the present application can also implement an instant preview function, enabling the user to view the arrangement of all the selected contents before final saving. During the process of the user editing in the first window 202, simple format adjustments to the selected content can be supported, such as changing the font size, color, etc., as well as adding personal notes or comments. In some embodiments of the present application, a voice recognition function can also be integrated, allowing the user to select and edit texts through voice commands.

[0034] It can be understood that during the process of the user selecting text blocks on the first interface based on the above-mentioned first input, the user can select continuous text blocks on the first interface or can also select text blocks scattered at different positions on the first interface.

[0035] In addition, during the process of the user selecting text blocks on the first interface based on the above-mentioned first input, the user can select text blocks on different pages of the first interface across pages. At the same time, the user can also select text blocks in different texts across texts.

[0036] The above-mentioned first input can be various types of pre-configured inputs. For example, in some embodiments of the present application, the first input can include a long press operation or a double click operation of the user on the text block to be selected, etc., which are common touch operations. In some other embodiments of the present application, the first input can also include a click operation or a double click operation of the user on the text block to be selected through the mouse.

[0037] In this embodiment, since the text selected by the user based on the first input in the first interface can be displayed in the first window, during the text editing process, the user can select all the texts to be edited based on the first input. Since all the files selected by the first input will be displayed in the first window, the user can edit all the selected texts in the first window. During this process, since all the files selected by the first input will be displayed in the first window, that is, there is no need for the user to copy and paste the texts to be edited one by one. Therefore, it is beneficial to simplify the operation process of text summarization and improve the efficiency of text integration.

[0038] Optionally, the displaying of the first text in the first window in response to the first input includes:

[0039] In response to the first input, displaying an identifier corresponding to the first text;

[0040] When receiving a second input from the user, displaying in the first window the first text in the first interface corresponding to the identifier.

[0041] The above identifier can be various types of preset identifiers or specific display methods. For example, the identifier can be a floating window displayed on the upper layer of the selected text, or the identifier can also be a specific mark displayed on the side of the selected text, or the identifier can also be to display the selected text in a highlighted manner.

[0042] The above second input can be that the user clicks a specific control, or it can also be a specific touch input of the user. For example, please refer to Figure 3 (c). In some embodiments of the present application, the second input can be a click input of the user on the confirmation control 209. Another example is that in some other embodiments of the present application, the second input can also be an input where the user drags the selected text to the floating toolbar 201 or the first window 202.

[0043] It can be understood that before the user makes the above second input, the user can make at least one first input, and making one first input can select a text to be summarized and edited, and the texts corresponding to different first inputs are different.

[0044] In this embodiment, since the user can select all the texts to be summarized in the first interface through the first input, and then, all the selected texts can be uniformly added to the first window 202 for editing through the second input. In this process, since more than two texts can be selected at the same time and all the selected texts can be added to the first window 202 in batches, it is beneficial to simplify the operation process of text summarization and improve the efficiency of text integration.

[0045] Optionally, the displaying the identifier corresponding to the first text in response to the first input includes:

[0046] In response to the first input, a first semi-transparent floating window is floatingly displayed above the first text, wherein the identifier corresponding to the first text includes the first semi-transparent floating window.

[0047] Wherein, the first input may be a specific touch input of the user on the first text. For example, the first input may be a long press input or a double click input on the first text.

[0048] It should be noted that in the embodiments of the present application, only the first text is taken as an example to explain the selection process of one text block by the user. In fact, the user can perform the first input on multiple different text blocks respectively to select multiple different text blocks based on the first input. For example, please refer to Figure 3 (b). After the user selects a text block based on the first input, if it is necessary to further select the second text block after the text block, the user can continue to perform the first input on the text block to be selected again. In this way, it is convenient for the user to select different contents on the page based on the first input.

[0049] It can be understood that a first semi-transparent floating window 205 can be floatingly displayed above each selected text. The first semi-transparent floating window 205 can not only serve as an identifier, but also the user can view the text content in the text below through the first semi-transparent floating window 205.

[0050] In this embodiment, by using the first semi-transparent floating window 205 as the identifier of the first text, in this way, it is convenient for the user to view the selected text and it is also convenient for the user to view the text content in the text below through the first semi-transparent floating window 205.

[0051] Optionally, the first semi-transparent floating window includes a semi-transparent floating window body, a first identifier, a second identifier, and a third identifier. The semi-transparent floating window body is floatingly displayed above the first text. The method further includes:

[0052] Upon receiving a third input to the first identifier, close the first semi-transparent floating window to cancel the selection of the first text; or,

[0053] Upon receiving a fourth input to the second identifier, scale the first semi-transparent floating window to update the selected area of the first semi-transparent floating window; or,

[0054] Upon receiving a fifth input to the third identifier, a second semi-transparent floating window is suspended and displayed on the upper layer of the first interface, where the second semi-transparent floating window is used to select a second text in the first interface, and the second text is other text in the first interface except the first text among at least two texts included in the first interface.

[0055] Please refer to Figure 3 (b). During the process of the user selecting text based on the first input, if the user finds that a certain text is misselected, the user can click on the first identifier 206 in the first semi-transparent floating window 205 above the text to cancel the selection of the text. The deselected text will not be added to the first window 202 during the subsequent second input. That is, the above-mentioned second input can be a click input by the user on the first identifier 206.

[0056] Please refer to Figure 3 (b). In some embodiments of the present application, during the process of the user selecting text based on the first input, if the user finds that the selected area of the first semi-transparent floating window 205 does not match the area where the first text to be selected is located, the user can drag the second identifier 207 to adjust the coverage area of the first semi-transparent floating window 205, so that the selected area of the first semi-transparent floating window 205 matches the area where the first text to be selected is located. For example, when the first semi-transparent floating window 205 covers other content in addition to the first text, the size of the first semi-transparent floating window 205 can be reduced by dragging the second identifier 207 so that the first semi-transparent floating window 205 only covers the first text. Another example is that when the first semi-transparent floating window 205 only covers a part of the first text, the size of the first semi-transparent floating window 205 can be enlarged by dragging the second identifier 207 so that the first semi-transparent floating window 205 completely covers the first text. That is, the above-mentioned fourth input can be a drag input on the second identifier 207.

[0057] Please refer to Figure 3(b), In some embodiments of the present application, during the process that the user selects text based on the first input, after completing the selection of the first text, the user can click on the third identifier 208 in the first text to add a second semi-transparent floating window 214. In this way, the user can drag the second semi-transparent floating window 214 above other text to be selected to achieve the selection of other text. It can be understood that the first semi-transparent floating window 205 and the second semi-transparent floating window 214 are the same semi-transparent floating window, that is, the second semi-transparent floating window 214 also includes a first identifier 206, a second identifier 207, and a third identifier 208. The user can close the second semi-transparent floating window 214, adjust the second semi-transparent floating window 214, and add another new semi-transparent floating window based on the first identifier 206, the second identifier 207, and the third identifier 208 in the second semi-transparent floating window 214. That is, the above-mentioned fifth input can be a click input on the third identifier 208.

[0058] It can be understood that in some embodiments of the present application, after the user completes the selection of the first text, the user can continue to select other text in two different ways. The first way is to click on the third identifier 208, and the second way can be to directly perform the above-mentioned first input on other text.

[0059] In this embodiment, by making the first semi-transparent floating window 205 include a semi-transparent floating window body, a first identifier 206, a second identifier 207, and a third identifier 208, in this way, it is convenient for the user to cancel the selection of the selected text, and it is convenient for the user to adjust the selection range of the selected text, and it is convenient for the user to select other text.

[0060] Optionally, before displaying all the text with the identifier in the first interface in the first window when receiving the second input of the user, it includes:

[0061] When the second interface is displayed, receive the sixth input of the user on the third text in the second interface, and in response to the sixth input, display the identifier corresponding to the third text;

[0062] When receiving the second input of the user, displaying all the text with the identifier in the first interface in the first window includes:

[0063] When receiving the second input of the user, display all the text with the identifier in the first interface in the first window, and display all the text with the identifier in the second interface in the first window.

[0064] It can be understood that during the process of the user selecting text based on the first input, the user can select text in different interfaces across interfaces. In this way, subsequently, based on the second input, the text selected by the user in different interfaces can be uniformly added to the first window 202. Among them, the text added to the first window 202 can be arranged and displayed in the selection order according to the order of the user's text selection.

[0065] The above-mentioned first interface and second interface can be any interfaces including different texts. It can be understood that during the process of the user selecting text based on the first input, in addition to being able to select text in the first interface and the second interface, the user can also select text in other interfaces, that is, during the process of the user selecting text, the user can select text across more than two interfaces, and when receiving the second input of the user, the text selected by the user in all interfaces can be added to the first window 202 in batches for display.

[0066] It should be noted that the text displayed in the first interface and the text displayed in the second interface can be of the same type or different types. For example, in some embodiments of the present application, the text displayed in the first interface and the text displayed in the second interface are both web page texts. Another example is that in some other embodiments of the present application, among the text displayed in the first interface and the text displayed in the second interface, one is a web page text and the other is a non-web page text. Among them, the non-web page text can be various non-web page types of text, for example, it can be a document or an e-book, etc.

[0067] It can be understood that the above-mentioned sixth input and the first input can be selection inputs of the same type.

[0068] In specific implementation, the user can first open the first interface, and after completing the selection of the text in the first interface, hide the first interface. At this time, the first semi-transparent floating window 205 corresponding to the selected text in the first interface can be hidden together with the first interface, but the text that has been selected in the first interface remains in the selected state. Then, open the second interface, and then select text in the second interface. When the user completes the selection of the text in all interfaces, the user can click the confirmation control 209. At this time, the text selected by the user in all interfaces can be added to the first window 202 in sequence according to the selection order.

[0069] In this implementation manner, since the user can select text in different interfaces across interfaces, thus, based on the method provided by the embodiments of the present application, it is convenient for the user to perform cross-text editing to further improve the text editing effect.

[0070] Optionally, in the case where the first text is a text in picture format, the displaying of the first text in the first window in response to the first input includes:

[0071] In response to the first input, recognize the text in the first text, and display the text in the first text in the first window.

[0072] It can be understood that the above first text can be a picture with text. The recognition of the text in the first text can specifically be a process of extracting the text from the picture based on Optical Character Recognition (OCR) technology.

[0073] In addition, after recognizing the text in the first text, the text in the first text in the first interface can be made editable. The editable state can enable the user to directly select the text in the first text in the first interface and directly copy the text in the first text.

[0074] It should be noted that when the first text is a text in text format, there is no need to recognize the text in the first text, and the first text can be directly added to the first window 202 during the addition process.

[0075] In this embodiment, in the case where the first text is a text in picture format, by recognizing the text in the first text and adding the text in the first text to the first window 202, in this way, it can facilitate the user to perform unified editing processing on the text in picture format and the text in text format during the text integration process, thereby being beneficial to improving the effect of text integration.

[0076] Optionally, before receiving the first input of the user on the first text in the first interface, the method further includes:

[0077] Obtain the preference information of the user;

[0078] Based on the preference information, display the first interface, where, in the first interface, the format of the text matching the preference information is the first format; in the first interface, the format of the other text except the text matching the preference information is the second format, and the first format is different from the second format.

[0079] The above second format may be the format when normal text is displayed in the first interface, and the first format may be the format when text is highlighted in the first interface. For example, the text indicated by the first format and the second format may be exactly the same, and the difference is that: the text displayed in the first format is in a highlighted state, or, there is an underline below the text displayed in the first format, etc. That is, in the first interface, the text matching the preference information is highlighted.

[0080] Among them, the preference information may be preference information generated based on search records, specifically, it may be generated according to the user's search records in the recent period. For example, when the question with the most search times by the user in the past week is "What are the tourist attractions in Area A", the user's current preference information can be set to: tourist attractions in Area A. In this case, if there is text related to "tourist attractions in Area A" in the above first interface, the text about "tourist attractions in Area A" in the first interface can be highlighted.

[0081] For another example, when the content with the longest browsing duration by the user in the past month is recipes, the user's current preference information can be set to: recipes. In this case, if there is text related to "recipes" in the above first interface, the text about "recipes" in the first interface can be highlighted.

[0082] In this embodiment, by obtaining the user's preference information and highlighting the text matching the preference information in the first interface, in this way, it is convenient to quickly locate the content that may be of interest in the first interface, which is beneficial to improving the speed at which the user selects text.

[0083] Optionally, after displaying the first text in the first window in response to the first input, the method further includes:

[0084] In the case of receiving an editing input from the user for the text in the first window, in response to the editing input, edit the text in the first window to obtain the edited text.

[0085] The above first window 202 may be a window with various text editing functions. Specifically, when the user selects the text to be edited in the first window 202, an editing toolbar can be displayed. In this way, the user can edit the selected text through the editing tools in the editing toolbar, where the editing toolbar may include various common text editing tools. For example, it may include copy, bold, underline, format brush, etc.

[0086] The above edited text can be a newly generated text based on the user's editing input. The user can forward, copy, or download the edited text. For example, please refer to Figure 5 (b). The first window 202 may include a sharing control 211, a copying control 212, and a downloading control 213. In this way, the user can forward, copy, or download the edited text based on the sharing control 211, the copying control 212, and the downloading control 213.

[0087] In addition, through cloud storage technology, it can be ensured that the user can access the generated text across devices. For example, please refer to Figure 4 (b). After the user finishes editing and clicks the save control 210, the electronic device can automatically upload the edited text to the cloud for storage, so as to facilitate the user to view and edit at any time.

[0088] In this embodiment, since the user can select all the texts to be summarized in the first interface through the first input, and then, through the second input, add all the selected texts to the first window 202 for editing. In this process, since two or more texts can be selected at the same time and all the selected texts can be added to the first window 202 in batches, it is beneficial to simplify the operation process of text summarization and improve the efficiency of text integration.

[0089] Optionally, the editing input includes at least one of the following editing inputs: text content editing input and text format editing input.

[0090] Among them, the text content editing input may include various inputs for editing text content. For example, it may include adding text, deleting text, etc. The above text format editing input may include various inputs for editing text formats. For example, it may include bold, font color, underline, etc.

[0091] In this embodiment, by making the editing input include text content editing input and text format editing input, it is beneficial to enrich the diversity of text editing by the user in the first window 202, thereby improving the quality of the text obtained after editing.

[0092] Optionally, after editing the text in the first window 202 in response to the editing input to obtain the edited text, the method further includes:

[0093] Generating a text label matching the edited text, where the text label is used to characterize the text type of the edited text;

[0094] Storing the edited text according to the text label.

[0095] Specifically, the edited text can be classified by various text classification methods to obtain the text type of the edited text. For example, the edited text can be recognized by a pre-trained text classification model to obtain the text type of the edited text.

[0096] In addition, the above text tags can also be user-defined input tags. For example, during the process of the user editing the text in the first window 202, the user can manually input or select the text tag of the currently edited text. When the user clicks to save, the edited text can be automatically stored at the storage location corresponding to the text tag according to the text tag.

[0097] The above storing the edited text according to the text tag specifically may refer to: classifying and storing the edited text according to the text tag. Specifically, all texts with the same text tag can be stored in the same folder to facilitate subsequent search by the user.

[0098] The types of the above text tags can be preset. For example, the text tags can include: travel guides, recipes, learning materials, etc.

[0099] In this embodiment, by generating a text tag for the edited text and storing the edited text according to the text tag, in this way, classification of the text can be realized, and it can be convenient for the subsequent user to search for the edited text.

[0100] Optionally, the first window further includes a sharing control 211. After the text in the first window is edited in response to the edit input to obtain the edited text, the method further includes:

[0101] When receiving a seventh input from the user to the sharing control 211, sharing the edited text to a first application.

[0102] Wherein, the first application can be the application to which the first interface belongs, or can be other applications outside the application to which the first interface belongs.

[0103] The above sharing method of sharing the edited text to the first application can be various common sharing methods. For example, it can be shared to a specific contact, or can be published in the form of the user's personal dynamic.

[0104] For example, in some embodiments of the present application, when receiving a seventh input from the user to the sharing control 211, at least one candidate application may be displayed. The user may select the first application from the at least one displayed candidate application, where the first application may be any one of the at least one candidate applications. After the user selects the first application, all contacts in the first application may be displayed. The user may select at least one contact from the displayed contacts, and then share the edited text to the contacts selected by the user through the first application.

[0105] For another example, in some other embodiments of the present application, when receiving a seventh input from the user to the sharing control 211, all contacts in the first application may also be directly displayed. The user may select at least one contact from the displayed contacts, and then share the edited text to the contacts selected by the user through the first application.

[0106] For another example, in some other embodiments of the present application, when receiving a seventh input from the user to the sharing control 211, the edited text may also be directly published in the form of the user's personal dynamic in the first application, so that when the user's friends view the dynamic through the first application, they can view the edited text.

[0107] In this embodiment, since the user can directly share the edited text to the first application based on the seventh input in the first interface after completing the text editing, this is conducive to simplifying the text sharing process.

[0108] Please refer to Figure 6 , which is a schematic flowchart of a text processing method provided by an embodiment of the present application. The method includes the following steps:

[0109] Step 601: Open and load the target page. Specifically, please refer to Figure 2 , an application program or a browser plugin may be started to load the content of the target page. A floating toolbar 201 may be displayed on the target page. When the user clicks on the floating toolbar, the first window 202 is displayed. The position of the floating toolbar 201 on the target page may be located in an area convenient for the user to operate. The first window 202 may include function controls such as adding new text, editing, and closing. Before adding any text, the edit button is grayed out and cannot be clicked. When the user clicks to add new text, the original browsing page is opened.

[0110] Step 602: Select text. Please refer to Figure 3, the user can select the desired text on the current display page. Specifically, when the user long-presses the text, the selected text is highlighted, and the text area supports copying and closing. After selection, by clicking "Confirm", the selected text can be added to the first window 202, or after selection, the user can drag the text to add the selected text to the first window 202.

[0111] Step 603, view the added content, please refer to Figure 4 , the text added to the first window 202 can be displayed in the first window 202 in the same order as the original text.

[0112] Step 604, edit the content, please refer to Figure 4 , when the user clicks the editing control 204, the first window 202 can be displayed full screen. During the editing process, dragging the position of the text is supported, editing the text content is supported, and format editing is also supported.

[0113] Step 605, save the content, please refer to Figure 4 (b), after the user finishes editing, the user can click the save control 210 to save the edited text.

[0114] Step 606, preview, please refer to Figure 5 (a), the user can preview the generated edited text by clicking the above floating toolbar 201.

[0115] Step 607, share, copy and export, please refer to Figure 5 (b), the user can share, copy and export the generated edited text through the sharing control, the copy control 212 and the download control 213.

[0116] The method provided by the embodiment of the present application can achieve efficient text selection and merging, reduce the repeated operations of users, and improve work efficiency. Through the instant preview and editing functions, users can ensure that the merged document meets expectations. In addition, the cloud storage technology enables the document to be seamlessly accessed and shared between different applications, enhancing the user experience.

[0117] For the text processing method provided by the embodiment of the present application, the execution subject can be a text processing device. In the embodiment of the present application, taking the text processing device executing the text processing method as an example, the text processing device provided by the embodiment of the present application is described.

[0118] Please refer to Figure 7 , Figure 7 is a schematic structural diagram of a text processing device 700 provided by the embodiment of the present application. The text processing device 700 includes:

[0119] A receiving module 701, configured to receive a first input of a user on a first text in the first interface when the first interface is displayed, where the first interface includes the first text and a first window;

[0120] A display module 702, configured to display the first text in the first window in response to the first input.

[0121] Optionally, the display module 702 is specifically configured to display an identifier corresponding to the first text in response to the first input;

[0122] The display module 702 is further specifically configured to display the first text corresponding to the identifier in the first interface in the first window when a second input of the user is received.

[0123] Optionally, the display module 702 is specifically configured to display a first semi-transparent floating window floating above the first text in response to the first input, where the identifier corresponding to the first text includes the first semi-transparent floating window.

[0124] Optionally, the first semi-transparent floating window includes a semi-transparent floating window body, a first identifier, a second identifier, and a third identifier. The semi-transparent floating window body floats above the first text. The apparatus further includes:

[0125] A closing module, configured to close the first semi-transparent floating window to cancel the selection of the first text when a third input on the first identifier is received; or,

[0126] An updating module, configured to scale the first semi-transparent floating window to update the selected area of the first semi-transparent floating window when a fourth input on the second identifier is received; or,

[0127] The display module 702 is further configured to display a second semi-transparent floating window floating above the first interface when a fifth input on the third identifier is received, where the second semi-transparent floating window is used to select a second text in the first interface, and the second text is other text in the at least two texts included in the first interface except the first text.

[0128] Optionally, the display module 702 is further configured to receive a sixth input of a user on a third text in the second interface when the second interface is displayed, and display an identifier corresponding to the third text in response to the sixth input;

[0129] The display module 702 is further configured to, when receiving the second input from the user, display all the texts with the identifier in the first interface in the first window, and display all the texts with the identifier in the second interface in the first window.

[0130] Optionally, when the first text is a text in picture format, the display module 702 is specifically configured to, in response to the first input, recognize the text in the first text and display the text in the first text in the first window.

[0131] Optionally, the device further includes:

[0132] An acquisition module, configured to acquire the preference information of the user;

[0133] The display module 702 is specifically configured to display the first interface based on the preference information, where, in the first interface, the format of the text matching the preference information is the first format; in the first interface, the format of the other texts except the text matching the preference information is the second format, and the first format is different from the second format.

[0134] Optionally, the device further includes:

[0135] An editing module, configured to, when receiving an editing input from the user for the text in the first window, in response to the editing input, edit the text in the first window to obtain an edited text.

[0136] Optionally, the editing input includes at least one of the following editing inputs: a text content editing input and a text format editing input.

[0137] Optionally, the device further includes:

[0138] A generating module, configured to generate a text label matching the edited text, where the text label is used to characterize the text type of the edited text;

[0139] A storage module, configured to store the edited text according to the text label.

[0140] Optionally, the first window further includes a sharing control, and the device further includes:

[0141] An analysis module, configured to, when receiving a seventh input from the user for the sharing control, share the edited text to a first application.

[0142] In this embodiment, since the text selected by the user based on the first input in the first interface can be displayed in the first window 202, during the text editing process, the user can select all the text to be edited based on the first input. Since all the files selected by the first input will be displayed in the first window 202, the user can edit all the selected text in the first window 202. During this process, since all the files selected by the first input will be displayed in the first window 202, that is, there is no need for the user to copy and paste the text to be edited one by one. Therefore, it is beneficial to simplify the operation process of text summarization and improve the efficiency of text integration.

[0143] The text processing device 700 in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0144] The text processing device 700 in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0145] The text processing device 700 provided by the embodiments of the present application can implement Figure 1 each process implemented by the method embodiments, achieving the same technical effects. To avoid repetition, details are not described here again.

[0146] In some embodiments, such as Figure 8As shown in the figure, an embodiment of the present application further provides an electronic device 800, including a processor 801, a memory 802, a program or instruction stored on the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, it implements each process of the above-mentioned text processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0147] It should be noted that the electronic device in the embodiment of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0148] Figure 9 Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

[0149] The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0150] Wherein, the user input unit 907 is configured to receive a first input from the user to the first text in the first interface when the first interface is displayed, wherein the first interface includes the first text and a first window;

[0151] The display unit 906 is configured to display the first text in the first window in response to the first input.

[0152] Optionally, the display unit 906 is configured to display an identifier corresponding to the first text in response to the first input;

[0153] The display unit 906 is configured to display the first text corresponding to the identifier in the first interface in the first window when receiving a second input from the user.

[0154] Optionally, the display unit 906 is configured to display a first semi-transparent floating window floating above the first text in response to the first input, wherein the identifier corresponding to the first text includes the first semi-transparent floating window.

[0155] Optionally, the first semi-transparent floating window includes a semi-transparent floating window body, a first identifier, a second identifier, and a third identifier. The semi-transparent floating window body floats above the first text. The processor 910 is configured to close the first semi-transparent floating window to cancel the selection of the first text when receiving a third input to the first identifier; or,

[0156] The processor 910 is configured to scale the first semi-transparent floating window to update the selected area of the first semi-transparent floating window when receiving a fourth input to the second identifier; or,

[0157] The display unit 906 is configured to floatingly display a second semi-transparent floating window on the upper layer of the first interface when receiving a fifth input to the third identifier, where the second semi-transparent floating window is used to select a second text in the first interface, and the second text is other text in the at least two texts included in the first interface except the first text.

[0158] Optionally, the user input unit 907 is configured to receive a sixth input from a user to a third text in the second interface when the second interface is displayed, and in response to the sixth input, display an identifier corresponding to the third text;

[0159] The display unit 906 is configured to display all texts having the identifier in the first interface in the first window and display all texts having the identifier in the second interface in the first window when receiving the second input from the user.

[0160] Optionally, the display unit 906 is configured to recognize the text in the first text in response to the first input and display the text in the first text in the first window.

[0161] Optionally, the processor 910 is configured to obtain preference information of the user;

[0162] The display unit 906 is configured to display the first interface based on the preference information, where in the first interface, the format of the text matching the preference information is a first format; in the first interface, the format of the other text except the text matching the preference information is a second format, and the first format is different from the second format.

[0163] Optionally, the processor 910 is configured to edit the text in the first window in response to an edit input when receiving an edit input from the user to the text in the first window, to obtain an edited text.

[0164] Optionally, the edit input includes at least one of the following edit inputs: a text content edit input and a text format edit input.

[0165] Optionally, the processor 910 is configured to generate a text label matching the edited text, and the text label is used to characterize the text type of the edited text.

[0166] The processor 910 is configured to store the edited text according to the text label.

[0167] Optionally, the processor 910 is configured to share the edited text to a first application when receiving a seventh input from the user to the sharing control.

[0168] Those skilled in the art can understand that the electronic device 900 may further include a power source (such as a battery) for supplying power to each component. The power source may be logically connected to the processor 910 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0169] It should be understood that in the embodiments of the present application, the input unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042. The GPU 9041 processes the image data of a static picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. The other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here.

[0170] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 can include volatile memory or non-volatile memory, or the memory 909 can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 909 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0171] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 910 either.

[0172] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above text processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0173] Among them, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disc, etc.

[0174] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above text processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0175] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0176] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitations, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device including the element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed. They may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.

[0177] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0178] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the specific embodiments described above. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A text processing method, characterized in that: include: In the case of displaying a first interface, receiving a first input of a user on a first text in the first interface, wherein the first interface includes the first text and a first window; In response to the first input, the first text is displayed in the first window.

2. The method according to claim 1, characterized in that In response to the first input, displaying the first text in the first window includes: In response to the first input, displaying a mark corresponding to the first text; When a second input from the user is received, a first text corresponding to the identifier in the first interface is displayed in the first window.

3. The method according to claim 2, characterized in that The step of displaying a mark corresponding to the first text in response to the first input includes: In response to the first input, a first semi-transparent floating window is displayed in a floating manner on an upper layer of the first text, wherein the logo corresponding to the first text includes the first semi-transparent floating window.

4. The method according to claim 3, characterized in that The first semi-transparent floating window includes a semi-transparent floating window body, a first identifier, a second identifier, and a third identifier, and the semi-transparent floating window body is displayed in a floating manner on an upper layer of the first text. The method further includes: When a third input to the first identifier is received, closing the first semi-transparent floating window to cancel the selection of the first text; or, When a fourth input of the second identifier is received, scaling the first semi-transparent floating window to update the selected area of ​​the first semi-transparent floating window; or When the fifth input to the third identifier is received, a second semi-transparent floating window is displayed floating on the upper layer of the first interface, wherein the second semi-transparent floating window is used to select a second text in the first interface, and the second text is other text among the at least two texts included in the first interface, except the first text.

5. The method according to claim 2, characterized in that: In the case of receiving the second input from the user, before the first window displays all the texts with the identifier in the first interface, the method includes: In the case of displaying the second interface, receiving a sixth input of the user for the third text in the second interface, and displaying a mark corresponding to the third text in response to the sixth input; In the case of receiving the second input from the user, displaying all texts with the identifier in the first interface in the first window includes: When the second input from the user is received, all texts with the identifier in the first interface are displayed in the first window, and all texts with the identifier in the second interface are displayed in the first window.

6. The method according to claim 1, characterized in that In a case where the first text is text in a picture format, displaying the first text in the first window in response to the first input includes: In response to the first input, characters in the first text are recognized and displayed in the first window.

7. The method according to claim 1, characterized in that Before receiving a first input of a first text in the first interface from a user, the method further includes: Obtain user preference information; Based on the preference information, the first interface is displayed, wherein in the first interface, the format of the text matching the preference information is a first format; in the first interface, the format of other texts except the text matching the preference information is a second format, and the first format is different from the second format.

8. The method according to claim 1, characterized in that In response to the first input, after the first window displays the first text, the method further includes: When an edit input of the user on the text in the first window is received, the text in the first window is edited in response to the edit input to obtain the edited text.

9. The method according to claim 8, characterized in that The editing input includes at least one of the following editing inputs: text content editing input and text format editing input.

10. The method according to claim 8, characterized in that After editing the text in the first window in response to the editing input and obtaining the edited text, the method further includes: Generating a text label matching the edited text, wherein the text label is used to characterize the text type of the edited text; The edited text is stored according to the text label.

11. The method according to claim 8, characterized in that The first window also includes a sharing control. In response to the editing input, the text in the first window is edited. After the edited text is obtained, the method further includes: When a seventh input of the user to the sharing control is received, the edited text is shared to the first application.

12. A text processing device, characterized in that: include: a receiving module, configured to receive, when displaying a first interface, a first input of a first text in the first interface by a user, wherein the first interface includes the first text and a first window; The display module is configured to display the first text in the first window in response to the first input.

13. The device according to claim 12, characterized in that The display module is specifically configured to display a mark corresponding to the first text in response to the first input; The display module is further specifically configured to display, in the first window, a first text corresponding to the identifier in the first interface when a second input from the user is received.

14. The device according to claim 13, characterized in that The display module is specifically configured to display a first semi-transparent floating window in a floating layer above the first text in response to the first input, wherein the logo corresponding to the first text includes the first semi-transparent floating window.

15. The device according to claim 14, characterized in that The first semi-transparent floating window includes a semi-transparent floating window body, a first mark, a second mark, and a third mark, and the semi-transparent floating window body is suspended and displayed on an upper layer of the first text. The device also includes: a closing module, configured to close the first semi-transparent floating window to cancel the selection of the first text when a third input to the first identifier is received; or an updating module, configured to, upon receiving a fourth input of the second identifier, scale the first semi-transparent floating window to update a selected area of ​​the first semi-transparent floating window; or The display module is also used to display a second semi-transparent floating window floating on the upper layer of the first interface when a fifth input to the third identifier is received, wherein the second semi-transparent floating window is used to select a second text in the first interface, and the second text is other text among the at least two texts included in the first interface, except the first text.

16. The device according to claim 13, characterized in that The display module is further configured to receive a sixth input of a user on a third text in the second interface when the second interface is displayed, and display a mark corresponding to the third text in response to the sixth input; The display module is further used to display all texts with the identifier in the first interface in the first window upon receiving the second input from the user, and to display all texts with the identifier in the second interface in the first window.

17. The device according to claim 12, characterized in that The display module is specifically configured to recognize characters in the first text and display the characters in the first text in the first window in response to the first input when the first text is a text in a picture format.

18. The device according to claim 12, characterized in that The device also includes: An acquisition module is used to obtain user preference information; The display module is specifically used to display the first interface based on the preference information, wherein in the first interface, the format of the text matching the preference information is a first format; in the first interface, the format of other texts except the text matching the preference information is a second format, and the first format is different from the second format.

19. The device according to claim 12, characterized in that The device also includes: The editing module is used for, upon receiving an editing input from a user on the text in the first window, editing the text in the first window in response to the editing input to obtain the edited text.

20. The device according to claim 19, characterized in that The editing input includes at least one of the following editing inputs: text content editing input and text format editing input.

21. The device according to claim 19, characterized in that The device also includes: A generating module, used for generating a text label matching the edited text, wherein the text label is used for characterizing the text type of the edited text; A storage module is used to store the edited text according to the text label.

22. The device according to claim 19, characterized in that The first window also includes a sharing control, and the device also includes: The analysis module is used to share the edited text to the first application when receiving a seventh input from the user to the sharing control.

23. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the text processing method according to any one of claims 1 to 11 are implemented.

24. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the text processing method according to any one of claims 1 to 11 are implemented.

25. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the text processing method according to any one of claims 1 to 11.

Citation Information

Cited By

  • Text processing method and apparatus, electronic device, medium and program product

    WO2026171160A1