Text content selection method and device

By displaying the target information input box and serial number identification on the interface of the electronic device, users can directly select key information of the text content on the surface screen, solving the completeness and accuracy of the text content selected on the surface screen, and improving the human-computer interaction experience.

CN113885743BActive Publication Date: 2025-04-04VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111044549.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2025-04-04
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

On electronic devices with curved screens, it is difficult for users to completely select text content at the edge of the screen, resulting in poor selection integrity and accuracy and poor human-computer interaction experience.

Method used

By displaying the target information input box on the interface of the electronic device, the user can enter key information to locate text content and enable the user to directly select the desired content by displaying the serial number identification, thereby avoiding sliding input.

Benefits of technology

It realizes the fast and accurate selection of text content on the curved screen, improves the completeness and accuracy of selection, and improves the human-computer interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113885743B_ABST
    Figure CN113885743B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for selecting text content, the method comprising: receiving a first input of a user for a target text in a first interface; in response to the first input, displaying a target information input box on the first interface, the target information input box being used for the user to input key information; receiving a second input of the user, the second input being the user's input of at least one first key information in the target information input box; in response to the second input, displaying N serial number identifiers on N contents, the N contents being contents corresponding to the at least one key information in the target text, the N contents corresponding one-to-one to the N serial number identifiers, and N being a positive integer; receiving a third input of the user for M serial number identifiers among the N serial number identifiers, M being a positive integer less than or equal to N; in response to the third input, selecting and marking the target content from the target text according to the contents corresponding to the M serial number identifiers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a method and device for selecting text content. Background Art

[0002] Currently, when a user performs operations such as copying, forwarding, and searching text on an electronic device, the user can select and input the text content so that the electronic device can magnify and display the text content selected by the user, so that the user can determine whether the selected text content is the text content selected by the user according to the magnified text content.

[0003] However, when the screen of the electronic device is a curved screen, if the part of the text content to be selected by the user is located at the edge of the curved screen, when the user's finger moves from the main screen area of ​​the curved screen to the edge of the curved screen (i.e., the curved part), the electronic device cannot completely detect the user's input, that is, the end position of the input detected by the electronic device is the junction of the main screen area and the curved part, so the user cannot completely select the required text content, so that the integrity and accuracy of the text selected by the electronic device are poor, and the human-computer interaction experience is poor. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and device for selecting text content, which can solve the problems of poor integrity and accuracy of text selected by electronic devices and poor human-computer interaction experience.

[0005] In a first aspect, an embodiment of the present application provides a text content selection method, which includes: receiving a first input from a user for a target text in a first interface; in response to the first input, displaying a target information input box on the first interface, the target information input box being used for the user to input key information; receiving a second input from the user, the second input being the user's input of at least one first key information in the target information input box; in response to the second input, displaying N serial number identifiers on N contents, the N contents being contents corresponding to at least one key information in the target text, the N contents corresponding one-to-one to the N serial number identifiers, and N being a positive integer; receiving a third input from the user for M serial number identifiers among the N serial number identifiers, M being a positive integer less than or equal to N; in response to the third input, selecting and marking the target content from the target text according to the contents corresponding to the M serial number identifiers.

[0006] In a second aspect, an embodiment of the present application provides a text content selection device, which includes: a receiving module, a display module, and a processing module. Among them, the receiving module is used to receive a first input of a user to a target text in a first interface. The display module is used to display a target information input box on the first interface in response to the first input received by the receiving module, and the target information input box is used for the user to input key information. The receiving module is also used to receive a second input from the user, and the second input is the user's at least one first key information in the target information input box. The display module is also used to display N serial number identifiers on N contents, and the N contents are contents corresponding to at least one key information in the target text, and the N contents correspond to the N serial number identifiers one by one, and N is a positive integer. The receiving module is also used to receive a third input of a user to M serial number identifiers in the N serial number identifiers, and M is a positive integer less than or equal to N. The processing module is used to select and mark the target content from the target text according to the contents corresponding to the M serial number identifiers in response to the third input received by the receiving module.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

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

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In an embodiment of the present application, the electronic device can display a target information input box based on the user's first input of the target text, so that the user can input at least one key information in the target information input box, so that the electronic device can determine the corresponding text content (i.e., N contents) from the target text based on the at least one key information, and display N serial number identifiers to show the user the order of the N contents, so that the user can input M serial number identifiers among the N serial number identifiers to select the text content (i.e., target content) required by the user by selecting M contents. In the present solution, after the user triggers the electronic device to display an information input box, the user can directly enter key information in the information input box, so that the electronic device can quickly locate the corresponding text content from the target text according to the key information entered by the user, and display the serial number identifiers corresponding to these text contents to show the user the order of these text contents, so that the user can directly input the serial number identifier, so that the electronic device can quickly and accurately select the content corresponding to the serial number identifier entered by the user, that is, the text content required by the user, without the user having to slide and input on the screen of the electronic device to select the required text content. Therefore, the solution of the present application can avoid the problem that the electronic device cannot fully detect the user's input when the user's finger moves from the main screen area to the curved part, thereby ensuring the integrity and accuracy of the text content selected by the electronic device and improving the human-computer interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a flowchart of a text content selection method provided by an embodiment of the present application;

