WO2023045919A1 - Text editing method and apparatus - Google Patents

Text editing method and apparatus Download PDF

Info

Publication number
WO2023045919A1
WO2023045919A1 PCT/CN2022/119900 CN2022119900W WO2023045919A1 WO 2023045919 A1 WO2023045919 A1 WO 2023045919A1 CN 2022119900 W CN2022119900 W CN 2022119900W WO 2023045919 A1 WO2023045919 A1 WO 2023045919A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
input
text editing
function
editing function
Prior art date
Application number
PCT/CN2022/119900
Other languages
French (fr)
Chinese (zh)
Inventor
郭金良
陈虎
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023045919A1 publication Critical patent/WO2023045919A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application belongs to the technical field of communications, and in particular relates to a text editing method and device.
  • the mobile phone sticky note on the terminal is a commonly used text recording software. Users are accustomed to using sticky notes on their mobile phones to record daily matters, such as: bills, experience, and other text-related matters.
  • the user edits a large amount of text in the text area, it is necessary to change the size, font, color, underline, etc. of the text in some paragraph areas.
  • the text function selection such as enlarging the font, it will make all the text in the text area full. get bigger.
  • the user has to select the target change area in advance, and then select the text function selection, so that the paragraph font setting of the target area can be changed. If there are many text changes, the user needs to frequently select the target text area, and then select the function item. It affects the user's text operation experience when using sticky notes, and the efficiency of single-finger operation is also low, and it cannot make full use of other fingers for additional editing operations.
  • the purpose of the embodiments of the present application is to provide a text editing method and device, which can solve the problem of low efficiency in the text editing operation of sticky notes in the prior art.
  • the embodiment of the present application provides a text editing method, including:
  • the first input is used for text selection
  • the text selected by the first input is controlled to perform a text editing operation associated with a target text editing function.
  • the embodiment of the present application provides a text editing device, including:
  • the first receiving module is used to receive the first input of the text to be edited by the user when the first text editing function is activated, and the first input is used for text selection;
  • the first response module is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • a computer program product is provided, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the method described in the first aspect step.
  • an electronic device configured to execute the steps of the method in the first aspect.
  • the first text editing function when the first text editing function is activated, the first input of the text to be edited by the user is received, and the first input is used for text selection; in response to the first input, the first input selected The text of performs the text editing operation associated with the target text editing function.
  • the user when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform text editing operations associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is related to The first text editing functions are the same or different, thereby preventing the user from frequently switching between the text editing area and the text setting function options, and improving text editing efficiency.
  • Fig. 1 is one of flow charts of the text editing method of the embodiment of the present application.
  • Fig. 2 is one of the schematic diagrams of text editing in the embodiment of the present application.
  • Fig. 3 is the second schematic diagram of text editing in the embodiment of the present application.
  • Fig. 4 is the second flow chart of the text editing method of the embodiment of the present application.
  • Fig. 5 is a structural block diagram of a text editing device according to an embodiment of the present application.
  • FIG. 6 is a structural block diagram of an electronic device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • the present application provides a text editing method, which specifically includes the following steps:
  • Step 11 in the case of starting the first text editing function, receiving the user's first input of the text to be edited, the first input is used for text selection;
  • receiving the user's first input on the text to be edited may include: N times of text selection input of N discontinuous partial texts selected by the user on the text to be edited; wherein, N is a positive integer;
  • Step 12 in response to the first input, controlling the text selected by the first input to perform a text editing operation associated with the target text editing function.
  • the text editing operation associated with the target text editing function may be performed on the selected Nth discontinuous partial text in response to the Nth first input for text selection; or, in response to N times are used for the first input for text selection, and the text editing operations associated with the target text editing function are simultaneously performed on the selected N discontinuous partial texts.
  • the target text editing function is the same as or different from the first text editing function. Specifically, in the process of text selection and input, if the input operation of updating the text editing function by the user is not received, the target text editing function is the same as the first text editing function; In the case of the input operation of the text editing function, the target text editing function is different from the first text editing function, and the target text editing function is an updated second text editing function.
  • the first text editing function when the first text editing function is activated, a first input of the text to be edited by the user is received, wherein the first input is used for text selection; in response to the first input, the text selected by the first input is executed The text editing operation associated with the target text editing function.
  • the user when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform text editing operations associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is related to The first text editing functions are the same or different, so that the user is prevented from frequently switching between the text editing area and the text setting function options, and the text editing efficiency can be improved.
  • step 11 includes:
  • the first finger when the user edits the text in the text editing area in the sticky note, if the user needs to change the size, color, font, underline and other functions of the font of some paragraphs, use the first finger (as shown in Figure 2
  • the index finger shown first select the text editing function option, such as: select the font underline option, and then place the first finger (such as the index finger) on the starting position (first position) of the target paragraph; then enable the second finger, Move and place it to 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 and right to adjust the end position of the target paragraph. After selecting the starting position of the target paragraph, leave the screen with two fingers at the same time, the text between the first finger and the second finger is the selected text, and the editing effect of underline will be successfully set, and the text in other areas will remain unchanged.
  • one finger is shown in FIG. 2 , but in this manner, it should actually be two different fingers, such as the index finger at the first position and the middle finger at the second position.
  • the multi-finger feature of human fingers can be fully utilized, allowing different fingers to trigger different commands, operate different areas, and dynamically associate them, increase the interactive mode of text editing, and improve the user's operating experience. Moreover, it can simplify the user's repetitive operations during text editing, improve the user's text editing operation efficiency, and save the user's time and cost.
  • step 11 includes:
  • a sliding input of sliding the user's finger from a third position to a fourth position along the first direction is received; wherein, the text between the third position and the fourth position is the selected text.
  • the first finger such as The index finger shown in Figure 2
  • first select the text editing function option such as selecting the font underline option
  • place the index finger on the starting position (the third position) of the target paragraph then drag and slide the index finger to the target
  • the end position of the paragraph the fourth position
  • a cursor will pop up on the screen at the position of the index finger.
  • the cursor position indicates the end position of the target paragraph. Move the cursor left and right to adjust the end position of the target paragraph. Leave the index finger off the screen, the text between the third position and the fourth position will be the selected text, and will be underlined successfully, and the text in other areas will remain unchanged.
  • step 11 before step 11, it also includes starting the first text editing function, which specifically includes the following steps:
  • An input operation of the user on the first text editing function option is received; in response to the input operation, the first text editing function is started.
  • the input operation includes but not limited to: clicking, pressing, sliding, dragging, double-clicking and the like.
  • the above method before responding to the first input, the above method further includes:
  • different second inputs correspond to different second text editing functions.
  • different second inputs are associated with different second text editing functions.
  • the association relationship or corresponding relationship between different second inputs and different second text editing functions can be preset.
  • the corresponding second text editing function 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 input operation is pressing for the first duration, the corresponding second text editing function is the underlining function.
  • the above is an exemplary description and is not limited thereto.
  • step 11 includes receiving the first touch sub-input of the first position in the text to be edited by the user's first finger, and receiving the user's second finger when it is determined that the first finger is fixed.
  • This situation of the second touch sub-input of the second position in the edit text when the user is in 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, if this
  • the user does not want to use the first text editing function for text editing, and there is no need to end the text selection input operation at this time, go to the text setting function option area b to re-select the text editing function, just keep the first finger different, and at the same time use the second finger to perform text editing.
  • the second input operation can switch the first text editing function to the second text editing function.
  • step 11 includes receiving the sliding input of the user's finger sliding from the third position to the fourth position along the first direction: when the user selects 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 input operation at this time, go to the text setting function option area b and select text editing again function, you only need to keep the finger for the text selection input operation still, and at the same time use another finger to perform the second input operation (such as a double-click operation), and then the first text editing function can be switched to the second text editing function.
  • the above method before responding to the first input, the above method further includes:
  • a function selection box is displayed, and the function selection box includes a control corresponding to the second text editing function;
  • the first text editing function is closed, and the second text editing function is started.
  • step 11 includes receiving the first touch sub-input of the first position in the text to be edited by the user's first finger, and receiving the user's second finger when it is determined that the first finger is fixed.
  • the situation of the second touch sub-input at the second position in the edit text as shown in Figure 3, when the user edits the text in the text editing area a in the sticky note, it is necessary to change the size, color, and font size of some paragraphs.
  • the figure 3 shows only one finger, but it is only for exemplary illustration.
  • the finger at the second position and performing the third input is the first finger.
  • Second finger when the first finger is fixed at the first position, the finger at the second position can be the second finger, and the finger for the third input can be the third finger, which is not limited thereto.
  • step 11 includes receiving the sliding input of the user's finger sliding from the third position to the fourth position along the first direction: when the user is using one finger to select the end position of the target paragraph (the fourth 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 input operation at this time, go to the text setting function option area b and select text editing again function, you only need to keep the finger for the text selection input operation still, and at the same time use another finger to perform the third input operation (such as double-click operation), and a user’s nearest text function option box c will pop up at the current screen position, just The second finger selects the target function option (second text editing function), and then the area between the first finger and the second finger will be set according to the selected function option (second text editing function).
  • step 12 includes:
  • a text editing operation associated with the second text editing function is performed on the text selected by the first input.
  • the target text editing function is a second text editing function different from the first text editing function.
  • the user can conveniently switch the text editing function, improve the efficiency of text editing, and further enhance the user's operating experience when using sticky notes.
  • Step 101 when the user needs to record text items, start the sticky note and enter the sticky note editing interface
  • Step 102 after entering the note interface, select the add note option to enter the text editing area;
  • Step 103 edit the text in the text editing area, and complete the record of personal needs
  • Step 104 after the text editing is completed, detect whether the user has set function options for the text in the text editing area a; if so, proceed to step 105; otherwise, proceed to step 104;
  • Step 105 use the first finger to select the target function option (first text editing function) in the text function selection area, such as text size, font, color, etc.;
  • Step 106 after selecting the target function option, place the first finger on the starting position of the target paragraph; the starting position is used as the starting point of the text change area;
  • Step 107 place the first finger at the target starting position and fix it, and move or place the second finger to the end position of the target paragraph;
  • 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;
  • Step 109 detect whether the user replaces the target function option (the first text editing function) selected by the first finger; if so, then proceed to step 110; if not, then proceed to step 112;
  • Step 110 the second finger taps and double-clicks on the screen to display the user's frequently used function options in the form of a pop-up box;
  • the first finger is still fixed, and the second finger double-taps the screen, and a floating bullet box will pop up, and the user's commonly used text setting functions, such as text size, font, Color, format and other functional options are listed up and down.
  • Step 111 the second finger selects other text function options in the pop-up box, and the function selection before the first finger can be replaced after clicking;
  • the second finger selects and clicks the text function option to be set. After clicking, the text function selection selected by the first finger will be replaced by triggering through background command association.
  • Step 112 judging whether the first finger and the second finger leave the current screen; if so, proceed to step 113; if not, proceed to step 109;
  • Step 113 perform a text editing operation associated with the selected function option in the text area between the first finger and the second finger;
  • the selected text setting function option will take effect.
  • the text between the finger areas will become larger or smaller, or the color will change, while other areas will not change.
  • the above-mentioned embodiment when the user edits the text in the text editing area of the sticky note, by making full use of the multi-finger feature, different fingers can trigger different commands, operate different areas, and dynamically associate them to increase the interactive mode of text editing and improve the user experience. User's operating experience. At the same time, it simplifies the repeated single-finger operation of the user when editing text, removes unnecessary redundant operations with one finger, improves the operation efficiency of the user's text editing, and saves the user's time and cost. Therefore, the above solution can realize the multi-command combination of text editing operations, provide users with a novel interactive text editing method, greatly improve the editing efficiency of sticky note text, reduce the repetition of single-finger operations, and improve the user's sticky note operation experience .
  • the text editing method provided in the embodiment of the present application may be executed by a text editing device, or a control module in the text editing device for executing the text editing method.
  • the text editing device provided in the embodiment of the present application is described by taking the method for performing text editing by the text editing device as an example.
  • the present application provides a text editing device 500, including:
  • the first receiving module 501 is configured to receive the user's first input of the text to be edited when the first text editing function is activated, and the first input is used for text selection;
  • the first response module 502 is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
  • the first receiving module 501 includes:
  • the first receiving submodule is configured to receive the first touch sub-input of the first position in the text to be edited by the user's first finger, and when it is determined that the first finger is fixed, receive the user's second finger. Editing the second touch sub-input at the second position in the text; wherein, the text between the first position and the second position is the selected text.
  • the device 500 also includes:
  • a second receiving module configured to receive a second input
  • the second response module is configured to close the first text editing function and start the second text editing function in response to the second input.
  • the device 500 also includes:
  • a third receiving module configured to receive a third input
  • a third response module configured to display a function selection box in response to the third input, and the function selection box includes a control corresponding to the second text editing function;
  • a fourth receiving module configured to receive a fourth input to the control corresponding to the second text editing function
  • a fourth response module configured to close the first text editing function and activate the second text editing function in response to the fourth input.
  • the first response module 502 includes:
  • the first response submodule is 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.
  • the device 500 when the first text editing function is activated, receives the user's first input of the text to be edited, wherein the first input is used for text selection; in response to the first input, the text selected by the first input Executes the text editing operation associated with the target text editing function.
  • the first text editing function when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform text editing operations associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is related to The first text editing functions are the same or different, so that the user is prevented from frequently switching between the text editing area and the text setting function options, and the text editing efficiency can be improved.
  • the text editing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the text editing device in the embodiment 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, which are not specifically limited in this embodiment of the present application.
  • the text editing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 3 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and programs or instructions stored in the memory 602 and operable on the processor 601,
  • an electronic device 600 including a processor 601, a memory 602, and programs or instructions stored in the memory 602 and operable on the processor 601
  • the program or instruction is executed by the processor 601
  • each process of the above-mentioned text editing method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • 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, etc. part.
  • the electronic device 700 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 710 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the user input unit 707 is configured to receive the user's first input of the text to be edited when the first text editing function is activated, and the first input is used for text selection;
  • the processor 710 is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
  • the user input unit 707 is specifically configured to receive a first touch sub-input of a first position in the text to be edited by the user's first finger, and when it is determined that the first finger is fixed, receive the user's A second touch sub-input of a second position in the text to be edited by the second finger; wherein, the text between the first position and the second position is used as the selected text.
  • the user input unit 707 is further configured to receive a second input
  • the processor 710 is configured to close the first text editing function and start the second text editing function in response to the second input.
  • the user input unit 707 is further configured to receive a third input
  • the processor 710 is further configured to display a function selection box in response to the third input, and the function selection box includes a control corresponding to the second text editing function;
  • a user input unit 707 configured to receive a fourth input to the control corresponding to the second text editing function
  • the processor 710 is further configured to, in response to the fourth input, close the first text editing function and start the second text editing function.
  • the processor 710 is specifically configured to, in response to the first input, edit the The selected text performs a text editing operation associated with the second text editing function.
  • the electronic device 700 when the first text editing function is activated, receives the user's first input of the text to be edited, wherein the first input is used for text selection; in response to the first input, the selected text for the first input
  • the text of performs the text editing operation associated with the target text editing function.
  • the user when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform a text editing operation associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is the same as
  • the first text editing functions are the same or different, so that the user is prevented from frequently switching between the text editing area and the text setting function options, and the text editing efficiency can be improved.
  • the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • 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, or the like.
  • 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, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 709 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, user interface, application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above text editing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the above text editing method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application also provides a computer program product, which is stored in a readable storage medium, and the computer program product is executed by at least one processor to realize the various processes in the above text editing method embodiment, and can achieve the same technical Effect, in order to avoid repetition, will not repeat them here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of communications, and discloses a text editing method and apparatus. The text editing method comprises: when a first text editing function is enabled, receiving a user's first input for a text to be edited, the first input being used for text selection; and in response to the first input, controlling a text selected according to the first input to perform a text editing operation associated with a target text editing function.

Description

文字编辑方法和装置Text editing method and device
相关申请的交叉引用Cross References to Related Applications
本申请主张在2021年09月24日在中国提交的中国专利申请No.202111120003.5的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202111120003.5 filed in China on September 24, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于通信技术领域,具体涉及一种文字编辑方法和装置。The present application belongs to the technical field of communications, and in particular relates to a text editing method and device.
背景技术Background technique
终端上的手机便签是一种常用的文本记录软件,用户习惯在手机上使用便签来记录日常事项,比如:账单、心得、以及其他文字相关事项。The mobile phone sticky note on the terminal is a commonly used text recording software. Users are accustomed to using sticky notes on their mobile phones to record daily matters, such as: bills, experience, and other text-related matters.
但是,在便签中编辑文字的时候,如果需要更改文字大小、颜色、字体时,需要用户用手指事先选择目标功能选项,然后才能将编辑区域文字进行更改,但会将编辑区域的所有文字全部更改。用户只能事先在编辑区域中将想要变更的文字区域选择好,然后再去选择文本设置功能选项,这样就需要用户在选择目标文本编辑区域和文本设置功能选项之间频繁切换。However, when editing text in sticky notes, if you need to change the text size, color, and font, you need to select the target function option with your finger in advance, and then 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 to be changed 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.
例如,当用户在文本区域编辑大量文字时,这时候需要更改部分段落区域文字的大小、字体、颜色、下划线等,如果用户直接选择文本功能选择,比如放大字体,则会使得文本区域所有文字全部变大。用户只有事先将目标更改区域选择好,然后再去选择文本功能选择,这样才能改变目标区域段落字体设置,如果文字更改较多,则需要用户频繁去选择目标文字区域,然后再去选择功能项,影响用户使用便签时的文本操作体验,并且单指操作效率也较低,不能充分利用其他手指进行额外的编辑操作。For example, when the user edits a large amount of text in the text area, it is necessary to change the size, font, color, underline, etc. of the text in some paragraph areas. If the user directly selects the text function selection, such as enlarging the font, it will make all the text in the text area full. get bigger. The user has to select the target change area in advance, and then select the text function selection, so that the paragraph font setting of the target area can be changed. If there are many text changes, the user needs to frequently select the target text area, and then select the function item. It affects the user's text operation experience when using sticky notes, and the efficiency of single-finger operation is also low, and it cannot make full use of other fingers for additional editing operations.
发明内容Contents of the invention
本申请实施例的目的是提供一种文字编辑方法和装置,能够解决现有技术中便签的文字编辑操作效率低的问题。The purpose of the embodiments of the present application is to provide a text editing method and device, which can solve the problem of low efficiency in the text editing operation of sticky notes in the prior art.
第一方面,本申请实施例提供了一种文字编辑方法,包括:In the first aspect, the embodiment of the present application provides a text editing method, including:
在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;In the case of starting the first text editing function, receiving the user's first input of the text to be edited, the first input is used for text selection;
响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。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.
第二方面,本申请实施例提供了一种文字编辑装置,包括:In the second aspect, the embodiment of the present application provides a text editing device, including:
第一接收模块,用于在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;The first receiving module is used to receive the first input of the text to be edited by the user when the first text editing function is activated, and the first input is used for text selection;
第一响应模块,用于响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。The first response module is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
第六方面,提供了一种计算机程序产品,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。In a sixth aspect, a computer program product is provided, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the method described in the first aspect step.
第七方面,提供了一种电子设备,其中,被配置为执行如第一方面的方法的步骤。In a seventh aspect, an electronic device is provided, wherein it is configured to execute the steps of the method in the first aspect.
在本申请实施例中,在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;响应于第一输入,对第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。这样,在启动第一文字编辑功能的情况下,用户可以连续选择多个不连续的文字段落,并自动对选择的文字段落执行与目标文字编辑功能相关联的文本编辑操作,其中目标文字编辑功能与所述第一文字编辑功能相同或不同,从 而避免用户在文本编辑区域和文本设置功能选项之间频繁切换,能够提高文本编辑效率。In the embodiment of the present application, when the first text editing function is activated, the first input of the text to be edited by the user is received, and the first input is used for text selection; in response to the first input, the first input selected The text of performs the text editing operation associated with the target text editing function. In this way, when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform text editing operations associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is related to The first text editing functions are the same or different, thereby preventing the user from frequently switching between the text editing area and the text setting function options, and improving text editing efficiency.
附图说明Description of drawings
图1是本申请实施例的文字编辑方法的流程图之一;Fig. 1 is one of flow charts of the text editing method of the embodiment of the present application;
图2是本申请实施例的文字编辑示意图之一;Fig. 2 is one of the schematic diagrams of text editing in the embodiment of the present application;
图3是本申请实施例的文字编辑示意图之二;Fig. 3 is the second schematic diagram of text editing in the embodiment of the present application;
图4是本申请实施例的文字编辑方法的流程图之二;Fig. 4 is the second flow chart of the text editing method of the embodiment of the present application;
图5是本申请实施例的文字编辑装置的结构框图;Fig. 5 is a structural block diagram of a text editing device according to an embodiment of the present application;
图6是本申请实施例的电子设备的结构框图;FIG. 6 is a structural block diagram of an electronic device according to an embodiment of the present application;
图7是本申请实施例的电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文字编辑方法进行详细地说明。The text editing method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
如图1所示,本申请提供一种文字编辑方法,具体包括如下步骤:As shown in Figure 1, the present application provides a text editing method, which specifically includes the following steps:
步骤11,在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择; Step 11, in the case of starting the first text editing function, receiving the user's first input of the text to be edited, the first input is used for text selection;
该步骤中,接收用户对待编辑文本上的第一输入可以包括:用户在待编辑文本上选择的N个不连续的部分文本的N次文字选择输入;其中,N为正整数;In this step, receiving the user's first input on the text to be edited may include: N times of text selection input of N discontinuous partial texts selected by the user on the text to be edited; wherein, N is a positive integer;
步骤12,响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。 Step 12, in response to the first input, controlling the text selected by the first input to perform a text editing operation associated with the target text editing function.
该步骤中,可以响应于第N次用于进行文字选择的第一输入,对选择的第N个不连续的部分文本执行与所述目标文字编辑功能相关联的文本编辑操作;或者,响应于N次用于进行文字选择的第一输入,对选择的N个不连续的部分文本同时执行与目标文字编辑功能相关联的文本编辑操作。In this step, the text editing operation associated with the target text editing function may be performed on the selected Nth discontinuous partial text in response to the Nth first input for text selection; or, in response to N times are used for the first input for text selection, and the text editing operations associated with the target text editing function are simultaneously performed on the selected N discontinuous partial texts.
需要指出的是,目标文字编辑功能与所述第一文字编辑功能相同或不同。具体的,在文字选择输入的过程中,在未接收到用户更新文字编辑功能的输入操作的情况下,目标文字编辑功能与第一文字编辑功能相同;在文字选择输入过程中,在接收到用户更新文字编辑功能的输入操作的情况下,目标文字编辑功能与第一文字编辑功能不同,且目标文字编辑功能为更新后的第二文字编辑功能。It should be noted that the target text editing function is the same as or different from the first text editing function. Specifically, in the process of text selection and input, if the input operation of updating the text editing function by the user is not received, the target text editing function is the same as the first text editing function; In the case of the input operation of the text editing function, the target text editing function is different from the first text editing function, and the target text editing function is an updated second text editing function.
上述实施例中,在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,其中第一输入用于进行文字选择;响应于第一输入,对第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。这样,在启动第一文字编辑功能的情况下,用户可以连续选择多个不连续的文字段落,并自动对选择的文字段落执行与目标文字编辑功能相关联的文本编辑操作,其中目标文字编辑功能与第一文字编辑功能相同或不同,从而避免用户在文本编辑区域和文本设置功能选项之间频繁切换,能够提高文本编辑效率。In the above embodiment, when the first text editing function is activated, a first input of the text to be edited by the user is received, wherein the first input is used for text selection; in response to the first input, the text selected by the first input is executed The text editing operation associated with the target text editing function. In this way, when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform text editing operations associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is related to The first text editing functions are the same or different, so that the user is prevented from frequently switching between the text editing area and the text setting function options, and the text editing efficiency can be improved.
具体的,作为一种实现方式,步骤11,包括:Specifically, as an implementation, step 11 includes:
接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入;其中,所述第一位置与所述第二位置之间的文字为所选择的文本。receiving the first touch sub-input of the first position in the text to be edited by the user's first finger, and receiving the second position of the second position in the text to be edited by the user's second finger when it is determined that the first finger is fixed The second touch sub-input; wherein, the text between the first position and the second position is the selected text.
示例性的,如图2所示,当用户在便签中文本编辑区域编辑文字时,若需要更改某些段落字体的大小、颜色、字体、下划线等功能时,使用第一手 指(如图2所示出的食指)先选择好文字编辑功能选项,比如:选择字体加下划线选项,然后将第一手指(如食指)放置在目标段落的起始位置(第一位置);然后启用第二手指,将其移到和放置到目标段落的结束位置(第二位置),这时会在屏幕上弹出一个光标,光标位置即表示目标段落的结束位置,左右移动光标,可调整目标段落的结束位置。选择好目标段落起始位置后,双指同时离开屏幕,第一手指和第二手指之间的文字即为所选择的文本,且会成功设置加下划线的编辑效果,其他区域文字不变。Exemplarily, as shown in Figure 2, when the user edits the text in the text editing area in the sticky note, if the user needs to change the size, color, font, underline and other functions of the font of some paragraphs, use the first finger (as shown in Figure 2 The index finger shown) first select the text editing function option, such as: select the font underline option, and then place the first finger (such as the index finger) on the starting position (first position) of the target paragraph; then enable the second finger, Move and place it to 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 and right to adjust the end position of the target paragraph. After selecting the starting position of the target paragraph, leave the screen with two fingers at the same time, the text between the first finger and the second finger is the selected text, and the editing effect of underline will be successfully set, and the text in other areas will remain unchanged.
需要指出,图2所示为一个手指,但在该方式中实际应该为两个不同的手指,如食指在第一位置的同时,中指在第二位置。It should be pointed out that one finger is shown in FIG. 2 , but in this manner, it should actually be two different fingers, such as the index finger at the first position and the middle finger at the second position.
该方式中,能够充分利用人体手指的多指特性,让不同手指触发不同的指令,操作不同的区域,并将其动态关联起来,增加文本编辑的交互方式,提升用户的操作体验。而且能够简化用户在文字编辑时的重复操作,提升用户文字编辑的操作效率,节约用户时间成本。In this method, the multi-finger feature of human fingers can be fully utilized, allowing different fingers to trigger different commands, operate different areas, and dynamically associate them, increase the interactive mode of text editing, and improve the user's operating experience. Moreover, it can simplify the user's repetitive operations during text editing, improve the user's text editing operation efficiency, and save the user's time and cost.
作为另一种实现方式,步骤11,包括:As another implementation, step 11 includes:
接收用户手指沿第一方向从第三位置滑动至第四位置的滑动输入;其中,所述第三位置与所述第四位置之间的文字为所选择的文本。A sliding input of sliding the user's finger from a third position to a fourth position along the first direction is received; wherein, the text between the third position and the fourth position is the selected text.
示例性的,如图2所示,当用户在便签中的文本编辑区域a中编辑文字时,若需要更改某些段落字体的大小、颜色、字体、下划线等功能时,使用第一手指(如图2所示出的食指)先选择好文字编辑功能选项,比如选择字体加下划线选项,然后将食指放置在目标段落的起始位置(第三位置),然后拖动并滑动食指,滑动至目标段落的结束位置(第四位置);食指滑动过程中,食指所在位置在屏幕上会弹出一个光标,光标位置即表示目标段落的结束位置,左右移动光标,可调整目标段落的结束位置。食指离开屏幕,第三位置与第四位置之间的文字作为所选择的文本,且会成功设置加下划线,其他区域文字不变。Exemplarily, as shown in Figure 2, when the user edits the text in the text editing area a in the sticky note, if the user needs to change the size, color, font, underline and other functions of the font of some paragraphs, use the first finger (such as The index finger shown in Figure 2) first select the text editing function option, such as selecting the font underline option, and then place the index finger on the starting position (the third position) of the target paragraph, then drag and slide the index finger to the target The end position of the paragraph (the fourth position); during the sliding process of the index finger, a cursor will pop up on the screen at the position of the index finger. The cursor position indicates the end position of the target paragraph. Move the cursor left and right to adjust the end position of the target paragraph. Leave the index finger off the screen, the text between the third position and the fourth position will be the selected text, and will be underlined successfully, and the text in other areas will remain unchanged.
在一实施例中,步骤11之前,还包括启动第一文字编辑功能,具体包括以下步骤:In one embodiment, before step 11, it also includes starting the first text editing function, which specifically includes the following steps:
接收用户对第一文字编辑功能选项的输入操作;响应于所述输入操作,启动第一文字编辑功能。An input operation of the user on the first text editing function option is received; in response to the input operation, the first text editing function is started.
其中,输入操作包括但不限于:点击、按压,滑动、拖动、双击等。Wherein, the input operation includes but not limited to: clicking, pressing, sliding, dragging, double-clicking and the like.
如图2所示,接收用户点击文本设置功能选项区b中的任一个第一文字编辑功能的图标的输入操作,响应于该输入操作,启动第一文字编辑功能。As shown in FIG. 2 , an input operation of clicking any icon of the first text editing function in the text setting function option area b by the user is received, and the first text editing function is activated in response to the input operation.
在一实施例中,作为一种实现方式,在响应于第一输入之前,上述方法还包括:In an embodiment, as an implementation manner, before responding to the first input, the above method further includes:
接收第二输入;receiving a second input;
响应于所述第二输入,关闭所述第一文字编辑功能,并启动第二文字编辑功能;In response to the second input, closing the first text editing function and starting a second text editing function;
其中,不同的第二输入对应不同的所述第二文字编辑功能。或者不同的第二输入关联不同的第二文字编辑功能,具体的,不同的所述第二输入与不同的第二文字编辑功能的关联关系或者对应关系可预先设置。Wherein, 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 relationship or corresponding relationship between different second inputs and different second text editing functions can be preset.
示例性的,在第二输入为双击操作时,对应的第二文字编辑功能为加粗字体功能;在第二输入为点击操作时,对应的第二文字编辑功能为红色字体;在第二输入为按压第一时长的输入操作时,对应的第二文字编辑功能为加下划线功能。以上为示例性说明,不以此为限。Exemplarily, 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 input operation is pressing for the first duration, the corresponding second text editing function is the underlining function. The above is an exemplary description and is not limited thereto.
示例性的,针对步骤11包括接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入的这一情况:当用户在选择目标段落结束位置(第二位置)的过程中,因为已选择好第一文字编辑功能的设置选项,如果此时用户不想使用第一文字编辑功能进行文字编辑,这时也无需结束文字选择输入操作,去文本设置功能选项区b中重新选择文字编辑功能,只需保持第一手指不同,同时通过第二手指进行第二输入操作,即可切换第一文字编辑功能为第二文字编辑功能。Exemplarily, step 11 includes receiving the first touch sub-input of the first position in the text to be edited by the user's first finger, and receiving the user's second finger when it is determined that the first finger is fixed. This situation of the second touch sub-input of the second position in the edit text: when the user is in 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, if this Sometimes the user does not want to use the first text editing function for text editing, and there is no need to end the text selection input operation at this time, go to the text setting function option area b to re-select the text editing function, just keep the first finger different, and at the same time use the second finger to perform text editing. The second input operation can switch the first text editing function to the second text editing function.
示例性的,针对步骤11包括接收用户手指沿第一方向从第三位置滑动至第四位置的滑动输入的这一情况:当用户在用一个手指选择目标段落结束位置(第二位置)的过程中,因为已选择好第一文字编辑功能的设置选项,如果此时用户不想使用第一文字编辑功能进行文字编辑,这时也无需结束文字选择输入操作,去文本设置功能选项区b中重新选择文字编辑功能,只需保持进行文字选择输入操作的手指不动,同时通过另一手指进行第二输入操作 (如双击操作),即可切换第一文字编辑功能为第二文字编辑功能。Exemplarily, for the situation that step 11 includes receiving the sliding input of the user's finger sliding from the third position to the fourth position along the first direction: when the user selects 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 input operation at this time, go to the text setting function option area b and select text editing again function, you only need to keep the finger for the text selection input operation still, and at the same time use another finger to perform the second input operation (such as a double-click operation), and then the first text editing function can be switched to the second text editing function.
通过上述实施例,能够便捷用户进行编辑功能切换的操作过程,简化用户在文字编辑时的单指重复操作,去除单指不必要的冗余操作,提升用户文字编辑的操作效率,节约用户时间成本。Through the above-mentioned embodiment, it is possible for the user to conveniently switch the operation process of the editing function, simplify the user's single-finger repeated operation when editing text, remove unnecessary redundant operations with a single finger, improve the operation efficiency of the user's text editing, and save the user's time and cost .
在一实施例中,作为另一种实现方式,在响应于第一输入之前,上述方法还包括:In an embodiment, as another implementation manner, before responding to the first input, the above method further includes:
接收第三输入;receiving a third input;
响应于所述第三输入,显示功能选择框,所述功能选择框中包括第二文字编辑功能对应的控件;In response to the third input, a function selection box is displayed, and the function selection box 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 closed, and the second text editing function is started.
示例性的,针对步骤11包括接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入的这一情况:如图3所示,当用户在便签中的文本编辑区域a中编辑文字,需要更改某些段落字体的大小、颜色、字体或下划线等功能时,使用第一手指先选择好目标文本功能选项,比如选择加删除线选项,然后将第一手指放置在目标段落的起始位置;然后启用第二手指,将第二手指移到或放置到目标段落的结束位置;若在用户在选择目标段落结束位置(第二位置)的过程中,因为已选择好第一文字编辑功能的设置选项,如果此时用户不想使用第一文字编辑功能进行文字编辑,这时也无需结束文字选择输入操作,去文本设置功能选项区b中重新选择文字编辑功能,只需通过第二手指轻触双击屏幕(第三输入),会在当前屏幕位置弹出一个用户最近的文本功能选项框c,只需第二手指选择好目标功能选项(第二文字编辑功能)即可,然后第一手指和第二手指之间的文字区域便会按照选择的功能选项(第二文字编辑功能)进行设置。Exemplarily, step 11 includes receiving the first touch sub-input of the first position in the text to be edited by the user's first finger, and receiving the user's second finger when it is determined that the first finger is fixed. The situation of the second touch sub-input at the second position in the edit text: as shown in Figure 3, when the user edits the text in the text editing area a in the sticky note, it is necessary to change the size, color, and font size of some paragraphs. When using functions such as fonts or underlines, use the first finger to select the target text function option first, such as selecting the strikethrough option, and then place the first finger at the beginning of the target paragraph; then enable the second finger, place the second finger Move or place to the end position of the target paragraph; if in 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, if the user does not want to use the first text editing function for text editing, and there is no need to end the text selection input operation at this time, go to the text setting function option area b to re-select the text editing function, just tap the second finger to double-click the screen (the third input), and the screen will be displayed at the current screen position A user's recent text function option box c pops up, 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 follow the selected function option (second text editing function) to set.
需要指出的是,图3所示均为一个手指,但仅为了示例性说明,实际上,当第一手指在第一位置固定不动时,在第二位置和进行第三输入的手指为第二手指。或者,当第一手指在第一位置固定不动时,在第二位置的手指为第 二手指,进行第三输入的手指为第三手指均可,不以此为限。It should be pointed out that the figure 3 shows only one finger, but it is only for exemplary illustration. In fact, when the first finger is fixed at the first position, the finger at the second position and performing the third input is the first finger. Second finger. Or, when the first finger is fixed at the first position, the finger at the second position can be the second finger, and the finger for the third input can be the third finger, which is not limited thereto.
示例性的,针对步骤11包括接收用户手指沿第一方向从第三位置滑动至第四位置的滑动输入的这一情况:当用户在用一个手指选择目标段落结束位置(第四位置)的过程中,因为已选择好第一文字编辑功能的设置选项,如果此时用户不想使用第一文字编辑功能进行文字编辑,这时也无需结束文字选择输入操作,去文本设置功能选项区b中重新选择文字编辑功能,只需保持进行文字选择输入操作的手指不动,同时通过另一手指进行第三输入操作(如双击操作),,会在当前屏幕位置弹出一个用户最近的文本功能选项框c,只需第二指选择好目标功能选项(第二文字编辑功能)即可,然后第一手指和第二手指之间的区域便会按照选择的功能选项(第二文字编辑功能)进行设置。Exemplarily, for the situation that step 11 includes receiving the sliding input of the user's finger sliding from the third position to the fourth position along the first direction: when the user is using one finger to select the end position of the target paragraph (the fourth 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 input operation at this time, go to the text setting function option area b and select text editing again function, you only need to keep the finger for the text selection input operation still, and at the same time use another finger to perform the third input operation (such as double-click operation), and a user’s nearest text function option box c will pop up at the current screen position, just The second finger selects the target function option (second text editing function), and then the area between the first finger and the second finger will be set according to the selected function option (second text editing function).
进一步的,在所述关闭所述第一文字编辑功能,并启动所述第二文字编辑功能的情况下,上述步骤12包括:Further, in the case of closing the first text editing function and starting the second text editing function, the above step 12 includes:
响应于所述第一输入,对所第一输入所选择的文本执行与所述第二文字编辑功能相关联的文本编辑操作。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.
该实施例中,在所述关闭所述第一文字编辑功能,并启动所述第二文字编辑功能的情况下,目标文字编辑功能即为与第一文字编辑功能不同的第二文字编辑功能。如此,用户可以便捷的切换文字编辑功能,提升文本编辑的效率,更能提升用户在使用便签时的操作体验。In this embodiment, when the first text editing function is disabled and the second text editing function is activated, the target text editing function is a second text editing function different from the first text editing function. In this way, the user can conveniently switch the text editing function, improve the efficiency of text editing, and further enhance the user's operating experience when using sticky notes.
下面,针对一具体示例对本申请的文字编辑方法进行介绍。In the following, the text editing method of the present application will be introduced for a specific example.
如图4所示,主要包括以下步骤:As shown in Figure 4, it mainly includes the following steps:
步骤101,用户有文字事项记录需求时,启动便签,进入便签编辑界面; Step 101, when the user needs to record text items, start the sticky note and enter the sticky note editing interface;
步骤102,进入便签界面后,选择添加便签选项,进入文本编辑区域; Step 102, after entering the note interface, select the add note option to enter the text editing area;
步骤103,在文本编辑区域中编辑文字,完成个人需求事项记录; Step 103, edit the text in the text editing area, and complete the record of personal needs;
步骤104,当文字编辑完成后,检测用户是否对文本编辑区域a中的文字进行功能选项设置;若是则,进行步骤105;若否则进行步骤104; Step 104, after the text editing is completed, detect whether the user has set function options for the text in the text editing area a; if so, proceed to step 105; otherwise, proceed to step 104;
步骤105,利用第一手指,到文本功能选择区域中选择目标功能选项(第一文字编辑功能),如文字大小、字体、颜色等; Step 105, use the first finger to select the target function option (first text editing function) in the text function selection area, such as text size, font, color, etc.;
步骤106,选择好目标功能选项后,第一手指放置到目标段落起始位置; 起始位置作为文本更改区域的起始点; Step 106, after selecting the target function option, place the first finger on the starting position of the target paragraph; the starting position is used as the starting point of the text change area;
步骤107,第一手指放置在目标起始位置固定不动,将第二手指移动或放置到目标段落结束位置; Step 107, place the first finger at the target starting position and fix it, and move or place the second finger to the end position of the target paragraph;
步骤108,在第二手指放置位置处弹出光标,移动光标可调整段落结束位置; 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;
步骤109,检测用户是否更换第一手指选择的目标功能选项(第一文字编辑功能);若是,则进行步骤110;若否,则进行步骤112; Step 109, detect whether the user replaces the target function option (the first text editing function) selected by the first finger; if so, then proceed to step 110; if not, then proceed to step 112;
步骤110,第二手指在屏幕上轻触双击,以弹框形式将用户常用功能选项显示; Step 110, the second finger taps and double-clicks on the screen to display the user's frequently used function options in the form of a pop-up box;
用户想要更换第一手指选择的文本设置功能,此时第一手指仍固定不动,第二手指双击屏幕,会弹出浮动的弹框,将用户常用的文本设置功能,如文字大小、字体、颜色、格式等功能选项上下罗列出来。The user wants to change the text setting function selected by the first finger. At this time, the first finger is still fixed, and the second finger double-taps the screen, and a floating bullet box will pop up, and the user's commonly used text setting functions, such as text size, font, Color, format and other functional options are listed up and down.
步骤111,第二手指在弹框中选择其他文本功能选项,点击后即可替换第一指之前的功能选择; Step 111, the second finger selects other text function options in the pop-up box, and the function selection before the first finger can be replaced after clicking;
第二手指选择点击要设置的文本功能选项,点击后即会通过后台指令关联触发替换掉第一手指选择的文本功能选择。The second finger selects and clicks the text function option to be set. After clicking, the text function selection selected by the first finger will be replaced by triggering through background command association.
步骤112,判断第一手指和第二手指是否离开当前屏幕;若是,则进行步骤113;若否,则进行步骤109; Step 112, judging whether the first finger and the second finger leave the current screen; if so, proceed to step 113; if not, proceed to step 109;
步骤113,将第一指和第二指之间的文字区域执行与选择的功能选项相关联的文字编辑操作; Step 113, perform a text editing operation associated with the selected function option in the text area between the first finger and the second finger;
双指离开屏幕后,在第一手指和第二手指选择的文字区域,所选择的文本设置功能选项应用变更生效,如用户选择文字变大或变小,颜色设置,则第一手指和第二手指区域之间的文字会变大或缩小,或颜色发生变化,其他区域不变化。After the two fingers leave the screen, in the text area selected by the first finger and the second finger, the selected text setting function option will take effect. The text between the finger areas will become larger or smaller, or the color will change, while other areas will not change.
上述实施例中,用户在便签文本编辑区域编辑文字时,通过充分利用多指特性,让不同手指触发不同的指令,操作不同的区域,并将其动态关联起来,增加文本编辑的交互方式,提升用户的操作体验。同时,简化了用户在文字编辑时的单指重复操作,去除单指不必要的冗余操作,提升用户文字编辑的操作效率,节约用户时间成本。因此,上述方案能够实现文本编辑操作 的多指令组合,给用户提供一种新颖的交互方式文本编辑方式,极大提升便签文本的编辑效率,减少单指操作的重复性,提升用户的便签操作体验。In the above-mentioned embodiment, when the user edits the text in the text editing area of the sticky note, by making full use of the multi-finger feature, different fingers can trigger different commands, operate different areas, and dynamically associate them to increase the interactive mode of text editing and improve the user experience. User's operating experience. At the same time, it simplifies the repeated single-finger operation of the user when editing text, removes unnecessary redundant operations with one finger, improves the operation efficiency of the user's text editing, and saves the user's time and cost. Therefore, the above solution can realize the multi-command combination of text editing operations, provide users with a novel interactive text editing method, greatly improve the editing efficiency of sticky note text, reduce the repetition of single-finger operations, and improve the user's sticky note operation experience .
需要说明的是,本申请实施例提供的文字编辑方法,执行主体可以为文字编辑装置,或者该文字编辑装置中的用于执行文字编辑方法的控制模块。本申请实施例中以文字编辑装置执行文字编辑的方法为例,说明本申请实施例提供的文字编辑装置。It should be noted that, the text editing method provided in the embodiment of the present application may 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 device provided in the embodiment of the present application is described by taking the method for performing text editing by the text editing device as an example.
如图5所示,本申请提供一种文字编辑装置500,包括:As shown in Figure 5, the present application provides a text editing device 500, including:
第一接收模块501,用于在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;The first receiving module 501 is configured to receive the user's first input of the text to be edited when the first text editing function is activated, and the first input is used for text selection;
第一响应模块502,用于响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。The first response module 502 is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
可选的,所述第一接收模块501包括:Optionally, the first receiving module 501 includes:
第一接收子模块,用于接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入;其中,所述第一位置与所述第二位置之间的文字为所选择的文本。The first receiving submodule is configured to receive the first touch sub-input of the first position in the text to be edited by the user's first finger, and when it is determined that the first finger is fixed, receive the user's second finger. Editing the second touch sub-input at the second position in the text; wherein, the text between the first position and the second position is the selected text.
可选的,所述装置500还包括:Optionally, the device 500 also includes:
第二接收模块,用于接收第二输入;a second receiving module, configured to receive a second input;
第二响应模块,用于响应于所述第二输入,关闭所述第一文字编辑功能,并启动第二文字编辑功能。The second response module is configured to close the first text editing function and start the second text editing function in response to the second input.
可选的,可选的,所述装置500还包括:Optionally, optionally, the device 500 also includes:
第三接收模块,用于接收第三输入;a third receiving module, configured to receive a third input;
第三响应模块,用于响应于所述第三输入,显示功能选择框,所述功能选择框中包括第二文字编辑功能对应的控件;A third response module, configured to display a function selection box in response to the third input, and the function selection box includes a control corresponding to the second text editing function;
第四接收模块,用于接收对所述第二文字编辑功能对应的控件的第四输入;A fourth receiving module, configured to receive a fourth input to the control corresponding to the second text editing function;
第四响应模块,用于响应于所述第四输入,关闭所述第一文字编辑功能,并启动所述第二文字编辑功能。A fourth response module, configured to close the first text editing function and activate the second text editing function in response to the fourth input.
可选的,在所述关闭所述第一文字编辑功能,并启动所述第二文字编辑 功能的情况下,所述第一响应模块502包括:Optionally, in the case of closing the first text editing function and starting the second text editing function, the first response module 502 includes:
第一响应子模块,用于响应于所述第一输入,对所述第一输入所选择的文本执行与所述第二文字编辑功能相关联的文本编辑操作。The first response submodule is 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.
本申请提供的装置500,启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,其中第一输入用于进行文字选择;响应于第一输入,对第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。这样,在启动第一文字编辑功能的情况下,用户可以连续选择多个不连续的文字段落,并自动对选择的文字段落执行与目标文字编辑功能相关联的文本编辑操作,其中目标文字编辑功能与第一文字编辑功能相同或不同,从而避免用户在文本编辑区域和文本设置功能选项之间频繁切换,能够提高文本编辑效率。The device 500 provided by this application, when the first text editing function is activated, receives the user's first input of the text to be edited, wherein the first input is used for text selection; in response to the first input, the text selected by the first input Executes the text editing operation associated with the target text editing function. In this way, when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform text editing operations associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is related to The first text editing functions are the same or different, so that the user is prevented from frequently switching between the text editing area and the text setting function options, and the text editing efficiency can be improved.
本申请实施例中的文字编辑装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The text editing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的文字编辑装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为IOS操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。The text editing device in the embodiment 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, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的文字编辑装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。The text editing device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 3 , and details are not repeated here to avoid repetition.
可选地,如图6所示,本申请实施例还提供一种电子设备600,包括处理器601,存储器602,存储在存储器602上并可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述文字编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 6 , the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and programs or instructions stored in the memory 602 and operable 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 can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设 备和非移动电子设备。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.
图7为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、以及处理器710等部件。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, etc. part.
本领域技术人员可以理解,电子设备700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器710逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 700 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 710 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
其中,用户输入单元707,用于在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;Wherein, the user input unit 707 is configured to receive the user's first input of the text to be edited when the first text editing function is activated, and the first input is used for text selection;
处理器710,用于响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。The processor 710 is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
可选地,用户输入单元707,具体用于接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入;其中,将所述第一位置与所述第二位置之间的文字作为所选择的文本。Optionally, the user input unit 707 is specifically configured to receive a first touch sub-input of a first position in the text to be edited by the user's first finger, and when it is determined that the first finger is fixed, receive the user's A second touch sub-input of a second position in the text to be edited by the second finger; wherein, the text between the first position and the second position is used as the selected text.
可选的,响应于所述第一输入之前,用户输入单元707还用于接收第二输入;Optionally, before responding to the first input, the user input unit 707 is further configured to receive a second input;
处理器710,用于响应于所述第二输入,关闭所述第一文字编辑功能,并启动所述第二文字编辑功能。The processor 710 is configured to close the first text editing function and start the second text editing function in response to the second input.
可选的,响应于所述第一输入之前,用户输入单元707还用于接收第三输入;Optionally, before responding to the first input, the user input unit 707 is further configured to receive a third input;
处理器710,还用于响应于所述第三输入,显示功能选择框,所述功能选择框中包括第二文字编辑功能对应的控件;The processor 710 is further configured to display a function selection box in response to the third input, and the function selection box includes a control corresponding to the second text editing function;
用户输入单元707,用于接收对所述第二文字编辑功能对应的控件的第四输入;a user input unit 707, configured to receive a fourth input to the control corresponding to the second text editing function;
处理器710,还用于响应于所述第四输入,关闭所述第一文字编辑功能, 并启动所述第二文字编辑功能。The processor 710 is further configured to, in response to the fourth input, close the first text editing function and start the second text editing function.
可选的,在所述关闭所述第一文字编辑功能,并启动所述第二文字编辑功能的情况下,处理器710,具体用于响应于所述第一输入,对所述第一输入所选择的文本执行与所述第二文字编辑功能相关联的文本编辑操作。Optionally, in the case of closing 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, edit the The selected text performs a text editing operation associated with the second text editing function.
本申请提供的电子设备700,在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,其中第一输入用于进行文字选择;响应于第一输入,对第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。这样,在启动第一文字编辑功能的情况下,用户可以连续选择多个不连续的文字段落,并自动对选择的文字段落执行与目标文字编辑功能相关联的文本编辑操作,其中目标文字编辑功能与第一文字编辑功能相同或不同,从而避免用户在文本编辑区域和文本设置功能选项之间频繁切换,能够提高文本编辑效率。The electronic device 700 provided by this application, when the first text editing function is activated, receives the user's first input of the text to be edited, wherein the first input is used for text selection; in response to the first input, the selected text for the first input The text of performs the text editing operation associated with the target text editing function. In this way, when the first text editing function is activated, the user can continuously select a plurality of discontinuous text paragraphs, and automatically perform a text editing operation associated with the target text editing function on the selected text paragraphs, wherein the target text editing function is the same as The first text editing functions are the same or different, so that the user is prevented from frequently switching between the text editing area and the text setting function options, and the text editing efficiency can be improved.
应理解的是,本申请实施例中,输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器709可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。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 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. 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, or the like. 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, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 709 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, user interface, application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文字编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above text editing method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可 读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文字编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the above text editing method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
本申请实施例还提供了一种计算机程序产品,存储在可读存储介质中,所述计算机程序产品被至少一个处理器执行以实现上述文字编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a computer program product, which is stored in a readable storage medium, and the computer program product is executed by at least one processor to realize the various processes in the above text editing method embodiment, and can achieve the same technical Effect, in order to avoid repetition, will not repeat them here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服 务器,或者网络设备等)执行本申请各个实施例所述的方法。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-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (13)

  1. 一种文字编辑方法,包括:A text editing method, comprising:
    在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;In the case of starting the first text editing function, receiving the user's first input of the text to be edited, the first input is used for text selection;
    响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。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.
  2. 根据权利要求1所述的方法,其中,所述接收用户对待编辑文本的第一输入,包括:The method according to claim 1, wherein said receiving the user's first input of the text to be edited comprises:
    接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入;其中,将所述第一位置与所述第二位置之间的文字作为所选择的文本。receiving the first touch sub-input of the first position in the text to be edited by the user's first finger, and receiving the second position of the second position in the text to be edited by the user's second finger when it is determined that the first finger is fixed The second touch sub-input; wherein, the text between the first position and the second position is used as the selected text.
  3. 根据权利要求1所述的方法,其中,所述响应于所述第一输入之前,所述方法还包括:The method of claim 1, wherein, prior to said responding to said first input, said method further comprises:
    接收第二输入;receiving a second input;
    响应于所述第二输入,关闭所述第一文字编辑功能,并启动第二文字编辑功能。In response to the second input, the first text editing function is closed, and the second text editing function is started.
  4. 根据权利要求1所述的方法,其中,所述响应于所述第一输入之前,所述方法还包括:The method of claim 1, wherein, prior to said responding to said first input, said method further comprises:
    接收第三输入;receiving a third input;
    响应于所述第三输入,显示功能选择控件,所述功能选择控件中包括:第二文字编辑功能对应的控件;In response to the third input, a function selection control is displayed, and 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 closed, and the second text editing function is started.
  5. 根据权利要求3或4所述的方法,其中,在所述关闭所述第一文字编辑功能,并启动所述第二文字编辑功能的情况下,所述响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑 操作包括:The method according to claim 3 or 4, wherein, when the first text editing function is closed and the second text editing function is activated, in response to the first input, controlling the The text editing operation associated with the target text editing function performed on the text selected by the first input includes:
    响应于所述第一输入,对所述第一输入所选择的文本执行与所述第二文字编辑功能相关联的文本编辑操作。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.
  6. 一种文字编辑装置,包括:A text editing device, comprising:
    第一接收模块,用于在启动第一文字编辑功能的情况下,接收用户对待编辑文本的第一输入,所述第一输入用于进行文字选择;The first receiving module is used to receive the first input of the text to be edited by the user when the first text editing function is activated, and the first input is used for text selection;
    第一响应模块,用于响应于所述第一输入,控制所述第一输入所选择的文本执行与目标文字编辑功能相关联的文本编辑操作。The first response module is configured to, in response to the first input, control the text selected by the first input to execute a text editing operation associated with a target text editing function.
  7. 根据权利要求6所述的文字编辑装置,其中,所述第一接收模块包括:The text editing device according to claim 6, wherein the first receiving module comprises:
    第一接收子模块,用于接收用户第一手指对待编辑文本中的第一位置的第一触控子输入,以及在确定所述第一手指固定不动的情况下,接收用户第二手指对待编辑文本中的第二位置的第二触控子输入;其中,所述第一位置与所述第二位置之间的文字为所选择的文本。The first receiving submodule is configured to receive the first touch sub-input of the first position in the text to be edited by the user's first finger, and when it is determined that the first finger is fixed, receive the user's second finger. Editing the second touch sub-input at the second position in the text; wherein, the text between the first position and the second position is the selected text.
  8. 根据权利要求6所述的文字编辑装置,其中,所述装置还包括:The text editing device according to claim 6, wherein said device further comprises:
    第二接收模块,用于接收第二输入;a second receiving module, configured to receive a second input;
    第二响应模块,用于响应于所述第二输入,关闭所述第一文字编辑功能,并启动第二文字编辑功能。The second response module is configured to close the first text editing function and start the second text editing function in response to the second input.
  9. 根据权利要求6所述的文字编辑装置,其中,所述装置还包括:The text editing device according to claim 6, wherein said device further comprises:
    第三接收模块,用于接收第三输入;a third receiving module, configured to receive a third input;
    第三响应模块,用于响应于所述第三输入,显示功能选择框,所述功能选择框中包括:第二文字编辑功能对应的控件;The third response module is configured to display a function selection box in response to the third input, and the function selection box includes: a control corresponding to the second text editing function;
    第四接收模块,用于接收对所述第二文字编辑功能对应的控件的第四输入;A fourth receiving module, configured to receive a fourth input to the control corresponding to the second text editing function;
    第四响应模块,用于响应于所述第四输入,关闭所述第一文字编辑功能,并启动所述第二文字编辑功能。A fourth response module, configured to close the first text editing function and activate the second text editing function in response to the fourth input.
  10. 根据权利要求8或9所述的文字编辑装置,其中,在所述关闭所述第一文字编辑功能,并启动所述第二文字编辑功能的情况下,所述第一响应模块包括:The text editing device according to claim 8 or 9, wherein, in the case of closing the first text editing function and starting the second text editing function, the first response module includes:
    第一响应子模块,用于响应于所述第一输入,对所述第一输入所选择的 文本执行与所述第二文字编辑功能相关联的文本编辑操作。The first response submodule is configured to perform a text editing operation associated with the second text editing function on the text selected by the first input in response to the first input.
  11. 一种芯片,所述芯片包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行网络设备程序或指令,实现如权利要求1-5任一项所述的文字编辑方法的步骤。A chip, the chip includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a network device program or instruction to implement the process described in any one of claims 1-5. The steps of the text editing method described above.
  12. 一种计算机程序产品,所述计算机程序产品存储在非易失的存储介质中,其中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-5任一项所述的文字编辑方法的步骤。A computer program product, the computer program product is stored in a non-volatile storage medium, wherein the computer program product is executed by at least one processor to realize the text editing as described in any one of claims 1-5 method steps.
  13. 一种电子设备,其中,被配置为执行如权利要求1-5任一项所述的文字编辑方法的步骤。An electronic device, wherein it is configured to execute the steps of the text editing method according to any one of claims 1-5.
