Text editing method and device
By allowing continuous selection and editing of multiple discontinuous text paragraphs in mobile notes, the problem of low efficiency of text editing operations is solved and a more efficient text editing experience is achieved.
Patent Information
- Application Number
- CN202111120003.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-24
AI Technical Summary
When editing Chinese text on existing mobile phone notes, users need to frequently switch editing areas and set function options, resulting in low operating efficiency and the inability to fully utilize other fingers for editing operations.
When the text editing function is started, the user's input is received, multiple non-contiguous text paragraphs are allowed to be selected continuously, and operations associated with the target text editing function are automatically performed to avoid frequent switching of editing areas and setting function options.
It improves the efficiency of text editing, simplifies user operations, makes full use of the multi-finger feature, reduces single-finger repeated operations, and improves user experience.
Smart Images

Figure CN113807057B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a text editing method and device. Background Art
[0002] The mobile phone notes on the terminal are a commonly used text recording software. Users are accustomed to using notes on their mobile phones to record daily matters, such as bills, experiences, and other text-related matters.
[0003] However, when editing text in a note, if you need to change the text size, color, or font, you need to use your finger to select the target function option in advance before you can change the text in the editing area, but all the text in the editing area will be changed. The user can only select the text area that he wants to change in the editing area in advance, and then select the text setting function option, which requires the user to frequently switch between selecting the target text editing area and the text setting function option.
[0004] For example, when a user edits a large amount of text in a text area, the size, font, color, underline, etc. of the text in some paragraph areas need to be changed. If the user directly selects a text function, such as enlarging the font, all the text in the text area will become larger. The user can only change the paragraph font setting in the target area by selecting the target change area in advance and then selecting the text function. If there are many text changes, the user needs to frequently select the target text area and then select the function item, which affects the user's text operation experience when using sticky notes. In addition, the efficiency of single-finger operation is also low, and other fingers cannot be fully utilized for additional editing operations. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a text editing method and device that can solve the problem of low efficiency of text editing operations of sticky notes in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a text editing method, comprising:
[0007] When the first text editing function is activated, receiving a first input from a user for text to be edited, wherein the first input is used for selecting text;
[0008] In response to the first input, the text selected by the first input is controlled to perform a text editing operation associated with a target text editing function.
[0009] In a second aspect, an embodiment of the present application provides a text editing device, including:
[0010] A first receiving module, used for receiving a first input of a text to be edited by a user when a first text editing function is started, wherein the first input is used for selecting text;
[0011] The first response module is used to control the text selected by the first input to perform a text editing operation associated with a target text editing function in response to the first input.
[0012] 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.
[0013] 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.
[0014] 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.
[0015] In an embodiment of the present application, when the first text editing function is activated, a first input from a user for a text to be edited is received, wherein the first input is used to select text; in response to the first input, a text editing operation associated with the target text editing function is performed on the text selected by the first input. In this way, when the first text editing function is activated, the user can continuously select multiple discontinuous text paragraphs, and the text editing operation associated with the target text editing function is automatically performed on the selected text paragraphs, wherein the target text editing function is the same as or different from the first text editing function, thereby avoiding the user from frequently switching between the text editing area and the text setting function options, and improving the text editing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is one of the flow charts of the text editing method of the embodiment of the present application;
[0017] Figure 2 It is one of the text editing schematic diagrams of the embodiment of the present application;
[0018] Figure 3 This is the second text editing schematic diagram of the embodiment of the present application;
[0019] Figure 4 This is the second flowchart of the text editing method of the embodiment of the present application;
[0020] Figure 5 is a structural block diagram of a text editing device according to an embodiment of the present application;
[0021] Figure 6 is a structural block diagram of an electronic device according to an embodiment of the present application;
[0022] Figure 7 It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0024] 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.
[0025] The text editing 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.
[0026] like Figure 1 As shown, the present application provides a text editing method, which specifically includes the following steps:
[0027] Step 11, when the first text editing function is activated, receiving a first input from a user for a text to be edited, wherein the first input is used for selecting text;
[0028] In this step, receiving the first input of the user on the text to be edited may include: N times of text selection input of N discontinuous parts of text selected by the user on the text to be edited; wherein N is a positive integer;
[0029] Step 12: In response to the first input, control the text selected by the first input to perform a text editing operation associated with a target text editing function.
[0030] In this step, in response to the Nth first input for text selection, the text editing operation associated with the target text editing function can be performed on the Nth selected discontinuous partial text; or, in response to the Nth first input for text selection, the text editing operation associated with the target text editing function can be performed on the N selected discontinuous partial texts at the same time.
[0031] It should be noted that the target text editing function is the same as or different from the first text editing function. Specifically, during the text selection and input process, if the user's input operation for updating the text editing function is not received, the target text editing function is the same as the first text editing function; during the text selection and input process, if the user's input operation for updating the text editing function is received, the target text editing function is different from the first text editing function, and the target text editing function is the updated second text editing function.
[0032] In the above embodiment, when the first text editing function is activated, a first input from the user for a text to be edited is received, wherein the first input is used to select text; in response to the first input, a text editing operation associated with the target text editing function is performed on the text selected by the first input. In this way, when the first text editing function is activated, the user can continuously select multiple non-continuous text paragraphs, and the text editing operation associated with the target text editing function is automatically performed on the selected text paragraphs, wherein the target text editing function is the same as or different from the first text editing function, thereby avoiding the user from frequently switching between the text editing area and the text setting function options, and improving the text editing efficiency.
[0033] Specifically, as an implementation method, step 11 includes:
[0034] Receive a first touch sub-input from a user's first finger on a first position in a text to be edited, and when determining that the first finger is fixed, receive a second touch sub-input from a user's second finger on a second position in the text to be edited; wherein the text between the first position and the second position is the selected text.
[0035] For example, Figure 2 As shown, when the user is editing text in the text editing area of the note, if you need to change the size, color, font, underline, etc. of some paragraph fonts, use the first finger (such as Figure 2First, select the text editing function option (using the index finger shown), for example: select the font underline option, then place the first finger (such as the index finger) at the starting position of the target paragraph (the first position); then enable the second finger, move it to and place it at the end position of the target paragraph (the second position), and a cursor will pop up on the screen. The cursor position indicates the end position of the target paragraph. Move the cursor left or right to adjust the end position of the target paragraph. After selecting the starting position of the target paragraph, leave the screen with both fingers at the same time. The text between the first finger and the second finger is the selected text, and the underline editing effect will be successfully set. The text in other areas remains unchanged.
[0036] It should be pointed out that Figure 2 One finger is shown, but in this manner it would actually be two different fingers, such as the index finger being in the first position while the middle finger is in the second position.
[0037] In this way, the multi-finger characteristics of human fingers can be fully utilized, allowing different fingers to trigger different commands, operate different areas, and dynamically associate them, increasing the interactive mode of text editing and improving the user's operating experience. It can also simplify the user's repeated operations during text editing, improve the user's text editing operation efficiency, and save the user's time cost.
[0038] As another implementation, step 11 includes:
[0039] A sliding input is received in which a user's finger slides from a third position to a fourth position along a first direction; wherein the text between the third position and the fourth position is the selected text.
[0040] For example, Figure 2 As shown, when the user edits text in the text editing area a in the sticky note, if the user needs to change the size, color, font, underline, etc. of some paragraph fonts, use the first finger (such as Figure 2 First, select a text editing option, such as the font underline option, and then place the index finger at the start position of the target paragraph (the third position), and then drag and slide the index finger to the end position of the target paragraph (the fourth position); during the index finger sliding process, a cursor will pop up on the screen at the position of the index finger, and the cursor position indicates the end position of the target paragraph. Move the cursor left or right to adjust the end position of the target paragraph. When the index finger leaves the screen, the text between the third position and the fourth position is selected and underlined successfully, and the text in other areas remains unchanged.
[0041] In one embodiment, before step 11, the method further includes starting a first text editing function, which specifically includes the following steps:
[0042] Receive a user input operation on a first text editing function option; and start the first text editing function in response to the input operation.
[0043] Among them, input operations include but are not limited to: clicking, pressing, sliding, dragging, double-clicking, etc.
[0044] like Figure 2 As shown, an input operation of a user clicking on an icon of any first text editing function in the text setting function option area b is received, and in response to the input operation, the first text editing function is started.
[0045] In one embodiment, as an implementation manner, before responding to the first input, the method further includes:
[0046] receiving a second input;
[0047] In response to the second input, closing the first text editing function and activating the second text editing function;
[0048] Different second inputs correspond to different second text editing functions. Or different second inputs are associated with different second text editing functions. Specifically, the association or correspondence between different second inputs and different second text editing functions can be preset.
[0049] For example, when the second input is a double-click operation, the corresponding second text editing function is a bold font function; when the second input is a click operation, the corresponding second text editing function is a red font; when the second input is a first-time pressing input operation, the corresponding second text editing function is an underline function. The above is an exemplary description and is not intended to be limiting.
[0050] Exemplarily, step 11 includes receiving a first touch sub-input of a first finger of a user at a first position in the text to be edited, and receiving a second touch sub-input of a second finger of a user at a second position in the text to be edited when it is determined that the first finger is fixed: when the user is selecting the end position of the target paragraph (the second position), because the setting option of the first text editing function has been selected, if the user does not want to use the first text editing function for text editing at this time, there is no need to end the text selection and input operation, and reselect the text editing function in the text setting function option area b. It is only necessary to keep the first finger different and perform the second input operation with the second finger to switch the first text editing function to the second text editing function.
[0051] Exemplarily, step 11 includes receiving a sliding input of a user's finger sliding from a third position to a fourth position along a first direction: when the user is selecting the end position (second position) of the target paragraph with one finger, because the setting option of the first text editing function has been selected, if the user does not want to use the first text editing function for text editing at this time, there is no need to end the text selection and input operation, and reselect the text editing function in the text setting function option area b. It is only necessary to keep the finger performing the text selection and input operation still, and use another finger to perform a second input operation (such as a double-click operation) to switch the first text editing function to the second text editing function.
[0052] Through the above embodiments, the user's operation process of switching editing functions can be facilitated, the user's single-finger repeated operations during text editing can be simplified, unnecessary redundant operations of one finger can be eliminated, the user's text editing operation efficiency can be improved, and the user's time cost can be saved.
[0053] In one embodiment, as another implementation, before responding to the first input, the method further includes:
[0054] receiving a third input;
[0055] In response to the third input, displaying a function selection box, wherein the function selection box includes a control corresponding to the second text editing function;
[0056] receiving a fourth input to a control corresponding to the second text editing function;
[0057] In response to the fourth input, the first text editing function is turned off, and the second text editing function is turned on.
[0058] Exemplarily, step 11 includes receiving a first touch sub-input of a user's first finger at a first position in the edited text, and when determining that the first finger is fixed, receiving a second touch sub-input of a user's second finger at a second position in the edited text: Figure 3As shown, when the user edits text in the text editing area a in the sticky note and needs to change the size, color, font or underline of some paragraph fonts, use the first finger to first select the target text function option, such as selecting the strikethrough option, and then place the first finger at the starting position of the target paragraph; then enable the second finger and move or place the second finger to the end position of the target paragraph; if the user does not want to use the first text editing function to edit the text during the process of selecting the end position (second position) of the target paragraph because the setting option of the first text editing function has been selected, there is no need to end the text selection and input operation, and reselect the text editing function in the text setting function option area b. Just tap and double-click the screen with the second finger (third input), and a user's most recent text function option box c will pop up at the current screen position. Just select the target function option (second text editing function) with the second finger, and then the text area between the first finger and the second finger will be set according to the selected function option (second text editing function).
[0059] It should be pointed out that Figure 3 The figure shows one finger, but it is only for illustrative purposes. In fact, when the first finger is fixed at the first position, the finger at the second position and the finger performing the third input is the second finger. Alternatively, when the first finger is fixed at the first position, the finger at the second position is the second finger, and the finger performing the third input is the third finger, and the present invention is not limited thereto.
[0060] Exemplarily, step 11 includes receiving a sliding input of a user's finger sliding from a third position to a fourth position along a first direction: when the user is selecting the target paragraph end position (fourth position) with one finger, because the setting option of the first text editing function has been selected, if the user does not want to use the first text editing function for text editing at this time, there is no need to end the text selection input operation, and reselect the text editing function in the text setting function option area b. It is only necessary to keep the finger performing the text selection input operation still, and perform a third input operation (such as a double-click operation) with another finger. A text function option box c of the user's most recent text will pop up at the current screen position. It is only necessary to select the target function option (the second text editing function) with the second finger, and then the area between the first finger and the second finger will be set according to the selected function option (the second text editing function).
[0061] Furthermore, in the case of closing the first text editing function and starting the second text editing function, the above step 12 includes:
[0062] In response to the first input, a text editing operation associated with the second text editing function is performed on the text selected by the first input.
[0063] In this embodiment, when the first text editing function is turned off and the second text editing function is turned on, the target text editing function is the second text editing function which is different from the first text editing function. In this way, the user can conveniently switch text editing functions, improve the efficiency of text editing, and further improve the user's operating experience when using sticky notes.
[0064] The text editing method of the present application is introduced below with reference to a specific example.
[0065] like Figure 4 As shown, it mainly includes the following steps:
[0066] Step 101, when the user needs to record a text item, start the note and enter the note editing interface;
[0067] Step 102, after entering the sticky note interface, select the add sticky note option to enter the text editing area;
[0068] Step 103, edit the text in the text editing area to complete the record of personal needs;
[0069] Step 104, when the text editing is completed, detect whether the user sets function options for the text in the text editing area a; if yes, proceed to step 105; if no, proceed to step 104;
[0070] Step 105, using a first finger, select a target function option (a first text editing function) in the text function selection area, such as text size, font, color, etc.;
[0071] Step 106, after selecting the target function option, the first finger is placed at the start position of the target paragraph; the start position is used as the start point of the text change area;
[0072] Step 107, the first finger is placed at the target starting position and remains stationary, and the second finger is moved or placed to the target paragraph ending position;
[0073] Step 108, a cursor pops up at the position where the second finger is placed, and the end position of the paragraph can be adjusted by moving the cursor;
[0074] Step 109, detecting whether the user changes the target function option (first text editing function) selected by the first finger; if so, proceeding to step 110; if not, proceeding to step 112;
[0075] Step 110, the second finger touches and double-clicks on the screen to display the user's frequently used function options in a pop-up window;
[0076] When the user wants to change the text setting function selected by the first finger, the first finger remains fixed and the second finger double-clicks the screen. A floating pop-up window will pop up, listing the user's commonly used text setting functions, such as text size, font, color, format and other function options.
[0077] Step 111, the second finger selects other text function options in the pop-up box, and after clicking, the function selected by the first finger can be replaced;
[0078] The second finger selects and clicks the text function option to be set. After clicking, it will trigger the replacement of the text function selection selected by the first finger through the background command association.
[0079] Step 112, determining whether the first finger and the second finger leave the current screen; if so, proceed to step 113; if not, proceed to step 109;
[0080] Step 113, performing a text editing operation associated with the selected function option on the text area between the first finger and the second finger;
[0081] After you release your two fingers from the screen, the selected text setting function options will take effect in the text area selected by the first and second fingers. For example, if you choose to make the text larger or smaller, or set the color, the text between the first and second finger areas will become larger or smaller, or the color will change, while other areas will not change.
[0082] In the above embodiment, when the user edits text in the note text editing area, by making full use of the multi-finger feature, different fingers are allowed to trigger different instructions, operate different areas, and dynamically associate them, thereby increasing the interactive mode of text editing and improving the user's operating experience. At the same time, it simplifies the user's single-finger repetitive operations during text editing, removes unnecessary redundant operations of a single finger, improves the user's text editing operation efficiency, and saves the user's time cost. Therefore, the above scheme can realize a multi-instruction combination of text editing operations, provide users with a novel interactive text editing method, greatly improve the editing efficiency of the note text, reduce the repetitiveness of single-finger operations, and improve the user's note operation experience.
[0083] It should be noted that the text editing method provided in the embodiment of the present application can be executed by a text editing device or a control module in the text editing device for executing the text editing method. In the embodiment of the present application, the text editing method executed by the text editing device is taken as an example to illustrate the text editing device provided in the embodiment of the present application.
[0084] like Figure 5 As shown, the present application provides a text editing device 500, comprising:
[0085] A first receiving module 501 is used to receive a first input of a text to be edited by a user when a first text editing function is started, wherein the first input is used to select text;
[0086] The first response module 502 is used to control the text selected by the first input to perform a text editing operation associated with a target text editing function in response to the first input.
[0087] Optionally, the first receiving module 501 includes:
[0088] The first receiving submodule is used to receive a first touch sub-input from a user's first finger to a first position in the edited text, and to receive a second touch sub-input from a user's second finger to a second position in the edited text when the first finger is determined to be fixed; wherein the text between the first position and the second position is the selected text.
[0089] Optionally, the device 500 further includes:
[0090] A second receiving module, used for receiving a second input;
[0091] The second response module is used to close the first text editing function and start the second text editing function in response to the second input.
[0092] Optionally, the device 500 further includes:
[0093] A third receiving module, used for receiving a third input;
[0094] A third response module, configured to display a function selection box in response to the third input, wherein the function selection box includes a control corresponding to the second text editing function;
[0095] A fourth receiving module, used for receiving a fourth input of the control corresponding to the second text editing function;
[0096] The fourth response module is used to close the first text editing function and activate the second text editing function in response to the fourth input.
[0097] Optionally, in the case of shutting down the first text editing function and starting up the second text editing function, the first response module 502 includes:
[0098] The first response submodule is used to respond to the first input and perform a text editing operation associated with the second text editing function on the text selected by the first input.
[0099] The device 500 provided by the present application receives a first input from a user for a text to be edited when a first text editing function is activated, wherein the first input is used to select text; in response to the first input, a text editing operation associated with a target text editing function is performed on the text selected by the first input. In this way, when the first text editing function is activated, a user can continuously select multiple discontinuous text paragraphs, and automatically perform a text editing operation associated with a target text editing function on the selected text paragraphs, wherein the target text editing function is the same as or different from the first text editing function, thereby avoiding the user from frequently switching between the text editing area and the text setting function options, and improving text editing efficiency.
[0100] The text editing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. 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 PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0101] The text editing 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.
[0102] The text editing device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0103] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a program or instruction stored in the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, each process of the above-mentioned text editing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0104] 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.
[0105] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0106] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
[0107] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 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.
[0108] The user input unit 707 is used to receive a first input of a text to be edited by a user when the first text editing function is started, wherein the first input is used to select text;
[0109] The processor 710 is used to control the text selected by the first input to perform a text editing operation associated with a target text editing function in response to the first input.
[0110] Optionally, the user input unit 707 is specifically used to receive a first touch sub-input from a first finger of a user to a first position in the edited text, and when it is determined that the first finger is fixed, receive a second touch sub-input from a second finger of a user to a second position in the edited text; wherein the text between the first position and the second position is taken as the selected text.
[0111] Optionally, before responding to the first input, the user input unit 707 is further configured to receive a second input;
[0112] The processor 710 is used to close the first text editing function and activate the second text editing function in response to the second input.
[0113] Optionally, before responding to the first input, the user input unit 707 is further configured to receive a third input;
[0114] The processor 710 is further configured to display a function selection box in response to the third input, wherein the function selection box includes a control corresponding to the second text editing function;
[0115] A user input unit 707, used to receive a fourth input to the control corresponding to the second text editing function;
[0116] The processor 710 is further configured to, in response to the fourth input, disable the first text editing function and enable the second text editing function.
[0117] Optionally, in the case of turning off the first text editing function and starting the second text editing function, the processor 710 is specifically configured to, in response to the first input, perform a text editing operation associated with the second text editing function on the text selected by the first input.
[0118] The electronic device 700 provided in the present application receives a first input from a user for a text to be edited when a first text editing function is activated, wherein the first input is used to select text; in response to the first input, a text editing operation associated with a target text editing function is performed on the text selected by the first input. In this way, when the first text editing function is activated, a user can continuously select multiple discontinuous text paragraphs, and automatically perform a text editing operation associated with a target text editing function on the selected text paragraphs, wherein the target text editing function is the same as or different from the first text editing function, thereby avoiding the user from frequently switching between the text editing area and the text setting function options, and improving text editing efficiency.
[0119] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 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 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 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 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.
[0120] 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, each process of the above-mentioned text editing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0121] 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.
[0122] 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 text editing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0123] 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.
[0124] 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.
[0125] 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 computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0126] 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 editing method, characterized in that: include: When the first text editing function is activated, receiving a first input of a text to be edited by a user; The first input includes: a first touch sub-input of a user's first finger at a first position in the text to be edited, and a second touch sub-input of a user's second finger at a second position in the text to be edited when the first finger is determined to be fixed; the text between the first position and the second position is the text selected by the first input; In response to the first input, the text selected by the first input is controlled to perform a text editing operation associated with a target text editing function; wherein the target text editing function is the same as the first text editing function.
2. The method according to claim 1, characterized in that: Before responding to the first input, the method further includes: receiving a second input; In response to the second input, the first text editing function is closed and a second text editing function is activated; wherein the first text editing function and the second text editing function are different.
3. The method according to claim 1, characterized in that: Before responding to the first input, the method further includes: receiving a third input; In response to the third input, displaying a function selection control, wherein the function selection control includes: a control corresponding to the second text editing function; receiving a fourth input to a control corresponding to the second text editing function; In response to the fourth input, the first text editing function is turned off, and the second text editing function is turned on; wherein the first text editing function and the second text editing function are different.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: In the case where the first text editing function is turned off and the second text editing function is turned on, in response to the first input, a text editing operation associated with the second text editing function is performed on the text selected by the first input.
5. A text editing device, characterized in that: include: A first receiving module, used for receiving a first input of a text to be edited by a user when a first text editing function is started; The first input includes: a first touch sub-input of a user's first finger at a first position in the text to be edited, and a second touch sub-input of a user's second finger at a second position in the text to be edited when the first finger is determined to be fixed; the text between the first position and the second position is the text selected by the first input; The first response module is used to control the text selected by the first input to perform a text editing operation associated with a target text editing function in response to the first input; wherein the target text editing function is the same as the first text editing function.
6. The text editing device according to claim 5, characterized in that: The device also includes: A second receiving module, used for receiving a second input; The second response module is used to close the first text editing function and start a second text editing function in response to the second input; wherein the first text editing function and the second text editing function are different.
7. The text editing device according to claim 5, characterized in that: The device also includes: A third receiving module, used for receiving a third input; A third response module, configured to display a function selection box in response to the third input, wherein the function selection box includes: a control corresponding to the second text editing function; A fourth receiving module, used for receiving a fourth input of the control corresponding to the second text editing function; A fourth response module is used to respond to the fourth input, close the first text editing function, and start the second text editing function; wherein the first text editing function and the second text editing function are different.
8. The text editing device according to claim 6 or 7, characterized in that: The first response module includes: a first response submodule; The first response submodule is used for: in a case where the first text editing function is turned off and the second text editing function is started, in response to the first input, performing a text editing operation associated with the second text editing function on the text selected by the first input.
Citation Information
Patent Citations
Path based text creating method
CN103744833A