[0012] Figure 2 This is one of the example schematic diagrams of a mobile phone interface provided in an embodiment of the present application;

[0013] Figure 3 This is a second example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0014] Figure 4 This is a third example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0015] Figure 5 This is a fourth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0016] Figure 6 This is a fifth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0017] Figure 7 This is a sixth example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0018] Figure 8 This is the seventh example schematic diagram of an interface of a mobile phone provided in an embodiment of the present application;

[0019] Fig. 9 It is a structural schematic diagram of a text content selection device provided in an embodiment of the present application;

[0020] Fig.10 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0021] Fig.11 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0024] The text content selection method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0025] In an embodiment of the present application, a user can input a target text so that the electronic device displays an information input box, so that the user can input at least one key information in the information input box, so that the electronic device can determine the corresponding text content (i.e., N contents) from the target text according to the at least one key information, and display N serial number identifiers to show the user the order of the N contents, so that the user can input M serial number identifiers among the N serial number identifiers to select the text content (i.e., target content) required by the user by selecting M contents.

[0026] In the present solution, after the user triggers the electronic device to display an information input box, the user can directly enter key information in the information input box, so that the electronic device can quickly locate the corresponding text content from the target text according to the key information entered by the user, and display the serial number identifiers corresponding to these text contents to show the user the order of these text contents, so that the user can directly input the serial number identifier, so that the electronic device can quickly and accurately select the content corresponding to the serial number identifier entered by the user, that is, the text content required by the user, without the user having to slide and input on the screen of the electronic device to select the required text content. Therefore, the solution of the present application can avoid the problem that the electronic device cannot fully detect the user's input when the user's finger moves from the main screen area to the curved part, thereby ensuring the integrity and accuracy of the text content selected by the electronic device and improving the human-computer interaction experience.

[0027] The present application embodiment provides a method for selecting text content. Figure 1 A flowchart of a text content selection method provided by an embodiment of the present application is shown. Figure 1 As shown, the text content selection method provided in the embodiment of the present application may include the following steps 201 to 206.

[0028] Step 201: The electronic device receives a first input of a target text in a first interface from a user.

[0029] In an embodiment of the present application, the electronic device displays a first interface in which a target text is displayed. A user can make a first input to the target text to trigger the electronic device to display an information input box, so that the user can enter key information to select the text content in the target text.

[0030] Optionally, in an embodiment of the present application, the above-mentioned target text includes at least one of the following: text content, picture content, emoticon image, application icon, mark, etc.

[0031] Optionally, in an embodiment of the present application, the first interface may be a desktop of the electronic device, or may be an interface of an application in the electronic device, or may be a status bar interface / notification bar interface of the electronic device, etc.

[0032] Optionally, in the embodiment of the present application, the first input may be a long press input, a click input (such as a double-click input or a preset number of inputs), a sliding input, or an input of a preset track, etc. of the target text by the user in the first interface. The specific input may be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0033] Optionally, in an embodiment of the present application, before making the first input, the user can trigger the electronic device to start the text selection function by inputting in the setting application; or, before making the first input, the user can input a control in the first interface to enable the electronic device to start the text selection function. After the text selection function is turned on, the electronic device is allowed to select text content through key information.

[0034] Step 202: The electronic device displays a target information input box on the first interface in response to the first input.

[0035] In the embodiment of the present application, the above-mentioned target information input box is used for the user to input key information.

[0036] Optionally, in an embodiment of the present application, the electronic device may display the target information input box in a blank area in the first interface; or, the electronic device may display the target information input box in a floating form on the first interface.

[0037] It should be noted that the blank area is an area in the first interface where no content is displayed.

[0038] Optionally, in an embodiment of the present application, the key information may include at least one of the following: a keyword, a key word, a key letter, a key sentence, a key symbol, a key pattern, etc.

[0039] Optionally, in an embodiment of the present application, the target information input box includes a first information input box and a second information input box, the first information input box is used for the user to input one key information, and the second information input box is used for the user to input another key information.

[0040] For example, the electronic device is a mobile phone. Figure 2 As shown, the mobile phone displays a first interface in which a target text is displayed. After the user makes a first input to the target text, the mobile phone can display a target information input box (such as input box 10 and input box 11). Input box 10 is used for the user to input a key information (such as the keyword "net"), and input box 11 is used for the user to input another key information (such as the keyword "preparation").

[0041] Optionally, in an embodiment of the present application, the target information input box includes two input areas, one input area is used for the user to input one key information, and the other input area is used for the user to input another key information.

[0042] Step 203: The electronic device receives a second input from the user.

[0043] In the embodiment of the present application, the second input is the user's input of at least one key information in the target information input box.

[0044] Optionally, in an embodiment of the present application, the second input is the user's input of the first key information and the second key information in the target information input box.

[0045] Optionally, in an embodiment of the present application, the above-mentioned second input includes a first sub-input and a second sub-input, the first sub-input is the user's input of first key information in the first information input box, and the second sub-input is the user's input of second key information in the second information input box.

