Information Processing Method, Information Processing Apparatus, and Electronic Device
By establishing a connection with the remote terminal in the local terminal, and using the control box to determine the character position and select text content in the remote control interface, the difficulties and errors in remote text selection are solved, and efficient and accurate text operations are achieved.
Patent Information
- Application Number
- CN202210763400.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-06-29
AI Technical Summary
In remote control, it is difficult for mobile phones to accurately select text content on remote computers, especially due to limited display area and network delay, which leads to difficult operation and error-prone.
By establishing a remote control connection with the remote terminal in the local terminal, displaying the remote control interface, and using the first control box to determine the initial character position in the text, combining multiple control boxes to realize text selection, including touch, physical keys, voice input, etc., searching for the target character as the end point position to determine the content of the text to be edited.
It improves the efficiency and accuracy of local terminals to control remote terminals to select text, simplifies the operation process, and improves the user experience.
Smart Images

Figure CN115080170B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technologies, and particularly relates to an information processing method, an information processing device, and an electronic device. Background Art
[0002] In related technologies, when operating a remote computer, a mobile phone is usually used to establish a remote connection with the remote computer to control the remote computer. However, when using the mobile phone to control the mouse of the remote computer for text selection, due to the limited display area of the mobile phone and the network latency during remote connection, it is difficult to select the desired content on the remote computer. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide an information processing method, an information processing device, and an electronic device, which can solve the problem that it is difficult and error-prone for local users to select text on a remote computer.
[0004] In a first aspect, the embodiments of this application provide an information processing method applied to a first terminal. The method includes:
[0005] While in a state of establishing a remote control connection with a second terminal, display a remote control interface, where the remote control interface includes text stored in the second terminal;
[0006] Receive a first input from a user for the text;
[0007] In response to the first input, determine a first character in the text and display a first control box;
[0008] Receive a second input from the user for the first control box;
[0009] In response to the second input, use the first character as a starting position to find a target character as an ending position;
[0010] Based on the starting position and the ending position, determine the text content to be edited.
[0011] In a second aspect, the embodiments of this application provide an information processing device. The device includes:
[0012] A display module, configured to display a remote control interface while in a state of establishing a remote control connection with a second terminal, where the remote control interface includes text stored in the second terminal;
[0013] A first receiving module, configured to receive a first input from a user for the text;
[0014] A first processing module, configured to, in response to the first input, determine a first character in the text and display a first control box;
[0015] A second receiving module, configured to receive a second input from a user to the first control box;
[0016] A second processing module, configured to respond to the second input, search for a target character as an end position starting from the first character; and determine the text content to be edited based on the start position and the end position.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that 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.
[0018] In a fourth aspect, an embodiment of the present 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.
[0019] 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 a program or instruction to implement the method described in the first aspect.
[0020] 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 method described in the first aspect.
[0021] In the embodiments of the present application, a remote control connection is established between a local terminal and a remote terminal to display the operation interface of the remote terminal on the local terminal, and the text content to be edited of the remote terminal is determined based on the initial character position determined in the text of the operation interface by the local terminal and the end character position found by the first control box, improving the efficiency of the local terminal controlling the remote terminal to perform text selection. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a schematic flowchart of an information processing method provided by an embodiment of the present application;
[0023] Figure 2 is one of the schematic interface diagrams of information processing provided by an embodiment of the present application;
[0024] Figure 3 is another schematic interface diagram of information processing provided by an embodiment of the present application;
[0025] Figure 4 is a third schematic interface diagram of information processing provided by an embodiment of the present application;
[0026] Figure 5It is the fourth schematic diagram of the information processing interface provided by the embodiments of the present application;
[0027] Figure 6 It is the schematic structural diagram of the information processing device provided by the embodiments of the present application;
[0028] Figure 7 It is the schematic structural diagram of the electronic device provided by the embodiments of the present application;
[0029] Figure 8 It is the schematic hardware diagram of the electronic device provided by the embodiments of the present application. Detailed implementation manners
[0030] 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, rather than 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.
[0031] The terms "first", "second", etc. in the specification and claims 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 data 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 usually 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 and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0032] Next, in conjunction with the accompanying drawings, the information processing method, information processing device, electronic device, and readable storage medium provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0033] Among them, the information processing method can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
[0034] The terminal includes, but is not limited to, a mobile phone or a tablet computer and other portable communication devices with a touch-sensitive surface (for example, a touch screen display and / or a touchpad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (for example, a touch screen display and / or a touchpad).
[0035] In each of the following embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and a joystick.
[0036] The information processing method provided in the embodiments of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the information processing method. The electronic devices mentioned in the embodiments of the present application include, but are not limited to, mobile phones, tablet computers, computers, wearable devices, etc. Hereinafter, the information processing method provided in the embodiments of the present application will be described by taking the electronic device as the execution subject.
[0037] As Figure 1 shown, the information processing method includes: Step 110, Step 120, Step 130, Step 140, and Step 150.
[0038] Step 110: When in a state of establishing a remote control connection with a second terminal, display a remote control interface, where the remote control interface includes text stored in the second terminal.
[0039] In this step, the remote control interface is the operation interface of the second terminal. The operation interface may be a display page containing files such as text, video, or pictures stored in the second terminal, or an online interface, such as a web page opened by the first terminal in an online state.
[0040] In this step, the remote control connection established between the first terminal and the second terminal is used to display the operation interface of the second terminal on the first terminal, so as to perform operations such as text copying or editing on the second operation interface on the first terminal.
[0041] In this embodiment, the method for the second terminal to establish a remote control connection may be a remote connection implemented by using a third-party tool. For example, install a remote connection tool on the electronic device to be connected, and realize the connection between the two electronic devices through the connection of this connection tool. The method for the first terminal and the second terminal to establish a remote control connection may be to use the built-in remote connection function of the electronic device for connection. For example, when both the first terminal and the second terminal are computers, the built-in connection service of the two computers can be used for remote connection.
[0042] It should be noted that the remote control connection established between the first terminal and the second terminal may be a remote control connection established between a mobile terminal and a computer terminal. For example, a mobile phone and a computer are remotely controlled and connected through a third-party connection tool; it may also be a remote control connection established between a mobile terminal and a mobile terminal, or a remote control connection established between a computer terminal and a computer terminal.
[0043] In this embodiment, when the first terminal is a mobile phone and the second terminal is a computer, after the mobile phone and the computer are remotely connected using a third-party connection tool, the computer is remotely controlled by the mobile phone and the computer's control desktop is displayed on the mobile phone. The control desktop may contain multiple texts, videos or pictures.
[0044] Step 120: Receive a first text input from a user.
[0045] In this step, the first input is used to select a portion of text on the remote control interface.
[0046] The first input may be in at least one of the following ways:
[0047] First, the first input may be a touch input, including but not limited to a click input, a slide input, and a press input.
[0048] In this implementation, receiving the first input of the user regarding the text may be receiving a touch operation of the user on the text display area on the first terminal.
[0049] exist Figure 2 In the illustrated embodiment, after the text on the remote control interface 210 is displayed on the first terminal, the finger continuously clicks on the words "friends" on the text, so that these three words are in a selected state on the text.
[0050] Secondly, the input may be a physical key input.
[0051] In this embodiment, a physical button for text selection is provided on the terminal body, and receiving the user's first input can be an operation of receiving the user pressing the corresponding physical button; the input can also be a combined operation of pressing multiple physical buttons at the same time.
[0052] In this embodiment, when the partial text is a character, the position of the cursor in the display screen is controlled by the direction keys on the physical keyboard of the mobile phone so that the cursor is located at the character.
[0053] In some embodiments, when a partial text has multiple characters, for example, when the partial text is "friends", the position of the cursor in the display screen is controlled by the direction keys on the physical keyboard of the mobile phone, so that the cursor is located at the character "朋" and the "OK" control is clicked to make a selection, and the cursor is continued to be controlled to be located at the character "友" and the "OK" control is clicked to make a selection, and finally the cursor is controlled to be located at the character "们" and the "OK" control is clicked to make a selection, so that the partial text can be selected by the mobile phone's directional keyboard and the "OK" control.
[0054] Third, the input may be voice input.
[0055] In this embodiment, after the text on the remote control interface is displayed on the first terminal, after receiving the voice "select friends", "friends" can be selected on the text.
[0056] Of course, in other embodiments, the input can also be in other forms, including but not limited to character input, etc., which can be specifically determined according to actual needs, and this embodiment does not limit this.
[0057] Step 130: In response to the first input, determine the first character in the text and display the first control box.
[0058] In this step, the first character can be a single character. For example, the first character can be an English letter or an English punctuation mark obtained from a single character. The first character can also be multiple characters. For example, the first character can be a Chinese character or a punctuation mark composed of two characters, or multiple Chinese characters composed of multiple characters, etc.
[0059] In this embodiment, the first control box can be used to copy, cut, or share the selected first character, etc., and can also be used to select more characters in the text. For example, the first control box can use the position of the first character as the starting point of selection and continue to select the text content behind the first character; when the first character is not the starting character of the text, the first control box can also use the position of the first character as the starting point of selection to select the text content in front of the first character, or can also use the position of the first character as the starting point of selection to select the text content in front of and behind the first character at the same time.
[0060] In Figure 2 In the shown embodiment, after continuously clicking on the text "friends" on the text with a finger, the text "friends" on the text is selected, and the first control box 211 pops up.
[0061] Step 140: Receive the second input from the user for the first control box.
[0062] In this step, the first control box can include multiple controls. Among them, some controls can directly perform functions such as copying, cutting, or sharing on the first character, and some other controls can select the text content in front of or behind the first character.
[0063] In this step, the first input is used to determine the end position of the content to be edited on the text of the remote control interface.
[0064] Among them, the second input can be touch input, physical button and its combined input, voice input, and other types of input. Specifically refer to the form of the above first input, and this embodiment will not elaborate.
[0065] Taking the second input as touch input as an example for illustration.
[0066] In this embodiment, clicking on the control for selecting the text content after the first character in the first control box can select one or more characters after the first character.
[0067] In this embodiment, the way of character selection can be to take a fixed number of characters after the first character as the selection object. After each click on the corresponding control, continue to select a fixed number of characters after the last character of the currently selected text; this fixed number of characters can be custom-set according to user needs. For example, the fixed number of characters can be 10 characters.
[0068] In this embodiment, the way of character selection can also be to select according to the semantic context of the first character's context, so that the text obtained with the first character as the starting selection position is a complete sentence or paragraph.
[0069] In Figure 3 the embodiment, after the finger clicks on the "extend selection" control on the first control box, the text "I will call all my friends here" on the text is selected.
[0070] Of course, in some embodiments, the logic of character selection can select all the characters in one line of characters, multiple lines of characters, or the entire paragraph where the first character is located after the first character.
[0071] Step 150: In response to the second input, starting from the first character, search for the target character as the end position; based on the start position and the end position, determine the text content to be edited.
[0072] In this step, the text content to be edited is the text content obtained by the user starting from the first character and ending with the target character searched by the first control box on the text.
[0073] In this step, the target character can be one character or two characters.
[0074] In this embodiment, when using the first control box to search for the text content in one direction of the first character, the target character is one character.
[0075] In this embodiment, "friends" on the text is selected and when the finger clicks on the "extend right" control on the first control box, the target character is "come". At this time, the text "friends are all called here" on the text is selected.
[0076] In some embodiments, when using the first control box to search for the text content on both the left and right sides of the first character at the same time, the target character is two characters.
[0077] In Figure 3In the illustrated embodiment, "friends" on the text is selected. When the finger clicks the "expand selection" control on the first control box, since the logic of expanding selection can be that the currently selected content extends forward and backward to the next punctuation mark or line break symbol respectively, after the text "friends" is expanded, the target character obtained on its right is "come", and the target character obtained on its left is "I". At this time, the text "I will call all my friends here" on the text is selected.
[0078] In this embodiment, the way to find the target character can be to match according to the configurable character set on the search path. The configurable character set can be punctuation marks or line break symbols. For example, the configurable character set includes: ",", ".", "!", "?", etc.
[0079] In this embodiment, when any punctuation mark or line break symbol appears on the search path, the character before or after the punctuation mark or line break symbol can be used as the target character.
[0080] In Figure 3 In the illustrated embodiment, for the first character content "when friends", when the finger clicks the "expand selection" control on the first control box, when the text expands to the left, the first punctuation mark on its right is ",", and the character "I" after it is taken as the target character when expanding to the left. The first punctuation mark on its left is ",", and the character "I" before it is taken as the target character when expanding to the left. At this time, the text "I will call all my friends here" on the text is selected.
[0081] In this embodiment, the target character and the first character form a text content with complete semantics.
[0082] In some embodiments, the way to find the target character can also be to select a fixed number of characters after the first character as the selection object. After each click on the corresponding control, continue to select a fixed number of characters after the last character of the currently selected text; the fixed number of characters can be customized according to user needs. For example, the fixed number of characters can be 10 characters.
[0083] In this embodiment, the way to find the target character can also be to select according to the semantic context of the first character, so that the text obtained with the first character as the starting selection position is a complete sentence or paragraph.
[0084] In Figure 3 In the embodiment, after the finger clicks the "expand selection" control on the first control box, the text "I will call all my friends here" on the text is selected.
[0085] Of course, in some embodiments, the way to find the target character can also be to select all the characters in the line of characters after the first character, multiple lines of characters, or the entire paragraph where the first character is located.
[0086] In some embodiments, after the target character is confirmed, if it is still necessary to continue selecting other content of the text on the originally selected text content, the above operation of finding the target character can be performed on the first control box, and finally the text content to be edited can be determined.
[0087] According to the information processing method provided by the embodiments of the present application, a remote control connection is established between the local terminal and the remote terminal to display the operation interface of the remote terminal on the local terminal, and the text content to be edited on the remote terminal is determined through the initial character position determined in the text of the operation interface on the local terminal and the end character position found by the first control box, which improves the efficiency of the local terminal controlling the remote terminal to perform text selection.
[0088] In some embodiments, the first terminal sends a remote control connection request to the second terminal. When the second terminal allows the remote connection, the first terminal and the second terminal establish a remote control connection.
[0089] In this embodiment, when both the first terminal and the second terminal are enabled for remote connection, the first terminal can send a remote control connection request to the second terminal. This remote control connection request can be the IP address of the first terminal, or the account ID or verification password of the first terminal, or other information for the user to identify the identity of the electronic device. The second terminal receives the control connection request and establishes a remote connection with the first terminal after confirming the identity information.
[0090] In this embodiment, the remote control connection method can be a remote connection implemented by using a third-party tool. For example, a remote connection tool is installed on the electronic device to be connected, and the connection between the two electronic devices is achieved through the connection of this connection tool; it can also be a connection by using the built-in remote connection function of the electronic device. For example, when both the first terminal and the second terminal are computers, the built-in connection service of the two computers can be used for remote connection.
[0091] According to the information processing method provided by the embodiments of the present application, the remote connection between the two terminals is realized by the first terminal sending a remote connection request to the second terminal. The second terminal can automatically establish a remote connection with the first terminal after passing the identity verification without manual response, which improves the user's operation experience.
[0092] In some embodiments, the first control box includes a plurality of controls indicating directions, receives a second input from the user to the first control box; in response to the second input, starting from the first character, searches for a target character as the end position, including: receiving the second input from the user to the first control in the first control box; in response to the second input, starting from the first character, searches for a target character as the end position in the direction corresponding to the first control.
[0093] It should be noted that when the first character is the starting character of the text or the character at the end of the text, the target character found using the first control box can only be in the text after the first character or in the text before the first character; when the first character is not the starting character of the text, for example, the first character is in the middle content of the text, then the target character found using the first control box can be one, in the text before or after the first character, or can be two, respectively in the text before or after the first character.
[0094] In this embodiment, multiple controls for performing different text selection directions can be custom-set on the first control box.
[0095] In this embodiment, the first control is any one or more of the multiple controls of the first control box, and is used to select a search direction starting from the first character as the starting search position.
[0096] In this embodiment, receiving the second input from the user, the first terminal responds to the second input and determines the target character in different directions of the first character.
[0097] Among them, the second input can be a touch input, a physical button and its combined input, a voice input, and other types of inputs. For the specific form, refer to the above first input, and this embodiment will not be elaborated.
[0098] In this embodiment, the first control box may include an "extended selection" control, which is used to use the position of the first character as the selection starting point and select the text content in front of and behind the first character simultaneously according to the semantic environment.
[0099] In Figure 3 In the shown embodiment, when "friends" on the text is selected and the "extended selection" control on the first control box is clicked with a finger, the target characters are respectively "I" at the first punctuation mark to the left of the word "friends" and "come" at the first punctuation mark to the right. At this time, the text "I'm going to call all my friends here" on the text is selected.
[0100] In some embodiments, the first control box may further include a "left extension" control, which is used to use the position of the first character as the selection starting point and select the text content in front of the first character according to the semantic environment.
[0101] In Figure 4 In the illustrated embodiment, when the text "I will call all my friends here" is selected and the "Expand Left" control on the first control box is clicked with a finger, the target character is "also" at the first punctuation mark to the left of the text "I will call all my friends here". At this time, the text "There is also sweet stream. I will call all my friends here" on the text is selected.
[0102] In some embodiments, the first control box may further include an "Expand Right" control for starting from the position of the first character and selecting the text content behind the first character according to the semantic context.
[0103] In Figure 5 In the illustrated embodiment, when the text "There is also sweet stream. I will call all my friends here" on the text is selected and the "Expand Right" control on the first control box is clicked with a finger, the target character is "heart" at the first punctuation mark to the right of the currently selected content. At this time, the text "There is also sweet stream. I will call all my friends here. They will surely be happy" on the text is selected.
[0104] According to the information processing method provided by the embodiments of the present application, by setting multiple controls for performing different text selection directions on the first control box, the expansion selection direction of the currently selected text can be flexibly selected, improving the user operation experience.
[0105] In some embodiments, starting from the first character and searching for the target character in the direction corresponding to the first control based on semantic integrity to obtain the end position includes: starting from the first character and searching for multiple candidate characters in the direction corresponding to the first control; determining the target character as the end position among the multiple candidate characters according to the semantic analysis result of the content between the first character and each candidate character.
[0106] In this embodiment, the first control is one of the multiple controls on the first control box and is used to determine the search direction for searching for the target character starting from the first character. For example, the first control can be any one of the "Expand Selection" control, "Expand Left" control, and "Expand Right" control.
[0107] In this embodiment, the candidate characters are characters that meet different contexts when searching for the target character along the corresponding direction of the first character through the first control.
[0108] In this embodiment, the text content formed by the first character and different candidate characters has different semantics, and the text content formed by the first character and the target character has complete semantics.
[0109] In Figure 3In the illustrated embodiment, the selected text "I'm going to call all my friends here" is obtained by Figure 2 searching for the target characters "I" and "here" after the text "friends" in Figure 2 passes through the "extended selection" control. After continuing to click the "extended selection", the target character "also" on the left side of the currently selected content and the target character "heart" on the right side can be obtained respectively, that is, the selected text "There is also sweet stream water. I'm going to call all my friends here and they will surely be happy" as shown in Figure 5 ; then the alternative characters on the left side of the first character can be "I" and "also", and the alternative characters on the right side can be "here" and "heart".
[0110] In this embodiment, after obtaining the above alternative characters, select the appropriate alternative character as the target character according to different semantic results, and then according to the position of the first character and the position of the target character, the text content between the first character and the target character can be selected as the text content to be edited.
[0111] According to the information processing method provided by the embodiments of the present application, by searching for multiple alternative characters that meet different contexts in the corresponding direction of the first control and selecting the target character from the alternative characters, a text with complete semantics can be obtained, improving the accuracy of text extended selection.
[0112] In some embodiments, when the direction indicated by the first control is two directions and it is determined that the semantics of the content between the first character and an alternative character in the first direction is complete, stop performing semantic analysis on the content between the first character and the alternative characters in the second direction.
[0113] In this embodiment, the first direction and the second direction are two opposite directions. When the first control is an "extended selection" control, the text content in the first direction and the second direction of the first character can be selected simultaneously according to the semantic environment. The first direction and the second direction can be the forward and reverse directions when the text is read normally. For example, for horizontally typeset text from left to right, the forward direction is from left to right and the reverse direction is from right to left; for vertically typeset text from top to bottom, the forward direction is from top to bottom and the reverse direction is from bottom to top. Among them, the first direction can be the forward direction and the second direction can be the reverse direction.
[0114] In Figure 3In the illustrated embodiment, the first character is "friends", the first direction is the direction when reading forward along "friends", that is, the direction corresponding to the text "call them all here", and the second direction is the direction when reading backward along "friends", that is, the direction corresponding to the text "I want to take my". After clicking the "Expand Selection" control, the text content in the first direction and the second direction of "friends" can be selected according to the semantic context. After the process of simultaneously selecting text in the first direction and the second direction of the first character ends, the text "I want to take my friends and call them all here" on the text is selected; in addition, when the semantics between the first character "friends" and the alternative character "here" in the first direction is complete, the selection of the text between the first character "friends" and the alternative character "I" in the second direction can be stopped.
[0115] In some embodiments, when the first character and an alternative character in the first direction have complete semantics, the process of continuing to search for alternative characters in the second direction of the first character can be terminated by receiving user input. In this way, the target characters that meet the conditions can be flexibly selected when searching for target characters in both directions.
[0116] In this embodiment, after using the "Expand Selection" control to find the alternative characters in the first direction and the second direction of the text "friends" to obtain the text "I want to take my friends and call them all here", at this time, the first terminal displays "Left Expand Selection Prompt Box: Continue, End" and "Right Expand Selection Prompt Box: Continue, End". After clicking the "End" control on the "Left Expand Selection Prompt Box", the search for alternative characters on the right side of the currently selected content can continue. When the alternative character found is "heart", the text "I want to take my friends and call them all here, and they will surely be happy" on the text is selected.
[0117] In some embodiments, when the first character and an alternative character in the first direction have complete semantics, the process of continuing to search for alternative characters in the second direction of the first character can be terminated by receiving user input.
[0118] In this embodiment, after using the "Expand Selection" control to find the alternative characters in the first direction and the second direction of "friends" to obtain the text "I want to take my friends and call them all here", at this time, the first terminal displays "Left Expand Selection Prompt Box: Continue, End" and "Right Expand Selection Prompt Box: Continue, End". After clicking the "End" control on the "Right Expand Selection Prompt Box", the search for alternative characters on the left side of the currently selected content can continue. When the alternative character found is "also", the text "There is also sweet stream water. I want to take my friends and call them all here" on the text is selected.
[0119] According to the information processing method provided by the embodiments of the present application, by controlling the process of bidirectionally selecting alternative characters, it is possible to terminate the search for alternative characters in the second direction when the first character in the first direction and the alternative characters form a semantically complete text, increasing the flexibility of bidirectional text selection and improving the user experience.
[0120] In some embodiments, after determining the text content to be edited, the method further includes: receiving a third input from the user to the second control of the first control box; in response to the third input, copying the text content to be edited to the clipboard of the second terminal.
[0121] In this embodiment, the second control is one of the multiple controls on the first control box and is used to execute the copy function of the selected text.
[0122] In this embodiment, the third input is used to copy the text content to be edited on the first terminal to the clipboard of the second terminal.
[0123] In this embodiment, after selecting the text content to be edited on the remote control interface of the first terminal, receiving the third input from the user for the text, the first terminal responds to the third input and copies the text content to be edited to the clipboard of the second terminal.
[0124] Among them, the third input can be a touch input, a physical button and its combined input, a voice input, and other types of inputs. Specifically, refer to the form of the above first input, which will not be elaborated in this embodiment.
[0125] In Figure 5 In the shown embodiment, after determining that "There is also sweet stream water. I will call all my friends here and they will definitely be happy" is the text content to be edited, after clicking the "Copy" control on the first control box, "There is also sweet stream water. I will call all my friends here and they will definitely be happy" can be copied to the clipboard of the second terminal to complete the copying of the text content to be edited corresponding to the text on the second terminal.
[0126] In some embodiments, the second control can also be used to cut, mark (bold, underline, highlight), etc. the selected text.
[0127] According to the information processing method provided by the embodiments of the present application, by copying the text content to be edited on the text of the first terminal to implement copying the text content to be edited to the clipboard of the second terminal, it improves the efficiency of copying text on the second terminal and simplifies the operation of controlling remote text copying.
[0128] The information processing method provided by the embodiments of the present application may be executed by an information processing device. In the embodiments of the present application, taking an information sending device as an example to execute the information processing method, the information processing device provided by the embodiments of the present application is described.
[0129] The embodiments of the present application further provide an information processing device.
[0130] As Figure 6 shown, the information processing device includes: a display module 610, a first receiving module 620, a first processing module 630, a second receiving module 640, and a second receiving module 650.
[0131] The display module 610 is configured to display a remote control interface in a state of establishing a remote control connection with a second terminal, where the remote control interface includes text stored in the second terminal;
[0132] The first receiving module 620 is configured to receive a first input of a user for the text;
[0133] The first processing module 630 is configured to, in response to the first input, determine a first character in the text and display a first control box;
[0134] The second receiving module 640 is configured to receive a second input of the user for the first control box;
[0135] The second receiving module 650 is configured to, in response to the second input, use the first character as a starting position to find a target character as an ending position; based on the starting position and the ending position, determine the text content to be edited.
[0136] According to the information processing device provided by the embodiments of the present application, by establishing a remote control connection between a local terminal and a remote terminal to display the operation interface of the remote terminal on the local terminal, and determining the initial character position in the text of the operation interface and the ending character position found by the first control box on the local terminal, the text content to be edited on the remote terminal is determined, improving the efficiency of the local terminal controlling the remote terminal for text editing.
[0137] In some embodiments, the first control box includes a plurality of controls indicating directions, and the second receiving module is further configured to receive a second input of the user for the first control in the first control box; the second processing module is further configured to, in response to the second input, use the first character as a starting position and find a target character as an ending position in the direction corresponding to the first control.
[0138] According to the information processing device provided by the embodiments of the present application, by setting a plurality of controls for executing different text selection directions on the first control box, the expansion selection direction of the currently selected text can be flexibly selected, improving the user operation experience.
[0139] In some embodiments, the second processing module is further configured to start from the first character, search for a plurality of candidate characters in the direction corresponding to the first control based on semantic integrity; and determine a target character from the plurality of candidate characters as the end position according to the semantic analysis result of the content between the first character and each candidate character.
[0140] According to the information processing device provided by the embodiments of the present application, by using the first control to search for a plurality of candidate characters that meet different contexts in the direction corresponding to the first character, and selecting a target character from the candidate characters, a text with complete semantics can be obtained, improving the accuracy of text expansion selection.
[0141] In some embodiments, the second processing module is further configured to stop semantic analysis of the content between the candidate characters in the second direction when the direction indicated by the first control is two directions and it is determined that the content between the first character and a candidate character in the first direction is semantically complete.
[0142] According to the information processing device provided by the embodiments of the present application, by controlling the process of bidirectionally selecting candidate characters, it is possible to terminate the search for candidate characters in the second direction when the first character in the first direction and the candidate characters form a text with complete semantics, increasing the flexibility of bidirectional text selection and improving the user experience.
[0143] In some embodiments, the device further includes: a third receiving module, configured to receive a third input of a second control in the first control box by the user after determining the text content to be edited; and a third processing module, configured to respond to the third input and copy the text content to be edited to the clipboard of the second terminal.
[0144] According to the information processing device provided by the embodiments of the present application, by copying the text content to be edited on the text of the first terminal to implement copying the text content to be edited to the clipboard of the second terminal, the efficiency of copying text on the second terminal is improved, and at the same time, the operation of controlling remote text copying is simplified.
[0145] The information processing device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may 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 may also be 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.
[0146] The information processing device in the embodiments of the present application may be a device with an operating system. The operating system may 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.
[0147] The information processing device provided in the embodiments of the present application can implement Figures 1 to 5 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0148] Optionally, as Figure 7 shown, the embodiments of the present application further provide an electronic device 800, including a processor 801, a memory 802, and 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 information processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0149] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0150] Figure 8 Schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.
[0151] The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 808, and a processor 810, etc.
[0152] Those skilled in the art can understand that the electronic device 800 may further include a power supply (such as a battery) for powering each component. The power supply can be logically connected to the processor 810 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 8 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.
[0153] Among them, the display unit 806 is used to display a remote control interface in a state of establishing a remote control connection with a second terminal. The remote control interface includes text stored in the second terminal.
[0154] The user input unit 807 is used to receive a first input from the user for the text.
[0155] The processor 810 is used to respond to the first input, determine a first character in the text, and display a first control box.
[0156] The user input unit 807 is further used to receive a second input from the user for the first control in the first control box.
[0157] The processor 810 is further used to respond to the second input, use the first character as the starting position, search for a target character as the ending position; based on the starting position and the ending position, determine the text content to be edited.
[0158] According to the electronic device provided by the embodiments of the present application, a remote control connection is established between a local terminal and a remote terminal to display the operation interface of the remote terminal on the local terminal, and the text content to be edited on the remote terminal is determined through the initial character position determined in the text of the operation interface on the local terminal and the ending character position found by the first control box, which improves the efficiency of the local terminal controlling the remote terminal to perform text selection.
[0159] Optionally, the first control box includes multiple controls indicating directions. The user input unit 807 is further used to receive a second input from the user for the first control in the first control box. The processor 810 is further used to respond to the second input, use the first character as the starting position, and search for a target character as the ending position in the direction corresponding to the first control.
[0160] According to the electronic device provided by the embodiments of the present application, by setting a plurality of controls for performing different text selection directions on the first control box, the expansion selection direction of the currently selected text can be flexibly selected, improving the user's operation experience.
[0161] Optionally, the processor 810 is further configured to use the first character as the starting position, and find a plurality of candidate characters in the direction corresponding to the first control based on semantic integrity; according to the semantic analysis result of the content between the first character and each candidate character, determine a target character among the plurality of candidate characters as the end position.
[0162] According to the electronic device provided by the embodiments of the present application, by using the first control to find a plurality of candidate characters that conform to different contexts in the direction corresponding to the first character and selecting a target character from the candidate characters, a text with complete semantics can be obtained, improving the accuracy of text expansion selection.
[0163] Optionally, when the direction indicated by the first control is two directions and it is determined that the content between the first character and a candidate character in the first direction is semantically complete, the processor 810 is further configured to stop performing semantic analysis on the content between the first character and the candidate characters in the second direction.
[0164] According to the electronic device provided by the embodiments of the present application, by controlling the process of bidirectional selection of candidate characters, it is possible to terminate the search for candidate characters in the second direction when the first character in the first direction and the candidate characters form a text with complete semantics, increasing the flexibility of bidirectional text selection and improving the user experience.
[0165] Optionally, the user input unit 807 is further configured with a third receiving module for receiving a third input of the user on the second control in the first control box after determining the text content to be edited; the processor 810 is further configured to respond to the third input and copy the text content to be edited to the clipboard of the second terminal.
[0166] According to the electronic device provided by the embodiments of the present application, by copying the text content to be edited on the text of the first terminal to implement copying the text content to be edited to the clipboard of the second terminal, the efficiency of copying text on the second terminal is improved, and at the same time, the operation of controlling remote text copying is simplified.
[0167] It should be understood that in the embodiments of the present application, the input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042. The GPU 8041 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of, for example, a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also referred to as a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. The other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated herein.
[0168] The memory 808 can be used to store software programs and various data. The memory 808 mainly includes 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, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 808 may include a volatile memory or a non-volatile memory, or the memory 808 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 808 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.
[0169] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor may not be integrated into the processor 810 either.
[0170] The embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it realizes each process of the above-mentioned information processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0171] Among them, the processor is the 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 disc, etc.
[0172] The embodiment of the present application further 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 a program or instruction to realize each process of the above-mentioned information processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0173] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0174] It should be noted that in the text, the term "comprising", "including" 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 more limitations, the element defined by the statement "including one..." does not exclude the existence of another identical element 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 a reverse order according to the functions involved. For example, the described method may be executed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0175] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments 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 computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0176] 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 above specific implementation manners. The above specific implementation manners are merely illustrative rather than 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 belong to the protection scope of the present application.
Claims
1. An information processing method, applied to a first terminal, characterized in that, including: When establishing a remote control connection with a second terminal, display a remote control interface, where the remote control interface includes text stored in the second terminal; Receive a first input from a user for the text; In response to the first input, determine a first character in the text and display a first control box; The first control box includes multiple controls indicating directions; Receive a second input from the user for the first control box; In response to the second input, starting from the first character, based on semantic integrity, find multiple candidate characters in the direction corresponding to the first control; where the candidate characters are characters that conform to different contexts when searching for a target character along the corresponding direction of the first character through the first control; the text content formed by the first character and different candidate characters has different semantics; Based on the semantic analysis result of the content between the first character and each candidate character, determine a target character as the end position among the multiple candidate characters; the text content formed by the first character and the target character has complete semantics; Based on the start position and the end position, determine the text content to be edited.
2. The information processing method according to claim 1, wherein When the direction indicated by the first control is two directions and the semantics of the content between the first character and a candidate character in the first direction is determined to be complete, stop semantic analysis of the content between the first character and the candidate characters in the second direction.
3. The information processing method according to any one of claims 1-2, characterized in that After determining the text content to be edited, the method further includes: Receive a third input from the user for a second control in the first control box; In response to the third input, copy the text content to be edited to the clipboard of the second terminal.
4. An information processing apparatus, characterized in that, including: A display module for displaying a remote control interface when establishing a remote control connection with a second terminal, where the remote control interface includes text stored in the second terminal; A first receiving module for receiving a first input from the user for the text; A first processing module for, in response to the first input, determining a first character in the text and displaying a first control box; The first control box includes multiple controls indicating directions; A second receiving module for receiving a second input from the user for the first control box; A second processing module for, in response to the second input, starting from the first character, based on semantic integrity, finding multiple candidate characters in the direction corresponding to the first control; where the candidate characters are characters that conform to different contexts when searching for a target character along the corresponding direction of the first character through the first control; the text content formed by the first character and different candidate characters has different semantics; Based on the semantic analysis result of the content between the first character and each candidate character, determine a target character as the end position among the multiple candidate characters; the text content formed by the first character and the target character has complete semantics; Based on the start position and the end position, determine the text content to be edited.
5. The information processing apparatus according to claim 4, characterized in that, The second processing module is further configured to stop semantic analysis of the content between the first character and the alternative characters in another direction when the direction indicated by the first control is two directions and it is determined that the content between the first character and the alternative characters in one direction is semantically complete.
6. The information processing apparatus according to any one of claims 4-5, characterized in that It further includes: A third receiving module, configured to receive a third input from the user for the second control in the first control box after determining the content of the text to be edited; A third processing module, configured to respond to the third input and copy the content of the text to be edited to the clipboard of the second terminal.
7. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores programs or instructions that can run on the processor. When the programs or instructions are executed by the processor, the steps of the information processing method described in any one of claims 1-3 are implemented.
8. A readable storage medium, characterized in that, Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by the processor, the steps of the information processing method described in any one of claims 1-3 are implemented.
Citation Information
Patent Citations
Automatic quotation extraction method and device with semantic integrity kept
CN104050158A
Text information deleting method and device and electronic equipment
CN114415847A
Text editing in remote documents on mobile devices
US20220108060A1