PCT/CN2022/119900 2021-09-24 2022-09-20 Text editing method and apparatus WO2023045919A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111120003.5A CN113807057A (en) 2021-09-24 2021-09-24 Method and device for editing characters
CN202111120003.5 2021-09-24

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/605,443 Continuation US20240220711A1 (en) 2021-09-24 2024-03-14 Text editing method and apparatus

Publications (1)

Publication Number Publication Date
WO2023045919A1 true WO2023045919A1 (en) 2023-03-30

Family

ID=78940105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/119900 WO2023045919A1 (en) 2021-09-24 2022-09-20 Text editing method and apparatus

Country Status (2)

Country Link
CN (1) CN113807057A (en)
WO (1) WO2023045919A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113807057A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Method and device for editing characters

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591851A (en) * 2011-12-31 2012-07-18 上海聚力传媒技术有限公司 Method and device for editing target texts based on keyboard keys
CN103257804A (en) * 2012-02-16 2013-08-21 深圳富泰宏精密工业有限公司 Method and system for editing texts
CN107967093A (en) * 2017-12-21 2018-04-27 维沃移动通信有限公司 A kind of multistage text clone method and mobile terminal
CN112486377A (en) * 2020-12-07 2021-03-12 网易(杭州)网络有限公司 Text editing method and device and electronic equipment
CN113807057A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Method and device for editing characters

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101677636B1 (en) * 2010-08-30 2016-11-18 엘지전자 주식회사 Mobile terminal and method for editing text thereof
CN103744833A (en) * 2014-01-21 2014-04-23 厦门美图网科技有限公司 Path based text creating method
CN110472199B (en) * 2018-05-11 2023-10-27 成都野望数码科技有限公司 Method and device for adjusting object style
CN109343783A (en) * 2018-08-15 2019-02-15 信利光电股份有限公司 It is a kind of to facilitate the input method and device for changing text attribute
CN109815469B (en) * 2018-12-29 2023-09-26 天津字节跳动科技有限公司 Text editing method, text editing device, medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591851A (en) * 2011-12-31 2012-07-18 上海聚力传媒技术有限公司 Method and device for editing target texts based on keyboard keys
CN103257804A (en) * 2012-02-16 2013-08-21 深圳富泰宏精密工业有限公司 Method and system for editing texts
CN107967093A (en) * 2017-12-21 2018-04-27 维沃移动通信有限公司 A kind of multistage text clone method and mobile terminal
CN112486377A (en) * 2020-12-07 2021-03-12 网易(杭州)网络有限公司 Text editing method and device and electronic equipment
CN113807057A (en) * 2021-09-24 2021-12-17 维沃移动通信有限公司 Method and device for editing characters