[0046] Optionally, in an embodiment of the present application, the first sub-input may be the user's input of the first key information in an input area in the target information input box, and the second sub-input may be the user's input of the second key information in another input area in the target information input box.

[0047] Step 204: The electronic device displays N serial number identifiers on the N contents in response to the second input.

[0048] In an embodiment of the present application, the above-mentioned N contents are contents corresponding to at least one key information in the target text, the N contents correspond one-to-one to N serial number identifiers, and N is a positive integer.

[0049] In an embodiment of the present application, the electronic device can search for content corresponding to / matching each key information from the target text based on at least one key information to find N contents corresponding to the at least one key information, and then the electronic device displays N serial number identifiers for the N contents, that is, a serial number identifier is displayed for each of the N contents, and each serial number identifier is used to indicate the serial number of one of the N contents (that is, the order of one content in the N contents).

[0050] It should be noted that the contents corresponding to all the key information in the at least one key information mentioned above are different; or, the contents corresponding to part of the key information in the at least one key information mentioned above are the same, and the contents corresponding to another part of the key information are different; or, the contents corresponding to all the key information in the at least one key information mentioned above are the same.

[0051] Optionally, in an embodiment of the present application, the at least one key information includes first key information and second key information; the electronic device can determine at least one first content matching the first key information from the target text and mark at least one first content, and the electronic device can determine at least one second content matching the second key information from the target text and mark at least one second content.

[0052] In an embodiment of the present application, the electronic device can perform text parsing on the target text to search the target text for content that matches the first key information and content that matches the second key information. It should be noted that the first content that matches the first key information can be understood as: the first content is exactly the same or similar to the first key information, that is, the similarity between the first content and the first key information is greater than or equal to the preset similarity. The second content that matches the second key information can be understood as: the second content is exactly the same or similar to the second key information, that is, the similarity between the second content and the second key information is greater than or equal to the preset similarity.

[0053] Optionally, in an embodiment of the present application, the electronic device may sort the N contents according to the display order of the N contents in the target text (ie, each content corresponds to a serial number identifier) ​​to display N serial number identifiers.

[0054] Optionally, in an embodiment of the present application, the electronic device may mark at least one first content and at least one second content in different ways; or, the electronic device may mark at least one first content and at least one second content in the same way with different parameters (such as color).

[0055] Optionally, in the embodiment of the present application, the electronic device may use a third color to mark at least one first content, and use a fourth color to mark at least one second content.

[0056] Optionally, in the embodiment of the present application, the above step 204 can be specifically implemented by the following step 204a.

[0057] Step 204a: In response to the second input, the electronic device displays at least one group of serial number identifiers on the N contents in at least one display mode to display N serial number identifiers.

[0058] In the embodiment of the present application, each group of serial number identifiers in the above-mentioned at least one group of serial number identifiers is used to indicate the order of at least one content corresponding to a key information, and each group of serial number identifiers corresponds to a display mode.

[0059] It can be understood that N contents correspond to N serial number identifiers, and the same contents in the N contents correspond to the same group of serial number identifiers. The electronic device can group the N contents according to whether there are the same contents in the N contents, and sort each group of contents, that is, a group of serial number identifiers is displayed in a display mode for each group of contents, and a group of serial number identifiers is used to indicate the order of each content in a group of contents in the group of contents. In other words, the number of groupings of the contents is equal to the number of groupings of the serial number identifiers, and the number of groupings of the serial number identifiers is equal to the number of types of display modes.

[0060] Optionally, in the embodiments of the present application, at least one of the above display methods is at least one color display method, that is, different color display methods are used to display at least one group of serial number identifiers; alternatively, at least one of the above display methods includes at least one of the following: color display method, flashing display method, protruding display method, etc.

[0061] Exemplarily, in combination with Figure 2 , such as Figure 3 shown, after the user makes a second input (i.e., inputs the keywords "net" and "equipment"), the mobile phone can search for the content corresponding to the keyword "net" (i.e., multiple characters "net") and the content corresponding to the keyword "equipment" (i.e., multiple characters "equipment") from the target text, and use a third color to display a group of serial number identifiers (such as digital identifiers "1" to digital identifiers "4"), where this group of serial number identifiers is used to indicate the sorting of each character "net" among the multiple characters "net", and use a fourth color to display another group of serial number identifiers (such as digital identifiers "1" and digital identifiers "2"), where this other group of serial number identifiers is used to indicate the sorting of each character "equipment" among the multiple characters "equipment". It should be noted that Figure 3 uses two different fillings to indicate the third color and the fourth color.

[0062] In the embodiments of the present application, the electronic device can display different groups of serial number identifiers in different display methods, so that the user can intuitively determine the serial number identifiers corresponding to different groups of content according to different display methods, so that the user can directly select the serial numbers for each group of content, so that the user can quickly and accurately select the required text content.

[0063] Step 205: The electronic device receives a third input from the user for M of the N serial number identifiers.

[0064] Where M is a positive integer less than or equal to N.

[0065] In the embodiments of the present application, the above third input is used to trigger the electronic device to select target content from the target text based on the content corresponding to the M serial number identifiers.

[0066] Optionally, in an implementation manner of the embodiments of the present application, the above third input may be a selection input (such as a click input) of the user for the M serial number identifiers in the target text.

[0067] Optionally, in another implementation manner of the embodiments of the present application, the above first interface further includes a serial number identifier input box, and the above third input may be the user's input of the M serial number identifiers in the serial number identifier input box in sequence.

[0068] Optionally, in an embodiment of the present application, the electronic device may display a target information input box and a serial number identification input box on the first interface after receiving the user's first input.

[0069] For example, in combination Figure 3 ,like Figure 4 As shown, the mobile phone displays N serial number identifiers and a serial number identifier input box 12 on the first interface; the user can input M serial number identifiers (for example, the digital identifier "1") in the serial number identifier input box 12 so that the mobile phone can select the content corresponding to the digital identifier "1".

[0070] Optionally, in another implementation of the embodiment of the present application, the first interface further includes a serial number control. Before the above step 205, the text content selection method provided by the embodiment of the present application further includes the following steps 301 and 302.

[0071] Step 301: The electronic device receives a fourth input from a user to a serial number control.

[0072] Optionally, in the embodiment of the present application, the fourth input is a user's selection input (eg, click input) of the serial number control.

[0073] Optionally, in an embodiment of the present application, the electronic device may display a target information input box and a serial number control in the first interface after receiving the user's first input.

[0074] Step 302: The electronic device displays a target window in response to a fourth input.

[0075] In the embodiment of the present application, the target window includes N serial number identifiers. In this manner, the third input is the user's input of the M serial number identifiers in the target window (eg, selection input of the M serial number identifiers in sequence).

[0076] It can be understood that after the user makes the fourth input to the serial number control, the electronic device can display N serial number identifiers through the target window, and then the user can make a third input to M of the N serial number identifiers to trigger the electronic device to select the content corresponding to the M serial number identifiers.

[0077] For example, in combination Figure 3 ,like Figure 5 As shown, the mobile phone displays N serial number identifiers and a serial number control 13 on the first interface; the user can input the serial number control 13 to make the mobile phone display N serial number identifiers (for example, digital identifier "1" to digital identifier "4"), and then the user can select and input M serial number identifiers (for example, digital identifier "1") among the N serial number identifiers, so that the mobile phone can select the content corresponding to the digital identifier "1".

[0078] Step 206: In response to the third input, the electronic device selects and marks target content from the target text according to the content corresponding to the M serial number identifiers.

[0079] In an embodiment of the present application, the electronic device can determine the starting position and ending position of the content to be selected based on the contents corresponding to the M serial number identifiers (hereinafter referred to as M contents), so as to start selecting text content from the starting position and stop selecting text content at the end position to obtain the target content.

[0080] Optionally, in the embodiment of the present application, the above step 206 can be specifically implemented by the following step 206a or step 206b.

[0081] Step 206a: In response to the third input, when the M serial number identifiers are one serial number identifier, the electronic device determines all content between the content corresponding to the one serial number identifier and the content corresponding to the last serial number identifier among the N serial number identifiers as target content, and marks the target content.

[0082] It can be understood that when the user selects a serial number identifier through the third input, that is, when the user selects a content from N contents, the electronic device can use the one content as the starting position of the content to be selected, and use the last content of the N contents as the ending position of the content to be selected, so as to start selecting text content from the starting position and stop selecting text content at the ending position to obtain the target content, that is, the target content includes the content at the starting position, the content between the content at the starting position and the content at the ending position, and the content at the ending position.

[0083] Step 206b, in response to the third input, the electronic device determines all contents between the content corresponding to the first serial number identifier in the multiple serial number identifiers and the content corresponding to the last serial number identifier in the multiple serial number identifiers as target content, and marks the target content.

[0084] It can be understood that when the user selects multiple serial number identifiers through the third input, that is, the user selects multiple contents from N contents, the electronic device can use the first content among the multiple contents as the starting position of the content to be selected, and use the last content among the multiple contents as the ending position of the content to be selected, so as to start selecting text content from the starting position and stop selecting text content at the ending position to obtain the target content, that is, the target content includes the content at the starting position, the content between the content at the starting position and the content at the ending position, and the content at the ending position.

[0085] Optionally, in the embodiments of the present application, the above at least one key information includes first key information and second key information. The content corresponding to the first serial number identifier is the first content matched with the first key information, and the content corresponding to the last serial number identifier is the second content matched with the second key information. The electronic device may determine all the text content from the first content to the second content as the target content, that is, the target content includes the first content, the content between the first content and the second content, and the second content.

[0086] Exemplarily, in combination with Figure 3 , such as Figure 6 shown, the content corresponding to the first serial number identifier is the first content (for example, the text "net" corresponding to the digital identifier "1"), and the content corresponding to the last serial number identifier is the second content (for example, the text "device" corresponding to the digital identifier "1"); the mobile phone may determine all the text content between the first content and the second content as the target content, that is, the target content includes the text "net" corresponding to the digital identifier "1", all the content between the text "net" and the text "device" corresponding to the digital identifier "1", and the text "device" corresponding to the digital identifier "1", and the mobile phone may mark the target content to prompt the user of the text content selected from the target text.