Also Published As

Publication number Publication date
CN113807057A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
WO2022068773A1 (en) Desktop element adjustment method and apparatus, and electronic device
CN112148170B (en) Desktop element adjusting method and device and electronic equipment
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
WO2023125425A1 (en) Display method and apparatus, and electronic device
WO2023045927A1 (en) Object moving method and electronic device
WO2023005828A1 (en) Message display method and apparatus, and electronic device
WO2023083158A1 (en) Text selection method, text selection apparatus, and electronic device
WO2024046204A1 (en) Message processing method and apparatus, electronic device, and storage medium
WO2022242586A1 (en) Application interface method and apparatus, and electronic device
WO2023274067A1 (en) Icon generation method and apparatus, electronic device, and readable storage medium
WO2023025121A1 (en) Display method and apparatus, electronic device, and readable storage medium
WO2023016463A1 (en) Display control method and apparatus, and electronic device and medium
WO2023045919A1 (en) Text editing method and apparatus
CN112099702A (en) Application running method and device and electronic equipment
WO2022068863A1 (en) Background task display method and electronic device
WO2023155874A1 (en) Application icon management method and apparatus, and electronic device
WO2023045923A1 (en) Text editing method and apparatus, and electronic device
CN111857503A (en) Display method, display device and electronic equipment
CN112765500A (en) Information searching method and device
WO2023045920A1 (en) Text display method and text display apparatus
WO2023093809A1 (en) File editing processing method and apparatus, and electronic device
WO2023083214A1 (en) Desktop management method and apparatus, and electronic device
WO2023066123A1 (en) Terminal power-saving display method and apparatus, and electronic device
WO2023093590A1 (en) Display control method and apparatus, and electronic device and medium
WO2023284640A9 (en) Picture processing method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22871965

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022871965

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022871965

Country of ref document: EP

Effective date: 20240424