[0087] In the embodiments of the present application, the electronic device may directly determine the content corresponding to the first serial number identifier and the content corresponding to the last serial number identifier from the target text according to at least one key information, so as to quickly and accurately determine the text content selected by the user demand based on these two contents, ensuring the integrity and accuracy of the text content selected by the electronic device.

[0088] Optionally, in the embodiments of the present application, when there are multiple serial number identifiers among the M serial number identifiers, and the content corresponding to the first serial number identifier among the multiple serial number identifiers is the same as the content corresponding to the last serial number identifier, the "determining all the content between the content corresponding to the first serial number identifier among the multiple serial number identifiers and the content corresponding to the last serial number identifier among the multiple serial number identifiers as the target content and marking the target content" in step 206b may be specifically implemented by the following steps 206b1 to 206b3.

[0089] Step 206b1: The electronic device splits the content corresponding to the first serial number identifier into a first part of content and a second part of content, and marks the first part of content with a first color.

[0090] Optionally, in the embodiments of the present application, the electronic device may split the content corresponding to the first serial number identifier into two parts of content according to the length of the content corresponding to the first serial number identifier or the structure of the font of the text, etc.

[0091] Step 206b2: The electronic device splits the content corresponding to the last serial number identifier into a third part of content and a fourth part of content, and marks the fourth part of content with a second color.

[0092] Optionally, in the embodiments of the present application, the electronic device may split the content corresponding to the last serial number identifier into two parts of content according to the length of the content corresponding to the last serial number identifier, the font structure of the characters, etc.

[0093] Step 206b3: The electronic device determines all the content between the first part of content and the fourth part of content as the target content and marks the target content.

[0094] In the embodiments of the present application, the above-mentioned first part of content and the fourth part of content are different contents, and the first part of content and the fourth part of content can form the content corresponding to the first serial number identifier / the content corresponding to the last serial number identifier.

[0095] In the embodiments of the present application, the above-mentioned at least one key information includes a first key information and a second key information. The content corresponding to the first serial number identifier is the first content matched with the first key information, and the content corresponding to the last serial number identifier is the second content matched with the second key information. The electronic device may evenly divide both the first content and the second content into two parts of content. The electronic device may select one part of the first content as the content determined by the first key information, and select one part of the second content as the content determined by the second key information.

[0096] Exemplarily, as Figure 7 shown, both the first content and the second content determined by the mobile phone are the character "个". The mobile phone may evenly divide the character "个" corresponding to the first content into left and right two parts of content, and evenly divide the character "个" corresponding to the second content into left and right two parts of content. Then the mobile phone may select the left part of the character "个" corresponding to the first content, and select the right part of the character "个" corresponding to the second content, so as to determine the target content according to the left part of content and the right part of content.

[0097] Optionally, in the embodiments of the present application, the above-mentioned first part of content and the fourth part of content may be selected by the electronic device independently, or selected by the user through input selection.

[0098] In the embodiment of the present application, when the electronic device determines that the content corresponding to the first serial number identifier and the content corresponding to the last serial number identifier are the same based on the key information input by the user, the electronic device splits the content corresponding to the first serial number identifier and the content corresponding to the last serial number identifier to determine two different content parts from the split content, thereby accurately determining the target content based on the two different content parts, thereby ensuring the accuracy and flexibility of the electronic device in selecting text content. Optionally, in the embodiment of the present application, the electronic device can mark the target content in a preset manner, which is any of the following: color marking, flashing marking, protruding display marking, etc.

[0099] An embodiment of the present application provides a text content selection method, where an electronic device can display a target information input box based on a user's first input of a target text, so that the user can input at least one key information in the target information input box, so that the electronic device can determine the corresponding text content (i.e., N contents) from the target text based on the at least one key information, and display N serial number identifiers to show the user the order of the N contents, so that the user can input M serial number identifiers among the N serial number identifiers to select the text content (i.e., target content) required by the user by selecting the M contents. In this solution, after the user triggers the electronic device to display the information input box, the user can directly enter key information in the information input box, so that the electronic device can quickly locate the corresponding text content from the target text according to the key information entered by the user, and display the serial number identifiers corresponding to these text contents to show the user the order of these text contents, so that the user can directly enter the serial number identifier, so that the electronic device can quickly and accurately select the content corresponding to the serial number identifier entered by the user, that is, the text content required by the user, without the user sliding input on the screen of the electronic device to select the required text content. Therefore, the solution of the present application can avoid the problem that the electronic device cannot completely detect the user's input when the user's finger moves from the main screen area to the curved surface part, thereby ensuring the integrity and accuracy of the electronic device selecting the text content and improving the human-computer interaction experience. Optionally, in the embodiment of the present application, the above-mentioned first interface also includes a selection control. Before "selecting and marking the target content from the target text according to the content corresponding to the M serial number identifiers" in the above step 206, the text content selection method provided in the embodiment of the present application also includes the following steps 401 and 402, and the above step 206 can be specifically performed by the following step 206c.

[0100] Step 401: In response to a third input, the electronic device marks the contents corresponding to M serial numbers.

[0101] In the embodiments of the present application, the electronic device may mark the content corresponding to M serial number identifiers in different ways.

[0102] Optionally, in the embodiments of the present application, the electronic device may use a preset marking method to mark the content corresponding to M serial number identifiers, and the preset marking method includes at least one of the following: color marking method, flashing marking method, protruding display marking method, etc.

[0103] Exemplarily, the electronic device may use different colors to mark the first content corresponding to the first key information and the second content corresponding to the second key information respectively.

[0104] Step 402: The electronic device receives a fifth input from the user for the selection control.

[0105] In the embodiments of the present application, the above selection control is used to select the target content.

[0106] Optionally, in the embodiments of the present application, the above fifth input is a selection input (such as a click input) of the user for the selection control.

[0107] Optionally, in the embodiments of the present application, after receiving the first input from the user, the electronic device may display a target information input box and a selection control on the first interface.

[0108] Exemplarily, in combination with Figure 6 , as Figure 8 shown, the mobile phone displays a selection control 14 on the first interface, and the user can input to the selection control 14 so that the mobile phone determines all the content between the text "network" corresponding to the digital identifier "1" and the text "equipment" corresponding to the digital identifier "1" as the target content.

[0109] Step 204c: In response to the fifth input, the electronic device selects and marks the target content from the target text according to the content corresponding to M serial number identifiers.

[0110] In the embodiments of the present application, after the electronic device marks the content corresponding to M serial number identifiers, the user can perform a fifth input on the selection control, so that the electronic device can quickly select the target content, improving the integrity and accuracy of the electronic device in selecting text content.

[0111] Optionally, in the embodiments of the present application, the user can also trigger the electronic device to select and mark the target content by performing a sliding input on the content corresponding to M serial number identifiers in the target text. For example, the user can slide from the content corresponding to the first serial number identifier among the M serial number identifiers to the content corresponding to the last serial number identifier.

[0112] Optionally, in an embodiment of the present application, after selecting the target content, the electronic device may display editing controls on the first interface, such as copy controls, share controls, search controls, cut controls, etc., so that the user can edit the target content through the editing controls to implement editing operations on the target content.

[0113] It should be noted that the text content selection method provided in the embodiment of the present application can be executed by an electronic device, or a text content selection device, or a control module in the text content selection device for executing the text content selection method. In the embodiment of the present application, the text content selection device executing the text content selection method is taken as an example to illustrate the text content selection device provided in the embodiment of the present application.

[0114] Fig. 9 FIG. 1 shows a possible structural diagram of a text content selection device involved in an embodiment of the present application. Fig. 9 As shown, the text content selection device 70 may include: a receiving module 71 , a display module 72 and a processing module 73 .

[0115] Among them, the receiving module 71 is used to receive the first input of the user for the target text in the first interface. The display module 72 is used to display the target information input box on the first interface in response to the first input received by the receiving module 71, and the target information input box is used for the user to input key information. The receiving module 71 is also used to receive the second input of the user, and the second input is the user's at least one first key information in the target information input box. The display module 72 is also used to display N serial number identifiers on N contents, and the N contents are the contents corresponding to at least one key information in the target text, and the N contents correspond to the N serial number identifiers one by one, and N is a positive integer. The receiving module 71 is also used to receive the user's third input for M serial number identifiers among the N serial number identifiers, and M is a positive integer less than or equal to N. The processing module 73 is used to select and mark the target content from the target text according to the contents corresponding to the M serial number identifiers in response to the third input received by the receiving module 71.

[0116] In one possible implementation, the processing module 73 is specifically used to, when M serial number identifiers are one serial number identifier, determine all content between the content corresponding to one serial number identifier and the content corresponding to the last serial number identifier among N serial number identifiers as target content, and mark the target content; or, when M serial number identifiers are multiple serial number identifiers, determine all content between the content corresponding to the first serial number identifier among the multiple serial number identifiers and the content corresponding to the last serial number identifier among the multiple serial number identifiers as target content, and mark the target content.

[0117] In a possible implementation, the content corresponding to the first serial number identifier is the same as the content corresponding to the last serial number identifier; the processing module 73 is specifically used to split the content corresponding to the first serial number identifier into a first part of the content and a second part of the content, and mark the first part of the content with a first color; and split the content corresponding to the last serial number identifier into a third part of the content and a fourth part of the content, and mark the fourth part of the content with a second color; and determine all the content between the first part of the content to the fourth part of the content as the target content.

[0118] In a possible implementation, the first interface further includes a serial number control. The receiving module 71 is further configured to receive a fourth input from the user to the serial number control before receiving a third input from the user to M serial number identifiers among the N serial number identifiers. The display module 72 is further configured to display a target window in response to the fourth input received by the receiving module 71, wherein the target window includes N serial number identifiers; wherein the fourth input is the user's input to the M serial number identifiers in the target window.

[0119] In a possible implementation, the first interface further includes a selection control; the processing module 73 is further used to mark the contents corresponding to the M serial number identifiers. The receiving module 71 is further used to receive a fifth input from the user to the selection control. The processing module 73 is specifically used to respond to the fifth input received by the receiving module 71, and select and mark the target content from the target text according to the contents corresponding to the M serial number identifiers.

[0120] The embodiment of the present application provides a text content selection device. After the user triggers the text content selection device to display an information input box, the user can directly enter key information in the information input box, so that the text content selection device can quickly locate the corresponding text content from the target text according to the key information entered by the user, and display the serial number identifiers corresponding to these text contents to show the user the order of these text contents, so that the user can directly input the serial number identifier, so that the text content selection device can quickly and accurately select the content corresponding to the serial number identifier entered by the user, that is, the text content required by the user, without the user having to slide and input on the screen of the text content selection device to select the required text content. Therefore, the solution of the present application avoids the problem that the text content selection device cannot completely detect the user's input when the user's finger moves from the main screen area to the curved surface part, thereby ensuring the integrity and accuracy of the selected text content and improving the human-computer interaction experience.

[0121] The text content selection device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0122] The text content selection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0123] The text content selection device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0124] Alternatively, if Fig.10 As shown, an embodiment of the present application also provides an electronic device 90, including a processor 91, a memory 92, and a program or instruction stored in the memory 92 and executable on the processor 91. When the program or instruction is executed by the processor 91, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0125] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0126] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0127] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0128] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0129] The user input unit 107 is used to receive a first input of a target text in the first interface from a user. The display unit 106 is used to display a target information input box on the first interface in response to the first input, and the target information input box is used for the user to input key information. The user input unit 107 is also used to receive a second input from the user, and the second input is at least one first key information in the target information input box. The display unit 106 is used to display N serial number identifiers on N contents in response to the second input of the user input unit 107, and the N contents are the contents corresponding to at least one key information in the target text, and the N contents correspond to the N serial number identifiers one by one, and N is a positive integer; the user input unit 107 is also used to receive a third input of M serial number identifiers among the N serial number identifiers from the user, and M is a positive integer less than or equal to N. The processor 110 is used to select and mark the target content from the target text according to the contents corresponding to the M serial number identifiers in response to the third input of the user input unit 107.

[0130] An embodiment of the present application provides an electronic device. After the user triggers the electronic device to display an information input box, the user can directly enter key information in the information input box, so that the electronic device can quickly locate the corresponding text content from the target text according to the key information entered by the user, and display the serial number identifiers corresponding to these text contents to show the user the order of these text contents, so that the user can directly input the serial number identifier, so that the electronic device can quickly and accurately select the content corresponding to the serial number identifier entered by the user, that is, the text content required by the user, without the user having to slide and input on the screen of the electronic device to select the required text content. Therefore, the solution of the present application avoids the problem that the electronic device cannot completely detect the user's input when the user's finger moves from the main screen area to the curved part, thereby ensuring the integrity and accuracy of the text content selected by the electronic device and improving the human-computer interaction experience.

[0131] Optionally, in an embodiment of the present application, the processor 110 is specifically used to, when M serial number identifiers are one serial number identifier, determine all content between the content corresponding to one serial number identifier and the content corresponding to the last serial number identifier among N serial number identifiers as target content, and mark the target content; or, when M serial number identifiers are multiple serial number identifiers, determine all content between the content corresponding to the first serial number identifier among the multiple serial number identifiers and the content corresponding to the last serial number identifier among the multiple serial number identifiers as target content, and mark the target content.

[0132] Optionally, in an embodiment of the present application, the content corresponding to the first serial number identifier is the same as the content corresponding to the last serial number identifier; the processor 110 is specifically used to split the content corresponding to the first serial number identifier to obtain a first part of the content and a second part of the content, and mark the first part of the content with a first color; and split the content corresponding to the last serial number identifier to obtain a third part of the content and a fourth part of the content, and mark the fourth part of the content with a second color; and determine all the content between the first part of the content to the fourth part of the content as the target content.

[0133] Optionally, in the embodiment of the present application, the first interface further includes a serial number control; the user input unit 107 is further configured to receive a fourth input from the user to the serial number control before receiving a third input from the user to M of the N serial number identifiers. The display unit 106 is further configured to display a target window in response to the fourth input from the user input unit 107, wherein the target window includes N serial number identifiers, wherein the fourth input is the user's input to the M serial number identifiers in the target window.

[0134] Optionally, in an embodiment of the present application, the first interface further includes a selection control; the processor 110 is further configured to mark the contents corresponding to the M serial number identifiers before selecting and marking the target contents from the target text according to the contents corresponding to the M serial number identifiers. The user input unit 107 is further configured to receive a fifth input from the user to the selection control. The processor 110 is specifically configured to select and mark the target contents from the target text according to the contents corresponding to the M serial number identifiers in response to the fifth input of the user input unit 107.

[0135] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0136] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.

[0137] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0138] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0139] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0140] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0141] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

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

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course 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, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0144] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A text content selection method, characterized in that: The method comprises: Receiving a first input of a target text in a first interface by a user; In response to the first input, displaying a target information input box on the first interface, wherein the target information input box is used for a user to input key information; receiving a second input from a user, where the second input is the user's input of at least one key information in the target information input box; In response to the second input, N serial number identifiers are displayed on N contents, the N contents are contents in the target text corresponding to the at least one key information, the N contents correspond to the N serial number identifiers one-to-one, and N is a positive integer; receiving a third input of M serial number identifiers from the N serial number identifiers by a user, where M is a positive integer less than or equal to N; In response to the third input, selecting and marking target content from the target text according to the content corresponding to the M sequence numbers; The step of selecting and marking target content from the target text according to the content corresponding to the M sequence numbers includes: In the case where the M serial number identifiers are one serial number identifier, all contents between the content corresponding to the one serial number identifier and the content corresponding to the last serial number identifier among the N serial number identifiers are determined as the target content, and the target content is marked; In the case where the M sequence number identifiers are multiple sequence number identifiers, all contents between the content corresponding to the first sequence number identifier among the multiple sequence number identifiers and the content corresponding to the last sequence number identifier among the multiple sequence number identifiers are determined as the target content, and the target content is marked; The content corresponding to the first serial number identifier is the same as the content corresponding to the last serial number identifier; The step of determining all contents between the contents corresponding to the first serial number identifier among the plurality of serial number identifiers and the contents corresponding to the last serial number identifier among the plurality of serial number identifiers as the target contents includes: Splitting the content corresponding to the first serial number identifier into a first part of content and a second part of content, and marking the first part of content with a first color; Splitting the content corresponding to the last serial number identifier to obtain a third part of content and a fourth part of content, and marking the fourth part of content with a second color; All contents between the first part of content to the fourth part of content are determined as the target content.

2. The method according to claim 1, characterized in that The first interface also includes a serial number control; Before receiving a third input of M sequence identifiers from the user, the method further includes: receiving a fourth input from a user to the sequence number control; In response to the fourth input, displaying a target window, wherein the target window includes the N serial number identifiers; The fourth input is the user's input of the M serial number identifiers in the target window.

3. The method according to claim 1, characterized in that The first interface also includes a selection control; Before selecting and marking target content from the target text according to the content corresponding to the M sequence numbers, the method further includes: Respectively mark the contents corresponding to the M serial numbers; receiving a fifth input from the user to the selection control; The step of selecting and marking target content from the target text according to the content corresponding to the M sequence numbers includes: In response to the fifth input, target content is selected and marked from the target text according to the content corresponding to the M serial numbers.

4. A text content selection device, characterized in that: The text content selection device comprises: a receiving module, a display module and a processing module; The receiving module is used to receive a first input of a target text in the first interface by a user; The display module is used to display a target information input box on the first interface in response to the first input received by the receiving module, wherein the target information input box is used for a user to input key information; The receiving module is further used to receive a second input from a user, where the second input is a user's input of at least one first key information in the target information input box; The display module is further used to display N serial number identifiers on N contents, wherein the N contents are contents in the target text corresponding to the at least one key information, and the N contents correspond to the N serial number identifiers one by one, and N is a positive integer; The receiving module is further used to receive a third input of M sequence identifiers among the N sequence identifiers from a user, where M is a positive integer less than or equal to N; The processing module is configured to select and mark target content from the target text according to the content corresponding to the M sequence numbers in response to the third input received by the receiving module; The processing module is specifically configured to, when the M sequence identifiers are one sequence identifier, determine all contents between the content corresponding to the one sequence identifier and the content corresponding to the last sequence identifier among the N sequence identifiers as the target content, and mark the target content; or, In the case where the M sequence number identifiers are multiple sequence number identifiers, all contents between the content corresponding to the first sequence number identifier among the multiple sequence number identifiers and the content corresponding to the last sequence number identifier among the multiple sequence number identifiers are determined as the target content, and the target content is marked; The content corresponding to the first serial number identifier is the same as the content corresponding to the last serial number identifier; The processing module is specifically used to split the content corresponding to the first serial number identifier into a first part of content and a second part of content, and mark the first part of content with a first color; split the content corresponding to the last serial number identifier into a third part of content and a fourth part of content, and mark the fourth part of content with a second color; and determine all content between the first part of content to the fourth part of content as the target content.

5. The device according to claim 4, characterized in that The first interface also includes a serial number control; The receiving module is further configured to receive a fourth input from the user to the serial number control before receiving a third input from the user to M serial number identifiers among the N serial number identifiers; The display module is further used to display a target window in response to the fourth input received by the receiving module, wherein the target window includes the N serial number identifiers; wherein the fourth input is the user's input of the M serial number identifiers in the target window.

6. The device according to claim 4, characterized in that The first interface also includes a selection control; The processing module is further used to mark the contents corresponding to the M serial number identifiers respectively; The receiving module is further used to receive a fifth input of the user to the selection control; The processing module is specifically configured to respond to the fifth input received by the receiving module, select and mark target content from the target text according to the content corresponding to the M serial number identifiers.

Citation Information

Patent Citations

  • Content processing method and device and electronic equipment

    CN112558811A